Introduction

The beer industry produces a high amount of wastewater and solid by-products, including brewer’s spent grains (BSG), spent hops, and yeast, making it one of the most water- and energy-intensive industrial activities [1]. In 2020, worldwide beer production was estimated at 1.82 billion hL/year [2]. In the case of a brewery located in Seville (Spain), 4,225,245 hL of beer was produced in 2020, generating 75,984 tons BSG and 981,017 m3 wastewater. For this, 32,258 MWh electricity and 222,179 GJ heat were necessary annually to supply the energy demand. This industrial sector faces the challenge of novel and sustainable technologies that can treat the by-products and produce renewable energy, aiming to meet the Sustainable Development Goals toward a circular bioeconomy transition.

BSG contains (dry weight) fibers (20–70%), hemicellulose (20–35%), cellulose (12–25%), lignin (10–28%), and proteins (19–30%) as major compounds [3]. Brewery wastewater can present high organic matter (50 g O2/L) and alkalinity (6 g CaCO3/L) as the most expressive compounds [4]. The management of BSG and wastewater generated can be an alternative for the recovery of bioenergy in the form of methane and hydrogen using anaerobic digestion technology, being cost-effective and feasible raw materials for a biorefinery [5]. However, due to the high lignocellulose content, BSG is difficult to degrade anaerobically as a mono-substrate and can lead to ammonia inhibition due to the high protein content [6]. Due to the different physicochemical characteristics, the mixture of substrates can be a suitable approach to improve biogas production due to the nutrient balance in the reactor. Therefore, anaerobic co-digestion (AcoD) of BSG with other substrates generated in the brewery (e.g., wastewater and sludge from the wastewater treatment plant) can become a reliable alternative to sustainable waste management in a biorefinery advocating a circular bioeconomy.

In a biorefinery concept, the by-products generated in conventional processes (e.g., BSG, wastewater, and sludge generated by breweries) can be used as feedstock to produce bioenergy and value-added products. A biorefinery approach can be used to design sustainable bioprocesses for energy recovery and material recycling, minimizing negative environmental effects and maximizing the use of renewable resources. In addition, anaerobic digestion technology produces biogas, which can be converted into biomethane, electricity, and thermal energy. From an environmental standpoint, using biogas to reduce greenhouse gas (GHG) emissions is a positive strategy to ameliorate the environmental impacts of the food processing industry [5].

Notwithstanding, a diverse and stable microbial community in anaerobic reactors is necessary for the conversion of substrates into biogas, especially in the case of methanogens, where the microorganisms are the most sensitive anaerobes to process fluctuations [7]. Active microorganisms can serve as an important indicator in the operation performance of reactors, and identifying the dynamics of microbial populations can support decision-making to understand better, regulate, and develop controls for the anaerobic digestion process [8]. Next-generation deoxyribonucleic acid (DNA) sequencing analyses allow reconciling the taxonomic signature of the community in understanding the physicochemical characteristics of AcoD, since specific metabolic pathways of the microbial population can affect the overall effectiveness of biogas production [9]. Several tools have been developed to determine the functional inference of 16S rRNA data, such as PICRUSt2 and Tax4Fun, based on the Kyoto Encyclopedia of Genes and Genomes (KEGG) to elucidate the metabolic functions of microorganisms in the process [10].

Based on the abovementioned, this study evaluated the AcoD of brewery by-products for biomethane and bioenergy recovery. In order to combine available industrial by-products in a biorefinery concept, the AcoD of brewery wastewater with various BSG concentrations was evaluated, using the sludge produced during the treatment of brewery wastewater as inoculum for the anaerobic microorganisms. This study focuses on identifying the profile of the microbial community associated with metabolic function and its correlation with operational parameters, methane production, and bioenergy potential.

Materials and Methods

Inoculum and Feedstock

Ambev Brewery (Jaguariúna, SP, Brazil) provided the brewery solid waste (BSG, wet basis). The BSG was oven-dried (105 °C, 8 h), packed, and stored (−18 °C) for later use. The raw brewery wastewater (without treatment) was provided by Heineken Brewery (Seville, Spain). The mesophilic inoculum (granular sludge) used for AcoD was obtained from the treatment of brewery wastewater in up-flow anaerobic sludge blanket digestion (UASB) reactors under mesophilic temperature (35 °C) (Heineken, Seville, Spain). Table 1 displays the initial characterization of the inoculum and substrates used in the experiment.

Table 1 Initial characterization of the raw materials and mixtures (without inoculum) used to determine the BMP of brewery by-products

Biochemical Methane Potential

The biochemical methane potential (BMP) evaluated the addition of BSG in the AcoD of wastewater and sludge from the brewery wastewater treatment. The batch reactor (250 mL) was operated with 120 mL of working volume and 130 mL of headspace for biogas storage. The started-up was conducted with a mixing ratio of 1:1 (v/v) between mesophilic inoculum (60 mL) and raw wastewater (60 mL), following the addition of BSG (2.5, 5, 7.5, and 12.5%, in dry weight). The BMP tests were coded as follows: BMP-1, control reactor (AcoD of inoculum and wastewater, 1:1 v/v); BMP-2, addition of 2.5% BSG in the reactor (4.79 g BSG/L); BMP-3, the addition of 5% BSG in the reactor (9.6 g BSG/L); BMP-4, addition of 7.5% BSG in the reactor (14.39 g BSG/L); and BMP-5, addition of 12.5% BSG in the reactor (24 g BSG/L). The endogen control (negative control) was composed of inoculum (60 mL) and water (60 mL) (without brewery wastewater and BSG). All the experiment was conducted in triplicate (n=3). Table 1 describes the composition of the reactors without inoculum.

The pH of the reactors was adjusted to 7.5 (methanogenic conditions) with the addition of sodium hydroxide (6 mol/L). The reactors were flushed with N2 gas for 30 s to ensure anoxic conditions. The BMP was conducted in an orbital shaking incubator at 85 rpm and 35 °C (mesophilic temperature). The operational performance was conducted before and after BMP tests. The biogas volume and composition were measured daily until the methane production was < 1% of accumulated methane.

Operational Performance

Analytical Methods

The Standard Methods for the Examination of Water and Wastewater [11] were used to characterize the inoculum, substrates, mixtures, and digestate. The following parameters were determined: pH, total solids (TS), total volatile solids (TVS), total fixed solids (TFS), total chemical oxygen demand (TCOD), soluble chemical oxygen demand (SCOD), alkalinity, ammonia (NH3), ammoniacal nitrogen (N-NH3), ammonium (NH4+). The TVS and COD removal were determined according to Eqs. 1 and 2, respectively. The volatile fatty acids (VFA) were determined by gas chromatography equipped with a flame ionization detector, according to the methodology previously described by Sganzerla et al. [4]. The concentration of acetic, propionic, isobutyric, butyric, isovaleric, valeric, caproic, and hexanoic acids was performed using standard calibration curves, and the total content of VFA was calculated and expressed as equivalent in acetic acid.

$$\textrm{TVS}\ \textrm{removal}\ \left(\%\right)=\frac{{\textrm{TVS}}_{\textrm{initial}}-{\textrm{TVS}}_{\textrm{final}}}{{\textrm{TVS}}_{\textrm{initial}}}\times 100$$
(1)
$$\textrm{COD}\ \textrm{removal}\ \left(\%\right)=\frac{{\textrm{COD}}_{\textrm{initial}}-{\textrm{COD}}_{\textrm{final}}}{{\textrm{COD}}_{\textrm{initial}}}\times 100$$
(2)

Biogas Volume and Composition

The pressure of the reactors was measured daily. Under normal conditions, the pressure can be converted to volume using the ideal law of gases (Eq. 3).

$$\textrm{P}\times \textrm{V}=\textrm{n}\times \textrm{R}\times \textrm{T}$$
(3)

where P is the absolute pressure measured in the reactors (kPa), V is the volume (m3), n is the amount of substance (mol CH4), T is the temperature (K), and R is the universal gas constant (8.3145 L kPa/K mol).

The biogas composition was determined daily with a Geotech Biogas 5000 gas analyzer (GasDetect, Copenhagen, Denmark). The volume of methane produced in the endogen control was subtracted from the volume obtained from BMP-1 until BMP-5. The accumulated methane volume (Eq. 4) and the methane yield (Eq. 5) were determined.

$$\textrm{Accumulated}\ \textrm{methane}\ \textrm{volume}\ \left(\textrm{mL}\right)=\sum\limits_{\textrm{n}=1}^{{\textrm{n}}_{\textrm{i}}}{\textrm{V}}_{\textrm{n}}$$
(4)
$$\textrm{MY}\ \left(\frac{\textrm{mL}\ {\textrm{CH}}_4}{\textrm{g}\ \textrm{TVS}}\right)=\sum\limits_{\textrm{n}=1}^{{\textrm{n}}_{\textrm{i}}}\frac{{\textrm{V}}_{\textrm{n}}\times {\textrm{CH}}_4}{\textrm{TVS}}$$
(5)

where V is the volume of biogas (mL), n is the number of days analyzed, CH4 is the methane content in the biogas (%), MY is the methane yield, and TVS is the content of volatile solids in the reactor.

Kinetic Analysis

The methane production was evaluated by kinetic analysis using the modified Gompertz (Eq. 6), Cone (Eq. 7), and first-order kinetics (Eq. 8) models. The kinetic analysis was conducted using SigmaPlot® software (Systat Inc., Palo Alto, CA, USA).

$$\textrm{M}=\textrm{P}\ \exp \left\{-\exp \left[\frac{{\textrm{R}}_{\textrm{m}}\textrm{e}}{\textrm{P}}\left(\uplambda -\textrm{t}\right)+1\right]\right\}$$
(6)
$$\textrm{M}=\frac{\textrm{P}}{1+{\left({\textrm{k}}_{\textrm{methane}}\textrm{t}\right)}^{-\textrm{n}}}$$
(7)
$$\textrm{M}=\textrm{P}\left[1-\exp \left(-{\textrm{k}}_{\textrm{methane}}\textrm{t}\right)\right]$$
(8)

where M is the cumulative methane volume (mL); P is the methane production potential (mL); Rm is the maximum methane production rate (mL/h); e = 2.718; λ is the lag phase time (h); t represents the fermentation time (h); kmethane is the hydrolysis rate constant (1/h); and n is the shape factor.

Bioenergy Recovery and Avoided Greenhouse Gas Emissions

The biomethane produced by AcoD can be applied in a co-generator to produce electricity (Eq. 9) and heat (Eq. 10) [12].

$$\textrm{Electricity}=\textrm{MY}\times {\textrm{LCV}}_{{\textrm{CH}}_4}\times {\upeta}_{\textrm{e}}\times \textrm{CF}$$
(9)
$$\textrm{Heat}=\textrm{MY}\times {\textrm{LCV}}_{{\textrm{CH}}_4}\kern0.5em \times {\upeta}_{\textrm{e}}$$
(10)

where MY is the methane yield (m3 CH4/kg TVS); \({\textrm{LCV}}_{{\textrm{CH}}_4}\) is the lower calorific value of methane (35.59 MJ/m3); ηe is the engine efficiency (%), and CF is the conversion factor from MJ to MWh (1 MWh = 3600 MJ).

The amount of GHG emissions that could be reduced by switching from grid-supplied electricity to locally produced energy from the burning of biogas were estimated according to Eqs. 11 for electricity and Eq. 12 for heat [13]

$${\textrm{GHG}}_{\textrm{Electricity}}={\textrm{EF}}_{\textrm{Electricity}}\times \textrm{Electricity}$$
(11)
$${\textrm{GHG}}_{\textrm{Heat}}={\textrm{EF}}_{\textrm{Heat}}\times \textrm{Heat}$$
(12)

where EFElectricity is the emission factor of CO2-eq for 2019 Brazilian electric energy generation (0.075 ton CO2-eq/MWh), and EFHeat is the emission factor for heat, assumed as the default value of natural gas (0.056 ton CO2-eq/GJ) [14].

Microbial Community Dynamics and Metabolic Function Prediction

At the end of the BMP, samples (50 mL) were collected and stored at -20 °C for DNA extraction. The samples were centrifuged (9000 rpm, 5 min), and the pellet was used for extraction and purification processes. Using the DNeasy PowerSoil Kit (QIAGEN) and following the manufacturer's instructions, genomic DNA was extracted. The Qubit® fluorometer measured the genetic material (Thermo Fisher Scientific). The DNA samples were evaluated by next-generation sequencing of the V3-V4 region from the 16S rRNA gene for the Archaea and Bacteria domains [15], via MiSeq Sequencing System (Illumina Inc., USA), using primers 341F (CCTACGGGRSGCAGCAG) and 806R (GGACTACHVGGTWTCTAAT) with V2×500 cycles and 100k reads per sample.

The bioinformatics analysis was processed using the FastQC v.0.11.8 to assess nucleotide quality and QIIME 2 pipeline. The Amplicon Sequence Variant (ASV) and the relative abundance values were used to perform the taxonomic signature. The taxonomic annotation was processed using the SILVA database and the feature-classifier plugin from the classify sklearn method (v. 138) [16]. The sequences were deposited at NCBI database under the bioproject accession PRJNA870110. Functional prediction analyses were conducted using the software PICRUSt2 in the predefined settings (default), using the ASV generated in the denoising step [17]. The resulting data were normalized by the number of 16S rRNA copies, while gene inference was conducted using the Kyoto Encyclopedia of Genes and Genomes (KEGG) Orthology (KO) database [18]. BURRITO software was used to obtain the metabolic functions associated with the identified genes, following the KEGG Brite Hierarchy [19].

Statistical Analysis

The statistical analysis was assessed to determine the differences in the TVS removal, COD removal, and methane yield during AcoD of brewery by-products. Analysis of variance (ANOVA) was employed to assess statistically significant factors and interactions between the variables. Tukey's test evaluated significant differences between the samples (p ≤ 0.05). The statistical analysis was conducted using Statistica® software (version 10.0, StatSoft Inc., Tulsa, OK, USA).

Results and Discussion

Characterization and Operational Performance

Table 2 shows the characterization of the BMP tests at the beginning and end of AcoD. The AcoD was evaluated by the pH, alkalinity, solids (TS, TVS, and TFS), ammonia nitrogen (NH3, N-NH3, and NH4+), chemical oxygen demand (TCOD and SCOD), and VFA.

Table 2 Initial and final operational performance during the methanogenic and mesophilic AcoD of brewery by-products

pH plays an essential role in the growth of microorganisms that affect the AcoD process. Therefore, it was necessary to maintain the pH in stable ranges (between 7 and 8) to provide a suitable environment for the development of methanogenic bacteria. During the methanogenic AcoD of brewery by-products the pH was maintained within the appropriate scope. The decrease in pH during AcoD was associated with the production of organic acids by acidogenic bacteria, which were subsequently converted to methane. The stable pH range reported in this study provided a suitable environment for developing a microbial community favorable for methane production. The activity of methanogens producing alkalinity during the AcoD process in the form of carbon dioxide, ammonia, and bicarbonate counteracts pH fluctuations related to VFA concentration [20]. Alkalinity values increased in all reactors during the AcoD, reaching values between 3020 and 4841 mg CaCO3/L. The increase in alkalinity during the methanogenic anaerobic digestion of BSG was associated with the biodegradation of the lignocellulose and organic matter in the anaerobic reactor [21, 22]. In addition, the increase in alkalinity was proportional to the addition of BSG in the reactors, with the highest values corresponding to BMP-5. These results can be explained by the protein content of BSG, which was hydrolyzed during AcoD and released ammonia, causing an increase in alkalinity [23]. In addition, there are low VFA concentrations at the end of the process (Table 3), which can be associated with the high buffer capacity of the system, presenting a low inhibition potential for methanogens [24]. Acetic, propionic, and butyric acids were consumed during the AcoD, demonstrating that the VFA was converted into methane during the methanogenesis stage [25]. In this study, acetic acid was the major VFA in the reactors, corroborating with previous studies on the anaerobic digestion of BSG [22].

Table 3 Initial and final characterization of volatile fatty acids during the methanogenic and mesophilic AcoD of brewery by-products

The hydrolysis of the proteins causes an increase in NH3, N-NH3, and NH4+ (Table 2). The critical ammonia nitrogen concentration initiating inhibition has been reported to range from 1 to 14 g/L [26]. The N-NH3 content is crucial to avoid inhibition of methanogenic activity, and values of approximately 200 mg/L are recommended for sufficient provision of nitrogen for microbial growth [26]. In this study, the highest value recorded at the end of AcoD was for BMP-5 (868.7 mg N-NH3/L), which can be associated with the high level of acclimatization by the microorganisms, corroborating the methane produced. In a previous study, the ammonia nitrogen in the anaerobic reactor operated with BSG ranged from 106.4 to 260.68 mg/L [22], corroborating the results obtained in the present study. Otherwise, the combined NH3 and NH4+ content, known as total ammoniacal nitrogen, must be higher than 500 mg/L and lower than 3000 mg/L [27] to avoid a possible inhibition of methanogenic activity. This condition was fulfilled in all BMP of brewery by-products.

Regarding the composition of solids, the reactors that started with brewery wastewater (BMP-1) had a low TS content (4.02%). This value increased proportionally with the addition of BSG, reaching 6.74% TS for the reactor with 25% BSG. One of the most critical parameters during the AcoD is the removal of TVS, a parameter widely applied to express the efficiency of anaerobic processes. High TVS removal indicated that the microbial community used the available nutrients in the substrate to produce biogas. In this study, the TVS removal was approximately 40% (Fig. 1a). In the case of the reactor with the highest TVS content (BMP-5), the reduction was 42.26%, which was statistically equal to that of the reactor with the lowest TVS content (BMP-1). The TVS removal obtained in this study was similar to other studies on the anaerobic digestion of sludge, which obtained 37–42% of TVS removal [28]. Previous studies on methanogenic anaerobic digestion of BSG demonstrated that solid biodegradation could reach values higher than 50% [29], demonstrating that BSG is a suitable feedstock for biogas production.

Fig. 1
figure 1

TVS and COD removal from the methanogenic and mesophilic AcoD of brewery by-products. Label: n.s., non-significant differences by Tukey’s test at p ≤ 0.05

COD is another critical parameter representing substrate solubilization, governing AcoD effectiveness. COD is defined as the amount of oxygen required to oxidize an organic compound, and it is widely used to determine the quality parameters in wastewater treatment facilities and as a balanced unit in anaerobic reactors. Decreasing COD is desirable during AcoD, indicating that complex organic matter is being converted into biogas and other aqueous products that are more suitable for use as renewable fertilizers [30]. In this study, the reactors started up with a TCOD content ranging from 3985.20 (BMP-5) to 5116.80 mg/L (BMP-1), which can be considered suitable values for anaerobic reactors [31]. At the end of AcoD, the TCOD and SCOD removal reached almost 100% for all the reactors (Fig. 1b). Values above 80% of COD removal are considered positive for anaerobic digestion [32]. This fact demonstrates that AcoD can be a suitable process to reduce the organic matter of brewery by-products under the concentrations evaluated. The methanogenic microorganisms consumed the organic matter and converted it into soluble compounds, VFA, and methane, demonstrating the effectiveness of AcoD for the treatment of brewery by-products.

Methane Production and Yield

The start-up of the AcoD corresponds to biogas production and organic matter degradation by microbial organisms. Fig. 2 shows the methane production and yield from the AcoD of brewery by-products. On the first day of AcoD, methane production was noticeable. These results can be associated with the exponential growth of methanogenic microorganisms and the adaptation under methanogenic and mesophilic conditions, as they can produce biomethane immediately after start-up [24]. After the continuous consumption of substrate by microbiota under anaerobic conditions, a decrease in methane production was recorded after approximately 10 days of AcoD. The production of methane finished after 17 days of digestion. In this study, the reactor with the highest amount of BSG (BMP-5) resulted in a better methane profile. The result indicated that BSG is an easier biodegradable substrate for AcoD under methanogenic and mesophilic conditions. In a previous study on the AcoD of brewery by-products under acidogenic and thermophilic conditions, the addition of BSG promoted the inhibition of hydrogen production due to ammonia production [4].

Fig. 2
figure 2

Methane production from the methanogenic and mesophilic AcoD of brewery by-products. (a) Daily methane volume (mL CH4); (b) accumulated methane volume (mL CH4); and (c) methane yield (mL CH4/g TVS).Label: Different letters indicate significant differences by Tukey’s test at p ≤ 0.05

The maximum methane yield obtained was 88.03 mL CH4/g TVS for BMP-5 (Fig. 2c). These results were similar to the AcoD of activated sludge with granular sludge, cow manure, and food waste [33] and higher than previous studies on the dry anaerobic digestion of BSG without wastewater (26.72 – 39.51 mL CH4/g TVS) [14, 29]. The addition of biodegradable substrate in AcoD enhanced the biogas yield due to improved nutrient balance and diluting toxic compounds in the reactor. Moreover, the supplementation of nutrients contained in BSG was suitable for microbial growth due to the balance of nutrients, and it is more beneficial to the degradation of organic matter. The results from this study indicate that BSG is highly anaerobically digestible with brewery wastewater and makes a co-digestion process viable to increase methane production.

For a feasible industrial-scale application of AcoD, the methane yield should be higher than 100 mL CH4/g TVS [34]. However, for the industrial-scale application of AcoD of brewery by-products, the methane yield in a laboratory-scale semi-continuous process should be evaluated. The results obtained in this batch study are the first approach to determine the BMP and initial operational conditions, especially the amount of BSG that should be added in the start-up of semi-continuous reactors. Hence, further studies should be conducted to optimize the hydraulic retention time and organic loading rate in the temperature-phase semi-continuous process, aiming to increase the methane yield at feasible ranges for industrial-scale implementation.

Kinetic Analysis

The kinetic parameters offer additional insightful data on the biodegradation patterns of the substrates and methane production. The efficiency of methane production during AcoD has been widely determined by the modified Gompertz, Cone, and first-order kinetic models. In this study, these kinetic models were applied to predict methane production (Table 4).

Table 4 Kinetic models applied to methane production from the methanogenic and mesophilic AcoD of brewery by-products

The methane production achieved at the end of the experimental BMP assays was compared with the maximum methane production obtained from the kinetic models. The parameter P showed the estimated methane production for each test performed and was entirely accurate in all three models, as the percentage difference between the estimated values and the experimental values obtained was lower than 20 % in all tests. Based on these results, it can be affirmed that all the kinetics models accurately predicted the behavior of methane production in the AcoD of brewery by-products, with the modified Gompertz model being the most accurate for the tested substrate.

The maximum methane production rate (Rm) increased according to the concentration of BSG in the reactors, presenting its maximum value for BMP-4 (1.292 mL/h) and decreasing slightly for BMP-5. The maximum values of Rm corresponded to the test with the lowest starting organic load. Values of λ were zero in all BMP tests. This value indicates that methane production began immediately upon assembly of the assays, without initial inhibition or need for acclimatization by the microbial community. Concerning R2, the first-order model and the Cone model presented values higher than 0.99, indicating a high correlation between the predicted and experimental data. However, the modified Gompertz model showed high variable R2 values, with the maximum for BMP-1 (0.993) and the minimum for BMP-5 (0.807). RMSE indicates the association between the observed and predicted data by kinetic fitting. The modified Gompertz model presented the highest RMSE values, and the RMSE increased according to the addition of BSG in the reactor. Although all kinetic models showed valuable data for the AcoD of brewery by-products, based on the R2 and RMSE, the model with the highest efficiency in data fitting was the Cone model. It should be noted that each study presents peculiarities and that there is no agreement in the literature on the most appropriate model in each case. Thus, several models should be studied to predict the production of methane during AcoD [32].

Bioenergy Potential and Environmental Benefits

Biomass, as a renewable energy source, plays an essential role in reducing GHG emissions, especially for heat and electricity generated from biogas in co-generator. Based on the methane yield, the recovery of electricity, heat, and avoided GHG emissions were estimated (Table 5). The process operated with the highest amount of BSG (17.5%) presented the highest methane potential and, consequently, the highest production of electricity (0.348 kWh/kg TVS) and heat (1.556 MJ/kg TVS). The replacement of conventional energy by the bioenergy generated from biogas could mitigate up to 1.14×10–1 kg CO2-eq/kg TVS, with 2.61×10–2 kg CO2-eq/kg TVS for the use of electricity and 8.77×10–2 kg CO2-eq/kg TVS for the use of heat. Therefore, the AcoD of brewery by-products for methane production could be an initial approach to promote the beer industry’s circular bioeconomy transition, with the sustainable management of industrial by-products and bioenergy recovery. This approach represents a positive strategy for self-production and energy consumption and is a promising technological route to be applied in a biorefinery.

Table 5 Bioenergy recovery and greenhouse gas emissions from the methanogenic and mesophilic AcoD of brewery by-products

Microbial Community in Anaerobic Co-diestion Process

A total of 82,843 and 50,537 reads were retrieved for the inoculum and BMP-5, respectively, after the denoising step. Shannon index 3.077 (inoculum) and 4.147 (BMP-5) indicated increased diversity in the microbial consortium in AcoD. The Chao1 index was the same (178) for both samples. The diversity analysis revealed 9 different phyla, 7 from Bacteria and 2 from Archaea domain. Different profiles were observed in the structure of the microbial community of the inoculum and the sample of the BMP-5 assay (Fig. 3). In the inoculum, the phylum Desulfobacterota predominated with an abundance greater than 50%, followed by Halobacterota (20%) and Euryarchaeota (8.14%). Desulfobacterium comprises a variety of sulfate-reducing bacteria commonly found in sewage treatment plant sludg. Sulfate-reducing bacteria compete with methanogenic Archaea, due to a higher growth rate and better substrate affinity [25]. In the AcoD (BMP-5), there was a predominance of the phylum Halobacterota (29.84%), Chloroflexi (14.53%), Euryarchaeota (13%), Synergistota (11.87%) and reduction of Desulfobacterota (16.97%) and consequently greater volume of methane produced (Fig. 2). Chloroflexi members can hydrolyze complex compounds, such as grains used in the brewery, transforming them into VFA, carbon dioxide, and hydrogen. The heterotrophic growth of this phylum is related to the acetic acid content in the system. In addition, this group can also form granular structure sludge, an important factor in amplifying the methane production capacity [35].

Fig. 3
figure 3

Taxonomic compositions of bacterial communities from the methanogenic and mesophilic AcoD of brewery by-products. (a) Phylum, (b) Family, (c) Genera

The phylum Halobacterota was found with greater abundance in BMP-5 than in the inoculum, which may be due to the presence of acetic acid since the presence of this VFA was not detected in the inoculum (Table 3). This group comprises methanogens that use acetic acid as an electron donor [36]. This phylum is responsible for approximately 2/3 of the total methane production. In contrast, phylum Euryarchaeota species (13%) comprise hydrogenotrophic species responsible for approximately 1/3 of the total methane yield [36]. The Synergistota phylum is associated with the consumption of butyric and propionic acids, helping the system's stability. The group of synergistic bacteria is primarily involved in methane production and converting glucose, cellobiose, and amino acids into VFA [37].

A great richness was observed with more than 170 genera, with only 15 with an abundance greater than 1% (Fig. 3). Anaerobic digestion is a multi-step process that requires a consortium of syntrophic bacteria and methanogenic archaea. The inoculum microbial community was dominated by Syntrophobacter (48%). This group of syntrophic bacteria has a positive association with methanogenic archaea, and some species can transform propionate into acetate, favoring acetoclastic methanogenesis [38]. In the AcoD process (BMP-5) there was a reduction in the abundance of Syntrophobacter (16.46%), Methanosaeta (28.7%), and Methanobacterium (13.02%) (Fig. 3c). Anaerolineaceae, anaerobic filamentous bacteria, which hydrolyzes different types of carbohydrates or polypeptides, was favored by BMP-5 conditions (13.74%). Anaerolineaceae and Syntrophobacter also participate in interspecies direct electron transfer, which may also contribute to methanogenesis [38].

Methanosaeta is an obligate acetic acid consumer Archaea, dominant at low concentrations of free ammonia and acetate [39], corroborating with the concentrations presented for these compounds (Table 2 and Table 3) since there was a 99% reduction of acetic acid at the end of the process (Table 3). Acetoclastic methanogenesis is considered an important methane production pathway since archaea live in a symbiotic relationship with syntrophic oxidant bacteria that produce acetate and H2, and methanogens convert it into methane, which prevents inhibition of syntrophic bacteria by the excess of acetate [40]. Methanobacterium is a hydrogenotrophic methanogen that uses H2 and CO2 to produce CH4 and tends to increase with high carbohydrate content and decreasing lipid and protein content [41]. The abundance of Methanosaeta was 2-fold higher than Methanobacterium, indicating that Methanosaeta was the main genus involved in methane production. These results corroborate the literature, where a predominance of the genus Methanosaeta in effluent from the brewery was associated with the production of biogas [42]. The genus of anaerobic bacteria Aminiphilus showed a relative abundance of 4.79% in the BMP-5 sample. Recent studies describe that this group can ferment a variety of VFA and amino acids and settle in neutral environments [43], corroborating with the experimental results obtained in this study (Table 2). In addition, Aminiphilus has been reported in brewery effluent UASB reactors [44].

Metabolic Function Prediction

A total of 5,906 different KO objects were obtained for inoculum and BMP5. The main metabolic pathways of the reactors were predicted using the KEGG Orthology database. Fig. 4a shows several genes related to the methanogenesis process for the studied microbial communities. Genes associated with the acetoclastic pathway, including acetyl-CoA synthetase (K01895), acetyl-CoA decarbonylase/synthase (K00193), acetate kinase (K00925), phosphate acetyltransferase (K00625), which are crucial for the direct activation of acetate [45] were found in greater abundance in BPM5. Enzymes involved in hydrogenotrophic methanogenesis, such as formylmethanofuran dehydrogenase (K00201/ K00202), coenzyme F420 hydrogenase subunit beta (K00441), 5,10-methylenetetrahydromethanopterin reductase (K00320) and formylmethanofuran--tetrahydromethanopterin N-formyltransferase (K00672) were also predicted in greater abundances in BMP5, which evidences the participation of H2-consuming archaea in the AD process. Fig. 4a shows Ids of the genes (K00169; K00170; K00171; K00172; K00672; K01499; K00319; K00320; K0041) that encode enzymes of the hydrogenotrophic pathway also described for the genus Methanosaeta [38]. While Methanobacterium, a typical hydrogenotrophic, also contains genes (K01895; K00193-K00197) related to acetoclastic methanogenesis, as evidenced by Gaio et al. [46] in UASB reactors treating domestic sewage. Genes common to acetoclastic and hydrogenotrophic metabolic pathways were also detected in greater abundance in BMP5. As well as other Ids (KO) described in the literature as participants in methane metabolism [10]. Genes related to the methylotrophic pathway showed an abundance close to zero (data not shown in Fig. 4a), following the Archaea genera identified in this study.

Fig. 4
figure 4

Main inferred KO related to methanogenesis from AcoD of brewery by-products. (a) Profile predicted with the PICRUSt2 software based on the KEGG reference database. (b) Inferred metabolic superpathways by KEEG Brite

Among the main functions identified in the KEGG category, it was observed that the abundances were quite similar in both samples (Fig. 4b). Cellular functions related to translation (17%) and membrane transport (15%) were predominant in the inoculum and BPM-5. Metabolism of cofactors and vitamins, carbohydrates, lipids, and amino acids were equivalent to 19% in both reactors, which indicates the provision of available substrates for acidogenesis and subsequent methane production. The metabolism of cofactors and vitamins can promote the catalytic reaction of functional cellular enzymes, thereby accelerating the anaerobic reaction process [47]. Energy metabolism (equivalent to 4%) is inevitably required by cells to maintain basic metabolism [48]. In comparison, the subcategory methane metabolism was 22% higher in BMP-5. Cell motility was among (1.77 – 2.4), possibly related to some genes that encode methanogenesis [49]. The predominance of various metabolisms can be attributed to the composition of BSG (hemicellulose, cellulose, lignin, and proteins) used in AD processes [50]. The taxonomic analysis of microbial communities associated with the main metabolic functions involved in the encoding of important enzymes in the BSG bioconversion process shows the possible anaerobic digestion routes used.

Conclusion

Brewery by-products were subjected to AcoD to assess the BMP under mesophilic and methanogenic conditions. Bioenergy production with the methane generated from the AcoD combined with the knowledge of the microorganisms involved in the process could contribute to avoiding GHG emissions and decrease the carbon footprint of the beer industry. Finally, BSG can be used as a co-substrate in the AcoD of brewery wastewater and sludge from wastewater treatment plants, improving biomethane and bioenergy production, advocating the circular bioeconomy transition of the beer industry in a biorefinery concept.