How ivoafonsobispo/iomt-ai-ids works
Project Overview & Main Components
• IoMT Devices/Edge Nodes: Represent the physical medical devices and associated microcontrollers. Under “IoMT Scenario Code” you see implementations for Arduino Yun and ESP32 circuits, which serve as data-gathering devices and (possibly) attack simulation endpoints.
• Data Capture and Pre-Processing: The “Captures” and “Datasets” directories (along with the Scripts for BLE and IP-based fields extraction) indicate that data is gathered and then forwarded to further analysis. Show how raw network captures (pcap files) and logs are processed via scripts that clean and extract relevant fields.
• Machine Learning Pipeline: A significant portion of the repository is the “Machine Learning” directory. Divide this section into two parts: one handling BLE-based models and another focusing on IP-based models. Include notebooks for data pre-processing, feature extraction, model training (with Python libraries), and saved models (such as .h5 files for neural networks).
Relationships and Interactions
• Attack Injection and Simulation: Show how the “Attacks” module inserts or simulates various types of intrusions, thereby creating anomalous traffic. This traffic is then captured alongside regular network packets.
• ML Analysis: Illustrate how both BLE and IP-based data are used to train multiple models employing different ML methodologies (DNN, Decision Trees, Naive Bayes, etc.) and how they eventually inform the IDS component.
Architectural Patterns and Design Principles
• Modularity: Emphasize a layered architecture with distinct modules (data capture, pre-processing, ML model training, and deployment).
• Separation of Concerns: Clearly segregate network-level components from data analysis components and the IoMT device simulation aspects.
• Extensibility: Indicate that the system is designed in a way that allows for additional type-specific modules (e.g., additional attack types, alternative ML algorithms).
Technologies and Frameworks
• Hardware/Embedded Code: Arduino YUN and ESP32 use embedded C/C++.
• Communication Protocols: MQTT for IoMT attacks and CoAP servers used in network communication.
• Scripting and Data Handling: Shell scripts and Python (server.py in CoAP Server, various Python scripts and Jupyter Notebooks) play key roles.
• Machine Learning: Jupyter Notebooks indicate usage of Python ML libraries (TensorFlow, Keras, scikit-learn, etc.), although specific libraries might be inferred from saved model formats (e.g., .h5 suggests Keras/TensorFlow).
• Data Capture Tools: Use of pcap files points to network capture utilities possibly based on Wireshark/tshark protocols.