A Lightweight Edge-CNN-Transformer Model for Detecting Coordinated Cyber and Digital Twin Attacks in Cooperative Smart Farming

Lopamudra Praharaj,Deepti Gupta,Maanak Gupta
2024-11-22
Abstract:The agriculture sector is increasingly adopting innovative technologies to meet the growing food demands of the global population. To optimize resource utilization and minimize crop losses, farmers are joining cooperatives to share their data and resources among member farms. However, while farmers benefit from this data sharing and interconnection, it exposes them to cybersecurity threats and privacy concerns. A cyberattack on one farm can have widespread consequences, affecting the targeted farm as well as all member farms within a cooperative. In this research, we address existing gaps by proposing a novel and secure architecture for Cooperative Smart Farming (CSF). First, we highlight the role of edge-based DTs in enhancing the efficiency and resilience of agricultural operations. To validate this, we develop a test environment for CSF, implementing various cyberattacks on both the DTs and their physical counterparts using different attack vectors. We collect two smart farming network datasets to identify potential threats. After identifying these threats, we focus on preventing the transmission of malicious data from compromised farms to the central cloud server. To achieve this, we propose a CNN-Transformer-based network anomaly detection model, specifically designed for deployment at the edge. As a proof of concept, we implement this model and evaluate its performance by varying the number of encoder layers. Additionally, we apply Post-Quantization to compress the model and demonstrate the impact of compression on its performance in edge environments. Finally, we compare the model's performance with traditional machine learning approaches to assess its overall effectiveness.
Cryptography and Security
What problem does this paper attempt to address?
The problem that this paper attempts to solve is: **In the Cooperative Smart Farming (CSF) environment, how to detect and prevent collaborative cyber - attacks against physical farms and their Digital Twins (DT)**. Specifically, the paper focuses on the following key issues: 1. **Cybersecurity threats and privacy issues**: - As farmers share data and resources through cooperatives, this makes them more vulnerable to cybersecurity threats and privacy leaks. A cyber - attack on one farm may have a wide - ranging impact on all member farms within the entire cooperative. - For example, a de - authentication attack will prevent sensors from connecting to the network, causing other farms that rely on this real - time data for decision - making to be affected. 2. **Security of Digital Twins**: - Farmers have adopted Digital Twin technology to create virtual farm copies for monitoring important aspects such as crop cultivation, soil composition, and weather conditions. However, attackers can target these Digital Twins, thereby disrupting the operations of the actual physical farms. 3. **Deficiencies in existing research**: - Existing research mainly focuses on cloud - based Digital Twin implementations, ignoring the advantages of edge computing. Edge computing can process data locally, optimize resource utilization, and reduce latency, which is crucial for smart agriculture that requires a fast response. To solve these problems, the paper proposes the following solutions: - **Proposes a lightweight Edge - CNN - Transformer model**, specifically designed to be deployed on edge devices to detect network anomalies and prevent malicious data from spreading from the attacked farms to the central cloud server. - **Constructs a test environment** to simulate various cyber - attacks and verify the effectiveness of the model. - **Applies Post - Quantization technology** to compress the model to adapt to the resource limitations of edge devices and evaluate the impact of compression on performance. Through these methods, the paper aims to improve the security and robustness of the Cooperative Smart Farming system, ensuring that each farm can still operate normally even in the face of collaborative cyber - attacks.