Introduction

An interest in bioenergy technology has increased as several countries embrace biogas as a key technology of dealing with a wide variety of organic wastes1. Anaerobic digestion (AD) processes have become increasingly significant due to their ability to produce biogas, a renewable form of energy, through the biological treatment of various types of waste and wastewater2,3. AD is a highly promising biological system for converting organic waste, including lignocellulosic biomass, food waste, municipal solid waste etc., into energy-rich biogas along with nutrient rich organic fertilizer2,4. This conversion process involves a series of stages that rely on the interactions between different groups of bacteria and archaea5,6,7. Therefore, maintaining a delicate balance between these microorganisms and the surrounding environmental conditions is crucial for ensuring the stability and efficiency of AD systems. Waste, particularly biomass waste, represents a significant portion of the materials suitable for anaerobic digestion. The potential of anaerobic digestion to produce biogas from different waste streams depends on factors such as process parameters, environmental conditions, and crucially the nature of substrates2,5.

Many studies shown the benefits of co-digestion over mono digestion8,9,10. These benefits include increased digestibility due to synergistic effects caused by co-substrates and greater process stability11,12. In co-digestion process, bioCH4 output is expected to increase due to the buffering capacity and diverse nutritional profile provided by substrate while the carbohydrate balance the C/N ratio and regulate the ammonia generation. Compared to mono-digestion, biogas output can be significantly increase by 25–400% through co-digestion strategy from the same substrates13. The economic viability of AD plants is enhanced by the synergistic interaction between substrates and microorganisms during co-digestion. This is primarily attributed to the increased proportion of bioCH4 in the overall biogas yield. The total biogas and bioCH4 content are influenced by the chemical compositions and biodegradability of organic sources. For example, the introduction of maize silage (40%, COD) to waste activated sludge resulted in a substantial increase of 154% in CH4 compared to single digestion of sludge14. According to Zhen et al. (2015), the incorporation of grass into the waste activated sludge (30% w/w) resulted in a significant enhancement in CH4 by 12.5% and volatile solids removal by 9.2%15.

Ammonia (NH3) is often produced during the microbial breakdown of organic feedstock that contains a significant quantity of nitrogenous materials (typically in the form of proteins and urea)16. Hydrolysis converts the majority of the Kjehldahl nitrogen to ammonium, therefore cellular production only removes a little amount of nitrogen, whereas about 60–80% of the COD and BOD are transformed into biogas17. The majority of the nitrogen in digestate comes from ammonium nitrogen (NH4+–N), making up between 50 and 80% of the total nitrogen (TN)18. Ammonia (NH3) plays a crucial role in manufacturing fertilizers, which are essential for ensuring food security globally. NH3 has also been recognized as a potential energy source due to its efficient storage and transportation properties, surpassing hydrogen (H2). However, the conventional Haber–Bosch (HB) process used to produce NH3 demands a considerable amount of energy and leads to greenhouse gas emissions, as it relies on H2 derived from fossil fuels. Therefore, it is imperative to develop sustainable strategies for NH3 synthesis, especially considering the projected population growth by 2050 and escalating environmental concerns. Prioritizing the use of environmentally friendly raw materials is essential to enhance energy efficiency. Sustainable agriculture is reinforced by a circular economy aimed at maximizing the recovery of essential nutrients. Bio-based nitrogen fertilizers derived from digestate have the potential to replace synthetic mineral nitrogen, facilitating a closed loop of agricultural fertilizer flow19. As a result, a bio-based and circular economic system is emerging, focused on improving the recovery of vital nutrients from biological waste streams in a sustainable and environmentally friendly manner, marking a transition from a fossil-based economy20.

The aim of this study was to evaluate mono and co-digestion potential of three different substrates (wheat straw, brewery spent grains and cheese whey) towards biogas production. At first, wheat straw (WS) underwent organosolv (OSOLV) pretreatment to efficiently remove hemicellulose/lignin, resulting in a substantial increase in the accessible surface area and a decrease in the degree of polymerization of cellulose. This process greatly enhances the enzymatic digestibility of the straw. The organosolv (OSOLV) pretreatment emerged as a great choice for the biomass fractionation. In the OSOLV process, biomass is pretreated at temperatures ranging from 100 to 220 °C using solvents and acids such as ethanol and sulfuric acid. The final outputs of this process comprise solid materials containing cellulose, an aqueous solution rich in hemicellulose, and a fraction of lignin21,22.

Further the study explored the co-digestion of organosolv-pretreated WS solids with nitrogen-rich substrates like brewery spent grains and cheese whey to evaluate their impact on biogas and ammonium production. To provide insight into the synergy of single and co-digestion, we also separately digested untreated WS, BSG, and CW. Combining nitrogen containing substrates with carbohydrate-rich substrates is crucial for maximizing biogas production through anaerobic digestion, leading to enhanced efficiency and stability. Nitrogen (N) and carbon (C) are essential nutrients for the bacteria involved in biogas production. Co-digestion enables the achievement of a balanced carbon-to-nitrogen ratio, which enhances biogas production when compared to digesting individual substrates. It is important to maintain a balanced C:N ratio to support bacterial growth and protein synthesis, resulting in a stronger and more dynamic microbial community. The inclusion of nitrogen from the co-substrate improves the biodegradability of the entire mixture, resulting in increased biogas production. Maintaining a balanced C:N ratio is crucial for ensuring a stable and efficient anaerobic digestion process, which minimizes disruptions and maximizes biogas production in the long run. Furthermore, we delved into studying the microbial dynamics, including bacterial and archaeal communities, to understand the mechanisms and interactions involved in digesting different substrates rich in cellulose, hemicellulose, or proteins. The insights gained from this research could pave the way for the effective bioconversion of lignocellulosic/protein-rich biomass into renewable energy and biobased fertilizers, thus contributing to greener production methods.

Materials and methods

Feedstock and inoculum

This study evaluated the anaerobic digestion (AD) potential of three different biomass substrates, including wheat straw (WS), brewery waste grains (BSG), and cheese whey (CW). The BSG and CW were provided by Skellefte Bryggeri (Skellefteå, Sweden), and Norrmejerier, a Swedish company, respectively. Both the BSG and CW are stored at − 20 degrees to maintain their quality until they are utilized. The wheat straw used in this study was cultivated in Denmark. The WS and BSG samples were subjected to an air-drying process and subsequently milled using a knife mill (Retsch SM 300; Retsch GmbH, Haan, Germany) with a 1-mm screen. The resulting milled samples were then stored at room temperature. The biocatalyst used in this study was a mixed culture collected from a biogas plant located in Luleå, Sweden. The sludge was filtered to remove solid particles and settled overnight. The thickened sludge (VS: 0.13 g/g) was used as a biocatalyst after removing the mostly water supernatant. Homogenized BSG analysis revealed 95.1 ± 0.02% w/w total solids, with 92.1 ± 0.02% w/w volatile solids (VS). Cellulose, hemicellulose, and lignin were found to be 28.17%, 15.17%, and 12.28% w/w, respectively.

Organosolv pretreatment of wheat straw

A hybrid organosolv-steam explosion unit was used for the pretreatment of lignocellulosic wheat straw to extract the cellulosic portion23. The resulted solids rich in cellulose from the organosolv pretreatment were used as substrate for AD. Briefly, a total of 200 g of dried WS was mixed with water, acetone, and ethanol in proportions of 40%, 30%, and 30% respectively. Subsequently, an acid catalyst (H2SO4, 1.1 g) was added to the mixture. After the reactor had been sealed off, the remaining ethanol (needed to get the desired pretreatment ethanol concentration) was pumped into it from outside using an external pump. During the pretreatment phase, water (inside the reactor) was heated to 180 °C using steam (from both within the reactor and an external heating source) for 1 h. Steam was produced in a steam generator located outside of the reactor, and it was transferred into the reactor through pipes. After the pretreatment phase, the discharge valve was opened, resulting in an instant decompression of the reactor. Consequently, the expelled material in the form of slurry was collected through the cyclone apparatus23,24. In the next step, using a vacuum filtration, the solid matter was separated. Further, the solid portion was subjected to ethanol wash, followed by air-drying. The liquid portion was processed to extract lignin and hemicellulose, as detailed in previous literature. However, these specific fractions (lignin and hemicellulose) were not included in the scope of the present study23,24. Finally, the obtained solids were vacuum filtered from the slurry, washed, and stored at room temperature. The pretreated solids obtained through the hybrid steam explosion technique was used as substrate in this study. The experiments of enzymatic saccharification of pretreated solids were conducted by following the procedure described in our earlier publication25. The organosolv pretreated wheat straw was mainly composed of cellulose (0.66 g/g), hemicellulose (0.14 g/g) and lignin (0.17 g/g).

Anaerobic digestion experiments

The AD potential test of all the three substrates (organosolv pretreated wheat straw, brewery spent grains and cheese whey) was evaluated using the Automatic Methane Potential Test System: AMPTS-II from Bioprocess Control AB (Lund, Sweden). Filtered municipal sludge was used as inoculum by considering inoculum-to-substrate volatile solids (VS) ratio of 2. For an effective breakdown of complex lignocellulosic substrates, a higher inoculum-to-substrate ratio was employed thereby enhancing the efficiency of the process. Figure 1 depicts the experimental setup for comparing organosolv pretreated WS (WSOSOL) to untreated wheat straw (WS), brewery spent grains (BSG) and cheese whey (CW) in mono and co-digestion strategy. The individual reactor (total volume 1L) of the AMPTS system was specifically designed and fabricated with a glass bottle was connected with a top micro-motor for mixing. The reactors were loaded with a combination of specific ratio of substrate and inoculum, as indicated in Table 1. All the reactors were operated in batch mode at 35 °C for a period of 24 days. Before starting up, the reactors were sparged with nitrogen gas for fifteen minutes to create anaerobic condition. The biogas produced during the AD process was evaluated by connecting the reactors headspace with a gas-flow meter. The volumetric gas production data was recorded utilizing the software that accompanied the reactors. The experiment was performed in triplicate, which involved conducting control digestions in the absence of substrate.

Figure 1
figure 1

The experimental setup for comparing organosolv pretreated WS (WSOSOL) to untreated wheat straw (WS), brewery spent grains (BSG) and cheese whey (CW) in mono and co-digestion strategy.

Table 1 Mono and co-digestion of organosolv pretreated wheat straw with BSG and CW for biogas and ammonium production.

Analytical methods

The total solids (TS) content of the substrates used was determined through the gravimetric method after subjecting them to drying in an oven at a temperature of 110 °C for 24 h. The ash content was determined using a gravimetric method, wherein the samples were subjected to combustion in a muffle furnace at a temperature of 550 °C for 3 h. Volatile solids (VS) was determined by subtracting the ash content from the total solids (TS) content. The quantification of cellulose and hemicellulose in wheat straw samples was performed using the methodology described in our previous publication23,24. The change in pH during the AD process were regularly monitored using a pH meter (pHenomenal-pH1100L; VWR, Stockholm, Sweden). Volatile fatty acids (VFAs: acetic, propionic, butyric, and valeric acids) in the digestate was analyzed using high-performance liquid chromatography (HPLC), PerkinElmer system. The HPLC system consisted of a 410 LC pump and a RID-6A refractive index detector (RID). The column Aminex HPX-87H (Bio-Rad in Hercules, CA, USA) with dimensions of 300 × 7.8 mm, was operated at a constant temperature of 65 °C. The mobile phase used was prepared with 5 mM H2SO4 and was eluted at a flow rate of 0.6 mL/min. The biogas compositional analysis was performed using a mass spectrometer (GAM 400; InProcess Instruments, Bremen, Germany) and an Agilent 990 micro-GC equipped with a COX column (COX UM1MX0.8MMID BF, CP-PORABOND Q, 1MX 0.25 mm × 3Um). The temperature of the column and injector was maintained at 110 °C and 80 °C, respectively. Volatile fatty acid quantification was accomplished with the use of calibration curves based on market available standards (10 mM, volatile free acid mix; Sigma-Aldrich, St. Louis, MO, USA). Ammonium quantification was performed using the Ammonium Test kit (Spectroquant) in conjunction with photometric measurements using the Spectroquant® Move 100. The chemical composition of the biomass was determined by measuring carbon, hydrogen, and nitrogen contents following a standardized procedure on a Euro EA 3000 Elemental Analyzer by flash combustion at 980 °C in tin vials, using 1 to 2 mg of samples (EuroVector, Pavia, Italy).

Microbial diversity: DNA extraction

On day 24, sludge samples were collected from each of the reactors to evaluate the microbial diversity. The DNA extraction process for the samples was conducted as per the protocol described by FastDNA Spin kit for Soil (MP Biomedicals, USA). Initially in a Lysing Matrix tube, 500 μL of sample, consisting of 480 μL of sodium phosphate buffer and 120 μL of MT buffer was loaded. The bead beating was conducted at a velocity of 6 m/s for 4 × 40 s. The purity and validation of product size of extracted DNA was performed using Tape station 2200 and Genomic DNA screen tapes through gel electrophoresis. Finally, DNA concentration was determined by using the Qubit dsDNA HS/BR Assay kit (Thermo Fisher Scientific, Waltham, MA, USA).

Library preparation-DNA sequencing and Bioinformatic processing

The amplicon libraries targeting the variable region 4 (abV4C) of the 16S rRNA gene in bacteria and archaea have been prepared using an Illumina protocol26. 10 ng of extracted DNA was used as a template for PCR amplification of the variable region 4 (abV4C) amplicons of the 16S ribosomal RNA (rRNA) gene in bacteria and archaea. The specific procedures for DNA sequencing, library preparation, and bioinformatic processing have been discussed in depth in our previous publication18.

Results and discussion

Enzymatic saccharification efficiency (ESE)

The utilization of lignocellulosic biomass is gaining interest as a sustainable alternative for the production of biofuels and energy, aiming to reduce the reliance on fossil fuels and address environmental concerns. In the EU, an annual production of nearly 144 million tons of lignocellulosic wheat straw positions it as a significant agricultural residue in the region. However, the complex chemical composition of wheat straw poses challenges in its effective utilization for biorefinery and bioconversion processes to produce valuable chemicals and fuels. "Organosolv pretreatment offers an effective method for extracting cellulose-rich fractions from wheat straw, which significantly enhances its microbial digestibility and better facilitates its use as a renewable resource. Figure 2 illustrates the enzymatic hydrolysis of organosolv pretreated wheat straw, untreated wheat straw, and brewery spent grains with respect to time. At the end of day 1, the organosolv pretreated wheat straw displayed a higher enzymatic saccharification efficiency (14%) compared to both untreated wheat straw (7%) and brewery spent grains (11%). By day 2, all samples exhibited a notable increase in glucose concentration. The highest enzymatic saccharification efficiency of 35% was observed with brewery spent grains, followed by 29% for organosolv pretreated wheat straw and 13% for untreated wheat straw. The efficiency of saccharification is significantly influenced by biomass composition. Brewery spent grains have lower hemicellulose content compared to wheat straw, which allows for easier access to cellulose for enzyme action. Additionally spent grains generally contain less lignin than wheat straw, which reduces obstacles for enzymes and enhances cellulose accessibility for improved saccharification efficiency. On day 5, the enzymatic saccharification efficiency for organosolv pretreated wheat straw increased by 73%, while brewery spent grains and untreated wheat straw experienced increases of 54% and 25% respectively. Despite the low glucose content at the beginning, organosolv pretreated wheat straw demonstrated easier hydrolysis in the following days, making it an ideal substrate for anaerobic digestion. Conversely, untreated wheat straw exhibited the lowest saccharification efficiency, emphasizing the significance of pretreatment prior to digestion. The organosolv pretreatment process eliminates lignin and breaks down hemicellulose, enhancing the accessibility of cellulose for enzymatic hydrolysis. The cellulose structure enables enzymes utilized in subsequent hydrolysis stages to operate more efficiently, thereby enhancing sugar production. Additionally, the phenolic acids associated with lignin can be significantly decreased through organosolv pretreatment, enhancing fermentation efficiency. These findings also suggest the potential of mixed cultures to catalyze enzymatic hydrolysis and subsequent microbial digestion of readily accessible cellulose24,27.

Figure 2
figure 2

Enzymatic saccharification efficiency of different biomasses (i) untreated, (ii) organosolv pretreated wheat and (iii) brewery spent grains carried out with commercial enzyme cocktail Cellic® CTec2.

Biogas production

Mono and co-digestion studies were conducted evaluating the compatibility of various selected protein and carbohydrate-rich substrates aiming for an improved biodegradability and microbial metabolites production. Mono and co-digestion of three different substates were investigated for biogas along with ammonium production. The effects of mono and co-digestion on daily biogas production and methane content are shown in Fig. 3. Despite loading of same organic load (VS), the daily biogas production profile from all the reactors significantly varied indicating the nature of substrate. The highest biogas production after 23 days of anaerobic digestion was registered with WSOSOL + CW (4.68 L) followed by CW (4.6L), WSOSOL + BSG (4.46L), WSOSOL (4.3L), BSG (3.53L) and WSUT (2.81 L) representing that CW had been a complimentary to the cellulosic wheat straw in the digestion process. The methane content in the biogas was found to be higher with WSOSOL + CW (72%). On the other side, CW also showed almost similar methane content of 71%, whereas with other rectors, the production was lower than 70% possessing 68% (WSOSOL) followed by 68% (WSOSOL + BSG), 61% (BSG) and 52% (WSUT). Methane content in the biogas directly influence the volumetric and yield of methane production. The volumetric biomethane production from 10 g VS substrates load resulted with biomethane production of 3375 mL with co-digestion of WSOSOL + CW which was recorded to be the highest followed by CW (3273 mL), WSOSOL + BSG (3037 mL), WSOSOL (2929 mL), BSG (2157 mL) and WSUT (1465 mL). When the biogas profile was examined, it was found that the volumetric biomethane production peaked during the first 5–14 days of operation (> 85%), and afterwards, the production started decreasing. Specifically, within 10 days, more than 50% of the total volumetric methane production occurred, accounting for 85.61%, 76.86%, 76.48%, and 52.78% with CW, WS + CW, WSOSOL, and WSOSOL + BSG, respectively, whereas for BSG and WS, the production values were remained at 44.32 and 27.65% respectively. By the end of day 16, almost all the reactors displayed more than 80% of the volumetric production of biomethane except the reactor with untreated WS (78.43%). By the end of day 16, all the reactors showed volumetric biomethane production levels of more than 80% except for the one of the reactors loaded with untreated WS (78.43%) demonstrating the difficulties in the breakdown of lignocellulosic biomass as compared to the same biomass upon pretreatment (WSOSOL: 95.77%).

Figure 3
figure 3

(a) Total biogas recorded during mono and co-fermentation of organosolv pretreated wheat straw with brewery spent grains and cheese whey (b) biogas composition (c) cumulative biomethane evolved (d) yields recorded from individual reactor by the end of day 24.

Methane yields

Co-digestion significantly enhanced the methane yields compared to mono digestion. By the end of the experiment, the highest methane yield was obtained with co-digestion of WSOSOL + CW (337.5 mL/gVSload) followed by WSOSOL + BSG (303.7 mL/gVSload), whereas among the mono digestion experiments the highest yield was recorded with (CW) 327.3 mL/gVSload which was slightly lower than the co-digestions but higher than other mono digestion setups of BSG (215.7 mL/gVSload), WSOSOL (292.9 mL/gVSload), and the lowest CH4 yield was reported with untreated WS (146.5 mL/gVSload). A higher yield here can be connected to the use of readily accessible and easily hydrolysable substrate fractions in CW and organosolv pretreated WS offering variable degrees of degradable components. An appropriate blend of substrate rich and poor in nitrogen with substrate rich in carbon results with C/N ratios that would be regarded as more ideal during co-digestion process28,29. Jasko and Dubrovskis (2011) observed a similar trend of biogas production (136–216 mLCH4/gVS) from AD of cheese whey30. Similar results were also reported from digestion of whey with a methane production of 274 mLCH4/gVS28. Additionally, these biomasses contain trace elements which are known to be essential to the development of microbes31. Most of the elements required for microbial growth and propagation throughout the digestion process are mostly fulfilled by co-digestion.

The observed trend of low methane production, especially in the case of untreated wheat straw digestion, indicates the limited biodegradability of the substrate. The presence of lignocellulosic components in untreated substrates (WS) makes it challenging for the mixed culture to efficiently digest, resulting in slower digestion rates compared to pretreated substrates. Although mixed culture is composed of lignin-degrading and fibrolytic microbes that can relatively digest lignin under anaerobic conditions, the AD demands a suitable pretreatment for an enhanced biogas production29,32. Previous studies demonstrated the efficiency of organosolv fractionized soft and hard wood biomass being employed for biogas production representing a yield of 318.6 mLCH4/gVS and 176.5 mLCH4/gVS from birch and spruce respectively24.

The recommended range for the optimal values of C/N for achieving steady performance in anaerobic digestion is 20–60. Previous studies have indicated that C:N ratios ranging from 6 to 9 are considered optimal for the anaerobic digestion of nitrogen-rich waste33. Additionally, it was demonstrated that an effective biogas can be produced from anaerobic batch digestion of mixtures of chicken, cow, and piggery waste slurries with carbon to nitrogen ratios of 6:1 and 9:134. In this study, the C:N ratios were determined by calculating the ratio between the carbon and nitrogen content of the substrates. The maximum methane output was obtained by co-digesting CW with organosolv-pretreated WS at a C:N ratio of 29. It is important to note that in all experimental setups, the concentration of ammonia nitrogen during the experiment ranged from 136 to 921 mg/L, significantly lower than the inhibitory level of ionized ammonia of about 1700 mg/L in co-digestion35. The increase in methane production can be attributed to the combined effect of nutrients resulting from the synergy of substrates, favorable positive interactions, and a balanced supply of macro- and micro-nutrients.

Despite having a higher C/N value (107) with WSOSOL, it still resulted in a higher CH4 production compared to BSG and WS, even though their C/N ratios were 12 and 55, respectively. Overall, the co-digestion strategy resulted in greater biogas production compared to mono-digestion. The mono-digestion setup yielded varying levels of biogas production, with CW (C/N: 107.5) generating the highest amount, followed by WSOSOL (C/N: 12.1), BSG (C/N = 12.4), and WS (C/N: 55.4). The high methane yield from cheese whey mono-digestion is due to the presence of easily degradable organic material with a high lactose concentration. Microbes can efficiently break down lactose into simpler compounds, leading to increased CH4 production. In this study it was observed that the C/N ratio did not have a significant impact on biogas production. This was because the substrate with a higher C/N ratio was well above the optimum level reported in the literature. Wang et al. (2014) found a noticeable decline in pH levels and methane production once the C/N ratio surpassed 3536. In a study conducted by Yan et al. (2015), it was found that maintaining a C/N ratio of 29.6 was crucial37. When the ratio fell below this threshold, it resulted in the accumulation of ammonia and subsequently led to high pH levels.

Effect of mono and co-digestion on ammonium and VFAs production

Ammonia exists in digestate as ammonium ion (NH4+) and free ammonia (NH3)18. Decomposition of organic matter during AD, results with methane-rich biogas and digestate rich in and ammonia38. The composition of digestate is influenced by the chemical composition of the substrate fed into the reactor. Both mono and co-digestion significantly impact the production of ammonium and volatile fatty acids (VFAs) in the digestate. Ammonium production was consistently observed every 4th day of digestion (Fig. 4). In the initial four days of digestion, ammonium concentration in the digestate ranged from 48 to 110 mg/L. The highest concentration was observed with (WSOSOL + CW) at 110 mg/L, followed by CW at 105 mg/L, BSG at 65 mg/L, WSOSOL at 52 mg/L, WSOSOL + BSG at 51 mg/L, and WS at 48 mg/L. Ammonium accumulation in the digestate gradually increased in all reactors, peaking between days 8 and 16, aligning with biomethane production. Co-digestion of organosolv-pretreated WS and BSG resulted in the highest ammonium production, with concentrations ranging from 488 to 928 mg/L. This can be attributed to the higher fraction of nitrogen (4.2%) compared to CW (2.4%), WS (0.8%) and WSOSOL (0.4%).

Figure 4
figure 4

(a) Volatile fatty acids and (b) ammonium (NH4+) produced during mono and co-digestion of three different substrate at mesophilic condition.

The use of nitrogen-rich materials in co-digestion processes offers an exciting potential to increase the production of ammonium (NH4+). Brewer's Spent Grain (BSG) and cheese whey (CW) are rich in nitrogen, as they contain proteins and other nitrogen-based organic compounds. During anaerobic digestion, these materials undergo microbial processes. The breakdown of proteins leads to the formation of amino acids, which further decompose to release ammonia (NH3) and carbon. The balance between ammonia and ammonium, influenced by the pH levels of the digester, plays a crucial role in this system. Co-digestion, involving the simultaneous digestion of multiple types of feedstocks, is a strategy to enhance microbial activity and increase biogas production by combining nitrogen and carbon-rich materials. BSG and its co-digestion show a higher concentration of ammonium due to the presence of 19 amino acids. Even in the case of mono digestion of BSG, a significant production of ammonia ranging from 453 to 911 mg/L has been observed, despite minimal production until day 4. This change in trend is attributed to the cellulosic nature of BSG, which hinders complete degradation by the mixed culture. The gradual breakdown of cellulosic BSG by the mixed culture leads to subsequent ammonium production in later stages alongside biomethane production. BSG, which is composed of hemicelluloses and pectins, is a natural cellulosic material with varying degrees of crystallinity. The microbial enzymatic breakdown of cellulose results in the production of various gases and liquid metabolites, including carbon dioxide, hydrogen, methane, volatile fatty acids, and ammonium. The complexity of cellulosic materials strongly influences their degradation rate. The higher production of ammonium, particularly from BSG, can be attributed to its higher protein content compared to other materials. The yield of ammonia is influenced by the nature of the material in the reactor. The BSG used in this study was found to have a high quantity of protein. Multiple processes, such as proteolysis, peptide degradation, deamination, and deamidation, contribute to the microbial production of ammonium from proteins and their derivatives18,39,40. The reactors operated using cheese whey with pretreated wheat straw showed similar levels of ammonium production, ranging from 255–351 mg/L and 178–357 mg/L. In comparison, using only pretreated and untreated wheat straw resulted in the lowest levels of ammonium, with concentrations of 107–144 mg/L. Towards the end of the experiment, the concentration of ammonium decreased in all the reactors, likely due to the microbes using it for growth40. There is absolutely no evidence to suggest that ammonia inhibits the AD process. The concentrations of free ammonia nitrogen and ammonium nitrogen should be maintained at around 1700–1800 mg/L, and it is crucial to be aware that N-Kjehldahl becomes toxic at 7 g/L near pH 7.2, effectively preventing the methanogenic process from occurring under mesophilic conditions41. Keeping the free ammonia nitrogen and ammonium nitrogen concentrations within specific ranges is important for the anaerobic digestion (AD) process. De Baere et al. (1984) suggested maintaining the free ammonia-N concentration between 80 and 100 for optimal performance42. Additionally, Webb and Hawkes observed a 27% decrease in biogas yield when the total ammoniacal nitrogen concentration reached 5980 mg/L43.

The simultaneous production and consumption of volatile fatty acids during the process highlights the efficiency of the acidogenic/aceticlastic pathway. These volatile fatty acids were consistently produced and utilized in varying concentrations across all reactors. Notably, the mono fermentation of cheese whey resulted in the highest VFA production of 1315 mg/L, demonstrating its potential as a valuable source. Additionally, the early accumulation of VFAs by acidogens in the reactor signifies the presence of easily accessible reducing sugars, which can assist in activating methanogens for the transformation into methane. The early production of VFA (volatile fatty acids) clearly demonstrated the efficient use of reducing sugars by acidogens and methanogens for methane generation. The determined production (PR) and consumption rates (CR) of VFAs revealed that CW exhibited the highest PR (345–643 mg/L/day), followed by WSOSOL + CW (241–336 mg/L/day), BSG (244–240 mg/L/day), WSOSOL + BSG (147–241 mg/L/day), WSOSOL (135–220 mg/L/day), and WSUT (119–125 mg/L/day) (Fig. 5). VFAs consumption commenced on day 4, with a CR of − 243 mg/L/day observed with WSOSOL + BSG, while other reactors had lower CR rates. It is evident that the production and consumption of VFAs have a direct impact on biomethane yield. Achieving the optimal balance between biomethane and ammonium production is crucial for maximizing yield while simultaneously degrading biomass. The accumulation and utilization of VFAs in the reactor play a significant role in overall digestion process efficiency and metabolite formation. It is important to note that excessive accumulation of VFAs can impede the AD process. This study underscores the significance of achieving a balanced production and consumption of VFAs during mono and co-digestion processes, leading to enhanced biomethane and ammonium recovery.

Figure 5
figure 5

Production and consumption rate of volatile fatty acids in the reactors digesting various substrate.

Microbial diversity

In order to investigate how combining different types of cellulosic and protein-rich materials affects the structure of microbial communities, we conducted 16S rRNA gene amplicon sequencing. We compared the microbial profiles of the bacterial and archaeal communities in all six reactors. A Venn diagram depicted the distribution of operational taxonomic units (OTUs) and showed that 537 OTUs were present in all six reactors (Fig. 6). The reactor that contained organosolv-pretreated wheat straw (WS) and co-digested with cheese whey (CW) and brewer's spent grain (BSG) shared 403, 227, and 330 OTUs respectively. The number of unique OTUs in each reactor were as follows: 515 for WS only, 403 for WS with organosolv pretreatment (WSOSOL), 397 for CW, 391 for BSG, 330 for WSOSOL combined with BSG, and 277 for WSOSOL combined with CW. This unique OTU distribution influenced the degradation of substrates, as well as the production of biomethane and ammonium. The nature and chemical composition of the substrates led to diverse microbial compositions and interactions within the reactors44. A symbiotic relationship exists between acidogens and methanogens, as the volatile fatty acids and hydrogen/CO2 produced during acidogenesis/acetogenesis serve as precursor materials (acetate and hydrogen) for methane production. Moreover, acetogens have the capability to convert products from the acidogenic phase into acetic acid, CO2, and H211,45. Additionally, the presence of amino acids in protein-containing substrates and their metabolism contribute to the enrichment of specific bacterial groups due to their synergistic impact during degradation.

Figure 6
figure 6

(a) Alpha diversity indices of reactors digesting three different substrates in mono and co-digestion mode in comparison with inoculum (b) Venn diagram illustrated the plot distribution patterns of OTUs that were shared among the six reactors.

After 24 days, significant changes were observed in the community structures of the reactors, indicating the influence of substrate type on the process and metabolites. Bacteria and archaea were the most prevalent at the phylum level in all the reactors; however, they were in different proportions. Based on taxonomic classification, the dominant bacterial phyla identified were Firmicutes, Chloroflexi, Proteobacteria, Bacteroidota, Actinobacteriota, Caldatribacteriota, Cloacimonadota, Desulfobacterota, Acidobacteriota, Synergistota, Thermotogota, and Fermentibacterota.Firmicutes alone accounted for 45.54% in the reactor fermenting CW, followed by 31.02% (WSOSOL + CW), 23.41% (BSG), 16.97% (WSOSOL + BSG), 10.97% (WSOSOL), and 9.26% (WSUT) of total effective sequences (Fig. 7). This trend indicates that reactors processing readily fermentable sugars over lignocellulosic biomass were dominated by Firmicutes. The archaea phylum consisted of Euryarchaeota and Halobacterota, with a dominance of 43.83% in the reactor loaded with WSOSOL + BSG, followed by 40.23% with CW, 38.81% (WSOSOL + CW), 36.47% (BSG), 18.8% (WSOSOL), and 15.52% (WSUT). The relative abundance of a particular phylum depended on the substrate being fed into the reactor, and the microbial community composition underwent a major shift by day 24.

Figure 7
figure 7

(a) Microbial community structure in six different reactors digesting wheat straw along with BSG and CW in mono and co-digestion mode, (b) the relative abundance of microbial heatmap for genera level.

Figure 7 shows the change in microbial communities at the genus level. The reactors that produced more methane had a high presence of Firmicutes compared to other bacterial groups. Firmicutes, particularly the Clostridiales, are well-known for their ability to ferment and break down substrates, producing monomers and organic acids that are needed for methane production. The dominance of Firmicutes (> 15%) was specifically seen in the reactors fed with protein-rich substances, which promoted the growth of Firmicutes. The microbial population in the reactor changed significantly with the variation in the concentration of acidogenic metabolites, indicating a higher abundance of Clostridia with volatile fatty acid (VFA) accumulation (CW: 25.5% > WSOSOL + CW: 21.0% > BSG: 14.4% > WSOSOL + BSG: 11.5% > WSOSOL: 9.4% > WSUT: 7.7%). Clostridia can efficiently produce VFAs from various organic materials such as food waste, lignocellulosic biomass, sucrose, starch, hemicellulose, glucose, cellulose, and sewage sludge18,46. The anaerobic digesters processing CW, co-digesting WSOSOL + CW and WSOSOL + BSG consistently demonstrate a methane yield surpassing 300 mL/gVS. This significant methane production can be directly attributed to the dominance of Methanobacteriales, Methanosarciniales, and Methanomicrobiales, all of which belong to the phyla Euryarchaeota (Fig. 8). These orders undeniably play a pivotal role in anaerobic digesters and are extensively documented to utilize CO2, H2, and formate for methane production29,47,48 (Eq. 1 and 2)

$${\text{CH}}_{{3}} {\text{COOH}} \to {\text{CH}}_{{4}} + {\text{ CO}}_{{2}}$$
(1)
$${\text{CO}}_{{2}} + {\text{H}}_{{2}} \to {\text{CH}}_{{4}} + {\text{ 2H}}_{{2}} {\text{O}}$$
(2)
Figure 8
figure 8

Chord diagram depicts the dominance of aceticlastic and hydrogenotrophic methanogens in the reactors loaded with different substrates operated in a mono and co-digestion mode for biomethane production.

The proliferation of Methanosarcina, an aceticlastic methanogen from the Methanosarcinaceae family, in the reactor demonstrated that the concentrations of ammonia and volatile fatty acids were well within the acceptable range. It is important to maintain these levels, as Methanosarcina is highly sensitive to these compounds47. The presence of high concentrations of ammonia can inhibit the aceticlastic pathway and promote the hydrogenotrophic pathway in specific microbial communities49. Aceticlastic methanogenesis, involving the direct conversion of acetate to methane and carbon dioxide by aceticlastic methanogens. Hydrogenotrophic methanogens use hydrogen and carbon dioxide as substrates for methane production. Aceticlastic methanogens can be negatively affected by high concentrations of ammonia (NH4+), which is toxic to them and interferes with their ability to use acetate for methane production50. In contrast, hydrogenotrophic methanogens demonstrate a higher tolerance to elevated ammonia levels, possibly due to reduced susceptibility to ammonia inhibition. The hydrogenotrophic methanogens, which are more tolerant to ammonia, can then utilize these fermentation products (hydrogen and carbon dioxide), leading to an increase in hydrogenotrophic methanogenesis.

Previous studies showed Methanosarcina as the predominant methanogens in wastewater containing high levels of acetate and ammonia, as well as in lipids-enriched wastewater51,52. Furthermore, the presence of Methanobacterium, a hydrogenotrophic microorganism from the Methanobacteriaceae family, clearly indicated the consumption of hydrogen in the reactor. Additionally, Methanobacterium has the capability to utilize alcohols as an electron donor and formate as an energy source. The presence of Methanosarcina from the Halobacterota phylum indicated the rapid consumption of volatile fatty acids for biomethane production.

The dominance of the species Methanothrix soehngenii and Methanosarcina thermophila was specifically observed in the following reactors: CW (22.61%), WSOSOL + BSG (12.45%), WSOSOL + CW (12.02%), and BSG (11.93%). This was well correlated with the acetate production and consumption rate in the total volatile fatty acids (VFAs) compared to the other reactors, with WSOSOL at 9.49% and WSUT at 6.73%. M. soehngenii, an aceticlastic methanogen, is known to be the most tolerant to acidic pH levels of 3.5 and 4.553. However, in this study, the pH dropped to 5.1 from its initial pH of 7.5 during VFAs production, and further changed to 6.87 during the consumption of VFAs. M. thermophila is known for its versatility, being capable of growing on a variety of substrates including acetate, methanol, and methylamine. It can be found in a variety of feedstocks including municipal waste, wastewater, and sewage sludge54. The consumption of propionic and butyric acids in the reactors can be associated with the presence of Synergistota. By consuming these molecules, Synergistota help to keep the digestion process stable55. In summary, the synergy of substrates during the co-digestion of organosolv pretreated wheat straw with cheese whey and brewery spent grains significantly enhanced the relative abundance of dominant hydrolytic and acidogenic bacteria, followed by methanogenic archaea, thus producing more biogas and bioammonium in the digestate.

Conclusion

The study presented an effective method for improving biogas production through co-digestion. Furthermore, this study demonstrates the significance of organosolv pretreatment in facilitating the efficient fractionization wheat straw, delivering readily available sugars for fermentation process. Co-digestion significantly enhanced the biomethane yield by increasing abundance of the dominant carbohydrate-hydrolytic bacteria in the mixed culture. Protein rich brewery spent grains co-digested with cellulosic rich organosolv pretreated wheat straw favored ammonium production in the digestate. Co-digestion facilitated abundance of aceticlastic methanogens in the reactor dosed with protein rich substrate assisting an enhanced transformation of volatile fatty acids to biomethane whereas hydrogenotrophs were enriched in the reactors employed with cellulosic rich substrate supporting conversion of CO2 and H2 to biomethane. Co-digestion strategy combining various substrate differed in their chemical nature was beneficial to regulate the process towards an enhanced microbial metabolites.