1 Introduction

Nanoparticles (NPs) have garnered a lot of attention recently for a variety of uses in biosensors, electronics, optics, catalysis, medicine, and agriculture. Due to their comparable size to biomolecules and ease of penetration, it is widely known that NPs (within the size range of a wavelength of 100 nm) are effectively used for an assortment for aims [1]. The earliest documentation of the medicinal use of gold and its compounds as medicines dates to the ancient Egypt, where it was first documented over 5000 years ago [2]. Due to its intriguing qualities including easy manufacturing and surface modification, biocompatibility, and no cytotoxicity, gold nanoparticles (AuNPs) have attracted a lot of attention [3,4,5]. They are very useful in the disciplines of biotechnology and biomedicine thanks to these special qualities. In truth, AuNPs offer a wide range of potential uses in nanomedicine and novel types of catalysis [6, 7]. Since it does not employ any dangerous or poisonous chemicals, the biological production of AuNPs by plant, fungi, actinomycetes, and bacteria has gained intriguing research. However, as compared to the beginning materials, silver nanoparticles (AgNPs) exhibit markedly different characteristics, largely because of the higher surface area to volume ratio, which boosts their ability to function in biology [8,9,10]. Silver NPs are widely acknowledged for their specific antibacterial characteristics in addition to their strong conductivity in electricity and visual impacts [11,12,13,14]. Additionally, NPs may be produced at low pressure, temperature, and pH levels, which lessen their toxicity and expands their potential medical applications [15,16,17]. The production of AuNPs by fungi offers numerous advantages, including minimal use of energy, high efficiency, the absence of additional capping and stabilizing agents, ease of operation, and simplicity of separation and purification. When various fungal species or reaction circumstances are applied, it has been discovered that many fungi can produce AuNPs both within and outside of cells with varying particle compositions and characteristics [18]. Chemical and physical methods are the most often used to create NPs. However, these synthesis processes are very costly and produce toxic by-products since they use dangerous chemicals that are bad for the environment [19]. Because of its benefits over physicochemical techniques lower energy needs, non-toxic reagents, biocompatibility, simplicity of processing, better stability, elimination of unnecessary processing during synthesis, and sustainability the biological method is recommended [20,64,22]. Physicochemical methods can result in hazardous consequences and are still somewhat costly [23,24,25,26,27]. Biological agents including bacteria, fungus, yeast, actinomycetes, and plants are used in the biological approach of NPs synthesis [28,29,30,31]. Numerous enzymes (metabolites) produced by biological entities decrease metallic ions through enzymatic processes [32, 33]. In general, fungi such as V. lecanni, Trichoderma atroviride, and F. oxysporum and actinomycetes such as Streptomyces and other bacteria Rhodococus spp. and Thermomonospora were also used to synthesize AuNPs intra- and extracellularly [34]. However, the formation of AuNPs is still scarce [35].

Assessment of the interactions between reaction variables that affect the creation of AgNPs and how they can be optimized is required for the effective reduction of metal ions as silver (Ag+) to AgNPs (Ag0) when using various bioreducers. Optimization constitutes one of the crucial steps in the development of a formation protocol [36].

Recent investigation has shown that altering the biosynthetic reaction’s processing variables, such as mixing ratio, temperature, aeration, pH, and incubation time, may improve the production of NPs that have various morphologies [37, 38]. The procedure of fermentation by microorganisms has typically been improved by evaluating the effect of one-variable at a time (OVAT) on a controlled action. In this strategy, one parameter is altered while maintaining the levels of the other variables [39,40,41]. The Plackett–Burman design offers a quick and efficient method for determining what factors need that must be employed in optimization [42, 43].

As a result, it was unable to identify the interactions between the various factors and the full impact of each parameter on the answer. Additionally, using this kind of study necessitates doing several experiments, which adds to the needed time and money. Technique for responding to surfaces, a well-known statistical analysis technique, statistical analysis (RSM), is used to optimize the components of the medium along with various significant variables involved in the generation of microbial compounds [44,45,46]. Consequently, RSM might produce higher-quality findings while reducing expenses and time [47]. Furthermore, RSM describes the estimation of ideal circumstances by analysing the relationship between all of the variables in a process [48]. In order to maximise the creation of NPs, a face centred central composite design (FCCCD) was performed [49].

2 Material and methods

2.1 Microorganism

From agricultural soil, the fungus Trichoderma saturnisporum was isolated. Malt extract agar (MEA) had been employed to isolate the fungus strain and was grown at 28 °C for 5 days. The discovered isolate was genetically identified via molecular identification utilizing genomic DNA and its region of amplification. The discovered fungal isolates’ ITS sequences have been contrasted to the ones in the GenBank databases.

2.2 Biosynthesis of AgNPs and AuNPs

Following that, both AgNPs and AuNPs were created using the cell-free filtrate. Preparing for mixing, 1 mmol each of AgNO3 and HAuCl4 was purchased from Sigma-Aldrich, USA. Other chemicals, culture media and reagents used in this study were purchased from Modern Lab Co. Alongside Trichoderma saturnisporum’s cell-free filtrate as well as incubation for 72 h at 28 °C upon a vibrating shaker (120 rpm) in dark conditions, the pH was raised to 10 to AgNPs while 5 for AuNPs, accordingly, AgNPs along with AuNPs both displayed brown and violet hues after the incubation period. The finished product underwent separation and was oven-dried for 24 h at 200 °C. Then, the AgNPs and AuNPs by-products were collected, and the focus was on further analysis.

2.3 UV–Vis investigation

In order to assess the influence of multiple variables upon the biosynthesis of AgNPs along with AuNPs, their exterior plasmon resonance peak frequencies were measured through the use of an absorbance, the spectral scan with a double-beam UV–Vis spectra on the JASCO, V-630, UV–Vis Spectrophotometer (JASCO-INTERNATIONAL-CO, LTD) at a spatial resolution of 1 nm within the length of the wave range of 200 and 800 nm. Due to the variety of factors such as the size and concentration of the nanoparticles utilized in the experiment, the UV–Vis spectrum may fluctuate. In order to ascertain whether the creation of nanoparticles was rising or falling, the absorbance intensity was employed.

2.4 Optimization studies for nanoparticle production

The variables relating cell-free filtrate and the initial components of nanoparticles (silver nitrate as well as chloroauric acid) were optimized during optimization experiments. Subsequently employing a single factor at a time (OFAT) technique, the impacts of various incubation times, precursor concentrations, pH values, incubation temperatures, shaking for efficiency, and influence of biomass weight had been screened. Every single factor underwent modification whereas other factors remained untouched. Response to change surface statistical procedure was subsequently employed for assessing the relevance of all of these factors and how they correlated with the other factors and determine the most significant factors to design the experiment at Plackett–Burman design (PBD).

2.5 Effect of different incubation periods

The biomass filtrate of the fungal isolate was mixed with 1 mmol AgNO3 or HAuCl4 for different incubation periods as 24, 48, 72 and 96 h. Myco-synthesized nanoparticles were characterized at the end of each incubation time by UV–visible spectroscopy.

2.6 Precursor concentration

The concentration of the precursor affects the quantity of the nanoparticles produced. Various concentrations of AgNO3 and HAuCl4 were tested (0.5, 1, 2.0 and 3.0 mmol) to select the best substrate concentration. Biosynthesized nanoparticles were analysed at maximum surface plasmon resonance peak by UV–visible spectroscopy.

2.7 Effect of different pH values

The generation of the enzymes needed for the creation of nanoparticles is greatly influenced by pH. Different pH ranging from 5 to 9 for AuNPs and from 6 to 10 for AgNPs were used to study the influence of pH on nanoparticle production from the fungal isolate in the presence of 1 mmol AgNO3 or HAuCl4 as substrate precursors; biosynthesized nanoparticles were analysed at maximum surface plasmon resonance peak by UV–visible spectroscopy.

2.8 Effect of different incubation temperatures

Temperature plays a very important role in all biological reactions. Temperatures ranging between 25, 35 and 45 °C were used in optimisation tests with respect to temperature of cell-free filtrate with 1 mmol AgNO3 or HAuCl4 for production of silver and gold nanoparticles. A specified wavelength of UV–visible spectroscopy for absorption was used to analyse the substance being investigated.

2.9 Effect of shaking for productivity

The effect of shaking and static condition between precursors and cell-free filtrate (CFF) was examined by preparing CFF then incubated at 120 rpm and at static condition. The myco-synthesized nanoparticles were characterized at the end of incubation periods to determine the best condition for production.

2.10 Effect of biomass weight

Different produced biomass of the most potent isolates was added to the same volume of distilled water and same condition. Weight was 10, 20 and 30 g/100 ml distilled water, and the resulted nanoparticles were analysed at maximum surface plasmon resonance peak by UV–visible spectroscopy.

2.11 Designing experiments and optimising them using RSM

Utilising Design Expert software (Version 10.0.3.1, Stat-ease, Minneapolis, USA), response surface approach was used to examine an estimated functionality relationship across the three most important factors. With the use of CCD, all the variables involved were further minimised [50].

2.12 Statistical optimization by CCD model

RSM was used to do the statistical optimization. The CCD, which illustrates the connection among the parameters and response (precursors concentrations, pH, temperature and nanoparticles (silver and gold) synthesis), is a particularly popular and extremely successful RSM approach employed in optimization. Cube points were utilised to fit a linearity (first order) approach, axial points to calculate the quadratic(second -order) polynomial terms and centre cube points to determine the quadratic effects between high and low levels of each variable, as well as for assessing the pure experimental error.

The model may provide optimization curves that foretell the ultimate best configurations of the interacting parameters that boost nanoparticle production according to the CCD statistical data analysis’s results in math and graphics. The effects of precursor conc., temp. and pH were calculated using a two-level, five-factor (25) complete factorial CCD. The CCD matrix, which includes the actual results of the experiment’s runs at each factor’s five levels, is presented in Tables 1 and 2. The significance level of the straight line, quadratic and relationship factors was assessed using analysis of variability (ANOVA).

Table 1 Design and outcomes of an experimental study that sought to optimise 2complete factorial CCDs of pH, temperature and precursor concentration in response to both high and low levels of interacting variables for AgNPs
Table 2 Design and outcomes of an experimental study that sought to optimise 25 complete factorial CCDs of pH, temperature and precursor concentration in response to both high and low levels of interacting variables for AuNPs

2.13 Experimental design and setup

An Erlenmeyer flask with a working volume of 200 mL and a volume of 250 mL was used for each experiment. To identify the influence of precursors conc., pH and temperature on the creation of nanoparticles by Trichoderma saturnisporum, 14 runs of Erlenmeyer flasks were divided into 20 for silver and 20 for gold. Concentration at 0.2, 0.6, 1.0, 1.4 and 1.8 mM of AgNO3 and HAuCl4 precursors were added to the same volume of cell-free filtrate. pH at 6, 7, 8, 9 and 10 for AgNPs and at 4, 5, 6, 7, and 8 for AuNPs. Finally, different condition of temperature was used for AgNPs and AuNPs at 25, 30, 35, 40 and 45 °C.

2.14 Response surface methodology validation

The Minitab® DoE statistical package’s response optimizer, a tool, was utilized for developing the optimization curves in order to identify the precise combinations of the interacting parameters that would enhance NPs’ productivity. On a scale of 0 to 1, the anticipated settings were evaluated for their capacity to optimize the response using individual (d) and composite (D) desire. Additional confirmation experiments were conducted after this step to verify the projected parameters produced by the curves of optimization.

2.15 Statistical analysis

Applying Minitab® version-18 (2017) reinforced with software for statistics and graphics, every experimental outcome for RSM models were created and evaluated. After that, the model’s strength was evaluated by looking at the ANOVA determination coefficient (R2). The ANOVA test was utilised to assess the data given as a mean and standard deviation. At the 0.05 probability level, Fisher test was utilised to compare the means across the groups. Following that, the surface plots were plotted using Sigma Plot v14.0 SPW.

3 Results and discussion

In the development of a biotechnology production process of technologically significant compounds, incubation temperature, agitation, aeration, pH, oxygen levels and medium composition have to be tuned to enhance growth and yield [51, 52].

3.1 Effect of different incubation periods, precursor concentration, different incubation temperature, shaking and biomass weight using OFAT method

As shown in Fig. 1A, the optimal incubation time to produce maximum extracellular AgNPs and AuNPs was when the biomass filtrate of Trichoderma saturnisporum treated with 1.0 mM AgNO3 and HAuCl4 solution was 72 h, which gave the highest optical density reading. The effect of different precursor concentration of AgNO3 and HAuCl4 (Fig. 1B) showed that the optimum substrate concentration for Trichoderma saturnisporum was 1.0 mM for maximum productivity of AgNPs and AuNPs which was characterized by UV–visible spectra.

Fig. 1
figure 1

Effect of incubation time (A) and different conc. of AgNO3 and HAuCl4 (B) on biosynthesis of AgNPs and AuNPs by T. saturnisporum

Effect of different pH values on biosynthesis of AgNPs and AuNPs

Biosynthesis of AgNPs and AuNPs was influenced by pH of the mixture between biomass filtrate and silver nitrate and chloroauric acid. Data represented graphically in Fig. 2A revealed that the absorbance increased by increasing pH value till pH 9 which is the maximum peak for synthesising AgNPs. It is evident that T. saturnisporum produced metabolites that are more stable in alkaline solutions than in acidic ones when used to cap AgNPs. However, the optimum pH value for bio fabricated AuNPs was 8 for Trichoderma saturnisporum.

Fig. 2
figure 2

Effect of different pH (A) and temperatures (B) on biosynthesis of AgNPs and AuNPs by T. saturnisporum

Effect of different temperatures on biosynthesis of AgNPs and AuNPs

Temperature is an essential environmental factor affecting nanoparticle production, so the effect of different temperatures on the production of AgNPs and AuNPs formed by T. saturnisporum was studied. The maximum productivity of AgNPs and AuNPs was attended at 35 °C when compared with other temperatures (Fig. 2B).

Effect of shaking for productivity of AgNPs and AuNPs

Data in Fig. 3A revealed that the productivity of AgNPs and AuNPs characterized by UV–visible spectra was not significantly affected by different agitation on shaker at 120 rpm or static condition by Trichoderma saturnisporum.

Fig. 3
figure 3

Effect of different shaking (A) different biomass weight (B) on biosynthesis of AgNPs and AuNPs by T. saturnisporum

Effect of different biomass weight of fungal mycelium on production of AgNPs and AuNPs

The biomass weight of fungal mycelium of Trichoderma saturnisporum had no critical effect on biosynthesis of AgNPs and AuNPs represented in Fig. 3B.

Three significant factors (pH, temperature, and precursor concentration) were measured after 72 h and designed by central composite design on Minitab program to study which together can obtain the best optimum conditions not only to tremendously help in the development of Trichoderma saturnisporum but also to raise the productivity and output of silver and gold nanoparticles.

3.2 Optimization of Trichoderma saturnisporum filtrate formation for AgNPs and AuNPs biosynthesis by RSMS

The Plackett–Burman design (PBD) is used to screen the important factors in the creation of AgNPs and AuNPs. Table 2 displays the effects of 20 runs with a variety of the independent factors on the creation of AgNPs and AuNPs. Tables 3 and 4 demonstrate the results of statistical ANOVA on the data acquired for the creation of AgNPs and AuNPs. These results pointed out that the model’s F-values for AgNPs and AuNPs, respectively, were 6.24 and 23.41, and its p-values were 0.004 and 0.000. In addition, the significant model terms (p-value < 0.05) for AgNPs were linear CONC and square CONC*CONC. The model’s determination coefficient (R2) was 84.88, demonstrating a very strong fit between the actual and predicted amounts of AgNP biosynthesis and suggesting that the model is trustworthy for this mechanism. Each independent variable’s significance was determined by calculating its probability value; as a result, a factor’s importance is indicated by a p-value that is less than 0.05. The range from 0 to 1 has always been R2. The model is more potent, and the expected result is great if the coefficient R2 is near to 1 [53]. On the other hand, the significant terms for AuNPs were linear PH as well as TEMP and square PH*PH, TEMP*TEMP and CONC*CONC. Additionally, significant value with two-way interaction PH*CONC. However, the R2 of the equation was 95.47, demonstrating a very strong fit between the measured and projected values of AuNP biosynthesis and suggesting that the model is trustworthy for this process. An indicator of how much variation there was in the measured response rates was the R2 value, which is always from 0 to 100. The strength of the model and the accuracy of its response prediction increase as R2 approaches 100 [54]. The measured and anticipated outcomes of the creation of AgNPs and AuNPs were well in agreement, as shown by the model R2 values of 84.44 and 95.47%. When calculating the signal to ratio of noise, the model’s appropriate precision was 31.28; however, it is ideal to have more than 4 [55]. A relatively low rate of variance coefficient of 6.95% suggested that the model trials were more accurate and reliable. As a result, this model might be utilised to somewhat accurately explore the design space.

Table 3 Analysis of variance of three factors (pH, temperature and concentration) of AgNPs produced by Trichoderma saturnisporum. F value = 6.24; R2 = 84.88: values of “prob > F” less than < 0.05 denotes the model are significant
Table 4 Analysis variance of three factors (pH, temperature, and concentration) of AuNPs produced by Trichoderma saturnisporum. F value = 23.41; R2 = 95.47: values of prob > F less than < 0.05 denotes that the model are significant

3.3 Response surface methodology for AgNPs by T. saturnisporum

The genuine (actual) influence of each term is determined by the normal probability plot, which also indicates whether or not the findings were an outcome of chance (randomness). A significant departure from normalcy could be found and shown using the residuals normal probability plot [56]. In addition, normal probability plots identify whether the term has a positive or negative influence on the answer; a positive effect denotes that a rise in the factor produces an increase in the response, while a negative effect denotes the opposite. Each effect is denoted by just one point on the plot; points near a fitted line (which denotes the position where the effects were zero) indicate estimated variables that have no discernible impact on the outcome, whereas points far from the line that was fitting represent the true (real) term impact. Concentration (C), pH (A) and temp (B) are the three key terms. Their contribution’s placement on the right side of the image (Fig. 4a) further indicates that it had a favourable impact. However, the relationships between temp (BB) and concentration (CC) are both placed to the left of the fit line, demonstrating a markedly adverse impact on the synthesis of AgNPs. Parallel to what has been observed in other investigations, AgNO3, and pH the shielding agent, affected the size of the nanoparticles produced [57, 58]. The average variances between high and low values within every factor are displayed on the major effect plots (Fig. 4b), which were created to reflect the findings of the prediction assessment. The findings showed that there was a substantial difference between the high and low ranges of pH, concentration and temperature values. The differences in NP synthesise between both high and low amounts of each component are explained by main effects graphs [59]. The relative significance and importance of the major and effects of interaction were assessed using the Pareto chart (Fig. 4c). After 72 h, the Pareto chart plot was used to assess the factors that affect how AgNPs biosynthesize. The main impacts of concentration (C), pH (A) and temperature (B), as well as their interactions (AA, BB, CC, AB, AC, and BC), have been extended beyond the line of reference in the Pareto graph of the standardised effects for AgNP synthesis, demonstrating the significant impact of these variables at a level equal to p ≤ 0.05. The column length of every parameter indicates the significance level of each term.

Fig. 4
figure 4

Normal plot (a), mean plot (b) and Pareto chart (c) of standardized effects of AgNPs produced by T. saturnisporum

3.4 Contour plots of AgNP synthesis

The form that displays the matching contour plot reflects whether or not a relationship amongst each of the independent variables is significant. Every response surface plot reflects the effects from the two independent factors while keeping the remaining variables at zero [42]. Contour plots were made (Fig. 5A) based on the significance of the main and two-way interaction impacts in order to graphically depict the growing AgNP synthesis of each two-factor while maintaining the third component, which is not shown in the plot, stable. The contour chart is a graph with two dimensions where all points from each depicted element that has the same response value are joined to produce contour lines that range from the smallest to the largest response (count) levels. Surface plots for AgNP synthesis (Fig. 5B). A surface-wireframe diagram is a three-dimensional chart that shows how the response and the two interdependence process elements are related to one another. The optimal peaks of the best value responses are displayed on a 3D grid (wire-frame) representation of the relationship. Understanding the primary and interaction factor impacts may be accomplished using functional response area plots [60]. The numbers preceding that line have no significant impact, and the Pareto charts and normal probability plots reflected the least statistically significant effect [61].

Fig. 5
figure 5

Contour plot (A) and surface plot (B) of AgNPs produced by T. saturnisporum

3.5 Response surface methodology for AuNPs by T. saturnisporum

The primary terms for pH (A) and temperature (B) and their interaction (AA, BB, CC and AC) are distant from the fitted straight line, suggesting a highly substantial influence. Additionally, the impact of these variables was positive since it is situated on the right portion of the diagram (Fig. 6a). Additionally, the interactions between pH (AA), temperatures (BB) and concentration (CC) are all to the left of the suited line, demonstrating a considerable detrimental impact on AuNPs biofabrication. The average variances between low and high values within each component are shown in the major effect plots (Fig. 6b), which were designed to illustrate the outcomes of the prediction analysis. It was discovered that there were considerable differences between low and high levels in pH values, temperature and concentration. The main effects of pH (A), temperature (B) and concentration (C) and their interactions (AA, BB, CC, AC, AB and BC) were all significant at the level of p < 0.05, with the exception of concentration (C) and the interaction of AB, BC, while the length of the column indicates the order of significance of each term(Fig. 6c).

Fig. 6
figure 6

Normal plot (a), mean plot (b) and Pareto chart (c) of standardized effects of AuNPs produced by T. saturnisporum

3.6 Contour plots of AuNPs synthesize

Contour and surface plots of AuNPs synthesize (Fig. 7A and B) show the surface plots and contour of AuNP synthesis between comparable encounters that follow the same pattern, where the biosynthesis of AuNPs increased to high level at pH 7 at 30 °C and 1.4 mmol of HAuCl4. Nevertheless, increasing or decreasing of these parameters would decline the productivity of gold NP. According to Shakouri et al. (2016), the largest amount of gold nanoparticles was produced 96 h after 2.50 mM Au ions were incubated with A. flavus filtrate at 28 °C [62]. The number of AuNPs formed responded by increasing the absorbance at 550 nm. With a large level of salt concentration of 5 mM and 48 h of incubation at 30 °C, Au ion reduction increased [63]. In another study, the researchers utilized PBD to maximize the formation of the biosurfactant made by B. subtilis, which was used for producing AuNPs and AgNPs. Inoculum size and pH for AgNPs and AuNPs biosynthesis and ammonium ferric citrate were the only four of the 11 variables that were demonstrated to substantially influence culture development [64]. Concentration of AgNO3 (mM), shaking rate (rpm), incubation temperature (°C) and pH identified the effective parameters for biosynthetic optimization of AgNP generated by Penicillium citrinum utilizing BBD. They discovered that the resultant model’s R2 value was 0.8894, showing a strong connection between the predicted and observed data. They came to the conclusion that Penicillium citrinum might produce AgNPs under ideal circumstances at a reasonable cost-effectively and quickly [65].

Fig. 7
figure 7

Contour plot (A) and surface plot (B) of AuNPs produced by T. saturnisporum

The response optimizer programme was used to create the optimisation curves (Fig. 8 A and B) that show the final optimal values for the parameters that maximise the synthesis of AgNPs and AuNPs. AgNPs pH 9.0, temperature 32.6 °C and concentration 1.15 mmol were the ideal conditions for the preparation and incubation of triple repeated confirmatory runs. While the pH, temperature and concentration of AuNPs are 6.94, 33.2 °C and 1.21 mmol.

Fig. 8
figure 8

Optimal predict of AgNPs (A) and AuNPs (B) produced by T. saturnisporum

4 Conclusions

The current work expanded the use of T. saturnisporum supernatant for the biosynthesis of AgNPs and AuNPs. The “one factor-at-a-time” optimization technique was used to optimize the biomanufacturing procedure. The settings were optimized using the response surface methods to produce highly synthesized AgNPs and AuNPs. The outcomes showed that the reaction parameter adjustment was indeed required and had a direct impact on the fabrication process. Predicted values have been verified and the model’s fitness was confirmed. Lastly, pH 9.0, 32.6 °C and 1.15 mmol of concentration were the ideal conditions for AgNPs biosynthesis. While the pH, temperature and concentration of AuNPs are 6.94, 33.2 °C and 1.21 mmol.