FPGA-Accelerated Machine Learning Anomaly Detection for SOME/IP-Based Automotive Ethernet
Beschreibung
About the Project
Modern in-vehicle networks (IVNs) increasingly rely on Automotive Ethernet as the communication backbone, with SOME/IP serving as the dominant service-oriented protocol for inter-ECU communication. As IVN complexity grows, communication anomalies—arising from software faults, timing failures, or unexpected traffic behaviors—pose challenges to functional safety. Within the EMDRIVE project, our team is developing a Diagnosis Unit (DU) on the Xilinx ZCU102 platform that monitors Automotive Ethernet traffic in real time. The current PL-side implementation relies on static rule-based packet checks, which limits its detection capability against evolving and unseen behaviors.
Project Description
The goal of this thesis is to design, implement, and evaluate a machine learning-based anomaly detection module on the Programmable Logic (PL) side of the ZCU102, capable of processing SOME/IP traffic at line rate without dropping packets. The module learns the normal behavior of the network at the flow and header level and flags deviations as anomalies, providing higher detection accuracy and adaptability than the existing rule-based unit. Deep payload semantics are out of scope. The work targets 100BASE-T1, with timing-based scalability analysis toward 1000BASE-T1. The thesis focuses on static-model deployment, where on-line adaptation to behavioral shift is identified as a relevant follow-on direction.
Phase 1 - Foundational (must complete):
- Literature study and method selection: Review existing ML-based anomaly detection methods for Automotive Ethernet and select one functionally proven approach (e.g., quantized MLP, autoencoder, or isolation forest) suitable for FPGA deployment.
- Anomaly taxonomy: Define a behavioral anomaly taxonomy for SOME/IP traffic covering topological, temporal, volumetric, structural, and semantic deviation classes at flow and header level.
- Software baseline and reference behavior: Implement and validate the selected method in Python on a publicly available Automotive Ethernet dataset. Document the rule set of the existing PL-side detector to establish a meaningful comparison baseline.
- Quantization and hardware generation: Apply quantization-aware training and generate a synthesizable inference IP using FINN or hls4ml, verify functional correctness in simulation.
Phase 2 - Core (target):
- PL integration: Integrate the inference IP with the existing Ethernet parser via AXI4-Stream, implement SOME/IP header parsing and feature extraction in hardware, expose anomaly score and class to the PS via AXI-Lite registers.
- On-board evaluation: Measure detection accuracy, false-positive rate, latency, throughput, and resource utilization on the ZCU102 at 100BASE-T1.
Key Responsibilities:
- Survey relevant literature and select a single proven detection method as the foundation.
- Train, validate, and quantize the model in Python.
- Generate, integrate, and verify the FPGA inference IP on the ZCU102.
- Evaluate the system end-to-end and document results clearly.
- Present intermediate progress in periodic meetings
Voraussetzungen
Required Skills:
- Solid background in digital design and FPGA development; experience with Xilinx Vivado/Vitis.
- Working knowledge of Python and a deep learning framework (PyTorch or TensorFlow).
- Familiarity with C/C++ and, ideally, High-Level Synthesis (HLS).
- Basic understanding of Ethernet, IP, and UDP/TCP networking.
Benefits:
- Hands-on experience with the full FPGA-ML co-design flow on automotive-relevant hardware.
- Exposure to current research in in-vehicle network dependability within the EMDRIVE project.
- Opportunity to contribute to a publishable research direction with potential for a co-authored paper.
- Collaborative environment with industry-leading partners.
Kontakt
Zafer Attal
zafer.attal@tum.de
Betreuer:
Comparative Analysis of Local vs. Cloud Processing Approaches
Beschreibung
In today’s data-driven world, processing approaches are typically divided between cloud-based solutions—with virtually unlimited resources—and localized processing, which is constrained by hardware limitations. While the cloud offers extensive computational power, localized processing is often required for real-time applications where latency and data security are critical concerns.
To bridge this gap, various algorithms have been developed to pre-process data or extract essential information before it is sent to the cloud.
The goal of this seminar is to explore and compare these algorithms, evaluating their computational load on local hardware and their overall impact on system performance.
Kontakt
Zafer Attal
zafer.attal@tum.de
Betreuer:
Design and Deployment of a Lightweight On-Device Classifier for ECU Anomaly Categorization
Beschreibung
About the Project
Modern vehicles rely on complex distributed systems and generate extensive runtime data from ECUs and in-vehicle networks. These data streams must be analyzed effectively to detect sporadic anomalies. The Diagnosis Unit (DU) currently has no integration with the cloud, which limits the possibility of remote configuration and coordination of local DU during runtime. In highly automated vehicles, real-time anomaly diagnosis is essential for safety, reliability, and early intervention. The current Diagnosis Unit (DU) architecture detects anomalies via Ethernet snooping and trace monitoring but lacks embedded intelligence to autonomously categorize anomalies.
Project Description
This thesis aims to bridge that gap by developing and deploying a lightweight Machine Learning classifier capable of locally identifying the type of anomaly based on metadata (e.g., message rates, ID sequences) and trace-level indicators (e.g., control flow deviations, instruction durations, executed functions). The classifier must be tailored for low-power, runtime embedded systems like the ZCU102 board, ensuring it meets latency, memory, and CPU constraints.
The key tasks for this internship include:
- Build an anomaly classification dataset using real and synthetic traces.
- Design a minimal-overhead classifier suitable for embedded edge platforms.
- Compare classification techniques (e.g., decision trees, TinyML NNs, rule-based logic).
- Optimize the model for execution speed and memory footprint.
- Integrate and validate the classifier within the DU software stack.
- Quantitatively evaluate accuracy, timing, and resource utilization under realistic conditions
Key Responsibilities:
- Dataset Generation: Create labeled datasets using synthetic trace injections and logged anomaly traces from Aurix boards.
- Model Development: ? Design candidate classifiers using scikit-learn and/or TensorFlow Lite for Microcontrollers. ? Evaluate trade-offs: accuracy vs. latency vs. Footprint.
- Embedded Integration: ? Port the final model to C/C++ for execution on the DU Processing System (Linux). ? Interface classifier with DU anomaly metadata and trace analyzer.
- Evaluation: ? Test classifier on live or replayed data. ? Measure detection latency, false positives/negatives, inference time, and CPU/RAM usage.
- Reporting & Documentation: ? Document training pipeline, performance evaluation, and embedded integration. ? Prepare thesis manuscript and possibly a conference/poster paper.
Voraussetzungen
Required Skills:
- Proficiency in Python and C/C++.
- Solid understanding of classification algorithms and ML evaluation metrics.
- Knowledge of real-time systems, SoC platforms, or embedded diagnostics.
- Familiarity with Linux-based systems, cross-compilation, and performance profiling.
- (Optional) Experience with Zynq boards, TinyML, or vehicle diagnostics.
Expected Deliverables:
- A functioning, embedded ML-based classification module for the DU.
- Labeled dataset and training pipeline.
- Comprehensive performance report (accuracy, timing, and system load).
- Integration with DU demonstrator showing real-time anomaly categorization.
- Final thesis manuscript and presentation.
Benefits:
- Direct impact on enhancing autonomous diagnosis in smart automotive systems.
- Hands-on deployment of real ML models in embedded systems.
- Contribute to the first intelligent self-assessing DU prototype.
- Potential for academic publication or continuation into research/industry projects.
Kontakt
Zafer Attal
zafer.attal@tum.de


