Introduction

Integrated biosystems connect all functional components in a system such as agriculture, aquaculture, waste treatment, fuel and water use [1]. Waste and by-products in these systems become inputs for an additional process step, closing the cycle of all material flows. The study of Huong et al. provides good perspectives for integrated biosystems like the combined orchard-fishpond-livestock system operated in Vietnam [2]. Reduction of waste implies an effective decrease in energy demand in agricultural systems and thus encourages proper energy optimization approaches for evaluating systematic energy efficiencies. In order to calculate energy analyses for agriculture utilizing a standard energy unit, this evaluation focuses on the energy conversion of all materials. Some European countries report energy saving measures categorized by subsectors of agriculture, then divide production energy inputs into indirect energy (inorganic fertilizers, pesticides) and direct energy (fuels and electricity) [3]. To define energy saving potential for implementation in an agricultural production, two approaches can be considered: applying new energy technology(ies) or improving existing energy efficiency(ies) [3, 4].

Vigne et al. collected many references of diverse agricultural systems to assess the energy use [5]. The review shows that production of livestock is usually much less energy efficient than fruit or crop production. Livestock systems are reaching 1 MJ of nutrition energy per 1 MJ of non-renewable energy, while fruit, vegetables or crop can achieve 5–15 MJ per 1 MJ of non-renewable energy. The study also shows that energy analysis, independent of entire energy sources, is a proper way to develop energy use effectiveness.

Biogas digestion is one of the best methods for supplementing energy supply in agricultural systems since bio-waste is readily generated [6]. However, there are only a few publications investigating the integrated system of agriculture and biogas. In Germany, family farms use biogas plants as an important economic sector for rural sustainable development [7]. Biogas, as a renewable energy source, can be a supplement for other fossil fuels popular in rural areas [8,9,10]. A study of Yang and Chen [11] shows the experiences of energy analysis linking agricultural and biogas systems. The study was conducted in Gongcheng Yao Autonomous County, China, assessing energy balance through the performance of biogas engineering in a compound agricultural system. Zhang and Wang [12], additionally, carried out research on biogas at a typical household scale in a rural region in China. The main indicator used for the energy analysis was the energy return on energy investment (EROI). EROI is the ratio of the amount of energy obtained from an energy resource compared to the amount of energy expended to produce that energy resource. The study of Perryman et al. [13] indicated that the EROI concept has been applied for a long time.

The comparison of energy use versus energy efficiency in organic and conventional farming systems shows that organic agriculture with its sustainable production methods can be more efficient in energy utilization in e.g. livestock and ruminant production systems [14]. An evaluation of system effectiveness of biomass feedstock is represented in the paper of Wightman and Woodbury [15] and of Maier et al. [16]. By analysing the energy conversion of raw inputs and the final energy services and assessing the energy returned on investment, this method provides an holistic approach to the land unit value for sustainably producing primary energy resources [15].

Exergy analyses evaluate the maximum useful work possible during a process that brings the system into equilibrium with a heat reservoir ( typically, in a defined environment). The exergy reflects the resource consumption which is embedded to the input flows in the ecological processes and products or services under the equilibrium conditions of environment [17]. An exergy ecosystem analysis was conducted in a conventional semi-natural cropland in China. Cosmic exergy accounting was applied for evaluating three agro-ecosystems comprising all, or a mixture of, farmland, biogas and dairy [18]. The study better defines relationships between energy conversion and information exchange in ecological flow. Additionally, it suggests an extended exergy approach which is suitable for evaluation of sustainability potential.

Exergy analysis is applied for improving the framework of exergy-based natural resource measures for sustainability of agricultural production via computation of a cumulative overall natural resource efficiency (COREA) in the agricultural context [19]. Eco-exergy, a form of exergy, computes qualities of biomass in ecosystems. Eco-exergy of organisms or ecosystems is defined as the work energy embodied in the information. It has adopted a wide systematic range of ecosystems (e.g. forests) to social system (e.g. cities) excluding particular species and various economic aspects [13, 20]. Rarely has eco-exergy been applied to evaluations and comparison of biomass recycling in a system [21]. The present study has been established to evaluate a closed scheme for integrated eco-agriculture systems based on the exergy analysis and energy analysis. This allows analysts to estimate potentials for sustainable developments of ecosystems. When recovering energy from waste, extended exergy accounting (EEA) is an appropriate analysis technique to quantify problems that stem from monetary or thermo-economic approaches. This study offered the application of EEA to a technical alternative evaluation for recycling of non-integrated waste, integrated waste, and an incineration facility [22].

The agricultural system in rural Vietnam is dispersed and typically developed at a small scale; therefore, resource efficiency in terms of a systematic consideration of input-output flows is not a significant consideration. Livelihoods in south-west rural regions mostly depend on agriculture. It is necessary to take the loss of resources in farming processes into account. Economic and environmental aspects of the farming by-products and biomass residues are not likely to be reused but largely discharged. The local conditions of the acid sulphate soil cause difficulties in the production for aqua-agro culture because of low soil and watershed pH levels, ranging from 4 to 5. This results in a lack of water that is safe enough for plant irrigation on a production scale. Hence, the utilization of indigenous plants, adapted to the special conditions of acid soil, associated with the reuse of waste will be able to maximize the production efficiency. According to Taheri et al. [23] an exergy analysis incorporating both exergy efficiency and exergy destruction underlines the ineffective energy use in alternative processes. Inefficiencies in energy loss, as heat, and emissions occur through the irreversibility within the process to the environment. The considerable amount of energy losses represent extra unexpected costs for energy purchase and detrimental environmental side effects [24]. Indicators of comprehensive energy evaluation may include energy efficiency, exergy efficiency and exergy destruction [23]. Exergy and energy analysis methods are basically used in analysis and comparison of energy in intensive manufacturing processes. Thermodynamic methodologies manifest energy efficiency evaluation in manufacturing processes, implying exergy as well as energy balance [13, 18, 19, 21, 23, 25]. Agricultural waste contributions need to be accurately identified in order to calculate actual losses and to consider potential of waste recycling during the farming process. By the first law of thermodynamics, energy is always conserved in the system but can be transported over the systems boundaries [24].

Based on the exergy efficiency analysis (i.e. exergy calculation), the objective of the paper is to assess the utilization of materials derived from the system process (i.e. heat and waste) in energy forms, which is wastefully disposed. Exergy analysis estimates the sustainable potential of a closed eco-agro system under the specific conditions of the local agricultural environment in acid soil area in Vietnam. Thereby, exergy loss from the system can be computed in the same unit of energy (Joules); whereas it cannot be counted in physical units. Indicators were developed from exergy analysis to evaluate the efficiency of conversing materials flows into energy in biogas-linked agricultural systems [11, 21, 25]. Liu et al. [21] suggested that the exergy efficiency is highly prior to the system of a big ecosystem scale which consists of three elements, farming, dairy and biogas. Exergy and indicator evaluation was assessed during the sustainable agricultural development in China between 2001 and 2015 [26]. The results showed reduced consumption of natural resources as well as decreased purchase of non-renewable resources (versus agricultural yields).

A proposed closed loop scenario of the total agro-ecosystem is proposed. This shall be estimated through exergy efficiency calculations based on waste utilization and supplements to the local ecosystem. Additionally, potential flows of input-output (towards zero emissions) shall be considered for improving the agricultural system.

Methodology

Conceptual framework

The conceptual framework of the study is presented in Fig. 1. The study approach is based on the integration of resources in agriculture to create a closed ecological system, which is aimed at optimizing the efficiency of materials and energy use, i.e. maximizing the use of renewable energy resources and minimizing non-renewable resources [27]. Utilization of waste and material flow recycling is proposed for creation of a zero emission system. “Zero emission” means that no waste is likely to cause environmental pollution. In agriculture-based rural areas, main living activities consist of crop cultivation (or horticulture), aquaculture and livestock. The scale of household farming varies, commonly showing a combination of functional components such as crop-fishpond and animal husbandry-crop. The research subject is a system of all three main components (husbandry-crop-fishpond). The design of an integrated farming system can increase the system efficiency minimizing the input of non-renewable resources. Making use of indigenous natural materials available on the farm will minimize the cost as well as the consumption of transportation fuel. Waste utilization or recirculation is considered a production unit in the system when waste or by-products are converted into inputs within the system. By this approach, the use of non-renewable materials will be reduced enhancing system sustainability [28].

Fig. 1
figure 1

Conceptual framework for energy conservation in an integrated farming system

Considering integrated systems from peer literatures regarding the living conditions of the household, an agro-based industrial zero emissions systems (AIZES) is proposed. It is an eco-agro-linked system composed of functional components, i.e. orchard (O)-fishpond (F)-animal shed (S)-biogas digester (D)-housing (H)-plant (P)-waste treatment (T)-ecosystem (E) (as defined below and as presented in Fig. 1). This model by Le et al. was developed to achieve zero emission in agriculture and contribute to sustainable livelihoods for farmers in the Mekong Delta [29]. It is derived from the typical model of agriculture-fishpond-livestock-biogas system. Other components maybe integrated to the system, such as a wastewater treatment system, available natural resources available, soils and human activities with management functions. These components, playing a very important role in material cycles, solve environmental pollution problems from waste and can create profit for farmers. The functions of the components in the system are described as follows (Fig. 1):

  • O (orchard) takes up products from two components S and F. Raw materials like dry leaves from trees and other plants from the local ecosystem (component E) are used for composting and biochar production (component F).

  • F (fishpond) serves as nutrient storage receiving input from D, and its water can be used to irrigate the orchard (component O).

  • S (animal shed) receives feeding from component O and produces waste (manure and urine), which is the main source for components F and D.

  • D (biogas digester) converts carbon- and nitrogen-rich waste from black water into bioenergy (CH4). It transforms sediments from the fishpond and livestock manure from the components F and S to compost used as an organic fertilizer for component O.

  • H (housing) plays the key role in controlling and managing all system activities and is directly affected by the outputs. It consumes energy converted from the biogas of D (heat and electricity). In addition, it gains benefits from the other system activities.

  • P (composting-biochar plant) transforms dry leaves from component O, sludge from the biogas digester and the locally available plants from components D and E into compost and biochar to re-supply components O and T.

  • T (waste treatment system) is used to treat wastewater from D and S using aquatic plants such as water spinach (Ipomoea aquatica) and water hyacinth (Eichhornia crassipes) from component E and biochar (component P). After the treatment, the water from the fishpond can directly be used for irrigation of the orchard O. The biogas effluent treated by biochar filtration is reused to irrigate the crop (component O), and after completing adsorption, the biochar will be recovered and re-applied in the system for component O as a source of nutrients.

  • E (native ecosystem), the land with naturally growing native plants such as spinach, water hyacinth and vegetables is the place where organic matter accumulates. It serves as additional organic fertilizer for O and F to improve the soil properties. It receives compost from component P storing and metabolizing the nutrients for subsequent crops.

Analysis of energy savings must take into account input alternatives for optimum reduction of energy losses. To calculate the overall system efficiency including the existing mass and energy balances, the exergy concept can be a quantifier for material flows in one common unit (joules of exergy) [18]. Input flows to the system are computed in the form of energy flows to assess the efficiency of processes through calculations of both accumulated energy and accumulated energy loss. The analytical method known as “exergy analysis” focuses primarily on evaluating the resource efficiency indicators of the input and output flows in energy form. In particular, the inputs and outputs of each component in the integrated system are quantified. To develop an integrated ecological system with potential for zero emissions, the analytical methods of material cycles and energy flows shall use a set of indicators to evaluate resource efficiency in sustainable agriculture. The total exergy efficiency is evaluated through these indicators to optimize the selection of alternatives for sustainable farming system [11, 21, 25]. The system with maximum utilization of bio-waste and by-products from biogas, crop production and livestock systems, particularly using local materials as a supplement within the agricultural system, can improve a sustainable livestock and crop production systems [11, 30].

Physical boundaries of the entire system must encompass a proper size for the analysis of a process [31]. The extension portion of the surrounding environment including both materials and energy, which are extracted to the system processes, may be quantified. Figure 2 shows the boundary size of the studied farming system including the combination of productive components.

Fig. 2
figure 2

Boundaries of the current agricultural system

Studying the boundary of the system takes the following key factors into account: biogenic flows, water flows, chemical flows, energy flows and the system sustainability [18]. It is important to also consider temporal interactions between the performance of components [32] and the chronological sequences in the system since components of agriculture vary in productive timespan.

Exergy analysis

A comprehensive exergy analysis of a system has to be performed following the simple procedure shown below [33]:

  • The systematic process has to be subdivided into expectably manageable system components (process or sub-process).

  • The mass and energy flows of the process must be identified, and the balances must be calculated in terms of basic quantities and properties.

  • A reference environment model must be chosen to obtain an acceptable analysis complexity and accuracy levels including a quantification of energy and exergy values.

  • The exergy balances related to energy consumptions must be calculated.

  • The energy and exergy efficiencies based on the proper measures of merits must be defined.

  • Appropriate conclusions related to the evaluation of each system component are drawn and a system innovation is recommended.

The exergy concept can be a quantifier for material flows in one common unit (joules of exergy). Exergy uses thermodynamic metrics to assess material flows extracted from the system process [17]. Due to the low quality of resources in the subsequent transformation step, exergy analysis considers both the quality and the quantity of resources on one single scale. The ratio of yields (products) and inputs implies the exergy efficiency η of the process [18]. Exergy analysis (EA) considers a system or process for the balance of all inputs and outputs in unit of exergy content per time (i.e. J/year) to evaluate the exergy efficiency (ƞ) which is a fraction of the desired product to the input exergy [19].

$$ \eta\ \left(\%\right)=100\times \frac{\mathrm{exergy}\ \mathrm{outputs}\ \left(\mathrm{products}\right)\ }{\mathrm{exergy}\ \mathrm{inputs}} $$
(1)

For the exergy efficiency of product and by-products, it implies ƞ’.

$$ \eta '\left(\%\right)=100\times \frac{\mathrm{exergy}\ \mathrm{outputs}\ \left(\mathrm{products}\ \mathrm{and}\ \mathrm{by}-\mathrm{products}\right)\ }{\mathrm{exergy}\ \mathrm{inputs}} $$
(2)

The method of analysing and evaluating input and output streams was used for the presented paper. We adapted a type of network modelling method [21] of energy interaction of the whole goods and services via the statistics of total intermediate inputs and organization matrices. The energy transactions in a basic EA framework perform the flow of resources for each component of eco-agriculture system as a producer. EA uses a one-step conversion procedure to transform physical units of energy inputs of the system via conversion factors (called “energy coefficients”) into total fossil energy [5]. According to Taheri et al. [23] the higher the temperature in the system process, the smaller the exergy destruction; hence, an energy efficiency evaluation would not be much different compared to the evaluation of exergy efficiency. In addition to quantifying exergy efficiency and exergy destruction, the increased process timespan leads to magnifying the exergy destruction value. Exergy efficiency plays an important role in the outcome analysis of the process. Exergy analysis accounts for exergy loss and the process efficiency (η) for a certain time (a year) due to a steady state; the exergy balance is calculated as follows [19, 34]:

$$ {E}_{\mathrm{in}}={E}_{\mathrm{out}}+{E}_{\mathrm{loss}} $$
(3)
$$ \eta\ \left(\%\right)=100\times \frac{E_{\mathrm{out}}}{E_{\mathrm{in}}}=100\times \frac{E_{\mathrm{in}}-{E}_{\mathrm{loss}}}{E_{\mathrm{in}}} $$
(4)

Eloss represents the waste or by-products exergy or the output streams represented by exergy unit divided by time that contrasts with exergy destruction due to the recovery characteristics.

For an exergy analysis, both exergy destruction (irreversible within the process, not serviceable for work, and should possibly be eliminated) and the exergy losses to the environment are computed.

$$ {E}_{\mathrm{in}}={E}_{\mathrm{out}}+{E}_{\mathrm{loss}}+{E}_{\mathrm{des}} $$
(5)
$$ \psi =\frac{E_{\mathrm{out}}}{E_{\mathrm{in}}}=1-\frac{E_{\mathrm{loss}}+{E}_{\mathrm{des}}}{E_{\mathrm{in}}} $$
(6)

The performance of exergy efficiency (ψ) is better in comparison with efficiency (η) [23]. The loss refers to the by-products or wastes, which actually or potentially cause pollution contrasting with the destruction due to its attribute of recovering. The destruction refers to the amount of exergy that is irreversible emissions. Then, cumulative exergy consists of cumulative loss and cumulative destruction.

Sciubba [35] represents exergy algebra for efficiency and cost calculations that the outputs consist [O] of the desired product (O1), of some energy rejection to the environment (O2), of a by-product (O3) and of some waste (O4).

$$ Eo=\pi Ei=\pi \left|\begin{array}{c} Ei1\\ {} Ei2\\ {}\dots \\ {} Ei k\end{array}\right|=\left|\begin{array}{c} Eo1\\ {} Eo2\\ {}\dots \\ {} Eo4\end{array}\right| $$
(7)

The internal transfer function of a process (i.e. each component in the system) linking the outputs with the inputs is called conversion efficiency or transformity unit. This study selects a number of energy conversion coefficients (or equivalent factors) of research literature, which are suitable to local conditions for the calculation of embodied exergy in agricultural systems.

In general, the efficiency of systematic farming process is analysed in an exergetic concept referring to the sustainability of agriculture, which is defined by the set of indicators of sustainable agriculture employed in this study (Table 1) [25]. Renewability Index (RI) implies the role of renewable resources in the total resources. Environmental loading of investment (ELI) indicates that the environment will suffers if the ELI value is high. Investment-yield ratio (IYR) presents the ratio of purchased resources to the expected outputs. Ecosystem resource-yield ratio (ERYR) reflects the contribution of ecosystem resources in producing the outputs or producing yields (Y). System transformity (STr) is the ratio of the total inputs to the outputs. It suggests that the higher system sustainability means the lower STr. Non-renewable yield ratio (NRYR) estimates how much effectiveness of the system production depending on the non-renewable resources. Three basic resources are natural renewable resources (RR), non-renewable resources (NR) and purchased non-renewable (PN) resources. In the extent of the study, purchased-renewable resources (PR) (i.e. human labour) are not taken account. Labour can be attributed to PR when householder has to hire labour power [25]. It is also renewable resource (RR) in the case of the current study area. The majority of human labour (20 people) is household family members; hence, there is no cost.

Table 1 Indicators of exergy efficiency for sustainable agriculture (adapted from [25])

Results and discussion

Case study description

Experiments in this study were carried out at a farm household of 8.1 ha of land use for farming in Long An Province (10°36′24″ N, 106°8′31″ W). The local weather conditions show an average temperature of 27 °C and an average annual amount of evapotranspiration of up to 2000 mm. There are three productive components in the operation of the farm: pig farming, fish breeding and orchard operations. The farm raises piglets for pork production at an industrial scale (~ 4500 heads of pig). The total shed area is 1800 m2. Jackfruit trees (Artocarpus heterophyllus) are planted with a density of 525 trees per ha (over approximately 2.5 ha). Pig and fish feed and fertilizer are commercially sourced. For the fishponds, covering approximately 5 ha, river water (augmented with lime) is utilized to ensure the pH ranges between 6.5 and 8 for the farmed fish. Similarly, river water (also lime adjusted) issued to irrigate the orchard. Hence, about 180 m3 water per day from the well are used for both living and breeding. Wastewater from the pig farm, including pig manure and washing water, is directly discharged into internal ditches and then discharged into field canals. The monthly electricity consumption equates to approximately 12,000 kWh (43,200 MJ)—generally attributed to washing pigs, ventilating fans, pumping water and human activities. Two diesel-fired generators are used to create the nominal electrical demand of 27 kW, consuming approximately 6 l fuel/h.

The entire system with all material flows embodied in a typical agricultural system in the acid soil area in Vietnam is presented in Fig. 3. The natural renewable resources serving for the whole production system include sunlight, wind, rain, surface water, and soil. Natural non-renewable consumed resources include topsoil erosion, groundwater and surface water (which are utilized in horticulture operations) [36]. Many items in this system are purchased non-renewable resources. Inputs and outputs for each component according to the existing farming system are shown in Table 2. The data is divided into groups of both free purchased inputs and the yield referring to outputs. The exergy analysis in the present system is computed for a period of 1 year.

Fig. 3
figure 3

Material flows of the typical agricultural system on the acid soil area Vietnam

Table 2 Inputs and yields for system components according to the present farming household system (in a year)

Exergy analysis

The input and output data sources based on exergetic analysis are shown in Table 2. The items are divided into 3 groups: renewable resources, natural non-renewable resources and purchased-non-renewable resources. As mentioned above, purchased-renewable resources (i.e. labour) are not included in this case. The exergy loss of the whole system and the resource efficiency of each component compared to the entire system are shown in Fig. 4. Most non-renewable natural resources contribute large amounts of exergy to the system, in which the distribution rate of fish feeding accounts for over 80% of the total input sources. From the total yields of 19 million MJ in a year, pig and fish production account for about 99% of the total production with an efficiency rate of 59% and 41%, respectively. However, the exergy loss from fish production is also the highest among the components. With 195 million MJ per year of exergy content of the total inputs, the exergy loss from the system is significant, accounting for 90% total inputs. The losses mainly occur in fish production. However, because in the current system three components are operated separately, we consider the calculation of the exergy embodied in each component to identify the main cause of the exergy loss. About 70% of the exergy loss is generated from pig farming, excluding consideration of pig waste. Likewise, the exergy content in the fishpond is mainly embodied in animal feeding; the fish processing causes a considerable amount of exergy loss. About 95% of the embodied exergy is lost while fish feeding accounts for over 99% of the total inputs. Although the rate of exergy loss from the orchard is negligible compared to the entire system, the efficiency from cultivation is only 2% excluding biomass residues (accounting for 98% of exergy loss in this process). It is possible to attribute the causes of the exergy loss in the cultivation process to the topsoil loss (over 50% of the inputs), and the other ones stemming from fertilizer and machinery (plough). The high exergy loss causes the exergy efficiency of the processes to be at a low level. The negligible ratio of waste/by-products to products of each component leads the η and η’ values to be almost equivalent (shown in Figs. 4 and 5).

Fig. 4
figure 4

Exergy efficiency % of systems and components

Fig. 5
figure 5

Embodied exergy flows in MJ/year in agricultural production system in the study area

Figure 5 shows the energy flows for the current farm household system. Considering the exergy loss in the current system, the comparison of input and output in the exergy analysis reveals numerous disparities; most of the energy loss is due to fish production. The components of the system process operate individually; thus, there are no links between input and output flows from one component to the others. For each component, the exergy loss from pig production, fish production and orchard is 68%, 95% and 98%, respectively. The exergy efficiency is relatively low with the greatest contributor attributed to pig production at 32%, and fishery and orchard efficiencies at less than ~ 5%.

The exergy embodied in waste technically contributes to the increase in resource efficiency when it is considered the by-product. The composition of agricultural wastes is mainly organic matters having great potential for recycling. Compared with the negligible energy from biomass residues (3000 MJ/year) the energy content in pig manure is several times higher (900,000 MJ/year). Further, the energy content of the released biogas amounts to nominally 1 million MJ/year (a significant consideration).

Applied agricultural zero emission system for the farm

In a zero emission agricultural system, aquatic plants such as water hyacinth (an indigenous plant species) can be grown in ponds to contribute to bio-treating of wastewater [46]. Water from such a pond can be utilized for irrigating orchards and supplying fishponds (without additional treatment) [47]. Of note, the current system must augment pumped river water with lime. Additionally, aquatic plants may be used to compost and fertilize the garden. Similarly, waste from a pigsty (pig manure + urine) can be digested in biogas plastic container(s) to create biogas which can be used as an energy source for producing electricity and heat [48]. The pig sludge is used as compost in combination with water hyacinth for pond water treatment and as fertilizer for the orchard. With a pH level lower than 5 in an acid sulphate-containing soil [49], resources in the system need to be fully utilized to improve both soil and water quality, while reducing costs for the farm.

Other components that need to be provided in support of the agricultural zero emission system include local plants such as spinach and/or water hyacinth; an aquatic pond; and, plastic containers for biogas production, as presented in Table 3. An aquatic pond can act as storage of sludge from biogas digesters. Floating plants (spinach and water hyacinth) in the pond function as a natural waste filtration system. These kinds of plants, combined with pig sludge, can increase the pH level of the water and allow water to be used for irrigating plants without further treatment or lime supplementation. Pig manure can be digested in plastic biogas containers. Biogas and sludge generated during the digestion can benefit all components. Sludge is used as bio-fertilizer and fish feed. Pig sludge is mixed with commercial fish feed with a weight ratio of 1: 1. Simultaneously, biogas can provide heat and electricity for the whole system when using biogas-based generators. The household may no longer need to buy fuel and pay for purchased electricity.

Table 3 Supplement items for a zero emission system

The exergy loss in both current and ideal systems is calculated to be up to 80% (Fig. 6), leading to low exergy efficiency with 10% of the current system and about 16% of the ideal system. However, for the proposed system, the circulation of reused waste linking all components can reduce the loss of embodied exergy in pig and fish production. Taheri et al. imply that a process with higher temperature will result in a reduction of exergy loss [12]. The process of digesting pig slurry produces heat at very high temperatures achieving high exergy efficiency. Other productive processes in the system occur under conditions of ambient temperature, i.e. orchard and pigsty. The causes of heat loss from these components need to be investigated.

Fig. 6
figure 6

Exergy loss in each component (a) and exergy efficiency in the entire system (b)

Figure 7 shows the energy flows in an idealized system, compared to the current system presuming the case of constant output. Biogas is used as a substitute for electricity and diesel to illuminate the pigsty. With elimination of incandescent lighting fixtures, it is estimated that ten LED light bulbs with a power consumption of 0.018 kW per bulb (with approximately 150 h of duty usage) in the current system only requires 324 kW per year (equivalent to 1166 MJ per year). This allows for an average consumption of 62 kW for other household electrical appliances. The remaining approximately 1.4 Million MJ/year of embodied exergy of biogas can be converted into electricity. This surplus can be returned to the local power grid (and refunded to the farmer) or distributed locally. Additionally, surplus biogas can be stored and/or distributed to surrounding households or consumers.

Fig. 7
figure 7

Energy flows in an idealized agro-ecosystem

The embodied exergy of biogas sludge is 65 times lower than that of commercial fish feeds. Thus, replacing commercial fish feed by addition of sludge the embodied exergy in the system can considerably reduce aquatic farming costs. Farming experience showed that sludge supplemented with fish feed at a weight ratio of 1:1 (equal to 78 million MJ/year in feed and 1 million MJ/year in sludge) leads to the same fish yield as supplying only commercial feed. Energy input in the sludge/commercial feed combination amounts to only half the energy for fish feeding compared to the present system. However, empirical measures are needed for analysing and formulating the complete fish diets using locally available ingredients to optimize fish growth and health [50].

For orchard inputs, the recycled waste consists of jackfruit leaf and pig sludge waste (crude protein content is 12.8% and 2%, respectively). It is possible to combine the orchard wastes with local plants (spinach and water hyacinth with 0.5% protein) to form biochar. This biochar contains the embodied exergy from biomass residues and sludge (900 MJ/year and 450,000 MJ/year, respectively), which can meet the nitrogen needs of the plants.

For the evaluation of a zero emission system, one can evaluate waste recycling and utilization of locally available resources to create closed material loops. Based on this analysis, power contribution of human resources will be negligible to the power contribution of the processes. Under the assumption of water resources (ground and surface water) seen as non-renewable natural resources, exergy efficiency depends on the allocation of the natural resources [15].

In Table 4, the results of calculating exergy efficiency in a zero emission system vs. the scenario in a current farming system are shown.

Table 4 Indicators of sustainable agriculture in the current and a zero emission system

Regarding the rankings for sustainability indicators, the RI and ERYR values of this system are comparable to that in Organization for Economic Cooperation and Development (OECD) values. These values resulted from the study of Hoang and Alauddin which present rankings of the seven indicators in 29 OECD countries. In spite of the variety of range in indicators among the countries, the results showed the stability of NRYR compared to the other indicators [25]. The scenario reduces half of the environmental load; whereas its ELI value is approximately a half lower than that of the present system. Nevertheless, it is significantly higher than all OECD indicator scores. It is concluded that both systems have high investment costs. Other indicators have ten times higher scores compared to the OECD benchmarks. This study concludes that 1 MJ of the outputs needs 10 MJ of the inputs, whereas 1 GJ of the total resources consumed in farming from OECD countries produced 1 GJ of the outputs. The systems imply sustainability of agriculture production by NRYR which is a good indicator of the agriculture sustainability. Hence, it is suggested that the exergy loss in the system process needs to be further investigated. Further considerations may warrant evaluation of effective alternatives to either converting exergy loss products or adjusting the input supplements for the same outputs.

Waste recycling for an integrated agro-ecosystem has positive effects, resolving the problem of waste and environmental pollution by reducing the purchases [51, 52]. Further research will be related to adjusting the input items to optimize the utilization of renewable resources from the local ecosystem. The next study step should aim at aggregating the input-output flows (containing waste and heat therein) along with locally available resources over the optimum time when linking the functions of the components within the farming system. The suggestion considers the effectiveness of recycle-waste flows in different directions to produce high-yield in all components.

Conclusion

Considering integrated systems based on the living conditions of the household, an agro-based industrial zero emissions system (AIZES) is proposed. To optimize the use of renewable energy resources and limit non-renewable consumption, the study suggests a possible agricultural system making use of indigenous, available natural resources towards zero emission. The study employed exergy methods, since the methods allow for calculating material flows only in a single energy unit for assessing resource efficiency at a typical farming system in Vietnam. Based on the current farming system, other components are added to close all input-output flows towards agricultural zero emission system. Biogas digesters and aquatic ponds (with aquatic plants such as spinach and water hyacinth) enhance the benefits of the exergy efficiency in the system. Pig sludge and biomass residues, when utilized, can reduce energy loss. Besides offering a supplement for fish feed, pig sludge can be used as a high efficiency fertilizer when mixed with biomass residues [53]. Additionally, the farming household(s) may be able to replace fuel and electricity resulting in energy self-sufficiency and resale of distributed electricity/fuel (biogas) to the electric authority or surrounding households. Using all OECD indicators for sustainable agriculture through energy measures, the proposed zero emission agricultural system reduces external energy demand and halves the environmental load—thereby reducing environmental pressures considerably.