{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,8]],"date-time":"2026-07-08T16:30:18Z","timestamp":1783528218165,"version":"3.55.0"},"reference-count":46,"publisher":"MDPI AG","issue":"19","license":[{"start":{"date-parts":[[2023,10,2]],"date-time":"2023-10-02T00:00:00Z","timestamp":1696204800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>Smart agricultural systems have received a great deal of interest in recent years because of their potential for improving the efficiency and productivity of farming practices. These systems gather and analyze environmental data such as temperature, soil moisture, humidity, etc., using sensor networks and Internet of Things (IoT) devices. This information can then be utilized to improve crop growth, identify plant illnesses, and minimize water usage. However, dealing with data complexity and dynamism can be difficult when using traditional processing methods. As a solution to this, we offer a novel framework that combines Machine Learning (ML) with a Reinforcement Learning (RL) algorithm to optimize traffic routing inside Software-Defined Networks (SDN) through traffic classifications. ML models such as Logistic Regression (LR), Random Forest (RF), k-nearest Neighbours (KNN), Support Vector Machines (SVM), Naive Bayes (NB), and Decision Trees (DT) are used to categorize data traffic into emergency, normal, and on-demand. The basic version of RL, i.e., the Q-learning (QL) algorithm, is utilized alongside the SDN paradigm to optimize routing based on traffic classes. It is worth mentioning that RF and DT outperform the other ML models in terms of accuracy. Our results illustrate the importance of the suggested technique in optimizing traffic routing in SDN environments. Integrating ML-based data classification with the QL method improves resource allocation, reduces latency, and improves the delivery of emergency traffic. The versatility of SDN facilitates the adaption of routing algorithms depending on real-time changes in network circumstances and traffic characteristics.<\/jats:p>","DOI":"10.3390\/s23198218","type":"journal-article","created":{"date-parts":[[2023,10,2]],"date-time":"2023-10-02T04:39:30Z","timestamp":1696221570000},"page":"8218","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":32,"title":["AI-Enabled Traffic Control Prioritization in Software-Defined IoT Networks for Smart Agriculture"],"prefix":"10.3390","volume":"23","author":[{"given":"Fahad","family":"Masood","sequence":"first","affiliation":[{"name":"Department of Electronics, Quaid i Azam University, Islamabad 45320, Pakistan"},{"name":"Department of Computing, Abasyn University, Peshawar 25000, Pakistan"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Wajid Ullah","family":"Khan","sequence":"additional","affiliation":[{"name":"Department of Computing, Abasyn University, Peshawar 25000, Pakistan"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3950-4719","authenticated-orcid":false,"given":"Sana Ullah","family":"Jan","sequence":"additional","affiliation":[{"name":"School of Computing, Engineering and the Built Environment, Edinburgh Napier University, Edinburgh EH10 5DT, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6289-8248","authenticated-orcid":false,"given":"Jawad","family":"Ahmad","sequence":"additional","affiliation":[{"name":"School of Computing, Engineering and the Built Environment, Edinburgh Napier University, Edinburgh EH10 5DT, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2023,10,2]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"87","DOI":"10.1145\/2602204.2602219","article-title":"The road to SDN: An intellectual history of programmable networks","volume":"44","author":"Feamster","year":"2014","journal-title":"ACM SIGCOMM Comp. Comm. Rev."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"218","DOI":"10.1016\/j.inffus.2022.07.020","article-title":"Fusion of engineering insights and emerging trends: Intelligent urban traffic management system","volume":"88","author":"Ouallane","year":"2022","journal-title":"Inf. Fusion"},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"108047","DOI":"10.1016\/j.comnet.2021.108047","article-title":"Software defined networking architecture, traffic management, security, and placement: A survey","volume":"192","author":"Priyadarsini","year":"2021","journal-title":"Comput. Netw."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Zervopoulos, A., Tsipis, A., Alvanou, G., Bezas, K., and Papamichail, A. (2020). Wireless sensor network synchronization for precision agriculture applications. Agriculture, 10.","DOI":"10.3390\/agriculture10030089"},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Vincent, D.R., Deepa, N., Elavarasan, D., Srinivasan, K., Chauhdary, S.H., and Iwendi, C. (2019). Sensors driven artificial intelligence based agriculture recommendation model for assessing land suitability. Sensors, 19.","DOI":"10.3390\/s19173667"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"385","DOI":"10.1007\/s42853-020-00078-3","article-title":"A review of the applications of the internet of things (IoT) for agricultural automation","volume":"45","author":"Kim","year":"2020","journal-title":"J. Biosys. Eng."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"718","DOI":"10.1109\/JAS.2021.1003925","article-title":"Internet of things for the future of smart agriculture: A comprehensive survey of emerging technologies","volume":"8","author":"Friha","year":"2021","journal-title":"IEEE\/CAA J. Autom. Sin."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Adli, H.K., Remli, M.A., Wan Salihin Wong, K.N.S., Ismail, N.A., Gonz\u00e1lez-Briones, A., Corchado, J.M., and Mohamad, M.S. (2023). Recent Advancements and Challenges of AIoT Application in Smart Agriculture: A Review. Sensors, 23.","DOI":"10.3390\/s23073752"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Saban, M., Bekkour, M., Amdaouch, I., El Gueri, J., Ait Ahmed, B., Chaari, M.Z., Ruiz-Alzola, J., Rosado-Mu\u00f1oz, A., and Aghzout, O. (2023). A Smart Agricultural System Based on PLC and a Cloud Computing Web Application Using LoRa and LoRaWan. Sensors, 23.","DOI":"10.3390\/s23052725"},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Asaithambi, S., Ravi, L., Kotb, H., Milyani, A.H., Azhari, A.A., Nallusamy, S., and Vairavasundaram, S. (2022). An Energy-Efficient and Blockchain-Integrated Software Defined Network for the Industrial Internet of Things. Sensors, 22.","DOI":"10.3390\/s22207917"},{"key":"ref_11","unstructured":"Baggio, A. (2005, January 21). Wireless sensor networks in precision agriculture. Proceedings of the ACM Workshop on Real-World Wireless Sensor Networks (REALWSN 2005), Stockholm, Sweden."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"218","DOI":"10.1016\/j.compag.2018.12.039","article-title":"Evolution of internet of things and its significant impact in the field of precision agriculture","volume":"157","author":"Khanna","year":"2019","journal-title":"Comput. Electron. Agric."},{"key":"ref_13","unstructured":"Capello, F., Toja, M., and Trapani, N. (2016, January 1\u20134). A real time monitoring service based on industrial internet of things to manage agrifood logistics. Proceedings of the 6th International Conference on Information Systems, Logistics and Supply Chain, Bordeaux, France."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"289","DOI":"10.1007\/s10796-012-9374-9","article-title":"Value-centric design of the internet of things solution for food supply chain: Value creation, sensor portfolio and information fusion","volume":"17","author":"Pang","year":"2015","journal-title":"Inf. Syst. Front."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Zhang, X., Zhang, J., Li, L., Zhang, Y., and Yang, G. (2017). Monitoring citrus soil moisture and nutrients using an internet of things based system. Sensors, 17.","DOI":"10.3390\/s17030447"},{"key":"ref_16","first-page":"1","article-title":"Internet of things in agriculture","volume":"11","author":"Verdouw","year":"2016","journal-title":"CAB Rev. Persp. Agr. Vet. Sci. Nutr. Nat. Res."},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Amaral, P., Dinis, J., Pinto, P., Bernardo, L., Tavares, J., and Mamede, H.S. (2016, January 8\u201311). Machine learning in software defined networks: Data collection and traffic classification. Proceedings of the 2016 IEEE 24th International Conference on Network Protocols (ICNP), Singapore.","DOI":"10.1109\/ICNP.2016.7785327"},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Phan, T.V., Islam, S.T., Nguyen, T.G., and Bauschert, T. (2019, January 21\u201325). Q-DATA: Enhanced traffic flow monitoring in software-defined networks applying Q-learning. Proceedings of the 2019 15th International Conference on Network and Service Management (CNSM), Halifax, NS, Canada.","DOI":"10.23919\/CNSM46954.2019.9012727"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Kim, S.I., and Kim, H.S. (2019, January 9\u201311). Dynamic service function chaining by resource usage learning in SDN\/NFV environment. Proceedings of the 2019 International Conference on Information Networking (ICOIN), Kuala Lumpur, Malaysia.","DOI":"10.1109\/ICOIN.2019.8718190"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Xu, J., Wang, J., Qi, Q., Sun, H., and He, B. (2018, January 11\u201313). IARA: An intelligent application-aware VNF for network resource allocation with deep learning. Proceedings of the 2018 15th Annual IEEE International Conference on Sensing, Communication, and Networking (SECON), Hong Kong, China.","DOI":"10.1109\/SAHCN.2018.8397153"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Hossain, M., Rahman, M., Hosen, A.S.M., Seo, C., and Cho, G.H. (2021). Intellectual property theft protection in internet of things based precision agriculture using software defined network. Electronics, 10.","DOI":"10.3390\/electronics10161987"},{"key":"ref_22","first-page":"155","article-title":"BCSDN-IoT: Towards an internet of things security architecture based on software defined network and blockchain","volume":"13","author":"Abbassi","year":"2022","journal-title":"Int. J. Electr. Comput. Eng. Syst."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Kaur, G., and Gupta, P. (2019, January 8\u201310). Hybrid approach for detecting DDOS attacks in software defined networks. Proceedings of the 2019 Twelfth International Conference on Contemporary Computing (IC3), Noida, India.","DOI":"10.1109\/IC3.2019.8844944"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Prakash, A., and Priyadarshini, R. (2018, January 20\u201321). An intelligent software defined network controller for preventing distributed denial of service attack. Proceedings of the 2018 Second International Conference on Inventive Communication and Computational Technologies (ICICCT), Coimbatore, India.","DOI":"10.1109\/ICICCT.2018.8473340"},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1016\/j.comnet.2014.06.002","article-title":"A roadmap for traffic engineering in SDN-OpenFlow networks","volume":"71","author":"Akyildiz","year":"2014","journal-title":"Comput. Netw."},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Mijumbi, R., Serrat, J., Rubio-Loyola, J., Bouten, N., De Turck, F., and Latre, S. (2014, January 17\u201321). Dynamic resource management in SDN-based virtualized networks. Proceedings of the 10th International Conference on Network and Service Management (CNSM) and Workshop, Rio de Janeiro, Brazil.","DOI":"10.1109\/CNSM.2014.7014204"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Mourad, A., Yang, R., Lehne, P.H., and Oliva, A. (2020, January 17\u201320). Towards 6G: Evolution of key performance indicators and technology trends. Proceedings of the 2020 2nd 6G Wireless Summit (6G SUMMIT), Levi, Finland.","DOI":"10.1109\/6GSUMMIT49458.2020.9083759"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"166384","DOI":"10.1109\/ACCESS.2020.3022291","article-title":"AI-assisted framework for green-routing and load balancing in hybrid software-defined networking: Proposal, challenges and future perspective","volume":"8","author":"Etengu","year":"2020","journal-title":"IEEE Access"},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"30","DOI":"10.23919\/JCIN.2019.8917870","article-title":"Survey on reinforcement learning applications in communication networks","volume":"4","author":"Qian","year":"2019","journal-title":"J. Commun. Inf. Netw."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"55916","DOI":"10.1109\/ACCESS.2019.2913776","article-title":"Reinforcement learning based routing in networks: Review and classification of approaches","volume":"7","author":"Mammeri","year":"2019","journal-title":"IEEE Access"},{"key":"ref_31","unstructured":"Jamshidi, S. (2019). The Applications of Machine Learning Techniques in Networking. [Ph.D. Dissertation, University of Oregon]."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"102355","DOI":"10.1016\/j.yofte.2020.102355","article-title":"Overview on routing and resource allocation based machine learning in optical networks","volume":"60","author":"Zhang","year":"2020","journal-title":"Opt. Fiber Technol."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"16","DOI":"10.1186\/s13174-018-0087-2","article-title":"A comprehensive survey on machine learning for networking: Evolution, applications and research opportunities","volume":"9","author":"Boutaba","year":"2018","journal-title":"J. Internet Serv. Appl."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"393","DOI":"10.1109\/COMST.2018.2866942","article-title":"A survey of machine learning techniques applied to software defined networking (SDN): Research issues and challenges","volume":"21","author":"Xie","year":"2019","journal-title":"IEEE Commun. Surv. Tutor."},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"95397","DOI":"10.1109\/ACCESS.2019.2928564","article-title":"A survey of networking applications applying the software defined networking concept based on machine learning","volume":"7","author":"Zhao","year":"2019","journal-title":"IEEE Access"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"632","DOI":"10.1016\/j.comcom.2020.02.029","article-title":"SDN-MCHO: Software Define network based Multi-criterion Hysteresis Optimization based for reliable device routing in Internet of Things for the smart surveillance application","volume":"153","author":"Tamizhselvan","year":"2020","journal-title":"Comput. Commun."},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"4929","DOI":"10.1007\/s11276-021-02723-x","article-title":"FCS-fuzzy net: Cluster head selection and routing-based weed classification in IoT with mapreduce framework","volume":"27","author":"Sharma","year":"2021","journal-title":"Wireless Net."},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"5660","DOI":"10.1109\/TII.2020.3006885","article-title":"SDN-enabled energy-efficient routing optimization framework for industrial Internet of Things","volume":"17","author":"Naeem","year":"2020","journal-title":"IEEE Trans. Ind. Inform."},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Hosmer, D.W., Lemeshow, S., and Sturdivant, R.X. (2013). Applied Logistic Regression, John Wiley & Sons.","DOI":"10.1002\/9781118548387"},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"81","DOI":"10.1007\/BF00116251","article-title":"Induction of decision trees","volume":"1","author":"Quinlan","year":"1986","journal-title":"Mach. Learn."},{"key":"ref_41","doi-asserted-by":"crossref","first-page":"5","DOI":"10.1023\/A:1010933404324","article-title":"Random forests","volume":"45","author":"Breiman","year":"2001","journal-title":"Mach. Learn."},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"103","DOI":"10.1023\/A:1007413511361","article-title":"On the optimality of the simple Bayesian classifier under zero-one loss","volume":"29","author":"Domingos","year":"1997","journal-title":"Mach. Learn."},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"273","DOI":"10.1007\/BF00994018","article-title":"Support-vector networks","volume":"20","author":"Cortes","year":"1995","journal-title":"Mach. Learn."},{"key":"ref_44","doi-asserted-by":"crossref","first-page":"21","DOI":"10.1109\/TIT.1967.1053964","article-title":"Nearest neighbor pattern classification","volume":"13","author":"Cover","year":"1967","journal-title":"IEEE Trans. Inf. Theory"},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"12","DOI":"10.1080\/00031305.1978.10479236","article-title":"Variations of box plots","volume":"32","author":"McGill","year":"1978","journal-title":"Am. Stat."},{"key":"ref_46","first-page":"870","article-title":"Intelligent routing based on reinforcement learning for software-defined networking","volume":"18","author":"Rendon","year":"2020","journal-title":"IEEE Trans. Netw. Serv. Manag."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/23\/19\/8218\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T21:04:01Z","timestamp":1760130241000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/23\/19\/8218"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,10,2]]},"references-count":46,"journal-issue":{"issue":"19","published-online":{"date-parts":[[2023,10]]}},"alternative-id":["s23198218"],"URL":"https:\/\/doi.org\/10.3390\/s23198218","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,10,2]]}}}