Original Articles
24 October 2025

Harnessing AI for sustainable agriculture: exergy efficiency optimization in maize via neighbourhood component analysis, principal component analysis, extreme gradient boosting

Publisher's note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.
7
Views
3
Downloads

Authors

Conventional analyses of agricultural energy systems often ignore the concepts of exergy degradation and irreversibilities, which results in an incomplete understanding of useful energy loss. Ignoring these factors can lead to poor input and technology choices that ultimately harm sustainability. To fill this gap, we introduce an AI-supported framework designed to predict and explicitly optimize exergy efficiency and cumulative exergy consumption (CExC), specifically in maize cultivation, by using controllable inputs. This research represents a novel endeavor, as it is, to the best of our knowledge, the first study aimed at optimizing exergy efficiency at the crop production level through the application of machine learning techniques to various input variables. This study utilizes a comprehensive input-output dataset comprising 112 observations and including seven inputs: human labor, machinery, diesel fuel, seed, fertilizer, chemicals, and water—alongside a singular output variable (output energy). The target variables, exergy efficiency and CExC, are calculated by systematically mapping energy flows into the exergy domain. Our methodological approach integrates neighborhood component analysis (NCA) for effective feature selection, principal component analysis for dimensionality reduction, and XGBoost for predictive modeling. Furthermore, the optimization of hyperparameters is conducted through a genetic algorithm to enhance model performance. Implementation of this framework was carried out in Python 3.11, utilizing libraries such as scikit-learn and XGBoost. The evaluation of model performance was conducted using three metrics: mean absolute error (MAE), mean squared error (MSE), and the coefficient of determination (R²). The study's results indicate a MAE of 1.5027, a MSE of 4.7553, and an R² of 0.99. These metrics indicate an exceptional model fit within the low-to-moderate efficiency spectrum (0-30%) while exhibiting minimal bias. Such findings suggest that the proposed framework can effectively inform sustainable input planning strategies aimed at mitigating energy waste and decreasing reliance on fossil fuels, all while preserving agricultural output. Moreover, insights derived from the analysis highlight which adjustments in labor, fertilizer, and machinery contribute most significantly to exergy efficiency gains. Additionally, the integration of economic and CO₂ metrics into the model, as well as the exploration of real-time decision support systems in field trials, would represent valuable advancements in this endeavor. Future work will focus on creating plot-level datasets that include harmonized covariates, such as soil properties, water regime, weather conditions, and pest pressure. These datasets will support causal inference and threshold estimation, fully disaggregated with separate measures for nitrogen, phosphorus, potassium, as well as diesel and electricity usage.

Altmetrics

Downloads

Download data is not yet available.

Citations

Alzaben, H., Fraser, R. 2025. Energy and Exergy analyses applied to a crop plant system. Thermo 5:3. DOI: https://doi.org/10.3390/thermo5010003
Amiri, Z., Asgharipour, M.R., Campbell, D.E., Armin, M. 2020. Extended exergy analysis (EAA) of two canola farming systems in Khorramabad, Iran. Agric. Syst. 180:102789. DOI: https://doi.org/10.1016/j.agsy.2020.102789
Asl, J.H., Asakereh, A., Nejad, N.B. 2023. Evaluation of sugarcane production based on the analysis of cumulative exergy and environmental effects (case study of Agri-industry of Mirza Kochakh Khan). J. Agric. Sci. Sustain. Prod. 33:293-309.
Assimakopoulos, F., Vassilakis, C., Margaris, D., Kotis, K., Spiliotopoulos, D. 2024. Artificial intelligence tools for the agriculture value chain: Status and prospects. Electronics 13:4362. DOI: https://doi.org/10.3390/electronics13224362
Azizpanah, A., Taki, M. 2025. Evaluating the sustainability of sugar beet production using life cycle assessment approach. Sugar Tech. 27:78-93. DOI: https://doi.org/10.1007/s12355-024-01488-9
Balać, N., Mileusnić, Z., Dragičević, A., Milanović, M., Rajković, A., Miodragović, R., Ećim-Đurić, O. 2025. Implementation of XGBoost models for predicting CO2 emission and specific tractor fuel consumption. Agriculture 15:1209. DOI: https://doi.org/10.3390/agriculture15111209
Beni, M.S., Parashkoohi, M.G., Beheshti, B., Ghahderijani, M., Bakhoda, H. 2023. Application of machine learning to predict of energy use efficiency and damage assessment of almond and walnut production. Environ. Sustain. Ind. 20:100298. DOI: https://doi.org/10.1016/j.indic.2023.100298
Bolandnazar, E., Rohani, A., Taki, M. 2020. Energy consumption forecasting in agriculture by artificial intelligence and mathematical models. Energ. Sources A 42:1618-1632. DOI: https://doi.org/10.1080/15567036.2019.1604872
Cheema, S.J., Karbasi, M., Randhawa, G. S., Liu, S., Esau, T. J., Grewa, K.S., et al. 2025. A state-of-the-art novel approach to predict potato crop coefficient (Kc) by integrating advanced machine learning tools. Smart Agr. Technol. 11:100896. DOI: https://doi.org/10.1016/j.atech.2025.100896
Chen, T., Guestrin, C. 2016. Xgboost: A scalable tree boosting system. Proc. 22nd ACM SIGKDD Int. Conf. on Knowledge Discovery and Data Mining, New York. pp. 785-794. DOI: https://doi.org/10.1145/2939672.2939785
Chowdhury, T., Chowdhury, H., Ahmed, A., Park, Y.K., Chowdhury, P., Hossain, N., Sait, S.M. 2020. Energy, exergy, and sustainability analyses of the agricultural sector in Bangladesh. Sustainability 12:4447. DOI: https://doi.org/10.3390/su12114447
Dai, G., Fan, J., Dewi, C. 2023. ITF-WPI: Image and text based cross-modal feature fusion model for wolfberry pest recognition. Comput. Electron. Agric. 212:108129. DOI: https://doi.org/10.1016/j.compag.2023.108129
Dai, G., Tian, Z., Wang, C., Tang, Q., Chen, H., Zhang, Y. 2025. Lightweight vision transformer with lite-avpso hyperparameter optimization for agricultural disease recognition. IEEE Internet Things. Online Ahead of Print. DOI: https://doi.org/10.1109/JIOT.2025.3574084
Dai, G., Tian, Z., Fan, J., Sunil, C.K., Dewi, C. 2024. DFN-PSAN: Multi-level deep information feature fusion extraction network for interpretable plant disease classification. Comput. Electron. Agric. 216:108481. DOI: https://doi.org/10.1016/j.compag.2023.108481
Dutta, A. 2021. Energy conservation and its impact on climate change. In: P.K. Sikdar, editors Environmental management: issues and concerns in developing countries. Springer. pp. 139-150. DOI: https://doi.org/10.1007/978-3-030-62529-0_8
Esmaeilpour-Troujeni, M., Rohani, A., Khojastehpour, M. 2021. Optimization of rapeseed production using exergy analysis methodology. Sustain. Energy Technol. 43:100959. DOI: https://doi.org/10.1016/j.seta.2020.100959
Hercher-Pasteur, J., Loiseau, E., Sinfort, C., Hélias, A. 2020. Energetic assessment of the agricultural production system: A review. Agron. Sustain. Dev. 40:1-23. DOI: https://doi.org/10.1007/s13593-020-00627-2
Hesampour, R., Hassani, M., Yildizhan, H., Failla, S., Gorjian, S. 2022. Exergoenvironmental damages assessment in a desert‐based agricultural system: A case study of date production. Agron. J. 114:3155-3172. DOI: https://doi.org/10.1002/agj2.21171
Holland, J.H. 1973. Genetic algorithms and the optimal allocation of trials. SIAM J. Comput. 2:88-105. DOI: https://doi.org/10.1137/0202009
Hulmani, S., Salakinkop, S.R., Somangouda, G. 2022. Productivity, nutrient use efficiency, energetic, and economics of winter maize in south India. PLoS One 17:e0266886. DOI: https://doi.org/10.1371/journal.pone.0266886
Jamali, M., Soufizadeh, S., Yeganeh, B., Emam, Y. 2021. A comparative study of irrigation techniques for energy flow and greenhouse gas (GHG) emissions in wheat agroecosystems under contrasting environments in south of Iran. Renew. Sustain. Energ. Rev. 139:110704. DOI: https://doi.org/10.1016/j.rser.2021.110704
Juárez-Hernández, S., Usón, S., Pardo, C. S. 2019. Assessing maize production systems in Mexico from an energy, exergy, and greenhouse-gas emissions perspective. Energy 170:199-211. DOI: https://doi.org/10.1016/j.energy.2018.12.161
Khanali, M., Akram, A., Behzadi, J., Mostashari-Rad, F., Saber, Z., Chau, K.W., Nabavi-Pelesaraei, A. 2021. Multi-objective optimization of energy use and environmental emissions for walnut production using imperialist competitive algorithm. Appl. Energ. 284:116342. DOI: https://doi.org/10.1016/j.apenergy.2020.116342
Kohavi, R., John, G.H. 1997. Wrappers for feature subset selection. Artif. Intell. 97:273–324. DOI: https://doi.org/10.1016/S0004-3702(97)00043-X
Li, H., Chen, C., Umair, M. 2023. Green finance, enterprise energy efficiency and green total factor productivity: evidence from China. Sustainability 15:11065. DOI: https://doi.org/10.3390/su151411065
Liu, H., Liu, S. 2020. Exergy analysis in the assessment of hydrogen production from UCG. Int. J. Hydrogen Energy 45:26890-26904. DOI: https://doi.org/10.1016/j.ijhydene.2020.07.112
Marina, I., Grujić Vučkovski, B. 2022. Energetic efficiency of raspberry production in protected Arewa facility type tunnel. West. Balk. J. Agric. Econom. Rural Dev. 4:119-133. DOI: https://doi.org/10.5937/WBJAE2202119M
Mitchell, R., Frank, E. 2017. Accelerating the XGBoost algorithm using GPU computing. PeerJ Comput. Sci. 3:e127. DOI: https://doi.org/10.7717/peerj-cs.127
Mostafaeipour, A., Fakhrzad, M.B., Gharaat, S., Jahangiri, M., Dhanraj, J.A., Band, S.S., Mosavi, A. 2020. Machine learning for prediction of energy in wheat production. Agriculture 10:517. DOI: https://doi.org/10.3390/agriculture10110517
Nabavi-Pelesaraei, A., Ghasemi-Mobtaker, H., Salehi, M., Rafiee, S., Chau, K.W., Ebrahimi, R. 2023. Machine learning models of exergoenvironmental damages and emissions social cost for mushroom production. Agronomy 13:737. DOI: https://doi.org/10.3390/agronomy13030737
Nadi, F., Górnicki, K. 2022. Evaluation of sustainability of wheat-bread chain based on the second law of thermodynamics: a case study. Sustainability 14:14229. DOI: https://doi.org/10.3390/su142114229
Nikkhah, A., Kosari-Moghaddam, A., Troujeni, M.E., Bacenetti, J., Van Haute, S. 2021. Exergy flow of rice production system in Italy: Comparison among nine different varieties. Sci. Total Environm. 781:146718. DOI: https://doi.org/10.1016/j.scitotenv.2021.146718
Noorani, M.H., Asakereh, A., Siahpoosh, M.R. 2023. Investigating cumulative energy and exergy consumption and environmental impact of sesame production systems, a case study. Int. J. Exergy 42:96-114. DOI: https://doi.org/10.1504/IJEX.2023.134289
Qi, H., Dong, Z., You, X., Zhou, S., Zhu, Y. 2025. Extended exergy accounting of agricultural resources in China’s four provinces of mountains and rivers. Sci. Rep. 15:22213. DOI: https://doi.org/10.1038/s41598-025-06828-7
Rashidi, K., Azizpanah, A., Fathi, R., Taki, M. 2024. Efficiency and sustainability: Evaluating and optimizing energy use and environmental impact in cucumber production. Environ. Sustain. Ind. 22:100407. DOI: https://doi.org/10.1016/j.indic.2024.100407
Rasoolizadeh, M., Salarpour, M., Borazjani, M.A., Nikkhah, A., Mohamadi, H., Sarani, V. 2022. Modeling and optimizing the exergy flow of tropical crop production in Iran. Sustain. Energ. Technol. Assess. 49:101683. DOI: https://doi.org/10.1016/j.seta.2021.101683
Sejkora, C., Kühberger, L., Radner, F., Trattner, A., Kienberger, T. 2020. Exergy as criteria for efficient energy systems - a spatially resolved comparison of the current exergy consumption, the current useful exergy demand and renewable exergy potential. Energies 13:843. DOI: https://doi.org/10.3390/en13040843
Soleymani, M., Asakereh, A., Safaieenejad, M. 2025. Optimization of cumulative energy, exergy consumption and environmental life cycle assessment modification of corn production in Lorestan Province Iran. Optimization 15:23-46.
Soltanali, H., Nikkhah, A., Rohani, A. 2017. Energy audit of Iranian kiwifruit production using intelligent systems. Energy 139:646-654. DOI: https://doi.org/10.1016/j.energy.2017.08.010
Tian, P., Liu, J., Zhao, Y., Huang, Y., Lian, Y., Wang, Y., Ye, Y. 2022. Nitrogen rates and plant density interactions enhance radiation interception, yield, and nitrogen use efficiencies of maize. Front. Plant Sci. 13:974714. DOI: https://doi.org/10.3389/fpls.2022.974714
Tuncer, T., Ertam, F., Dogan, S. 2020. Automated malware recognition method based on local neighborhood binary pattern. Multimed. Tools Appl. 79:27815-27832. DOI: https://doi.org/10.1007/s11042-020-09376-6
Tutar, H., Eren, O., Er, H., Gonulal, E., Gokdogan, O. 2025. Field-based experimental greenhouse gas emissions and energy use efficiency study of sorghum x sudan grass hybrid growth in a semi-arid region. Energy 315:134450. DOI: https://doi.org/10.1016/j.energy.2025.134450
Wang, G., Wu, W., Fu, D., Xu, W., Xu, Y., Zhang, Y. 2021. Energy and exergy analyses of rice drying in a novel electric stationary bed grain-drying system with internal circulation of the drying medium. Foods 11:101. DOI: https://doi.org/10.3390/foods11010101
Wang, W., Deng, S., Zhao, D., Zhao, L., Lin, S., Chen, M. 2020. Application of machine learning into organic Rankine cycle for prediction and optimization of thermal and exergy efficiency. Energy Convers. Manag. 210:112700. DOI: https://doi.org/10.1016/j.enconman.2020.112700
Wang, X., Zhang, W., Lakshmanan, P., Qian, C., Ge, X., Hao, Y., et al. 2021. Public–private partnership model for intensive maize production in China: A synergistic strategy for food security and ecosystem economic budget. Food Energy Secur. 10:e317. DOI: https://doi.org/10.1002/fes3.317
Xu, X., Ma, F., Zhou, J., Du, C. 2022. Control-released urea improved agricultural production efficiency and reduced the ecological and environmental impact in rice-wheat rotation system: A life-cycle perspective. Field Crops Res. 278:108445. DOI: https://doi.org/10.1016/j.fcr.2022.108445
Yang, C., Nutakki, T.U.K., Alghassab, M.A., Alkhalaf, S., Alturise, F., Alharbi, F.S., Abdullaev, S. 2024. Optimized integration of solar energy and liquefied natural gas regasification for sustainable urban development: Dynamic modeling, data-driven optimization, and case study. J. Clean. Prod. 447:141405. DOI: https://doi.org/10.1016/j.jclepro.2024.141405
Yildizhan, H. 2017. Thermodynamics analysis for a new approach to agricultural practices: case of potato production. J. Clean. Prod. 166:660-667. DOI: https://doi.org/10.1016/j.jclepro.2017.08.082

How to Cite



“Harnessing AI for sustainable agriculture: exergy efficiency optimization in maize via neighbourhood component analysis, principal component analysis, extreme gradient boosting” (2025) Journal of Agricultural Engineering [Preprint]. doi:10.4081/jae.2025.1870.