Introduction

Composting refers to the decomposition of moist organic material under aerobic conditions [11]. It is also described as the aerobic degradation of organic waste, where heat is released by microbial metabolism, leading to temperature increase [28] and transformation of organic matter into stable compost by exothermic oxidation and endothermic humification processes [32] to produce an organic fertiliser [33]. Composting is an effective and economical method for the treatment of animal manure prior to land application [24] and for recycling food wastes [6, 8]. Used as bio-fertilisers, composts can improve the physicochemical and biological properties of soils, increase plant growth and production yield, and improve carbon sequestration in the soil [52].

The duration of the composting process depends on the type of raw material and its efficiency, which is conditioned by several factors such as frequency of aeration, composting technology, and moisture [54].

Controlling is essential to optimize time and quality in composting process [4]. Factors affecting the composting process were widely studied. Some authors have also developed tools to technically and economically optimize composting according to the biomass/co-products available and the objectives pursued [12, 49]. The main factors affecting the composting process are oxygen, moisture, bulk density, nutrients (especially carbon and nitrogen), pH, inoculation, addition of enzymes, and temperature. Temperature can be regulated in certain ranges. It can be reduced or increased by turning or wetting. Nutrients and pH cannot be regulated during the process and can only be managed by a suitable starting mixture [38].

Also, the result and the speed of composting can be affected by the diversity of the raw materials to be composted such as carbon/nitrogen ratio, pH, and the distribution and abundance of microbes. So, the starting composition is a determining factor that affects the objectives of composting whether it is the stabilization of organic matter, pathogens destruction, or reducing cost of obtaining fertile soil [30].

However, the C/N ratio (carbon to nitrogen) and aeration appear to be the major indicators of aerobic composting, its efficiency, and the emission of several nitrogen compounds [16, 21, 43].

Aeration can be provided by ventilation or turning. A major advantage of the turning method is the homogenization of the heap [45]. The turning frequency is commonly considered to be a factor that affects composting kinetics as well as the quality of the compost [46]. Limited oxygen supply in composting materials led to lower temperatures, reduced microbial activities, non-uniform moisture and temperature, anaerobic conditions, limited decomposition [11], greenhouse gas emissions increase (such as nitrous oxide, N2O, and Methane, CH4), production of odours (Hydrogen sulphide, H2S), an extension of composting duration and a reduction in compost quality [28]. However, excess of aeration can lead to heat loss, reducing moisture thus increasing composting time [2, 11], increasing nutrient losses, and decreasing the composting process [48]. Active or passive, aeration remains an important element of composting with a higher performance of active aeration which reduces the maturation period by 37.30% compared to passive (natural) aeration [10]. Aeration must be controlled so as not to have an opposite effect during composting. A study of vegetable–fruit wastes composting with six aeration rates concluded that all of them removed coliforms, but the lowest faecal coliform content was associated with the lowest aeration rate [7].

The initial C/N ratio is one of the most important factors impacting compost quality [41]. An ideal range for composting of initial C/N ratios is 25 to 30 [34]. Other authors mention that international technical standards require a C/N range of 20 to 30 [59]. A high initial C/N ratio will lead to a slower start of the process and a longer composting time than usual, while a low initial C/N ratio will result in high ammonia (NH3) emission [48]. The C/Ni effect during composting was studied by several authors. Organic matter and Nitrogen losses are significantly affected by the C/Ni ratio, while this one had no effect on pH and temperature evolution [57]. The initial C/N ratio mainly influences the maturity of the composts, while aeration was the major factor influencing the stability of the compost [24]. A low initial C/N of 15 significantly affects several parameters during co-composting pig manure and sawdust [27]. An initial C/N ratio of 25 reduces Copper (Cu) and Zinc (Zn) mobility, while their total contents increase during pig manure composting. Moreover, the C/N ratio could affect the activity of the urease enzyme by influencing the content of metal ions [61]. Other studies have investigated the effect of C/Ni on pathogen reduction [37].

The Chaouia-Ouardigha region in Morocco is characterized by two expanding activities: the traditional extraction of olive oil and turkey breeding. In Morocco, the thousands of small artisanal oil mills called “maâsras”, after extracting olive oil, sell the dried pomace to other industries either for the production of olive pomace oil, soap, or used directly as boiler fuel. As for turkey manure, it is used by direct spreading as a fertiliser. This causes environmental pollution on several levels [3]. Apart from our first two articles which studied the impact of the co-composting of three-phase olive pomace with turkey manure on the maturity, stability [18], and microbiological quality of the final composts [3], no research has studied, in that region, the effect of turning frequency and C/Ni ration on the performance of co-composting on heaps of these two by-products. This study will promote the circular economy in that region by proposing how to succeed simple composting with abundant agro-industrial by-products.

The objective of this work is to 1) study the effect of two factors, initial C/N (C/Ni) and Turning frequency (TF) on the process of co-composting on heaps of olive pomace and turkey manure as well as the quality of the final compost, and 2) study the variability of the composting process.

Methods

Experimental protocol

Turkey manure (TM) and olive pomace (OP) were obtained from livestock farming and an artisanal crushing unit in Settat province. The wheat straw (WS) comes from the Sidi Elaidi experimental station (altitude 230 m, 33.17° N, 7.40° W) in Morocco. The main physico-chemical characteristics of the three raw materials are given in Table 1. Six trapezoidal heaps (H1 to H6) of different compositions (Table 2) were installed and monitored for composting. H5 and H6 are identical to study the statistical variability of the composting process and were installed about 20 days after other heaps, due to logistical difficulties. The studied factors levels are (20, 22, and 28) and (once, twice a week) for C/Ni and TF respectively. The “Climatic conditions” factor is not studied. The composting site was located in the previous experimental station. Heaps H1 to H4 have already been the subject of a recent publication [18] where the effect of the factors C/Ni and TF was not studied. In this article, we are going to use the results of heaps H1 to H4, together with those of H5 and H6, to analyse the studied factor effect. The results of heaps H5 and H6 (which are identical) will also be used here to analyse the evolution of their physico-chemical parameters, as well as to study the variability of the composting process.

Table 1 Initial physicochemical characterization of turkey manure, olive pomace, and durum wheat straw
Table 2 Proportions de WS, TM and OP, C/Ni and TF of the six heaps

Temperature monitoring

Temperature was monitored with a compost thermometer (0–110 °C). The compost temperatures were measured at three zones for each heap (top, middle, and bottom). The ambient temperature was collected from the Sidi Aidi experimental station, Regional Center, Settat, Morocco.

Physicochemical analysis

Eight physicochemical parameters were analysed at the same time for H5 and H6 from the beginning to the end of composting 9 times: pH and electrical conductivity (EC) (1:10 w/v Sample-water extract, dS/m) were measured using a pH-meter electrode and a conductivimeter respectively [40]. Organic carbon OC (% w/w) was determined by titration using potassium dichromate [60]; then, organic matter (OM) content was calculated according to equation 1 (OM = 1724 OC). Total nitrogen TNK (% w/w) was determined by the Kjeldahl method (Buchi, Switzerland). Nitrates NO3 (ppm) were determined by complexation with chromotropic acid and measurement of absorbance in a spectrophotometer (Spectronic, USA) at 410 nm [26]. The C/N ratio was calculated. Cation exchange capacity CEC (meq/100 g) was determined by extraction with sodium and ammonium acetate and solutions were burned in a flame photometer (Elico, Italy) [53]. CEC/OC was also calculated: CEC/OC = CEC value (meq/100 g)/OC value (% w/w) (Table 3).

Table 3 Physicochemical properties of composts at initial and final time for H1 to H4

Statistical analysis

The effect of composting time on the analysed physicochemical parameters for H5 and H6 was analysed by one-way analysis of variance (ANOVA) with two replicates (P < 0.05). The variability study of the composting process, between H5 and H6, is carried out by one-way ANOVA test (two replicates) for all the analysed parameters and for the nine analysis times. The effect of C/Ni and TF factors on the physicochemical parameters at the end of composting for H1 to H6 was studied by unbalanced two-way ANOVA (P < 0.05) without replicates. Tukey’s test is calculated only for factor for which the effect is significant. The software used is the SPSS software (Version 20).

Results and discussion

Temperature evolution

Temperature is one of the major parameters to assess the progress of composting process as it indicates the rate of microbial activity [3, 39]. H5 and H6 show (Fig. 1) similar and typical appearance of composting phases with interference between the mesophilic and thermophilic phases. The mesophilic phase is below 45 °C [19, 50]. Then, the thermophilic phase where the temperature varies from 35 to 65 °C allows their hygienization [17]. Finally, the maturation phase where the temperature converges to an equilibrium with the ambient temperature, and compounds that are not further degradable (lignin, humus complexes) are formed and become predominant [17].

Fig. 1
figure 1

Ambient and heap temperature evolution during co-composting of TM and OP for H5 and H6. Ambient (black); Top (brown); Middle (green); Bottom (violet)

H5 and H6 experienced similar thermophilic phases during the same period (between the 30th and 45th day of composting). The highest heap maximum temperatures recorded were 56.6 °C on the 35th day and 61.3 °C on the 31st day for H5 and H6 respectively. During maturation, the temperature converges to an equilibrium with the ambient temperature whether it is for the top, the middle, or the bottom of the pile, thus indicating the stability of the compost.

H5 and H6 have kept mesophilic and thermophilic temperatures for similar lengths (45 days and 42 days respectively) since they are identical. Table 4 summarizes data on mesophilic and thermophilic durations and the maximum temperatures (T °C, max) of the six heaps.

Table 4 Mesophilic and thermophilic durations, and maximum temperatures (T °C, max) in the heaps H1 to H6

As H1 and H2, H5 and H6 kept the temperature less than H3 and H4 because they have less straw and therefore less porous. Generally, the heaps in which C/Ni is high (H3, H4) recorded a delay in reaching the thermophilic phase given the low nitrogen content compared to carbon which delayed microbial proliferation.

Evolution of pH

The curves show (Fig. 2) similar patterns for H5 and H6 with fluctuations before the pH stabilization phase. These fluctuations can be explained by the competition between mesophilic acidification microbes which produce organic acids, and alkalinization ones which lead to mineralizing organic carbon (production of carbon dioxide CO2), producing ammonia, and degrading fatty acids remaining in residual olive oil from pomace. Thereafter, pH gradually decreases towards stability, where the reactions are slower because C/N is reduced (which is confirmed in Fig. 7) and the nitrogen is used by the microorganisms for humification [58].

Fig. 2
figure 2

pH evolution during co-composting of TM and OP (left) and ANOVA test associated (right)

Unlike H5, the difference in pH between the start and the end of composting is significant for H6. But pH reduction is highly significant between the start of stabilization and the end of composting for the two heaps ending with a pH around neutrality proving the stability of the compost [1]. The high final pH values are associated with low C/Ni heaps (H1, H2, H5, and H6), which is also noted by [27]. The high total carbon content (high C/Ni) releasing more CO2 from decomposing organic matter may explain the high final pH values [23]. However, the statistical test (Table 5) concludes that neither of the two studied factors has a significant effect on the pH of the composts.

Table 5 ANOVA test associated with C/Ni and TF effects on pH

Evolution of TNK

H5 and H6 experienced a significant increase in the TNK concentration to arrive at the end of composting at 2.82% and 2.66% respectively (Fig. 3). This can be explained by the losses of dry matter as evaporated water and gas (CO2, CH4, and carbon monoxide CO) [25], or by the fixation of air nitrogen by nitrogen-fixing bacteria in the final phase of composting [42]. The decreases in TNK content observed in certain periods can be explained by the losses of nitrogen during composting as NH3, N2O, NOx [22]. The final values obtained agree with the results of [24] who found values of 2.60% for a C/Ni of 21 when composting pig faeces with corn stalks. Neither studied factor has a significant effect on the final TNK of composts (Table 6).

Fig. 3
figure 3

TNK evolution during co-composting of TM and OP (left) and ANOVA test associated (right)

Table 6 ANOVA test associated with C/Ni and TF effects on TNK

Evolution de NO3

H5 and H6 recorded a significant increase and significant reduction in nitrate levels with final values of 1196.64ppm and 959.40 ppm respectively (Fig. 4). The increase is due to nitrifying bacteria [29]. The reduction is probably due to the inhibition of nitrifying bacteria by various composting products, competition with heterotrophic bacteria, the rise in temperature above 42 °C [46], or the transformation of nitrate in other forms of nitrogen (N2O, NO2 (nitrite), N2 (nitrogen), NH4+ (ammonium)) [48]. At the end of composting, there was a strong nitrification of H5 and H6, similar to that of the heaps H1 to H4.

Fig. 4
figure 4

NO3 evolution during co-composting of TM and OP (left) and ANOVA test associated (right). Initial values not determined

Tables 7 and 8 show that the C/Ni factor has a significant increasing effect on the final NO3 between levels 22 and 28 (Fig. 5). When the C/Ni goes from 22 to 28, the NO3 content increases (average over the two TF levels) by 60%. Furthermore, the TF factor has an insignificant reducing effect.

Table 7 ANOVA test associated with C/Ni and TF effects on NO3
Table 8 Tukey’s test associated with C/Ni and TF effects on NO3
Fig. 5
figure 5

Effect diagram of C/Ni and TF on NO3

Evolution of OM

During composting, aerobic microbes consumed oxygen to degrade organic matter [35]. At the start (Fig. 6), OM content is around 59% for H5 and H6. Then there are fluctuations. The decrease is explained by the continued mineralization of organic compounds [45]. The increase can be explained by the concentration of OM as a result of the different forms of loss: dry matter loss [62] and water loss [47].

Fig. 6
figure 6

OM evolution during co-composting of TM and OP (left) and ANOVA test associated (right)

For both heaps, the reduction in OM between the start and the end of composting is significant. It was 7.30% and 15.12% to arrive at final values of 54.95% and 50.31% for H5 and H6 respectively. The statistical test (Tables 9 and 10) shows that only the TF factor has a significant reducing effect on OM. When TF increases, final OM decreases by an average of 21.8% (Fig. 7). This result is according to other studies [55, 56] where the author has shown that there is a decrease in carbon content with increasing TF. The C/Ni factor has no effect on OM.

Table 9 ANOVA test associated with C/Ni and TF effects on OM
Table 10 Tukey’s test associated with C/Ni and TF effects on OM
Fig. 7
figure 7

Effect diagram of C/Ni and TF on OM

Evolution of C/N

The C/N factor affects both the process and the quality of the compost [15]. It changes depending on the degradation degree of organic matter and nitrogen evolution. It gradually stabilizes during the maturation phase characterized by humification and formation of large molecular weight substances [48].

H5 and H6 show similar evolutions (Fig. 8). The reduction in C/N between the start and the end of composting is significant for both. It was 49% and 50% respectively. The C/N decreased to arrive at the end of composting for H5 and H6 at 11.30 and 10.97 respectively. Values below 12 prove the stability of composts [9]. The obtained result is in agreement with the statement of [13] who concluded that the C/N ratio decreases during composting to arrive at a final value below 20.

Fig. 8
figure 8

C/N evolution during co-composting of TM and OP (left) and ANOVA test associated (right)

C/Ni and TF have a significant effect on the final C/N (Tables 11 and 12, Fig. 9). C/Ni effect changes depending on his level. Between 20 and 22, C/Ni reduced the final C/N (average over the two TF levels) by almost 10%. Between 22 and 28, C/Ni reverses the effect by increasing the final C/N average by almost 21%. This reversed effect of C/Ni can be explained by the competition between the chemical equilibriums according to the nitrogen availability, carbon biodegradability, pH, and temperature. Nitrifying bacteria activity is slowed down at high temperatures increasing the volatilization of ammonia thus increasing final C/N [48]. It also happens with the addition of straw when it results in a temperature rise and natural convection [31]. These findings do not agree with our results because TNK is not affected by any factor (Table 6). However, H3 and H4 had the highest initial OM (average of 62.67%, compared to 60.34% for H1 and H2, and 59.27% for H5 and H6) and kept it (low OM losses) at the end of composting: average reduction of only 4%, against 15% for H1 and H2 and 11% for H5 and H6. This explains a high final C/N of H3 and H4.

Table 11 ANOVA test associated with C/Ni and TF effects on C/N
Table 12 Tukey’s test associated with C/Ni and TF effects on C/N
Fig. 9
figure 9

Effect diagram of C/Ni and TF on C/N

When TF increases, it reduces the final C/N average by almost 9%. This is because TF has a significant reducing effect on OM (Tables 9 and 10) which decomposes in the presence of oxygen [44].

Evolution of EC

EC indicates the salinity of a solid sample and influences the use of end-product as fertiliser [39]. H5 and H6 show (Fig. 10) fluctuations but stabilization during maturation phase. Fluctuations in pH during composting can be due to several causes: mineralization, water loss [47], dry matter loss, and precipitation of mineral salts [62] which increase EC. However, leaching (rain and watering) and low extractability of salts reduce it. Composting significantly reduced EC in H5. No significant change for H6, probably due to the equilibrium between ion concentration (mineralization and weight losses) and their dilution by leaching and consumption by microbial flora [2]. At the end of composting, EC is 5.29 ds/m and 4.17ds/m for H5 and H6 respectively. An EC value > 4 dS/m is considered a potential inhibitor [36] and the contribution of compost to the soil should be limited for species sensitive to salts when its EC value > 5 ds/m [5].

Fig. 10
figure 10

EC evolution during co-composting of TM and OP (left) and ANOVA test associated (right)

Statistically, neither the C/Ni factor nor the TF one has a significant effect on the final EC of the composts (Table 13).

Table 13 ANOVA test associated with C/Ni and TF effects on EC

Evolution of CEC

CEC allows the assessment of compost maturity [20, 45]. It increased especially during the maturation phase for H5 and H6. This increase is significant in H6. This is in accordance with Maheshwari [38] who explained that during the maturation phase, the humification process produces functional groups following the oxidation of organic matter thus increasing CEC.

The final values are 137.50 meq/100 g and 124.46 meq/100 g for H5 and H6 respectively (Fig. 11). Our result is consistent with [21] who stated that CEC increases during composting and reaches values greater than 60 meq/100 g, the criteria of compost maturity evaluation. None of the studied factors had a significant effect on CEC (Table 14).

Fig. 11
figure 11

CEC evolution during co-composting of TM and OP (left) and ANOVA test associated (right)

Table 14 ANOVA test associated with C/Ni and TF effects on CEC

Evolution of CEC/OC

During the first half of composting, the CEC/OC of H5 and H6 has had its ups and downs (Fig. 12) because of OM fluctuations (Fig. 7). Then, it increased significantly to reach final values of 4.31 and 4.26 for H5 and H6 respectively [51]. proposed a ratio greater than 1.7 as a maturity index for composts based on agro-industrial waste.

Fig. 12
figure 12

CEC/OC evolution during co-composting of TM and OP (left) and ANOVA test associated (right)

C/Ni factor has a significant effect on CEC/OC (Tables 15 and 16, Fig. 13). At low values of C/Ni (between 20 and 22), CEC/OC increases strongly. When C/Ni goes 28, CEC/OC decreases sharply but remains widely above 1.7. TF does not have a significant effect on CEC/OC.

Table 15 ANOVA test associated with C/Ni and TF effects on CEC/OC
Table 16 Tukey’s test associated with C/Ni and TF effects on CEC/OC
Fig. 13
figure 13

Effect diagram of C/Ni and TF on CEC/OC

Comparison with other studies

Tables 17 and 18 show that our results converge with those of other studies for several analysed parameters, particularly relating to the effect of TF on OM and on the final C/N.

Table 17 Summary of C/Ni and TF effects on pH and TNK according to several authors
Table 18 Summary of OM and final C/N according to several authors

Similarity between the six heaps

By choosing a high degree of similarity, the dendrogram (Fig. 14) shows that the six heaps can form three distinct groups: the first one (H1, H6) with a similarity of 89.08; the second one (H2, H5) with a similarity of 96.28; the third one (H3, H4) with a similarity of 90.56. By accepting a lower degree of similarity, we can form only two groups: group 1 (H1, H6, H2, H5) with a similarity of about 74.84 and group 2 (H3, H4) with a similarity of 90.56. With initially different heaps in terms of C/Ni and TF, composting can have a significant variability reduction effect to give similar final composts to a minimum degree of about 75.

Fig. 14
figure 14

Dendrogram of heaps 1 to 6

Optimization of final compost parameters

Figure 15 represents a compilation of the significant effects of studied factors on the analysed parameters. It appears that C/Ni of 22 combined with TF of twice a week can produce a final compost with an acceptable OM rate, a low final C/N, and a high CEC/OC ratio, with low but sufficient nitrification.

Fig. 15
figure 15

Compilation of significative effects of C/Ni and TF factors on final compost parameters

Variability of the composting process (H5 and H6)

Table 19 highlights the variability of the composting process. For pH and EC, H5 and H6 showed non-significant variability during almost the entire composting process. For TNK and NO3, both heaps showed non-significant variability for half of the composting time. For the four other parameters, H5 and H6 showed significant variability almost throughout the composting process. The variability of these four parameters seems to be logical since they are interrelated: C/N is OM-based calculated, CEC depends essentially on OM and clay content [14], CEC/OC is a ratio of two parameters that has shown a significant variability between H5 and H6. Generally, the variability observed for certain parameters in certain composting periods can be explained by several factors: non-homogeneity of the composted raw materials, error on composting operation due to the manual method (homogenization of heaps, humidification), error on sampling and laboratory analysis. The error on the workforce is not an option since it was the same operator responsible for the composting operation.

Table 19 Results of the ANOVA test on the variability of the composting process (H5 and H6)

Conclusions

Under the exprimental protocol conditions described, this work confirms the effectiveness of composting as a way of recovering effluents from two major Moroccan sectors: olive growing and poultry farming. C/Ni has a significant effect on NO3, final C/N, and CEC/OC. TF significantly impacts OM and final C/N. Composting of these two wastes at an initial C/N ratio of 22 combined with turning frequency of twice a week can produce a final compost of better quality. From heaps of different initial compositions, composting has an important effect of reducing variability to give very similar final composts. Relating to the composting process, its variability can be reduced by grinding the composted raw materials, using a mechanical turner with control of the turning time, and using a calibrated humidifier. Carrying out composting under cover will neutralize the “climate conditions” factor as much as possible, thus increasing the performance of the process. Stable and mature compost can be applied to soil as an organic amendment to improve plant growth and soil fertility, as well as to enhance the function of soil for carbon sequestration. These results can easily be applied by turkey farming plants (TFP) and traditional olive oil mills (TOOM) to recycle their by-products by choosing the optimum parameters to produce better quality compost, while reducing environmental pollution.

To study more deeply this subject, we propose (1) to extend it to by-products from several TFP and several TOOM to analyse the variability of results in Chaouia-Ouerdigha region and (2) to study a wider scale of C/Ni and TF to offer TFP and TOOM an effective composting way but practical and without unnecessary technical constraints.