Submitted:
11 August 2024
Posted:
13 August 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
1.1. Introduction of IoT
1.1.1. Fix Deploying
1.1.2. Deployment using copter
1.1.3. Introduction of Deep learning
- The DL needs labeled data and can handle large datasets.
- The DL required GPUs for computations because of the large architecture and the huge amount of dataset.
2. Smart Agriculture
- Next crop prediction will be based on region data, soil chemical detail dataset.
- Suggest pesticides for the disease that will require dataset of crop images
- Sensors are deployed on the fields to gather information. The sensors are related to soil that will monitor soil moisture, and other chemical properties that are important for crop growth. Environmental sensors that will monitor humidity of the field are also deployed.
- The data is gathered from sensors, stored and then analyzed. Based on that some important decisions are made by the stakeholders.
- The data gathered from the fields are huge so we need some model that can handle such a huge amount of data. So we can use DL for this. Because DL has several layers and due to complex data structures it can handle large data. DL models can be trained and based on that model working we can perform various tasks like prediction and suggestions related to crops.
- After that a system can be devised with a user interface that can be accessible to the layman. So that they can use the system to have a significant increase in crop production.
3. Literature Review
3.1. Studies IoT
3.2. Studies IoT, ML
3.3. Studies IoT, DL
| Type | Paper | Year | Contribution | Tech | Sensors | Model/Method | Accuracy |
|---|---|---|---|---|---|---|---|
| DL | [18] | 2017 | Predicting suitable crop to grow, Improve irrigation system | Deep Learning, IoT, WSN | DHT11, LM35, NTC | Feed Forward, LSTM, GRU | NA |
| [17] | 2019 | Increase food production | IoT, DL | NA | Deep RL | NA | |
| ML | [16] | 2023 | DL | NA | NA | NA | NA |
| [9] | 2022 | Calculate ETo Rate | IoT, ML | DHT 2, NodeMCU | KNN | 92% | |
| [13] | 2022 | Crop prediction using ML | ML, IoT | NA | WEKA, JRip | 98.2% | |
| [14] | 2022 | Smart agriculture and precision farming | IoT, ML, AI | NA | NA | NA | |
| [15] | 2021 | Decision support system | ML, IoT | WPART, PART | NA | 92.51% - 98.15% | |
| [11] | 2020 | Water prediction for crops | IoT, ML, Cloud | DHT11 | Decision Tree | NA | |
| [10] | 2016 | Early detection of grapes disease | ML, IoT | ADC | Hidden Markov model (HMM) | HMM perform good | |
| [12] | 2023 | Improve crop yield, Reduce irrigation wastage | ML, IoT | DHT11, ACS712, ZMPT101B AC | Decision Tree | NA |
4. Proposed Methodology
4.1. Datasets
4.2. Data Labeling
4.3. Data Augmentation
5. Data Split
6. Implemented Models
6.1. Convolutional Neural Network (CNN)

6.2. Recurrent Neural Network (RNN)
6.3. Long-Short Term Memory (LSTM)


7. Hyper-Parameter Tuning
- Sigmoid function has really good results for classification problems. And we want to classify the dataset into 0,1 on basis of fertile and non-fertile.
- Relu function is mostly not used as output layers. But it can be used in smart agriculture as it can be used to predict crop yield but still various factors can be involved.
- Tanh function is used to layout the output in a range of -1 to 1 but is similar to sigmoid.
- Elu function has really smooth results with positive and negative inputs. This will enhance the results of model as well.
8. Real-Time System
- Arduino Nano
- Node Mcu
- NPK sensor
- PH sensor
- Zigbee module
- Connecting Wires
8.1. System Detail
9. Results and Analysis
9.1. RNN
9.2. CNN
9.3. LSTM
10. Conclusion
11. Future Work
- Further we will be enhancing our lab and the model predict fertilizer after analyzing the input values from the sensors.
- Then the water system will also be integrated into this model such that motor will be automated to start and give water to the plant as well. For this we will setup some more IoT devices like temperature sensor, humidity sensor, DC motor,water pump, moisture sensor, DHT11 sensor and DS18B20.
Appendix A Appendix 1
Appendix A.1. Figure A1: RNN with Sigmoid Graph

Appendix A.2. Figure A2: RNN with ReLU Graph

Appendix A.3. Figure A3: RNN with ELU Graph

Appendix B Appendix 2
Appendix B.1. Figure B1: CNN with Sigmoid Graph

Appendix B.2. Figure B2: CNN with ReLU Graph

Appendix B.3. Figure B3: CNN with ELU Graph

Appendix C Appendix 3
Appendix C.1. Figure C1: LSTM with Sigmoid Graph

Appendix C.2. Figure C2: LSTM with ReLU Graph

Appendix C.3. Figure C3: LSTM with ELU Graph

References
- Koohang, A.; Sargent, C.S.; Nord, J.H.; Paliszkiewicz, J. Internet of Things (IoT): From awareness to continued use. International Journal of Information Management 2022, 62, 102442. [Google Scholar] [CrossRef]
- Alablani, I.; Alenazi, M. EDTD-SC: An IoT sensor deployment strategy for smart cities. sensors 2020, 20, 7191. [Google Scholar] [CrossRef] [PubMed]
- Fan, Q.; Ansari, N. Towards traffic load balancing in drone-assisted communications for IoT. IEEE Internet of Things Journal 2018, 6, 3633–3640. [Google Scholar] [CrossRef]
- Kelleher, J.D. Deep learning; MIT press, 2019.
- Ray, P.P. Internet of things for smart agriculture: Technologies, practices and future direction. Journal of Ambient Intelligence and Smart Environments 2017, 9, 395–420. [Google Scholar] [CrossRef]
- Pachayappan, M.; Ganeshkumar, C.; Sugundan, N. Technological implication and its impact in agricultural sector: An IoT Based Collaboration framework. Procedia Computer Science 2020, 171, 1166–1173. [Google Scholar] [CrossRef]
- Anusha, A.; Guptha, A.; Rao, G.S.; Tenali, R.K. A model for smart agriculture using IOT. International Journal of Innovative Technology and Exploring Engineering (IJITEE) 2019, 8. [Google Scholar]
- Davcev, D.; Mitreski, K.; Trajkovic, S.; Nikolovski, V.; Koteli, N. IoT agriculture system based on LoRaWAN. 2018 14th IEEE International Workshop on Factory Communication Systems (WFCS). IEEE, 2018, pp. 1–4. [CrossRef]
- Hu, Z.; Bashir, R.N.; Rehman, A.U.; Iqbal, S.I.; Shahid, M.M.A.; Xu, T. Machine learning based prediction of reference evapotranspiration (et 0) using iot. IEEE Access 2022, 10, 70526–70540. [Google Scholar] [CrossRef]
- Patil, S.S.; Thorat, S.A. Early detection of grapes diseases using machine learning and IoT. 2016 second international conference on Cognitive Computing and Information Processing (CCIP). IEEE, 2016, pp. 1–5. [CrossRef]
- Reddy, K.S.P.; Roopa, Y.M.; LN, K.R.; Nandan, N.S. IoT based smart agriculture using machine learning. 2020 Second international conference on inventive research in computing applications (ICIRCA). IEEE, 2020, pp. 130–134. [CrossRef]
- Asha, K.; Gahana, N.; Gowda, S.; Harsha, C.; Chandana, D. Agriculture Automation System using Machine Learning and Internet of Things. International Journal of Engineering and Management Research 2023, 13, 163–167. [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]
- Shaikh, T.A.; Mir, W.A.; Rasool, T.; Sofi, S. Machine learning for smart agriculture and precision farming: towards making the fields talk. Archives of Computational Methods in Engineering 2022, 29, 4557–4597. [Google Scholar] [CrossRef]
- 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. Multimedia Tools and Applications 2021, 80, 773–797. [Google Scholar] [CrossRef]
- Moupojou, E.; Tagne, A.; Retraint, F.; Tadonkemwa, A.; Wilfried, D.; Tapamo, H.; Nkenlifack, M. FieldPlant: A Dataset of Field Plant Images for Plant Disease Detection and Classification With Deep Learning. IEEE Access 2023, 11, 35398–35410. [Google Scholar] [CrossRef]
- Bu, F.; Wang, X. A smart agriculture IoT system based on deep reinforcement learning. Future Generation Computer Systems 2019, 99, 500–507. [Google Scholar] [CrossRef]
- Varman, S.A.M.; Baskaran, A.R.; Aravindh, S.; Prabhu, E. Deep learning and IoT for smart agriculture using WSN. 2017 ieee international conference on computational intelligence and computing research (ICCIC). IEEE, 2017, pp. 1–6. [CrossRef]
- .
- Technical report.
- Tabbasum, S.; Akhtar, M.; Sarwar, N.; Tipu, M.I.; Ikram, W.; Ashraf, A.; Ejaz, A.; Murtaza, B.; Khan, M.R. Relative effectiveness of phosphorus and potassium along with compost and organic acids on maize crop grown in calcareous soil: A multivariate analysis. Journal of Soil Science and Plant Nutrition 2021, 21, 437–449. [Google Scholar] [CrossRef]
- Syed, A.; Sarwar, G.; Shah, S.H.; Muhammad, S. Soil salinity research in 21st century in Pakistan: its impact on availability of plant nutrients, growth and yield of crops. Communications in Soil Science and Plant Analysis 2021, 52, 183–200. [Google Scholar] [CrossRef]
- Dharani, M.; Thamilselvan, R.; Natesan, P.; Kalaivaani, P.; Santhoshkumar, S. Review on crop prediction using deep learning techniques. Journal of Physics: Conference Series. IOP Publishing, 2021, Vol. 1767, p. 012026. [CrossRef]






| Activation Function | Training Accuracy (%) | Test Accuracy (%) | Test Loss |
|---|---|---|---|
| Sigmoid | 98.2 | 99.6 | 0.0100 |
| Relu | 57.6 | 58.3 | 6.43 |
| Tanh | 99.5 | 99.9 | 0.0042 |
| elu | 57.9 | 57.2 | 6.60 |
| Activation Function | Training Accuracy (%) | Test Accuracy (%) | Test Loss |
|---|---|---|---|
| Sigmoid | 98.9 | 98.8 | 0.045 |
| ReLU | 98.7 | 98.6 | 0.20 |
| Tanh | 98.8 | 98.6 | 0.208 |
| ELU | 98.7 | 98.6 | 0.056 |
| Activation Function | Training Accuracy (%) | Test Accuracy (%) | Test Loss |
|---|---|---|---|
| Sigmoid | 100 | 100 | 0.0008 |
| ReLU | 100 | 100 | 0.002 |
| Tanh | 100 | 100 | 0.0009 |
| ELU | 100 | 100 | 0 |
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 (http://creativecommons.org/licenses/by/4.0/).