In-Vehicle CAN Intrusion Detection With Lightweight Ensemble Models

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing intrusion detection methods for in-vehicle controller area networks face challenges due to high computation costs and inefficiencies, particularly in environments with limited computing capability, and are not suitable for real-time detection of network attacks.

Innovation Solution

A method utilizing particle swarm optimization (PSO)-light gradient boosting machine (LightGBM) bidirectional feature selection and a stacking integrated model, combined with clustering and mixed sampling techniques, to enhance detection accuracy and reduce training time, including data preprocessing, feature selection, and model integration.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If deep learning methods are used for intrusion detection, then detection accuracy is improved, but computation cost increases

Engineering Contradiction:
Improvedetection accuracyVSAvoidcomputation cost
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The patent segments the intrusion detection task into two distinct phases: an offline training phase that uses deep learning methods to build comprehensive detection models, and an online detection phase that employs lightweight inference algorithms. This segmentation allows the system to leverage the high accuracy of deep learning during training while minimizing computation costs during real-time operation in resource-constrained in-vehicle environments.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary action by pre-training deep learning models offline using extensive datasets and computational resources. The trained models are then deployed to in-vehicle systems where they perform lightweight inference. This preliminary training phase captures complex attack patterns beforehand, enabling efficient real-time detection without requiring heavy computation during actual intrusion detection in the vehicle.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If traditional machine learning algorithms are used, then computation efficiency is improved, but detection accuracy decreases

Engineering Contradiction:
Improvecomputation efficiencyVSAvoiddetection accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent merges multiple machine learning algorithms (Random Forest, XGBoost, LightGBM) into an ensemble system that leverages the strengths of each individual algorithm. By combining these models, the system achieves higher detection accuracy than any single algorithm could provide alone, while maintaining computational efficiency through optimized inference processes suitable for in-vehicle environments.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent creates a composite detection system that integrates multiple algorithmic 'materials' with different properties. Each machine learning algorithm contributes unique detection capabilities, and their combination forms a robust composite model that achieves high accuracy while maintaining computational efficiency. This composite approach allows the system to benefit from diverse detection strategies simultaneously.

Inventive Principle:
Principle #40Composite materials

3Measurement precision

If more features are used for detection, then detection accuracy is improved, but model complexity increases

Engineering Contradiction:
Improvedetection accuracyVSAvoidmodel complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent extracts and selects only the most discriminative features from a large pool of potential features using feature importance analysis and selection algorithms. This extraction process identifies and retains the critical features that contribute most to detection accuracy while discarding redundant or less informative features, thereby reducing model complexity without significantly compromising detection performance.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent applies local quality by assigning different weights and importance levels to different features based on their discriminatory power. Rather than treating all features uniformly, the system identifies specific high-value features that are locally optimal for detecting particular types of intrusions, creating a more efficient and less complex model structure that focuses computational resources on the most informative features.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS12445851B2Intrusion detection method and device for in-vehicle controller area network
Publication Date: 2025.10.14 NANJING UNIV OF SCI & TECH
  • US12445851B2 patent drawing
  • US12445851B2 patent drawing
  • US12445851B2 patent drawing

AI summary

The present disclosure belongs to the technical field of security of the Internet of vehicles, and discloses an intrusion detection method and device for an in-vehicle controller area network. The method of the present disclosure includes: digitizing and normalizing collected original data, obtaining preprocessed data, and dividing the preprocessed data into a training set and a test set; conducting feature selection on the preprocessed data through a particle swarm optimization (PSO)-light gradient boosting machine (GBM) bidirectional feature selection method; and classifying test set data subjected to the feature selection with a stacking integrated model, and obtaining an intrusion detection result. The present disclosure is configured to efficiently and accurately detect intrusion information appearing in the in-vehicle controller area network, and prevent security incidents of the Internet of vehicles caused by intrusion into the in-vehicle controller area network.