Integrated Iot Approaches for Crop Recommendation and Yield-Prediction Using Machine-Learning
Abstract
:1. Introduction
2. Literature Review
2.1. Traditional Agriculture Challenges
- Limited Ability to Make Precise Decisions: Conventional agricultural practices frequently depend more on broad strategies than on accurate, data-driven decision-making. Farmers may evenly administer irrigation, herbicides, and fertilizers throughout whole fields, which might have a negative impact on the environment and result in inefficient use of resources.
- Environment and Climate: The weather and climate, which can be erratic and turbulent, play a major role in conventional agriculture [11]. Droughts, floods, or extremely high temperatures are examples of unfavorable weather phenomena that can cause crop failures, production losses, and financial instability for farmers.
- Difficulties with Disease Management: Traditional methods of controlling pests and diseases may mostly rely on chemical inputs, which can pollute the environment and disturb ecosystems. Over time, pests and illnesses may become resistant to pesticides and herbicides, requiring greater chemical use and raising production costs.
- Labor Lack: Manual work is needed for labor-intensive chores including planting, harvesting, and weed management in traditional agricultural methods. There is a growing labor shortage in agriculture due to the aging of the agricultural workforce, and the movement towards urbanization is supported by various sources. The labor shortage in agriculture is a significant issue, exacerbated by the aging agricultural workforce and the trend of younger generations moving to urban areas for better opportunities. One source discusses how the American Farm Bureau Federation highlights the annual need to fill over 2.4 million farm jobs, with a drastic decline in available workers each year.
2.2. Role of IoT in Agriculture
- Soil Monitoring: An essential component of contemporary agriculture, soil monitoring allows farmers to evaluate the fertility, moisture content, and overall health of their soil in order to maximize crop productivity. The latest technologies tackle consumption augmented with complexity plus the effectiveness of soil monitoring [16]. Fields may be equipped with internet-connected soil sensors to continually monitor important characteristics including temperature, fertilizer concentrations, pH-levels, and moisture content. Growers may customize the real time data from these instruments to make knowledgeable choices regarding soil management, fertilization, and irrigation techniques. Farmers may reduce nutrient leakage, prevent flooding or submerging, and guarantee ideal growth conditions for crops by closely monitoring soil conditions from a distance. Additionally, soil monitoring is essential to sustainable agricultural operations since it makes agricultural precision techniques possible and reduces environmental effect.
- Machines for routines operations: Regular tasks like planting, spraying, and harvesting frequently need a large amount of time and hard effort. These procedures have been completely transformed by the incorporation of IoT technologies, which have made it possible to create autonomous and intelligent machinery. With sensors, GPS units, and networking capabilities, agricultural equipment that is Internet of Things (IoT) enabled may carry out normal tasks more accurately, efficiently, and independently [17]. With minimum human interaction, autonomous tractors can travel fields and carry out chores like cultivating, sowing, and plowing, maximizing resource efficiency and lowering labor costs. Analogously, IoT-enabled harvesting apparatus can precisely detect ripe crops, modify harvesting methods, and maximize yield results. IoT solutions simplify agricultural processes, increase production, and free up farmers’ time to concentrate on more critical activities by automating mundane operations.
- Water Management: IoT technology provides creative approaches to agricultural water management, enabling growers to track, save, and maximize water use all through the producing season. IoT technologies enable farmers to remotely monitor and operate irrigation systems, allowing them to adjust irrigation timings and settings by means of computers or mobile devices at any location. Farmers may increase complete farmhouse sustainability, preserve aquatic resources, and upsurge crop yields by putting IoT-driven water management systems into practice.
- Drone Monitoring: With drone surveillance, farmers can now see their fields and crops from the air, making it a crucial tool for precision agriculture. Drones with cameras, sensors, and GPS systems are able to gather high-quality data and images that offer important insights into crop health, growth trends, insect infestations, and environmental factors [18]. Drones with Internet of Things capabilities are able to fly by themselves or under remote control, taking precise aerial photos of fields and creating 3D models and maps. With this data, farmers can monitor crop progress, pinpoint problem areas, and make well-versed verdicts regarding irrigation, impregnation, and pest running. Early harvest stressor identification made possible by drone surveillance enables prompt responses to minimize yield losses and maximize farm output. Drones can also swiftly and effectively monitor vast agricultural regions.
2.3. Machine Learning in Crop System
2.4. Agriculture Challenges and Limitations
3. Research Methodology
3.1. Architecture of the System
3.2. IoT and ML Architecture
3.3. Data Collection and Preprocessing
3.4. Workflow Algorithms
Algorithm 1: User Workflow for Agricultural Recommendations |
1. Initialization 2. if User is Logged in or Signed up then 3. if User selects Crop Recommendation then 4. Power up the device 5. Send data to backend for crop recommendation 6. Output: Display suitable crop name 7. end 8. if User selects Fertilizer Recommendation then 9. Power up the device 10. Send data to backend for fertilizer recommendation 11. Input: Select crop name and specify area 12. Output: Display recommended fertilizer name 13. end 14. if User selects Disease Detection then 15. Open camera 16. Upload image for analysis 17. Output: Display detected disease name and relevant information 18. end 19. if User selects Calculate Fertilizer then 20. Input: Fertilizer name, selected nutrient, rate per 1000 sqft, and area 21. Compute: Calculate required amount of fertilizer 22. Output: Display calculated result 23. end 24. else 25. Output: Prompt user to log in or sign up 26. end |
3.5. Software Structure Design
- Power Source: Supplies power to the entire circuit. The power source is connected to the step-down transformer to convert the voltage to a suitable level for the other components.
- Step-Down Transformer: Converts the high voltage from the power source to a lower voltage suitable for the ESP32 and other sensors. The output of the step-down transformer is connected to the ESP32.
- ESP32:
- -
- Acts as the central processing unit of the system.
- -
- Receives power from the step-down transformer.
- -
- Connects to the RS485 module for communication.
- -
- Interfaces with the Arduino to relay information and control signals.
- RS485: A communication module used for long-distance and noise-immune data transmission. Connected to the ESP32 to facilitate data exchange between the ESP32 and other devices.
- Arduino:
- Serves as an intermediary microcontroller to manage sensor data.
- Connected to the RS485 for data reception and transmission.
- Interfaces with both the NPK sensor and the capacitive moisture sensor to gather environmental data.
- NPK Sensor:
- Measures the nutrient levels in the soil (Nitrogen, Phosphorus, Potassium).
- Connected to the Arduino for data collection.
- Capacitive Moisture Sensor:
- -
- Measures soil moisture levels.
- -
- Connected to the Arduino to provide moisture data.
The connections are as follows:- Power Source to Step-Down Transformer: Direct connection to provide initial voltage.
- Step-Down Transformer to ESP32: ** Provides the necessary operating voltage for the ESP32.
- ESP32 to RS485: ** Data lines connected for communication.
- RS485 to Arduino: ** Communication lines connected for data exchange.
- Arduino to NPK Sensor: ** Sensor data lines connected for nutrient measurement.
- Arduino to Capacitive Moisture Sensor: ** Sensor data lines connected for moisture measurement.
3.6. Test and Results Evaluations
3.7. Model Comparisons
3.8. Performance Comparison of Soil Moisture Measurement Methods
4. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Apat, S.K.; Mishra, J.; Raju, K.S.; Padhy, N. The robust and efficient Machine learning model for smart farming decisions and allied intelligent agriculture decisions. J. Integr. Sci. Technol. 2022, 10, 139–155. [Google Scholar]
- Bakthavatchalam, K.; Karthik, B.; Thiruvengadam, V.; Muthal, S.; Jose, D.; Kotecha, K.; Varadarajan, V. IoT framework for measurement and precision agriculture: Predicting the crop using machine learning algorithms. Technologies 2022, 10, 13. [Google Scholar] [CrossRef]
- Bhattacharya, S.; Pandey, M. An Integrated Decision-Support System for Increasing Crop Yield Based on Progressive Machine Learning and Sensor Data. Int. J. Intell. Syst. Appl. Eng. 2023, 11, 272–284. [Google Scholar]
- Bhoi, A.; Nayak, R.P.; Bhoi, S.K.; Sethi, S.; Panda, S.K.; Sahoo, K.S.; Nayyar, A. IoT-IIRS: Internet of Things based intelligent-irrigation recommendation system using machine learning approach for efficient water usage. PeerJ Comput. Sci. 2021, 7, e578. [Google Scholar] [CrossRef]
- Bhavanandam, S. Wcp: Weather-based crop yield prediction using machine learning and big data analytics. Technology 2022, 3, 4. [Google Scholar]
- Champaneri, M.; Chachpara, D.; Chandvidkar, C.; Rathod, M. Crop Yield Prediction Using Machine Learning. Int. J. Sci. Res. 2020, 9, 2. [Google Scholar]
- Chlingaryan, A.; Sukkarieh, S.; Whelan, B. Machine learning approaches for crop yield prediction and nitrogen status estimation in precision agriculture: A review. Comput. Electron. Agric. 2018, 151, 61–69. [Google Scholar] [CrossRef]
- Durai, S.K.S.; Shamili, M.D. Smart farming using machine learning and deep learning techniques. Decis. Anal. J. 2022, 3, 100041. [Google Scholar] [CrossRef]
- Elbasi, E.; Zaki, C.; Topcu, A.E.; Abdelbaki, W.; Zreikat, A.I.; Cina, E.; Shdefat, A.; Saker, L. Crop prediction model using machine learning algorithms. Appl. Sci. 2023, 13, 9288. [Google Scholar] [CrossRef]
- Gupta, S.; Geetha, A.; Sankaran, K.S.; Zamani, A.S.; Ritonga, M.; Raj, R.; Ray, S.; Mohammed, H.S. Machine learning-and feature selection-enabled framework for accurate crop yield prediction. J. Food Qual. 2022, 2022, 6293985. [Google Scholar] [CrossRef]
- Ikram, A.; Aslam, W.; Aziz, R.H.H.; Noor, F.; Mallah, G.A.; Ikram, S.; Ahmad, M.S.; Abdullah, A.M.; Ullah, I. Crop Yield Maximization Using an IoT-Based Smart Decision. J. Sens. 2022, 2022, 2022923. [Google Scholar] [CrossRef]
- Maheswary, A.; Nagendram, S.; Kiran, K.U.; Ahammad, S.H.; Priya, P.P.; Hossain, M.A.; Rashed, A.N.Z. Intelligent Crop Recommender System for Yield Prediction Using Machine Learning Strategy. J. Inst. Eng. Ser. B 2024, 105, 979–987. [Google Scholar] [CrossRef]
- Satterthwaite, D.; Mcgranahan, G.; Tacoli, C. Urbanization and its implications for food and farming. Philos. Trans. R. Soc. Ser. B 2010, 365, 2809–2820. [Google Scholar] [CrossRef]
- Mekonnen, Y.; Namuduri, S.; Burton, L.; Sarwat, A.; Bhansali, S. Machine learning techniques in wireless sensor network based precision agriculture. J. Electrochem. Soc. 2019, 167, 037522. [Google Scholar] [CrossRef]
- Pande, S.M.; Ramesh, P.K.; Anmol, A.; Aishwarya, B.R.; Rohilla, K.; Shaurya, K. Crop recommender system using machine learning approach. In Proceedings of the 2021 5th International Conference on Computing Methodologies and Communication (ICCMC), Erode, India, 8–10 April 2021; IEEE: New York, NY, USA, 2021; pp. 1066–1071. [Google Scholar]
- American Farm Bureau Federation. Agriculture Labor Shortages Pose Long-Term Challenges. In Proceedings of the American Farm Bureau Federation, Atlanta, GA, USA, 7–12 January 2022. [Google Scholar]
- Parameswari, P.; Rajathi, N.; Harshanaa, K.J. Machine learning approaches for crop recommendation. In Proceedings of the 2021 International Conference on Advancements in Electrical, Electronics, Communication, Computing and Automation (ICAECA), Coimbatore, India, 8–9 October 2021; IEEE: New York, NY, USA, 2022; pp. 1–5. [Google Scholar]
- Priya, P.K.; Yuvaraj, N. A survey on deep learning based IoT approach for precision crop suggestion. Int. J. Res. Appl. Sci. Eng. Technol. 2019, 7, 389–395. [Google Scholar] [CrossRef]
- Rashid, M.; Bari, B.S.; Yusup, Y.; Kamaruddin, M.A.; Khan, N. A comprehensive review of crop yield prediction using machine learning approaches with special emphasis on palm oil yield prediction. IEEE Access 2021, 9, 63406–63439. [Google Scholar] [CrossRef]
- Rani, S.; Mishra, A.K.; Kataria, A.; Mallik, S.; Qin, H. Machine learning-based optimal crop selection system in smart agriculture. Sci. Rep. 2023, 13, 15997. [Google Scholar] [CrossRef]
- Rehman, A.; Liu, J.; Keqiu, L.; Mateen, A.; Yasin, M.Q. Machine learning prediction analysis using IoT for smart farming. Int. J. 2020, 8, 1–6. [Google Scholar]
- Rezk, N.G.; Hemdan, E.E.D.; Attia, A.F.; El-Sayed, A.; El-Rashidy, M.A. An efficient IoT based smart farming system using machine learning algorithms. Multimed. Tools Appl. 2021, 80, 773–797. [Google Scholar] [CrossRef]
- Reshma, R.; Sathiyavathi, V.; Sindhu, T.; Selvakumar, K.; SaiRamesh, L. IoT based classification techniques for soil content analysis and crop yield prediction. In Proceedings of the 2020 Fourth International Conference on I-SMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC), Palladam, India, 7–9 October 2020; IEEE: New York, NY, USA, 2020; pp. 156–160. [Google Scholar]
- Reddy, G.V.; Reddy, M.V.K.; Spandana, K.; Subbarayudu, Y.; Albawi, A.; Chandrashekar, R.; Singla, A.; Praveen, P. Precision farming practices with data-driven analysis and machine learning-based crop and fertiliser recommendation system. In Proceedings of the E3S Web of Conferences, Yogyakarta, Indonesia, 12–13 December 2023; EDP Sciences: Les Ulis, France, 2024; Volume 507, p. 01078. [Google Scholar]
- Senapaty, M.K.; Ray, A.; Padhy, N. IoT-enabled soil nutrient analysis and crop recommendation model for precision agriculture. Computers 2023, 12, 61. [Google Scholar] [CrossRef]
- Sivakumar, R.; Prabadevi, B.; Velvizhi, G.; Muthuraja, S.; Kathiravan, S.; Biswajita, M.; Madhumathi, A. Internet of things and machine learning applications for smart precision agriculture. IoT Appl. Comput. 2022, 2022, 135–165. [Google Scholar]
- Sutha, K.; Indumathi, N.; Shankari, S. Recommending and Predicting Crop Yield using Smart Machine Learning Algorithm (SMLA). Curr. Agric. Res. J. 2023, 11, 686–694. [Google Scholar] [CrossRef]
- Van Klompenburg, T.; Kassahun, A.; Catal, C. Crop yield prediction using machine learning: A systematic literature review. Comput. Electron. Agric. 2020, 177, 105709. [Google Scholar] [CrossRef]
- Kolipaka, V.R.R.; Namburu, A. An automatic crop yield prediction framework designed with two-stage classifiers: A meta-heuristic approach. Multimed. Tools Appl. 2024, 83, 28969–28992. [Google Scholar] [CrossRef]
Application | Description |
---|---|
Crop Monitoring | Real-time monitoring of crop health, growth trends, and environmental conditions is achieved by the analysis of sensor data, drone footage, and satellite pictures by machine learning algorithms. |
Disease Detection | Various agricultural diseases and pest damage can be reliably identified by machine learning models that have been trained on datasets that comprise photos of both healthy and damaged plants. |
Yield Prediction | Utilizing historical data, weather forecasts, and agronomic practices, algorithmic learning algorithms create predictive models that project crop yields in the future for profitability and resource efficiency. |
Challenge | Description |
---|---|
Technical Qualifications | Many rural producers lack the technical skills needed to effectively use and maintain new technologies |
Rural Extension Services | Significant difficulties exist in providing adequate extension services to educate producers about new technologies. |
Access to Technology | Reaching technology in remote rural areas is challenging due to infrastructure and logistical issues. |
Educational Barriers | Producers with limited formal education, particularly those with minimal schooling, find it difficult to adopt and utilize new technologies. |
Training and Support | Lack of ongoing training and support for rural producers hinders the effective implementation of new technologies. |
Financial Constraints | High costs of technology and implementation can be prohibitive for small-scale producers. |
N | P | K | Temperature | Humidity | pH | Rainfall | Label |
---|---|---|---|---|---|---|---|
90 | 42 | 43 | 20.879744 | 82.002744 | 6.502985 | 202.935536 | Rice |
85 | 58 | 41 | 21.770462 | 80.319644 | 7.038096 | 226.655537 | Rice |
60 | 55 | 44 | 23.004459 | 82.320763 | 7.840207 | 263.964248 | Rice |
74 | 35 | 40 | 26.491096 | 80.158363 | 6.980401 | 242.864034 | Rice |
78 | 42 | 42 | 20.130175 | 81.604873 | 7.628473 | 262.717340 | Rice |
Task | Module | Results | No. of Attempts (M ± SD) | Task Completion Time (M ± SD) | No. of Times Help (M ± SD) |
---|---|---|---|---|---|
T1: Verify Login | SW | 100% | 1 ± 0.54 | 1.3 ± 0.44 | 0.6 ± 0.54 |
T2: Verify Crop Recommendation | HW & SW | 96% | 1 ± 0 | 3 ± 0 | 0 ± 0 |
T3: Verify Fertilizer Recommendation | HW & SW | 94% | 1 ± 0 | 3 ± 0 | 0 ± 0 |
T4: Disease Detection | SW | 100% | 1 ± 0 | 2 ± 0 | 0.4 ± 0.54 |
T5: Calculation of Fertilizer | SW | 100% | 1 ± 0 | 1.2 ± 0.44 | 0 ± 0 |
Metric | Value | ||
---|---|---|---|
Accuracy | 0.92 | ||
Precision | 0.90 | ||
Recall | 0.91 | ||
F1 Score | 0.90 | ||
Predicted Positive | Predicted Negative | ||
Actual Positive | True Positive (TP) 91 | False Negative (FN) 9 | |
Actual Negative | False Positive (FP) 10 | True Negative (TN) 1 |
Model | Accuracy | Precision | Recall | F1-Score |
---|---|---|---|---|
Light GBM Classifier | 98.90% | 99% | 99% | 99% |
Decision Tree Classifier | 98.48% | 99% | 98% | 99% |
Random Forest Classifier | 99.31% | 99% | 99% | 99% |
Logistic Regression | 94.35% | 94% | 95% | 94% |
Crops | Precision | Recalls | F1-Scores | Support |
apple | 1.00 | 1.00 | 1.00 | 31 |
banana | 1.00 | 1.00 | 1.00 | 32 |
black gram | 0.85 | 0.83 | 0.84 | 35 |
chickpea | 1.00 | 1.00 | 1.00 | 39 |
coconut | 0.94 | 1.00 | 0.97 | 30 |
coffee | 1.00 | 1.00 | 1.00 | 32 |
cotton | 0.85 | 1.00 | 0.92 | 28 |
grape | 1.00 | 1.00 | 1.00 | 33 |
jute | 0.85 | 0.90 | 0.88 | 31 |
kidney bean | 0.91 | 0.97 | 0.94 | 30 |
lentil | 0.89 | 0.92 | 0.91 | 26 |
maize | 0.96 | 0.83 | 0.89 | 29 |
mango | 0.91 | 1.00 | 0.95 | 29 |
moth bean | 0.85 | 0.85 | 0.85 | 39 |
mung bean | 1.00 | 0.97 | 0.98 | 31 |
muskmelon | 1.00 | 1.00 | 1.00 | 31 |
orange | 1.00 | 1.00 | 1.00 | 40 |
Method | Description | Performance Metrics | Comparison Results |
---|---|---|---|
Soil Moisture Meter | Device installed at various soil depths to measure soil moisture content. | Accuracy: 99%, Reliability: High | Reliable measurements with consistent results. |
Tensiometer | Measures soil water tension, indicating moisture levels indirectly. | Accuracy: ±5% of reference values | Strong correlation (r = 0.95) with our meter readings. |
Commercial Moisture Meters | Various commercial models used for measuring soil moisture. | Accuracy: Varies (generally ±10%) | Our meter performed comparably or better in terms of accuracy and consistency. |
Standard Oven Method | Soil samples are dried in an oven at 105 °C to determine moisture content by weight loss. | Accuracy: Considered as a reference method | Our meter’s measurements were within ±3% of the oven method, validating its accuracy. |
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. |
© 2024 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Bouni, M.; Hssina, B.; Douzi, K.; Douzi, S. Integrated Iot Approaches for Crop Recommendation and Yield-Prediction Using Machine-Learning. IoT 2024, 5, 634-649. https://doi.org/10.3390/iot5040028
Bouni M, Hssina B, Douzi K, Douzi S. Integrated Iot Approaches for Crop Recommendation and Yield-Prediction Using Machine-Learning. IoT. 2024; 5(4):634-649. https://doi.org/10.3390/iot5040028
Chicago/Turabian StyleBouni, Mohamed, Badr Hssina, Khadija Douzi, and Samira Douzi. 2024. "Integrated Iot Approaches for Crop Recommendation and Yield-Prediction Using Machine-Learning" IoT 5, no. 4: 634-649. https://doi.org/10.3390/iot5040028
APA StyleBouni, M., Hssina, B., Douzi, K., & Douzi, S. (2024). Integrated Iot Approaches for Crop Recommendation and Yield-Prediction Using Machine-Learning. IoT, 5(4), 634-649. https://doi.org/10.3390/iot5040028