An Integrated AI Framework for Crop Recommendation
Abstract
1. Introduction
2. Research Methodology
2.1. Machine Learning Model for Soil Texture Identification
CNN Architecture and Training
2.2. LLM Model
“You are an agricultural expert. Based on the following details:
Country: {country} Elevation: {elevation} meters Season: {Season} Soil Type: {soil_type} Climate: {climate}Suggest the most suitable crops to grow in this location. List them in bullet points with short reasons.”
2.3. ASS Evaluation Metric
3. Geographical Characteristics
4. Workflow of the Tool
5. Evaluation
5.1. Soil Images Data
5.2. Crop Type and Nutrient Requirements
5.3. Results
5.4. Verification of Accuracy: Case Study 1: South Africa
5.5. Verification of Accuracy: Case Study 2: Canada
5.6. Verification of Accuracy: Case Study 3: United Kingdom
5.7. Verification of Accuracy: Case Study 4: Lebanon
5.8. Verification of Accuracy: Case Study 5: Turkmenistan
5.9. Verification of Accuracy: Case Study 6: Australia
5.10. Summary of Findings
5.11. Contribution to Sustainable Development Goals
6. Conclusions
Limitations and Future Work
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Appendix A. Crop Recommendations
| Location | Coordinates (Lat, Long) | Elevation (m) | Planting Month | Recommended Crops |
|---|---|---|---|---|
| South Africa | −34.0162, 23.2031 | 342 | January | Maize, Sunflowers, Soybeans, Groundnuts, Sorghum, Sweet potatoes |
| Canada | 52.0525, −123.7500 | 1063 | March | Peas, Spinach, Lettuce, Radishes, Carrots, Onions |
| United Kingdom | 51.3992, −1.7578 | 199 | June | Carrots, Beetroot, Lettuce, Radishes, Spinach, French beans |
| Lebanon | 33.1559, 35.3979 | 856 | June | Tomatoes, Peppers, Cucumbers, Melons, Eggplants, Beans, Zucchini |
| Turkmenistan | 39.5040, 54.4043 | 16 | June | Melons, Sunflowers, Millet, Sorghum, Sesame, Sweet potatoes, Chickpeas |
| Indonesia | 0.8789, 113.3789 | 281 | September | Rice, Maize, Soybeans, Peanuts, Cassava, Sweet potatoes |
| Australia | −32.9902, 116.2353 | 165 | September | Wheat, Barley, Canola, Lupins, Oats |
References
- Muren, J.; Sun, X.; Yao, J.; Cao, L. Evaluating agricultural efficiency and sustainable development in China. Sci. Rep. 2025, 15, 23047. [Google Scholar] [CrossRef]
- Ávila, L.V.; Shulla, K.; Favarin, R.; Filho, W.L.; Trevisan, M.; Salvia, A.L.; Santini, É. The role of science and technology parks in meeting the sustainable development goals (importance of sustainability for the STPs). Discov. Sustain. 2025, 6, 842. [Google Scholar] [CrossRef]
- Sharma, R.; Rallapalli, S.; Magner, J. Optimizing water-efficient agriculture: Evaluating the sustainability of soil management and irrigation synergies using fuzzy extent analysis. Sci. Rep. 2025, 15, 29382. [Google Scholar] [CrossRef]
- Madin, M.; Nelson, K.; Sanderson, M.; Moley, L. A synthesis of factors influencing sustainable agriculture practices adoption among rural farmers: A scoping review. J. Rural Stud. 2025, 120, 103853. [Google Scholar] [CrossRef]
- Vos, C.; Don, A.; Prietz, R.; Heidkamp, A.; Freibauer, A. Field-based soil-texture estimates could replace laboratory analysis. Geoderma 2016, 267, 215–219. [Google Scholar] [CrossRef]
- Kumar, N.; Kaur, B.; Sharma, D.; Korpole, S.; Shukla, S.; Bhardwaj, P.; Saxena, S. Impact of altitudinal variations on plant growth dynamics, nutritional composition, and free living rhizospheric N2 fixing bacterial community of Eruca sativa. Sci. Rep. 2025, 15, 13839. [Google Scholar] [CrossRef] [PubMed]
- Yang, H.; Wang, D.; Pan, W.; Jiang, C.; Gao, W.; Luo, X.; Tu, Z. MicroGraphBERT: Soil microbial gene sequence classification via fusing taxonomic hierarchies and DNABERTbased contextual embeddings. Intell. Robot. 2025, 5, 541. [Google Scholar] [CrossRef]
- Gopi, P.S.S.; Karthikeyan, M. Multimodal machine learning based crop recommendation and yield prediction model. Intell. Autom. Soft Comput. 2023, 36, 313–326. [Google Scholar] [CrossRef]
- Zhang, X.; Xu, Y.; Liao, H. BiFusionNet: A lightweight model for detecting Red Turpentine Beetle infestation in pine trees. Ecol. Inform. 2025, 91, 103403. [Google Scholar] [CrossRef]
- Naik, N.S.; Chaubey, H.K. Weed detection and classification in sesame crops using region-based convolution neural networks. Neural Comput. Appl. 2024, 36, 18961–18977. [Google Scholar] [CrossRef]
- Arslanova, L.; Hese, S.; Fölsch, M.; Scheibler, F.; Schmullius, C. Assessing data and sample complexity in unmanned aerial vehicle imagery for agricultural pattern classification. Smart Agric. Technol. 2025, 10, 100799. [Google Scholar] [CrossRef]
- Bhat, S.A.; Hussain, I.; Huang, N.F. Soil suitability classification for crop selection in precision agriculture using GBRT-based hybrid DNN surrogate models. Ecol. Inform. 2023, 75, 102109. [Google Scholar] [CrossRef]
- Rajak, R.K.; Pawar, A.; Pendke, M.; Shinde, P.; Rathod, S.; Devare, A. Crop recommendation system to maximize crop yield using machine learning technique. Int. Res. J. Eng. Technol. 2017, 4, 950–953. [Google Scholar]
- Rajest, S.S.; Suman, S.; Priscila, R.S.; Regin, T.; Shynu, T.; Steffi, R. Application of machine learning to the process of crop selection based on land dataset. Int. J. Orange Technol. 2023, 5, 91–112. [Google Scholar]
- Madhu, S.; Prakash, A.J. An advanced crop recommendation system for empowering agriculture using AI & cloud computing. In AIP Conference Proceedings; AIP Publishing: Melville, NY, USA, 2025; Volume 3298, p. 020037. [Google Scholar] [CrossRef]
- Nawaz, M.; Babar, M.I.K. IoT and AI for smart agriculture in resource-constrained environments: Challenges, opportunities and solutions. Discov. Internet Things 2025, 5, 24. [Google Scholar] [CrossRef]
- Shahab, H.; Naeem, M.; Iqbal, M.; Aqeel, M.; Ullah, S.S. IoT-driven smart agricultural technology for real-time soil and crop optimization. Smart Agric. Technol. 2025, 10, 100847. [Google Scholar] [CrossRef]
- Lahari, S.A.; Kumawat, N.; Amreen, K.; Ponnalagu, R.N.; Goel, S. IoT integrated and deep learning assisted electrochemical sensor for multiplexed heavy metal sensing in water samples. npj Clean Water 2025, 8, 10. [Google Scholar] [CrossRef]
- Li, J.; Ke, T.; Yue, F.; Wang, N.; Guo, K.; Mei, L.; Song, Y. A cross-crop and cross-regional generalized deep learning framework for intelligent disease detection and economic decision support in horticulture. Horticulturae 2025, 11, 1397. [Google Scholar] [CrossRef]
- Prashanth, J.S.; Bala Krishna, G.; Krishna Prasad, A.V.; Ravinder Rao, P. Smart farming revolution: A cutting-edge review of deep learning and IoT innovations in agriculture. Oper. Res. Forum 2025, 6, 35. [Google Scholar] [CrossRef]
- Bao, W.; Su, W.; Zhao, X.; Zhuang, J. A study on short-term vegetable price prediction based on the CNN-LSTM-Attention model. Discov. Food 2025, 5, 176. [Google Scholar] [CrossRef]
- Dhouibi, M.; Salem, A.K.B.; Saoud, S.B. Optimization of CNN model for image classification. In 2021 IEEE International Conference on Design & Test of Integrated Micro & Nano-Systems (DTS); IEEE: New York, NY, USA, 2021; pp. 1–6. [Google Scholar]
- Xu, H.; Ediger, D.; Sharifi, M. Horticultural practices in early spring to mitigate the adverse effect of low temperature on fruit set in ‘Lapins’ sweet cherry. Plants 2023, 12, 468. [Google Scholar] [CrossRef] [PubMed]
- Yang, D.; Cao, B.; Qu, S.; Lu, F.; Gu, S.; Chen, G. Retrieve-then-compare mitigates visual hallucination in multi-modal large language models. Intell. Robot. 2025, 5, 248–275. [Google Scholar] [CrossRef]
- Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
- Elngar, A.A.; Arafa, M.; Fathy, A.; Moustafa, B.; Mahmoud, O.; Shaban, M.; Fawzy, N. Image classification based on CNN: A survey. J. Cybersecur. Inf. Manag. 2021, 6, 18–50. [Google Scholar] [CrossRef]
- Hosen, M.B.; Islam, M.R.; Tahera-Tun-Humayra, U.; Sharker, R.; Kader, Z.; Aziz, M.T.; Tofiquzzaman, M. Assessing land suitability for dragon fruit cultivation in Bangladesh: A GIS-based AHP approach. Smart Agric. Technol. 2025, 12, 101241. [Google Scholar] [CrossRef]
- Lee, Y.H.; Sang, W.G.; Baek, J.K.; Kim, J.H.; Shin, P.; Seo, M.C.; Cho, J.I. The effect of concurrent elevation in CO2 and temperature on the growth, photosynthesis, and yield of potato crops. PLoS ONE 2020, 15, e0241081. [Google Scholar] [CrossRef]
- Valfré-Giorello, T.A.; Torres, R.C.; Navarro-Ramos, S.E.; Hensen, I.; Renison, D. Enhancing the performance of native tree plantings in a seasonally dry mountain forest: The effects of elevation, irrigation and herbaceous cover. Restor. Ecol. 2025, 33, e70082. [Google Scholar] [CrossRef]
- Sathiyamurthi, S.; Youssef, Y.M.; Gobi, R.; Ravi, A.; Alarifi, N.; Sivasakthi, M.; Saqr, A.M. Optimal land selection for agricultural purposes using hybrid Geographic Information System–Fuzzy Analytic Hierar- chy Process–Geostatistical approach in Attur Taluk, India: Synergies and trade-offs among sustainable development goals. Sustainability 2025, 17, 809. [Google Scholar] [CrossRef]
- Matshidiso. Soil Types [Data Set]. Kaggle. 2021. Available online: https://www.kaggle.com/datasets/matshidiso/soil-types (accessed on 26 September 2025).
- Satpathy, P. Soil Types Image Dataset [Data Set]. Kaggle. 2020. Available online: https://www.kaggle.com/datasets/prasanshasatpathy/soil-types (accessed on 25 September 2025).
- Sharma, S. Crop Recommendation Dataset [Data Set]. Kaggle. 2020. Available online: https://www.kaggle.com/datasets/siddharthss/crop-recommendation-dataset (accessed on 1 October 2025).
- Roboflow Universe. Crop Recommendation—Soil-Type Images [Data Set]. Available online: https://universe.roboflow.com/crop-recomendation-wfyn7/soil-type-ladmq/browse (accessed on 25 September 2025).
- Indian Council of Food and Agriculture (ICFA). Indian Council of Food and Agriculture. Available online: https://www.icfa.org.in/ (accessed on 1 July 2025).
- Humanitarian Data Exchange. Lebanon Agriculture Datasets. Available online: https://data.humdata.org (accessed on 1 July 2025).
- Oduro, C.; Lim Kam Sian, K.T.C.; Hagan, D.F.T.; Babaousmail, H.; Ayugi, B.O.; Wu, Y.; Wu, N. The influence of land surface temperature on Ghana’s climate variability and implications for sustainable development. Sci. Rep. 2025, 15, 2595. [Google Scholar] [CrossRef]
- Matlala, F.L.; Fourie, H.; Haddad, W.; De Waele, D.; Daneel, M.S. Prevalence of plant-parasitic nematodes in nethouse tomato production in Limpopo Province, South Africa, and relationships with physico-chemical soil properties. J. Plant Dis. Prot. 2025, 132, 140. [Google Scholar] [CrossRef]
- U.S. Department of Agriculture, Foreign Agricultural Service. Crop Calendar—Europe. USDA FAS. Available online: https://ipad.fas.usda.gov/rssiws/al/crop_calendar/europe.aspx (accessed on 10 December 2025).
- Agriculture and Agri-Food Canada. ISO 19131 Extreme Weather Indices: Heat—Data Product Specification (Revision A). Government of Canada. 2018. Available online: https://open.canada.ca/en/open-government-licence-canada (accessed on 15 November 2025).
- National Trust. Guide to Seasonal Food. Available online: https://www.nationaltrust.org.uk/discover/gardening-tips/guide-to-seasonal-food (accessed on 18 December 2025).
- Investment Development Authority of Lebanon. Annual Calendar: Fruits Vegetables’ Production in Lebanon. Available online: https://investinlebanon.gov.lb/Content/uploads/SideBlock/180709040825141~ANNUAL%20CALENDAR%20FRUITS%20AND%20VEGETABLES.pdf (accessed on 25 September 2025).
- Department of Agriculture, Fisheries and Forestry. Australian Crop Report: September 2025 (No. 215). Australian Bureau of Agricultural and Resource Economics and Sciences. 2025. Available online: https://www.agriculture.gov.au/abares/research-topics/agricultural-outlook/australian-crop-report/september-2025 (accessed on 28 December 2025).
- Yusuf, R.; Santari, P.T.; Amin, M.; Nugroho, W.A.; Hindarwati, Y. Optimizing Dryland Agriculture: Intercrop- ping Corn and Superior Rice Varieties in Maluku, Indonesia. Int. J. Agric. Biosci. 2025, 14, 648–656. [Google Scholar]
- Kukreja, S.; Kumar, T.; Purohit, A.; Dasgupta, A.; Guha, D. A literature survey on open source large language models. In Proceedings of the 2024 7th International Conference on Computers in Management and Business, Singapore, 12–14 January 2024. [Google Scholar]
- Alizadeh, M.; Kubli, M.; Samei, Z.; Dehghani, S.; Zahedivafa, M.; Bermeo, J.D.; Korobeynikova, M.; Gilardi, F. Open-source LLMs for text annotation: A practical guide for model setting and fine-tuning. J. Comput. Soc. Sci. 2025, 8, 17. [Google Scholar] [CrossRef] [PubMed]





| N (kg/ha) | P (kg/ha) | K (kg/ha) | Temp. (°C) | Humidity | pH | Rainfall (mL) | Crop Type | Soil Type |
|---|---|---|---|---|---|---|---|---|
| 101 | 17 | 47 | 29.5 | 94.7 | 6.2 | 26.3 | muskmelon | sandy |
| 98 | 8 | 51 | 26.2 | 86.5 | 6.3 | 49.4 | watermelon | sandy loam |
| 59 | 62 | 49 | 43.4 | 93.4 | 6.9 | 114.8 | papaya | sandy |
| 44 | 60 | 55 | 34.3 | 90.6 | 6.8 | 98.5 | papaya | sandy |
| 30 | 137 | 200 | 22.9 | 90.7 | 5.6 | 118.6 | apple | loamy |
| 18 | 19 | 27 | 27.7 | 52.3 | 4.8 | 94.1 | mango | sandy loam |
| 35 | 145 | 195 | 22.1 | 94.6 | 6.2 | 110.9 | apple | loamy |
| 16 | 15 | 42 | 19.7 | 89.1 | 6.9 | 108.5 | pomegranate | loamy |
| 70 | 38 | 35 | 24.4 | 79.3 | 7.0 | 164.3 | jute | clay loam |
| 25 | 12 | 26 | 28.6 | 95.7 | 6.4 | 134.8 | coconut | sandy loam |
| Case Study | Recommended Crops | Mean ASS |
|---|---|---|
| South Africa | Maize, Sunflower, Sorghum, Sweet Potatoes, Soybean, Groundnuts | 4.5 |
| Canada | Peas, Spinach, Lettuce, Radish, Carrot, Onion | 4.46 |
| United Kingdom | Carrot, Beetroot, Lettuce, Radish, Spinach, French Beans | 4.71 |
| Lebanon | Tomato, Pepper, Cucumber, Melon, Eggplant, Beans, Zucchini | 4.96 |
| Turkmenistan | Melon, Sunflower, Millet, Sorghum, Sesame, Sweet Potatoes, Chickpeas | 4.58 |
| Australia | Canola, Lupins, Wheat, Barley, Oats | 3.76 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Youssef, S.; Gamage, K.; Zablith, F. An Integrated AI Framework for Crop Recommendation. Horticulturae 2026, 12, 416. https://doi.org/10.3390/horticulturae12040416
Youssef S, Gamage K, Zablith F. An Integrated AI Framework for Crop Recommendation. Horticulturae. 2026; 12(4):416. https://doi.org/10.3390/horticulturae12040416
Chicago/Turabian StyleYoussef, Shadi, Kumari Gamage, and Fouad Zablith. 2026. "An Integrated AI Framework for Crop Recommendation" Horticulturae 12, no. 4: 416. https://doi.org/10.3390/horticulturae12040416
APA StyleYoussef, S., Gamage, K., & Zablith, F. (2026). An Integrated AI Framework for Crop Recommendation. Horticulturae, 12(4), 416. https://doi.org/10.3390/horticulturae12040416

