Skip to main content
Log in

Intrusion detection in internet of things-based smart farming using hybrid deep learning framework

  • Published:
Cluster Computing Aims and scope Submit manuscript

Abstract

Smart agriculture is a popular domain due to its intensified growth in recent times. This domain aggregates the advantages of several computing technologies, where the IoT is the most popular and beneficial. In this work, a novel and effective deep learning-based framework is developed to detect intrusions in smart farming systems. The architecture is three-tier, with the first tier being the sensor layer, which involves the placement of sensors in agricultural areas. The second tier is the Fog Computing Layer (FCL), which consists of Fog nodes, and the proposed IDS is implemented in each Fog node. The gathered information is transferred to this fog layer for further data analysis. The third tier is the cloud computing layer, which provides data storage and end-to-end services. The proposed model includes a fused CNN model with the bidirectional gated recurrent unit (Bi-GRU) model to detect and classify intruders. An attention mechanism is included within the BiGRU model to find the key features responsible for identifying the DDoS attack. In addition, the accuracy of the classification model is improved by using a nature-inspired meta-heuristic optimization algorithm called the Wild Horse Optimization (WHO) algorithm. The last layer is the cloud layer, which collects data from fog nodes and offers storage services. The proposed system will be implemented in the Python platform, using ToN-IoT and APA-DDoS attack datasets for assessment. The proposed system outperforms the existing methods in accuracy (99.35%), detection rate (98.99%), precision (99.9%) and F-Score (99.08%) for the APA DDoS attack dataset and the achieved accuracy of the ToN-IoT dataset (99.71%), detection rate (99.02%), precision (99.89%) and F-score (99.05%).

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19

Similar content being viewed by others

Data availability

The entire implementation of the work will be carried out in the Python platform. The major performance metrics such as accuracy, precision, recall, f-measure and ROC will be computed and compared with the recent techniques relevant to intrusion detection in IoT-enabled smart farming. The data that support this finding of this study are openly available at the following URL/https://www.unb.ca/cic/datasets/ddos-2019.html , https://cloudstor.aarnet.edu.au/plus/s/ds5zW91vdgjEj9i.

Code availability

The code that supports this finding of this study is openly available at the following URL/https://github.com/keerthikethineni/IDin-IOT-based-Smart-Farming-using-HDLF.git

References

  1. Yang, X., Shu, L., Chen, J., Ferrag, M.A., Wu, J., Nurellari, E., Huang, K.: A survey on smart agriculture: development modes, technologies, and security and privacy challenges. IEEE/CAA J. Automatica Sinica. 8(2), 273–302 (2021)

    Article  Google Scholar 

  2. de Araujo Zanella, A.R., da Silva, E., Albini, L.C.P.: Security challenges to smart agriculture: current state, key issues, and future directions. Array 8, 100048 (2020)

    Article  Google Scholar 

  3. Kumar, P., Gupta, G.P., Tripathi, R.: PEFL: deep privacy-encoding-based federated learning framework for smart agriculture. IEEE Micro 42(1), 33–40 (2021)

    Article  Google Scholar 

  4. Suhaimi, A.F., Yaakob, N., Saad, S.A., Sidek, K.A., Elshaikh, M.E., Dafhalla, A.K., Lynn, O.B., Almashor, M.: IoT based smart agriculture monitoring, automation and intrusion detection system. J. Phys.: Conf. Series, IOP Publish. 1962(1), 012016 (2021)

    Google Scholar 

  5. Fróna, D., Szenderák, J., Harangi-Rákos, M.: The challenge of feeding the world. Sustainability. 11(20), 5816 (2019)

    Article  Google Scholar 

  6. Alsoufi, M.A., Razak, S., Siraj, M.M., Nafea, I., Ghaleb, F.A., Saeed, F., Nasser, M.: Anomaly-based intrusion detection systems in iot using deep learning: a systematic literature review. Appl. Sci. 11(18), 8383 (2021)

    Article  Google Scholar 

  7. Cicioğlu, M., Çalhan, A.: Smart agriculture with Internet of things in cornfields. Comput. Electr. Eng. 90, 106982 (2021)

    Article  Google Scholar 

  8. Ferrag, M.A., Shu, L., Friha, O., Yang, X.: Cyber security intrusion detection for agriculture 4.0: machine learning-based solutions, datasets, and future directions. IEEE/CAA J. Automatica Sinica. 9(3), 407–436 (2021)

    Article  Google Scholar 

  9. Kumar, R., Mishra, R., Gupta, H.P., Dutta, T.: Smart sensing for agriculture: applications, advancements, and challenges. IEEE Consum. Electron. Magazine 10(4), 51–56 (2021)

    Article  Google Scholar 

  10. Kumar, M., Vikas Reddy, S.: Intrusion detection and prevention system for Iot. Eur. J. Mol. Clin. Med. 7(8), 2983–2991 (2020)

    Google Scholar 

  11. Bhatt, H., Bhushan, B., Kumar, N.: IOT: The current scenario and role of sensors involved in smart agriculture. Int. J. Recent Technol. Eng. 8(4), 12011–12023 (2019)

    Google Scholar 

  12. Riaz, A.R., Gilani, S.M.M., Naseer, S., Alshmrany, S., Shafiq, M., Choi, J.G.: Applying adaptive security techniques for risk analysis of internet of things (IoT)-based smart agriculture. Sustainability 14(17), 10964 (2022)

    Article  Google Scholar 

  13. Bhatnagar, V., Singh, G., Kumar, G., Gupta, R.: Internet of thingsin smart agriculture: applications and open challenges. Int. J. Stud. Res. Technol. Manage. 8(1), 11–17 (2020)

    Google Scholar 

  14. Yadahalli, S., Parmar, A. and Deshpande, A.: Smart intrusion detection system for crop protection by using Arduino. In 2020 Second International Conference on Inventive Research in Computing Applications (ICIRCA), IEEE. 405–408 (2020).

  15. Murugesan, M.: Smart agriculture monitoring system. Turkish J. Comput. Math. Educ. 10(3), 1001–1005 (2019)

    Google Scholar 

  16. Tao, W., Zhao, L., Wang, G., Liang, R.: Review of the Internet of things communication technologies in smart agriculture and challenges. Comput. Electron. Agric. 189, 106352 (2021)

    Article  Google Scholar 

  17. Shafiq, M., Tian, Z., Bashir, A.K., Jolfaei, A., Yu, X.: Data mining and machine learning methods for sustainable smart cities traffic classification: a survey. Sustain. Cities Soc. 60, 102177 (2020)

    Article  Google Scholar 

  18. Shafiq, M., Tian, Z., Bashir, A.K., Du, X., Guizani, M.: CorrAUC: a malicious bot-IoT traffic detection method in IoT network using machine-learning techniques. IEEE Internet Things J. 8(5), 3242–3254 (2020)

    Article  Google Scholar 

  19. Shafiq, M., Tian, Z., Bashir, A.K., Du, X., Guizani, M.: IoT malicious traffic identification using wrapper-based feature selection mechanisms. Comput. Secur. 94, 101863 (2020)

    Article  Google Scholar 

  20. Kumar, K.N., Pillai, A.V. and Narayanan, M.B.: Smart agriculture using IoT. Materials Today: Proceedings. (2021).

  21. Eskandari, M., Janjua, Z.H., Vecchio, M., Antonelli, F.: Passban IDS: An intelligent anomaly-based intrusion detection system for IoT edge devices. IEEE Int. Things J. 7(8), 6882–6897 (2020)

    Article  Google Scholar 

  22. Salim, C. and Mitton, N. 2021 Image similarity based data reduction technique in wireless video sensor networks for smart agriculture. In International Conference on Advanced Information Networking and Applications, Springer, Cham.

  23. Abraham, G., Raksha, R. and Nithya, M.: Smart Agriculture Based on IoT and Machine Learning. In 2021 5th International Conference on Computing Methodologies and Communication (ICCMC), IEEE. 414–419 (2021).

  24. Ferrag, M.A., Shu, L., Djallel, H., Choo, K.K.R.: Deep learning-based intrusion detection for distributed denial of service attack in agriculture 4.0. Electronics 10(11), 1257 (2021)

    Article  Google Scholar 

  25. Raghuvanshi, A., Singh, U.K., Sajja, G.S., Pallathadka, H., Asenso, E., Kamal, M., Singh, A., Phasinam, K.: Intrusion detection using machine learning for risk mitigation in IoT-enabled smart irrigation in smart farming. J. Food Quality. 2022, 1–8 (2022)

    Article  Google Scholar 

  26. Moso, J.C., Cormier, S., de Runz, C., Fouchal, H., Wandeto, J.M.: Anomaly detection on data streams for smart agriculture. Agriculture 11(11), 1083 (2021)

    Article  Google Scholar 

  27. Park, H., Park, V., Kim, S.: Anomaly detection of operating equipment in livestock farms using deep learning techniques. Electronics 10(16), 1958 (2021)

    Article  Google Scholar 

  28. Thakur, D., Kumar, Y., Vijendra, S.: Smart irrigation and intrusions detection in agricultural fields using IoT. Procedia Computer Science. 167, 154–162 (2020)

    Article  Google Scholar 

  29. https://www.kaggle.com/datasets/yashwanthkumbam/apaddos-dataset

  30. Kumar, R., Kumar, P., Tripathi, R., Gupta, G.P., Gadekallu, T.R., Srivastava, G.: SP2F: A secured privacy-preserving framework for smart agricultural Unmanned Aerial Vehicles. Comput. Netw. 187, 107819 (2021)

    Article  Google Scholar 

  31. Le, T.T.H., Oktian, Y.E., Kim, H.: XGBoost for imbalanced multiclass classification-based industrial Internet of things intrusion detection systems. Sustainability 14(14), 8707 (2022)

    Article  Google Scholar 

  32. El-Ghamry, A., Darwish, A., Hassanien, A.E.: An optimized CNN-based Intrusion Detection system for reducing risks in smart farming. Int Things 22, 100709 (2023)

    Article  Google Scholar 

  33. Zhao, Guosheng, Yang Wang, and Jian Wang. 2023 “Lightweight Intrusion Detection Model of the Internet of Things with Hybid Cloud-Fog Computing.” Security and Communication Networks 2023: 1–16.

Download references

Acknowledgements

We declare that this manuscript is original, has not been published before and is not currently being considered for publication elsewhere.

Funding

The authors have not disclosed any funding.

Author information

Authors and Affiliations

Authors

Contributions

K: conceptualization, Data Curation, Formal Analysis, Investigation, Resources, Software, Writing an original draft. P: Methodology, Project administration, Supervision, Validation, Visualization, Writing-Review & editing, Funding acquisition.

Corresponding author

Correspondence to G. Pradeepini.

Ethics declarations

Conflict of interest

There is no conflict of interest in the present research work.

Informed consent

Author and Co-author are well aware of the publication.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Kethineni, K., Pradeepini, G. Intrusion detection in internet of things-based smart farming using hybrid deep learning framework. Cluster Comput 27, 1719–1732 (2024). https://doi.org/10.1007/s10586-023-04052-4

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10586-023-04052-4

Keywords

Navigation