Comparative Performance Analysis of Machine Learning and Deep Learning Models for IoT-Based Crop Yield Prediction

Comparative Performance Analysis of Machine Learning and Deep Learning Models for IoT-Based Crop Yield Prediction

Authors

  • Azeem Ayaz Mirani Assistant Professor, Department of IT, Shaheed Benazir Bhutto University, Shaheed Benazir Abad, Pakistan
  • Nimra Memon Lecturer, Department of Computer Science, Government Girls Degree College, Nawabshah, Pakistan
  • MR. Imran Khan Jatoi Lecturer, Department of Statistics, Shaheed Benazir Bhutto University, Shaheed Benazir Abad, Pakistan
  • Shahid Iqbal Assistant Professors, Department of Computer Engineering, Bahauddin Zakariya University, Multan, Pakistan

Keywords:

yield prediction, Smart agriculture, machine learning and deep learning

Abstract

The environmental uncertainty and the nonlinear behaviour of IoT-sensor data nature influence the crop yield prediction. In Nawab Shah, this region requires a model which behaves capturing complex patterns. This study provides a deep learning and machine learning comparative analysis, whereas data is obtained from the IoT-based sensor data; the dataset parameters include temperature, humidity, smoke, and light intensity. The dataset has more than 35000 time-stamped samples, collected with the five seconds delay in each data reading.  These observations are processed by applying data normalisation, outlier detection and cleaning, and min-max normalisation. The statistical data validation is obtained by applying RMSE, MAE, MSE, Pearson’s correlation and confusion matrix. The Bayesian-optimised random forest consistently achieved outstanding performance with the highest accuracy, recall, and precision with 0.33 F1-Score. The smoke and humidity are the significance factor from the obtained results analysis for the yield prediction. The classification ability is confirmed by the confusion matrix with the ability as average, good and poor classes of the yield. Furthermore, the finding shows that the optimised random forest performed better than all in the environmental data for the prediction of yield. This is also based on the same features as smoke and humidity; this methodology and approach provide a reliable and low-complex framework with a real-time precision agriculture system for decision-making. LSTM models, along with a variant of Random Forest, give results of 0.27 intermediate range value, which recommends that the very important patterns are captured, but are not effective for the top models.

References

Al-Sammak, K. A., Al-Gburi, S. H., Marghescu, I., Drăgulinescu, A. M. C., Marghescu, C., Martian, A., Al-Sammak, N. A. H., Suciu, G., & Alheeti, K. M. A. (2025). Optimising IoT Energy Efficiency: Real-Time Adaptive Algorithms for Smart Meters with LoRaWAN and NB-IoT †. Energies, 18(4). https://doi.org/10.3390/en18040987

Arslan, M., Javeria, F., Noor, D., Chang, A. H., Channa, Z., & Nabi, F. (2023). Smart Agricultural Genetic Divergence Pattern Estimation of Morphological Traits in Cotton. VFAST Transactions on Software Engineering, 11(2), 131–139. https://doi.org/10.21015/vtse.v11i2.1477

Dayoub, M., Shnaigat, S., Tarawneh, R. A., Al-Yacoub, A. N., Al-Barakeh, F., & Al-Najjar, K. (2024). Enhancing Animal Production through Smart Agriculture: Possibilities, Hurdles, Resolutions, and Advantages. Ruminants, 4(1), 22–46. https://doi.org/10.3390/ruminants4010003

Et-taibi, B., Abid, M. R., Boufounas, E. M., Morchid, A., Bourhnane, S., Abu Hamed, T., & Benhaddou, D. (2024). Enhancing water management in smart agriculture: A cloud and IoT-based smart irrigation system. Results in Engineering, 22(March), 102283. https://doi.org/10.1016/j.rineng.2024.102283

Haghi Kashani, M., Madanipour, M., Nikravan, M., Asghari, P., & Mahdipour, E. (2021). A systematic review of IoT in healthcare: Applications, techniques, and trends. Journal of Network and Computer Applications, 192(May), 103164. https://doi.org/10.1016/j.jnca.2021.103164

Hernández Hernández, G. C., Gómez Gómez, J., & Jiménez-Cabas, J. (2025). Predictive Models Based on Artificial Intelligence to Estimate Crop Yield: A Literature Review. Agriculture (Switzerland), 15(23), 1–31. https://doi.org/10.3390/agriculture15232438

Karim, S., Rahu, M. A., Ahmed, A., & Ayaz, A. (2018). Energy Harvesting for Water Quality Monitoring using Floating Sensor Networks : A Generic Framework. 1(2), 19–31.

Klein, J., Waller, R., Pirk, S., Pałubicki, W., Tester, M., & Michels, D. L. (2024). Synthetic data at scale: a development model to efficiently leverage machine learning in agriculture. Frontiers in Plant Science, 15(September), 1–16. https://doi.org/10.3389/fpls.2024.1360113

Memon, S. R., Mirani, A., Qabulio, M., Ejaz Ali, Q., & Jatoi, I. K. (2025). Modelling and Up-Gradation of Concentric Circular Shaped Patch Antenna to Array Antenna with the Improved Performance for 5G Millimeter- Wave Communication. Pakistan Journal of Engineering, Technology and Science, 13(1), 121–133. https://doi.org/10.22555/pjets.v13i1.1286

Mirani, A. A., Muhammad, E., Memon, S., Chohan, R., Sodhar, I. N., & Rahu, M. A. (2021). Irrigation scheduling, water pollution monitoring in IoT : A Review. 10. https://www.researchgate.net/profile/Azeem-Mirani/publication/354646929_Irrigation_and_Drainage_Systems_Engineering_Irrigation_sc

heduling_water_pollution_monitoring_in_IoT_A_Review/links/6144116aa609b152aa157bcf/Irrigation-and-Drainage-Systems-Engineering

Mirani, A. A., Zaman, S., Chohan, R., Siraj, S., & Lakho, S. (2023). A Review of the Internet of Things and Deep Learning in Agriculture: A Smart Agriculture Perspective. Journal of Hunan University Natural Sciences, 50(10). https://doi.org/10.55463/issn.1674-2974.50.10.18

Muruganantham, P., Wibowo, S., Grandhi, S., Samrat, N. H., & Islam, N. (2022). A Systematic Literature Review on Crop Yield Prediction with Deep Learning and Remote Sensing. Remote Sensing, 14(9). https://doi.org/10.3390/rs14091990

Nawaz, M., & Babar, M. I. K. (2025). IoT and AI for smart agriculture in resource-constrained environments: challenges, opportunities and solutions. Discover Internet of Things, 5(1). https://doi.org/10.1007/s43926-025-00119-3

Pallavi, G., & Prasanna Kumar, R. (2025). Quantum natural language processing and its applications in bioinformatics: a comprehensive review of methodologies, concepts, and future directions. Frontiers in Computer Science, 7(February). https://doi.org/10.3389/fcomp.2025.1464122

Saini, A., Dhuriya, G., Jain, A., & Mishra, A. (2024). Machine Learning Algorithms and Applications. Artificial Intelligence for Precision Agriculture, 1, 1–31. https://doi.org/10.1201/9781003504900-1

Shaikh, U. R. (2019). A Review of Agro-Industry in IoT : Applications and Challenges. 17(1), 28–33.

Yang, Y., Lin, M., Lin, Y., Zhang, C., & Wu, C. (2025). A Survey of Blockchain Applications for Management in Agriculture and Livestock Internet of Things. Future Internet, 17(1), 1–54. https://doi.org/10.3390/fi17010040

Zafat, I., Iqbal, A., Khan, M., Ahmad, N., & Ali Alshara, M. (2025). GenIIoT: Generative Models Aided Proactive Fault Management in Industrial Internet of Things. Information (Switzerland), 16(12), 1–27. https://doi.org/10.3390/info16121114

Downloads

Published

06-05-2026

How to Cite

Azeem Ayaz Mirani, Nimra Memon, MR. Imran Khan Jatoi, & Shahid Iqbal. (2026). Comparative Performance Analysis of Machine Learning and Deep Learning Models for IoT-Based Crop Yield Prediction. International Journal of Agriculture Innovations and Cutting-Edge Research (HEC Recognised), 4(2), 84–95. Retrieved from https://jai.bwo-researches.com/index.php/jwr/article/view/230
Loading...