You can either use Response Surface Methodology and fit the obtained data using any one of the metaheuristic algorithms (ANN, GA, SA, etc.). However, can you include the size of the biomass to be pretreated as one of the independent factors in the experimental design to increase your scope of the study? Then you can set the response to biogas yield, methane yield, or any other factor you want to measure.