Vehicle ecu complexity degradation detection method, system, and vehicle

By constructing a baseline complexity feature vector and performing dimensionality reduction, the problem of ECU diagnosis in existing technologies being unable to distinguish between changes in operating conditions and internal anomalies is solved, enabling early detection and accurate identification of ECU degradation.

CN123178949APending Publication Date: 2026-11-27WUHAN JIANGXIA CHUNENG AUTOMOBILE TECHNOLOGY R&D CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611387695.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-08
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to simultaneously consider signal states across multiple time scales in vehicle ECU diagnostics, making it difficult to distinguish between changes in operating conditions and internal ECU anomalies, resulting in a high false alarm rate. Current analysis methods are also unable to accurately detect hidden degradation of the ECU.

Method used

By acquiring historical time series of multiple DID signals under normal vehicle conditions, complexity metrics are extracted, a baseline complexity feature vector is constructed, and after dimensionality reduction, the current signal is projected and reconstructed using a projection matrix. The reconstruction error is then calculated to determine ECU degradation.

Benefits of technology

It enables early detection of ECU degradation, improves detection sensitivity and accuracy, avoids false alarms caused by changes in operating conditions, and can capture subtle shifts in multi-scale complexity distribution when the signal mean and spectrum remain unchanged.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178949A_ABST
    Figure CN123178949A_ABST
Patent Text Reader

Abstract

The application relates to a vehicle ECU complexity degradation detection method and system and a vehicle, wherein the method comprises the following steps: acquiring historical time sequences of multiple DID signals under a normal state of the vehicle, extracting complexity measurement values of each DID signal under multiple scale factors, and determining a reference complexity feature vector based on the complexity measurement values under the scale factors; constructing a normal sample matrix by using the reference complexity feature vectors of the DID signals, performing dimension reduction processing on the normal sample matrix, and obtaining a projection matrix; determining a current complexity feature vector of a current time sequence of each DID signal under a current state of the vehicle; projecting and reconstructing the current complexity feature vectors of the DID signals through the projection matrix, calculating an error between the reconstructed current complexity feature vector and the current complexity feature vector; and determining that the vehicle ECU has complexity degradation when the error exceeds a preset threshold. The application improves the detection sensitivity and accuracy of hidden degradation of the vehicle ECU.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle diagnostic technology, and in particular to a method, system, and vehicle for detecting the complexity degradation of a vehicle ECU. Background Technology

[0002] As vehicle electronic and electrical architectures become increasingly complex, the number and functions of Electronic Control Units (ECUs) are also growing. Diagnostic systems can periodically read dozens to hundreds of data identifier (DID) measurements from multiple domains, including the powertrain, chassis, advanced driver assistance systems, and cockpit, using the SOVD (Scalable Service-Oriented Vehicle Diagnostics) protocol, forming a high-dimensional diagnostic data stream. By analyzing these diagnostic data streams, the operational status of vehicle systems can be monitored and evaluated.

[0003] Currently, ECU diagnostic data stream analysis methods are typically based on assumptions of signal stationarity or linear predictability, focusing on the numerical magnitude and frequency composition of the signal, thus limiting the analytical dimensions. Some existing technologies identify anomalies by performing statistical analysis or frequency domain transformation on the signal at a single time scale. However, anomalies within the ECU may exhibit differentiated characteristics at different time scales, and existing analytical frameworks cannot simultaneously consider signal states at multiple time scales. Furthermore, vehicles experience various operating conditions during actual operation, such as acceleration, deceleration, turning, and idling, causing normal changes in signal characteristics. Existing methods struggle to distinguish the impact of operating condition changes and internal ECU anomalies on signals in multi-channel diagnostic signals, resulting in insufficient adaptability to operating conditions and a high likelihood of false alarms.

[0004] In summary, how to perform multi-scale analysis on diagnostic signals and distinguish the different effects of changes in operating conditions and internal ECU anomalies on signals in multi-channel diagnostic signals, so as to accurately detect the hidden degradation of ECU operating status, is a technical problem that urgently needs to be solved in this field. Summary of the Invention

[0005] In view of this, it is necessary to provide a method, system and vehicle for detecting the complexity degradation of vehicle ECUs, so as to solve the technical problem of low accuracy in detecting hidden degradation of vehicle ECUs in the prior art.

[0006] To address the aforementioned problems, in a first aspect, the present invention provides a method for detecting the complexity degradation of a vehicle ECU, comprising: The historical time series of multiple DID signals under normal vehicle conditions are obtained, and the complexity metric of the historical time series of each DID signal under multiple scale factors is extracted. Based on the complexity metric of each scale, the baseline complexity feature vector corresponding to each DID signal is determined, wherein the complexity metric represents the regularity of the signal under the corresponding scale factor. A normal sample matrix is ​​constructed using the baseline complexity feature vectors of each DID signal. The normal sample matrix is ​​then dimensionality-reduced to obtain the projection matrix. Obtain the current time series of each DID signal of the vehicle in the current state, and determine the current complexity feature vector of the current time series of each DID signal; The current complexity feature vector of each DID signal is projected and reconstructed using the projection matrix, and the error between the reconstructed current complexity feature vector and the current complexity feature vector is calculated. When the error exceeds a preset threshold, it is determined that the vehicle ECU has experienced complexity degradation.

[0007] In one possible implementation, the step of extracting the complexity metric of the historical time series of each DID signal under multiple scale factors includes: The historical time series is coarsened according to multiple scale factors to obtain coarse-grained sequences corresponding to each scale factor; Calculate the sample entropy of each coarse-grained sequence to obtain the complexity metric value under the corresponding scaling factor.

[0008] In one possible implementation, the step of coarsening the historical time series according to multiple scale factors to obtain coarse-grained sequences corresponding to each scale factor includes: For each scale factor, the historical time series is divided into multiple non-overlapping windows in a continuous arrangement, and each window contains the same number of data values ​​in the historical time series as the scale factor. Calculate the average value of the data within each window; The average values ​​corresponding to each window are arranged in window order to generate a coarse-grained sequence corresponding to the scale factor.

[0009] In one possible implementation, the dimensionality reduction of the normal sample matrix to obtain the projection matrix includes: Principal component analysis was performed on the normal sample matrix to generate multiple normal principal components; The projection matrix is ​​obtained by selecting a preset number of normal principal components whose cumulative variance contribution rate exceeds a predetermined threshold from the plurality of normal principal components.

[0010] In one possible implementation, the error between the reconstructed current complexity feature vector and the current complexity feature vector includes: Calculate the difference vector between the current complexity feature vector and the reconstructed complexity feature vector; The norm of the difference vector is calculated to obtain the error.

[0011] In one possible implementation, after projecting and reconstructing the current complexity feature vectors of each DID signal using the projection matrix, the method further includes: Calculate the difference vector between the current complexity feature vector and the reconstructed complexity feature vector; The difference vectors are aggregated according to the scale factor to determine the aggregated difference value on each scale factor.

[0012] In one possible implementation, after determining the aggregated difference values ​​on each scale factor, the method further includes: Determine the scale factor interval where the peak value of the aggregated difference value is located, and the distribution state of the aggregated difference value in each scale factor interval. The scale factor interval includes [1,τ_max / 3], [τ_max / 3,2τ_max / 3] and [2τ_max / 3,τ_max], where τ_max is the maximum value among the multiple scale factors. When the peak value is located in the interval [1, τ_max / 3] and the aggregated difference value is not uniformly distributed across the scale factor intervals, it is determined to be high-frequency degradation; When the peak value is located in the interval [τ_max / 3, 2τ_max / 3] and the aggregated difference value is not uniformly distributed across the scale factor intervals, it is determined to be mid-frequency degradation; When the peak value is located in the interval [2τ_max / 3, τ_max] and the aggregated difference value is not uniformly distributed across the scale factor intervals, it is determined to be low-frequency degradation; When the aggregation difference value is uniformly distributed across all scale factor intervals, it is determined to be a broad-spectrum degradation.

[0013] One possible implementation also includes: The difference vectors are grouped according to the DID signal and the scaling factor. The norm of each group of difference vectors is calculated. The DID signal-scale combination with the largest norm is located. The DID signal in the DID signal-scale combination with the largest norm is taken as the target diagnostic object. When the degradation type is high-frequency degradation, the diagnostic suggestion for the target diagnostic object is increased interruption latency or abnormal instruction execution. When the degradation type is mid-frequency degradation, the diagnostic suggestion for the target diagnostic object is to control cycle jitter or timer drift; When the degradation type is low-frequency degradation, the diagnostic suggestion for the target diagnostic object is task scheduling blockage or memory leak. When the degradation type is broad-spectrum degradation, the diagnostic recommendation for the target diagnostic object is abnormal ECU power supply voltage or temperature.

[0014] Secondly, the present invention also provides a vehicle ECU complexity degradation detection system, comprising: The determination unit is used to acquire the historical time series of multiple DID signals under normal vehicle conditions, extract the complexity metric value of the historical time series of each DID signal under multiple scale factors, and determine the baseline complexity feature vector corresponding to each DID signal based on the complexity metric value under each scale factor, wherein the complexity metric value characterizes the regularity of the signal under the corresponding scale factor. The processing unit is used to construct a normal sample matrix based on the baseline complexity feature vector of each DID signal, and to perform dimensionality reduction processing on the normal sample matrix to obtain a projection matrix. The acquisition unit is used to acquire the current time series of each DID signal of the vehicle in the current state, and determine the current complexity feature vector of the current time series of each DID signal. The calculation unit is used to project and reconstruct the current complexity feature vector of each DID signal through the projection matrix, and calculate the error between the reconstructed current complexity feature vector and the current complexity feature vector. The detection unit is used to determine that the vehicle ECU has experienced complexity degradation when the error exceeds a preset threshold.

[0015] Thirdly, the present invention also provides a vehicle including the vehicle ECU complexity degradation detection system as described in the second aspect above.

[0016] The beneficial effects of this invention are: The vehicle ECU complexity degradation detection method provided by this invention extracts complexity metrics of the DID signal under multiple scale factors and constructs a complexity feature vector, achieving a quantitative representation of the regularity distribution of the signal at different time resolutions. This enables the capture of subtle changes in signal state in the early stages of ECU degradation, improving detection sensitivity. By constructing a normal sample matrix using the baseline complexity feature vector under normal conditions and performing dimensionality reduction to obtain a projection matrix, the current complexity feature vector can automatically adapt to changes in vehicle driving conditions after projection, avoiding false alarms caused by changes in operating conditions. By projecting and reconstructing the current complexity feature vector using the projection matrix and calculating the reconstruction error, ECU complexity degradation is determined when the reconstruction error exceeds a preset threshold, achieving automatic detection of ECU hidden degradation and improving the detection sensitivity and accuracy of ECU hidden degradation. Attached Figure Description

[0017] Figure 1 A schematic flowchart of an embodiment of the vehicle ECU complexity degradation detection method provided by the present invention; Figure 2 This is a schematic diagram of the multi-scale coarsening process provided by the present invention; Figure 3 This is a schematic diagram of multi-scale sample entropy calculation provided by the present invention; Figure 4 This is a schematic diagram of the anomaly detection and localization process provided by the present invention; Figure 5 This is a schematic diagram of the structure of the vehicle ECU complexity degradation detection system provided by the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0019] In the description of the embodiments of the present invention, unless otherwise stated, "a plurality of" means two or more.

[0020] The terms "first," "second," etc., used in the embodiments of this invention are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a technical feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature.

[0021] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0022] This invention provides a method, system, and vehicle for detecting the complexity degradation of a vehicle ECU, which will be described below.

[0023] The execution subject of the vehicle ECU complexity degradation detection method in this application embodiment can be the vehicle ECU complexity degradation detection system provided in this application embodiment, or it can be a vehicle integrated with the vehicle ECU complexity degradation detection system, a vehicle control unit, an on-board controller, or a hardware device such as a chip or processor capable of running corresponding computer programs. This application embodiment does not specifically limit it in this regard.

[0024] The vehicle ECU complexity degradation detection method of this application can be applied to vehicle diagnostic systems. It detects hidden degradation of ECU operating status by analyzing the multi-scale complexity characteristics of ECU diagnostic signals.

[0025] Figure 1 This is a schematic flowchart of an embodiment of the vehicle ECU complexity degradation detection method provided by the present invention, as shown below. Figure 1 As shown, the vehicle ECU complexity degradation detection method includes: S101. Obtain the historical time series of multiple DID signals under normal vehicle conditions, extract the complexity metric value of the historical time series of each DID signal under multiple scale factors, and determine the baseline complexity feature vector corresponding to each DID signal based on the complexity metric value under each scale factor, wherein the complexity metric value characterizes the regularity of the signal under the corresponding scale factor.

[0026] Among them, the DID signal is the signal sequence corresponding to the data identifier used to identify specific diagnostic data items in the SOVD protocol. Each DID signal corresponds to a time series measurement value of an on-board physical quantity or state quantity, such as engine speed, wheel speed or throttle opening.

[0027] Historical time series data refers to DID signal data collected during periods when a vehicle is confirmed to be in a normal state, such as data collected after a new vehicle passes production line inspection or during periodic health check windows. The historical time series of multiple DID signals under normal vehicle conditions can be obtained through the batch read interface of the SOVD protocol.

[0028] Complexity metrics are quantitative indicators used to measure the regularity of a time series at a specific time scale. The more regular the signal, the lower its complexity metric; the more random the signal, the higher its complexity metric. The specific calculation method for complexity metrics can use sample entropy, or other statistical measures used to measure the complexity of time series, such as approximate entropy, fuzzy entropy, or permutation entropy.

[0029] The baseline complexity feature vector is a vector formed by arranging the complexity metrics calculated for the same DID signal under multiple scale factors in order of scale factor. It is used to characterize the multi-scale complexity distribution of the DID signal under normal conditions. Each DID signal corresponds to one baseline complexity feature vector.

[0030] The scaling factor defines the window length used when coarsening the original time series; different scaling factors correspond to different time scales. Multiple scaling factors cover a range from short to long time scales, such as multiple time scales from milliseconds to seconds.

[0031] The inventors discovered that existing vehicle diagnostic methods generally focus on the amplitude and frequency composition of the DID signal, neglecting the signal's state characteristics between regularity and randomness. Those skilled in the art typically believe that the more stable and regular the output signal of an ECU control algorithm, the better the control effect. However, the inventors' research revealed that the signal generated by the control algorithm of a healthy ECU is actually in a state between complete regularity and complete randomness, possessing a certain degree of complexity. When hidden degradation occurs within the ECU, such as task scheduling jitter, memory fragmentation, or timer drift, this dimension of the signal will change first, but traditional statistical quantities such as the signal's mean and variance may not yet show significant changes. In other words, early signs of ECU degradation are first manifested in the multi-scale complexity distribution of the signal, rather than in traditional amplitude or frequency characteristics.

[0032] Specifically, historical time series of multiple DID signals under normal vehicle conditions are acquired through the batch read interface of the SOVD protocol. This historical time series consists of DID signal data collected during the period when the vehicle is confirmed to be in a normal state. After acquiring the historical time series, each DID signal is processed separately. For each DID signal's historical time series, its complexity metric is calculated sequentially under multiple preset scale factors. The complexity metrics calculated under each scale factor are arranged in ascending order of scale factor to obtain the baseline complexity feature vector corresponding to that DID signal. The baseline complexity feature vectors of multiple DID signals together constitute a multi-scale complexity fingerprint set of the vehicle under normal conditions.

[0033] This embodiment extracts complexity metrics of the DID signal under multiple scale factors and constructs a baseline complexity feature vector, extending the analysis of diagnostic signals from the traditional amplitude-frequency domain dimension to the complexity-scale dimension. This allows for a more comprehensive reflection of the dynamic characteristics of the ECU control algorithm output signal at different time resolutions. Compared to traditional methods that only focus on signal amplitude and frequency, making it difficult to detect abnormal changes in the ECU's internal operating state when the signal mean and spectrum have not changed significantly, the multi-scale complexity feature vector extracted in this embodiment can capture the regularity distribution of the signal at different time resolutions, thus capturing subtle changes in the signal state in the early stages of ECU degradation. Furthermore, this embodiment constructs a baseline feature vector using data collected under normal vehicle conditions, enabling subsequent anomaly detection to use the vehicle's own normal state as a reference, avoiding individual and operational condition differences caused by using a universal threshold.

[0034] S102. Construct a normal sample matrix using the baseline complexity feature vector of each DID signal, and perform dimensionality reduction processing on the normal sample matrix to obtain the projection matrix.

[0035] The normal sample matrix is ​​a matrix composed of the baseline complexity feature vectors of multiple normal samples arranged in rows. Each row corresponds to the result of concatenating the baseline complexity feature vectors of all DID signals of a normal sample.

[0036] The projection matrix is ​​a linear mapping matrix obtained by dimensionality reduction of the normal sample matrix. It is used to map feature vectors in the original high-dimensional space to a low-dimensional normal feature subspace, and to reconstruct the low-dimensional representation back to the original high-dimensional space. This projection matrix defines the subspace containing the normal state complexity feature vectors, which covers the main variation patterns of the complexity feature vectors of the vehicle under different normal operating conditions.

[0037] Specifically, the baseline complexity feature vectors of multiple normal samples are organized into a normal sample matrix. Each normal sample corresponds to the concatenation result of the baseline complexity feature vectors of all DID signals of the vehicle at a sampling time. The number of rows in the normal sample matrix corresponds to the number of normal samples, and the number of columns corresponds to the total dimension of the baseline complexity feature vectors of all DID signals. Dimensionality reduction is performed on the normal sample matrix, mapping the high-dimensional normal sample matrix to a low-dimensional subspace. Dimensionality reduction is achieved by retaining the main components with significant variance contributions from the normal sample matrix and removing redundant information and noise, resulting in a projection matrix. The subspace defined by this projection matrix can characterize the main range of variation of the complexity feature vectors of each DID signal under normal conditions.

[0038] This embodiment obtains a projection matrix by dimensionality reduction of the normal sample matrix, which reduces the dimensionality of subsequent calculations while preserving the main information of the complexity features of the normal state. Since the projection matrix is ​​constructed based on the vehicle's own normal sample data, the normal feature subspace defined by this matrix already contains the complexity feature change patterns of the vehicle under different normal operating conditions. Natural changes in signal features of the vehicle under different operating conditions such as acceleration, deceleration, turning, or idling, if still within this subspace, will not be considered abnormal, allowing anomaly detection in subsequent steps to automatically adapt to changes in driving conditions. At the same time, the dimensionality reduction process removes redundant information and noise from the normal samples, enabling the projection matrix to focus on the essential features of the normal state and avoid interference from irrelevant information in anomaly detection.

[0039] S103. Obtain the current time series of each DID signal of the vehicle in the current state, and determine the current complexity feature vector of the current time series of each DID signal.

[0040] The current complexity feature vector is a vector extracted from each DID signal in the same manner as in step S101, under the current operating state of the vehicle. It is formed by arranging the complexity metrics under multiple scale factors in the same order. The current complexity feature vector has the same dimension and arrangement order as the baseline complexity feature vector to ensure consistency comparison.

[0041] Specifically, during vehicle operation, the current time series of each DID signal in the current state is acquired in real time through the batch read interface of the SOVD protocol. The current time series has the same DID signal set and sampling format as the historical time series in step S101. After acquiring the current time series, the complexity metric value of the current time series of each DID signal is calculated under multiple preset scale factors in exactly the same way as the determination of the baseline complexity feature vector in step S101. The calculation results under each scale factor are arranged in the same order as the baseline complexity feature vector to form the current complexity feature vector corresponding to each DID signal.

[0042] This embodiment achieves real-time characterization of the vehicle's current operating state by acquiring the DID signal under the current state and calculating the current complexity feature vector. Since the current complexity feature vector and the baseline complexity feature vector use the exact same calculation method and arrangement structure, they are strictly comparable, providing an effective data foundation for subsequent accurate comparison between the current state and the normal state.

[0043] S104. Project and reconstruct the current complexity feature vector of each DID signal using the projection matrix, and calculate the error between the reconstructed current complexity feature vector and the current complexity feature vector.

[0044] The reconstructed complexity feature vector is obtained by projecting the current complexity feature vector onto the normal feature subspace using a projection matrix, and then reconstructing it back into the original vector space from that subspace. This reconstruction process simulates the recovery result of the current complexity feature vector after retaining only the main change patterns of the normal state.

[0045] Error is a quantified value representing the degree of difference between the current complexity feature vector and the reconstructed complexity feature vector, reflecting the extent to which the current complexity feature vector deviates from the normal feature subspace.

[0046] Specifically, the current complexity feature vectors of each DID signal are concatenated into a complete current complexity feature vector. This current complexity feature vector is then projected onto the normal feature subspace using a projection matrix to obtain a projected low-dimensional representation. This projected low-dimensional representation is then reconstructed back into the original vector space using the projection matrix to obtain the reconstructed complexity feature vector. Since the projection matrix is ​​obtained by dimensionality reduction based on the normal sample matrix, the feature vector in the normal state should be able to recover its original appearance well after projection and reconstruction, while feature vectors deviating from the normal state will result in significant information loss during reconstruction. The vector difference between the current complexity feature vector and the reconstructed complexity feature vector is calculated, and the norm of this vector difference is calculated as the error value. A larger norm indicates a greater difference between the two vectors, meaning a greater degree to which the current complexity feature vector deviates from the normal feature subspace.

[0047] This embodiment indirectly compares the distance between the current complexity feature vector and the normal feature subspace through projection and reconstruction. Since the subspace defined by the projection matrix already covers the normal range of signal feature changes under different vehicle operating conditions, as long as the current complexity feature vector still falls within this subspace, even if it differs from the reference vector under a specific operating condition, it will not produce a significant reconstruction error. Therefore, this embodiment can effectively distinguish between signal differences caused by normal changes in operating conditions and signal differences caused by internal ECU anomalies, avoiding false alarms caused by changes in operating conditions. Simultaneously, the reconstruction error can capture subtle shifts in the multi-scale complexity distribution that traditional amplitude statistics and spectral analysis cannot reflect, improving anomaly detection sensitivity. When early, hidden degradation occurs within the ECU, such as task scheduling jitter or memory fragmentation, the multi-scale complexity distribution of the signal shifts first, increasing the reconstruction error, while the signal mean and variance may not yet show significant changes. Therefore, this embodiment can detect abnormal changes in the signal state in the early stages of ECU degradation.

[0048] S105. When the error exceeds a preset threshold, it is determined that the vehicle ECU has experienced complexity degradation.

[0049] The preset threshold is a judgment boundary value determined based on the statistical distribution of reconstruction errors of multiple samples under normal vehicle conditions, used to distinguish the error range between normal and degraded states. Optionally, the preset threshold θ = μ_normal + 3σ_normal, where μ_normal is the mean of the reconstruction error of normal samples, and σ_normal is the standard deviation of the reconstruction error of normal samples.

[0050] Complexity degradation is a hidden deterioration in the internal operating state of the ECU, which manifests as a deviation of the multi-scale complexity distribution of diagnostic signals from the normal state, but traditional statistical quantities such as mean, variance or power spectrum may not have changed significantly.

[0051] Specifically, when the error does not exceed a preset threshold, it indicates that the current complexity feature vector is still within or near the normal feature subspace, and the complexity feature of the current ECU is consistent with the normal state, thus determining that the vehicle ECU has not experienced complexity degradation. When the calculated error value exceeds the preset threshold, it indicates that the current complexity feature vector deviates significantly from the normal feature subspace, and the complexity feature of the current ECU has deviated from the normal state, thus determining that the vehicle ECU has experienced complexity degradation.

[0052] It is worth noting that this embodiment also includes an extended SOVD protocol interface. Specifically, a first API is added for querying the entropy spectrum vector of a specified DID signal within a specified scale factor range; a second API is added for querying the current anomaly score, reconstruction error, location information, and degradation type; and a new Identification type is added, which includes fields such as anomaly score, degradation type, a list of affected DID-scale combinations, and suggested inspection directions. Through these SOVD protocol extensions, degradation detection results can be output to external diagnostic tools in a standardized interface, improving the ease of integration with existing SOVD diagnostic systems.

[0053] This embodiment achieves automatic determination of ECU complexity degradation by comparing the reconstruction error with a preset threshold. Because the reconstruction error can produce identifiable shifts when early, subtle degradation occurs within the ECU before traditional statistics show significant changes, compared to traditional diagnostic methods that rely on fault codes to trigger alarms, this embodiment can detect abnormal changes in ECU operating status earlier, providing a basis for predictive maintenance. Simultaneously, the preset threshold is determined based on the statistical distribution of normal samples from the vehicle itself, making the detection adaptive and targeted. This avoids the problem of insufficient applicability of fixed thresholds under different vehicles or operating conditions, improving the sensitivity and accuracy of detecting early, subtle degradation of the ECU.

[0054] In summary, the vehicle ECU complexity degradation detection method provided by this invention extracts complexity metrics of the DID signal under multiple scale factors and constructs a complexity feature vector, thereby achieving a quantitative representation of the regularity distribution of the signal at different time resolutions. This allows for the capture of subtle changes in signal state in the early stages of ECU degradation, improving detection sensitivity. By constructing a normal sample matrix using the baseline complexity feature vector under normal conditions and performing dimensionality reduction to obtain a projection matrix, the current complexity feature vector can automatically adapt to changes in vehicle driving conditions after projection, avoiding false alarms caused by changes in operating conditions. Furthermore, by calculating the reconstruction error after projecting and reconstructing the current complexity feature vector using the projection matrix, and determining ECU complexity degradation when the reconstruction error exceeds a preset threshold, automatic detection of ECU hidden degradation is achieved, improving the detection sensitivity and accuracy of ECU hidden degradation.

[0055] In some embodiments of the present invention, step S101 includes: coarsening the historical time series according to multiple scale factors to obtain coarse-grained sequences corresponding to each scale factor; calculating the sample entropy of each coarse-grained sequence to obtain the complexity metric value under the corresponding scale factor.

[0056] In some embodiments of the present invention, the step of coarsening the historical time series according to multiple scale factors to obtain a coarse-grained sequence corresponding to each scale factor includes: for each scale factor, dividing the historical time series into multiple non-overlapping windows in a continuous order, each window containing a number of data values ​​in the historical time series that are consistent with the scale factor; calculating the average value of the data values ​​in each window; and arranging the average values ​​corresponding to each window in the window order to generate a coarse-grained sequence corresponding to the scale factor.

[0057] Coarsening refers to dividing the original time series into multiple non-overlapping windows in a continuous sequence. Each window contains the same number of data values ​​as the scaling factor. For a given scaling factor τ, the original time series is divided into several non-overlapping windows, each with a length of τ. The average value of the data values ​​within each window is calculated, and the average values ​​of all windows are used to construct the coarsened sequence for that scaling factor. Sample entropy is a statistic used to measure the complexity of a time series. It quantifies the regularity of the sequence by the degree of repetition of similar patterns. The more regular the sequence, the lower the sample entropy; the more random the sequence, the higher the sample entropy.

[0058] Specifically, for each DID signal's historical time series, coarse-graining is performed according to multiple scale factors to obtain coarse-grained sequences corresponding to each scale factor. The specific process of coarse-graining is as follows: For a scale factor τ, the historical time series {x1, x2, ..., x_N} is divided into multiple non-overlapping windows in consecutive order, each window containing τ data values; the average value of the data values ​​within each window is calculated; the average values ​​corresponding to each window are arranged according to the window order to generate the coarse-grained sequence corresponding to that scale factor. y^(τ) = {y1^(τ), y2^(τ), ..., y_{N / τ}^(τ)}, where y_j^(τ) = (1 / τ)·Σ_{i=(j-1)τ+1}^{jτ} x_i, j = 1, 2, ..., N / τ. Here, j is the index of the data point in the coarse-grained sequence. For each DID signal, τ = 1, 2, ..., τ_max is taken respectively, resulting in τ_max coarse-grained sequences. The value of τ_max can be determined according to the signal type and sampling rate. The scale factor τ traverses from 1 to τ_max, and τ_max is set according to the signal's sampling rate to ensure that the length of each coarse-grained sequence is not less than one-tenth of the original length. For example, for a signal with a 10Hz sampling rate, τ_max can be 20 to 50, covering a time scale range of 0.1 seconds to 5 seconds.

[0059] like Figure 2The diagram shows a multi-scale coarsening process. The original time series is divided into multiple non-overlapping windows at scale factors τ=2 and τ=3, and the average value of the windows is calculated to generate the corresponding coarsened series.

[0060] After obtaining the coarse-grained sequences corresponding to each scale factor, the sample entropy of each coarse-grained sequence is calculated, and the sample entropy value corresponding to each scale factor is used as the complexity metric under that scale factor. The sample entropy is calculated as follows: for a coarse-grained sequence of length L, the embedding dimension m and similarity tolerance r are set (usually m is 2, and r is 0.15 times the standard deviation of the sequence), an m-dimensional embedding vector sequence is constructed, the number of all embedding vector pairs whose distance is less than r is counted, and the sample entropy value is calculated.

[0061] like Figure 3 The diagram shown illustrates the calculation of multi-scale sample entropy. Figure 3 This demonstrates the complete process of generating an entropy spectrum vector from a single DID signal time series through coarse-graining and sample entropy calculation: For the original time series, at scale factor 1, the sample entropy of the sequence is directly calculated, yielding a value of 0.85; at scale factor 2, the original sequence is coarsened to obtain a scale 2 sequence, and its sample entropy is calculated again, yielding a value of 0.92; at scale factor 3, coarsening yields a scale 3 sequence with a sample entropy value of 0.78; and so on, up to scale factor N, where coarsening yields a scale N sequence with a sample entropy value of 0.65. The sample entropy values ​​at each scale factor are arranged in ascending order of scale factor to form the entropy spectrum vector E = [0.85, 0.92, 0.78, ..., 0.65]. This entropy spectrum vector is a specific representation of the aforementioned baseline complexity feature vector.

[0062] Figure 3 The entropy spectrum vectors shown characterize the signal complexity distribution across multiple time scales. The entropy spectrum of a healthy ECU typically exhibits a monotonically increasing or initially increasing-then-flattening pattern, while the entropy spectrum of a degraded ECU shows abnormal spikes or dips within a specific scale range, reflecting dynamic anomalies at that time scale. Figure 3 This method can transform the original signal into an entropy spectrum vector, preserving cross-scale complexity information while reducing dimensionality, thus forming a quantifiable degradation fingerprint.

[0063] This embodiment expands the original single-scale time series into a multi-scale sequence family through coarse-grained processing, enabling subsequent complexity analysis to cover a range from short to long time scales. Internal ECU anomalies (such as task scheduling jitter and memory fragmentation) may exhibit different characteristics at different time scales, and single-scale analysis struggles to fully capture these cross-scale anomalies. This embodiment, by traversing multiple scale factors, can cover the dynamic features of multiple time scales in a single analysis, eliminating the need to design separate detectors for each degradation type. Furthermore, by calculating the sample entropy of each coarse-grained sequence as a complexity metric, the signal complexity information is quantified into a specific numerical value, improving the quantifiability and comparability of changes in signal regularity.

[0064] In some embodiments of the present invention, step S102 includes: performing principal component analysis on the normal sample matrix to generate multiple normal principal components; selecting a preset number of normal principal components from the multiple normal principal components whose cumulative variance contribution rate exceeds a predetermined threshold to obtain the projection matrix.

[0065] The normal sample matrix, denoted as X, is a matrix composed of the baseline complexity eigenvectors of multiple normal samples arranged in rows. The number of rows represents the number of normal samples, and the number of columns represents the total dimension of all DID signal baseline complexity eigenvectors. Normal principal components are the principal components obtained after performing principal component analysis on the normal sample matrix, sorted in descending order of variance contribution rate. The projection matrix, denoted as W, consists of column vectors of normal principal components selected from the normal sample matrix. The predetermined number of selected normal principal components is denoted as K.

[0066] The cumulative variance contribution rate refers to the proportion of the variance of the top few principal components to the total variance of all principal components. It measures the degree to which the selected principal components retain information from the original data. When the cumulative variance contribution rate reaches a predetermined threshold, it indicates that the selected principal components are able to represent the main variation patterns of the original data. Optionally, this predetermined threshold can be set to 95%.

[0067] Specifically, after obtaining the normal sample matrix X, principal component analysis (PCA) is performed on it. PCA calculates the covariance matrix of the normal sample matrix X, performs eigenvalue decomposition on the covariance matrix, and obtains eigenvectors arranged in descending order of eigenvalues. These eigenvectors are the normal principal components, each corresponding to an eigenvalue. The magnitude of the eigenvalue reflects the contribution of the principal component to the variance of the original data. Subsequently, the variance contribution rate of each principal component is accumulated sequentially in descending order of eigenvalues ​​until the cumulative variance contribution rate reaches or exceeds a predetermined threshold. The number of principal components satisfying this condition is denoted as K. The first K normal principal components are selected, and these K normal principal components are used as column vectors to form a projection matrix W. This projection matrix W is the projection matrix obtained after dimensionality reduction, used to project the original high-dimensional complex eigenvectors onto a low-dimensional normal eigenspace spanned by the normal principal components.

[0068] This embodiment uses principal component analysis to extract several normal principal components with the largest variance contribution rates from the normal sample matrix to form a projection matrix. This significantly reduces data dimensionality while preserving the main information of the complexity features of the normal state. Since the selected normal principal components cover the variance information above a predetermined threshold (e.g., 95%) in the normal samples, the normal feature subspace defined by the projection matrix can fully characterize the main change patterns of the complexity feature vectors of each DID signal under normal conditions.

[0069] In some embodiments of the present invention, step S104 includes: calculating the difference vector between the current complexity feature vector and the reconstructed complexity feature vector; calculating the norm of the difference vector to obtain the error.

[0070] The difference vector refers to the vector obtained by subtracting each component from the current complexity feature vector and the reconstructed complexity feature vector. This vector retains the direction and magnitude of the difference in each component.

[0071] The norm is a scalar value obtained by calculating the magnitude of the difference vector. The error is the norm, used to quantify the degree to which the current complexity feature vector deviates from the normal feature subspace.

[0072] Specifically, the current complexity feature vector is subtracted component by component from the reconstructed complexity feature vector in the same coordinate system to obtain the difference vector. Each component of this difference vector corresponds to the difference value of a DID signal at a certain scale factor, reflecting the contribution of the DID signal-scale combination to the overall anomaly. Then, the norm of this difference vector is calculated.

[0073] like Figure 4The diagram shows the anomaly detection and localization process, corresponding to the complete process of projection, reconstruction, error calculation and threshold comparison through the projection matrix in steps S104 to S105, as well as the operation of locating the component that contributes the most in step S104.

[0074] like Figure 4 As shown, the online entropy spectrum vector at the input end, which is the complete vector formed by concatenating the current complexity feature vectors corresponding to each DID signal, is denoted as e. Figure 4 The central part is the baseline subspace, which is the normal feature subspace defined by the projection matrix W. The figure also shows the functional modules of the scorer. After the online entropy spectrum vector is input into the scorer, it is first projected through the projection matrix W, with the projection formula e_proj = W^T·e, projecting the current entropy spectrum vector onto the baseline subspace to obtain the projected low-dimensional representation. Then, reconstruction is performed, with the reconstruction formula e_recon = W·e_proj, reconstructing the projected low-dimensional representation back into the original vector space to obtain the reconstructed entropy spectrum vector. Next, the reconstruction error is calculated, with the formula reconstruction error = ||e - e_recon||2, which is the L2 norm between the current entropy spectrum vector and the reconstructed entropy spectrum vector.

[0075] Figure 4 The diagram also illustrates the threshold comparison and branching process. When the reconstruction error is less than the threshold θ, the current state is determined to be normal, and a normal result is output. When the reconstruction error is greater than or equal to the threshold θ, the current state is determined to be abnormal, and the process proceeds to the step of the component contributing the most to the localization. Finally, the abnormal score and localization information are output, including the DID-scale combination that contributes the most.

[0076] It should be understood that Figure 4 The projection, reconstruction, and reconstruction error calculation process shown corresponds to the specific implementation of step S104, which involves projecting and reconstructing the current complexity feature vector using a projection matrix and calculating the error. Figure 4 The threshold θ corresponds to the preset threshold in step S105, which is the sum of the mean of the reconstruction error of normal samples and three times the standard deviation. Figure 4 The component with the largest localization contribution corresponds to the component contribution analysis of abnormal localization in step S104, that is, grouping the difference vectors according to DID and scale factor and locating the DID-scale combination with the largest norm.

[0077] This embodiment aggregates multidimensional difference information into a single scalar error value by calculating the norm of the difference vector, enabling subsequent threshold comparisons to be performed on a single numerical value and reducing the complexity of the judgment. Simultaneously, since the norm calculation preserves the square information of each component, significant deviations in any dimension will contribute to the error value, ensuring anomaly detection sensitivity. Furthermore, by quantifying the reconstruction error as a scalar, the detection results between different times and different vehicles are comparable, providing a unified quantitative basis for threshold setting and degradation judgment.

[0078] In some embodiments of the present invention, after step S104, the method further includes: calculating the difference vector between the current complexity feature vector and the reconstructed complexity feature vector; aggregating the difference vector according to the scale factor to determine the aggregated difference value on each scale factor.

[0079] The difference vector refers to the vector obtained by subtracting the current complexity feature vector from the reconstructed complexity feature vector component by component. This vector contains the difference information of each DID signal under each scale factor, and is denoted as d = e - e_recon.

[0080] Aggregated difference value refers to the value obtained by merging all components belonging to the same scale factor in the difference vector, and is used to reflect the overall degree of difference on that scale factor.

[0081] Specifically, the components of the difference vector are grouped according to a scaling factor. The dimension of the difference vector is N×τ_max, where each component corresponds to the difference value of a DID signal at a scaling factor τ. All difference components corresponding to the same DID at the same scaling factor τ are grouped together, resulting in a total of τ_max groups. Aggregation calculations are performed on the difference components within each group. These aggregation calculations include, but are not limited to, calculating the norm of the difference vectors for each group, calculating the sum of the absolute values ​​of the difference components in each group, or calculating the sum of the squares of the difference components in each group. Through these aggregation operations, aggregated difference values ​​corresponding to each scaling factor τ are obtained, forming an aggregated difference value sequence of length τ_max. This sequence reflects the distribution of difference energy at different time scales.

[0082] Understandably, this embodiment aggregates the difference vectors according to the scale factor, merging the difference information distributed in the difference vectors along both the DID and scale factor dimensions into a single scale factor dimension, thereby obtaining the distribution of difference energy across each scale factor. This aggregated difference value sequence preserves the distribution pattern of difference energy along the time scale dimension, providing a data foundation for subsequent identification of degradation types based on the aggregation characteristics of difference energy across different scale factor intervals.

[0083] In some embodiments of the present invention, after determining the aggregated difference value on each scale factor, the method further includes: determining the scale factor interval in which the peak value of the aggregated difference value is located, and the distribution state of the aggregated difference value on each scale factor interval, wherein the scale factor interval includes [1, τ_max / 3], [τ_max / 3, 2τ_max / 3] and [2τ_max / 3, τ_max], and τ_max is the maximum value among the plurality of scale factors; when the peak value is located in the interval [1, τ_max / 3] and the aggregated difference value is not uniformly distributed on each scale factor interval, it is determined to be high-frequency degradation; when the peak value is located in the interval [τ_max / 3, 2τ_max / 3] and the aggregated difference value is not uniformly distributed on each scale factor interval, it is determined to be mid-frequency degradation; when the peak value is located in the interval [2τ_max / 3, τ_max] and the aggregated difference value is not uniformly distributed on each scale factor interval, it is determined to be low-frequency degradation; when the aggregated difference value is uniformly distributed on each scale factor interval, it is determined to be broad-spectrum degradation.

[0084] Among them, the aggregated difference value refers to the numerical value obtained by aggregating the difference vector according to the scale factor dimension, which reflects the overall degree of difference under each scale factor.

[0085] The scale factor interval divides the range of scale factor values ​​from 1 to τ_max into three equally spaced intervals: [1, τ_max / 3], [τ_max / 3, 2τ_max / 3], and [2τ_max / 3, τ_max], where τ_max is the maximum value among the multiple scale factors.

[0086] The peak value refers to the scale factor position corresponding to the maximum value of the aggregated difference value on each scale factor.

[0087] High-frequency degradation refers to a degradation type in which the peak value is located within the smallest one-third scale factor interval [1, τ_max / 3] and the aggregated difference value is unevenly distributed in each interval, corresponding to high-frequency dynamic anomalies at the microsecond or millisecond level inside the ECU.

[0088] Mid-frequency degradation refers to a degradation type in which the peak value is located within the middle third of the scale factor interval [τ_max / 3, 2τ_max / 3] and the aggregated difference value is unevenly distributed in each interval. It corresponds to mid-frequency dynamic anomalies in the ECU at the millisecond to hundred-millisecond level.

[0089] Low-frequency degradation refers to a degradation type in which the peak value is located within the largest one-third scale factor interval [2τ_max / 3, τ_max] and the aggregated difference value is unevenly distributed in each interval, corresponding to low-frequency dynamic anomalies at the second or minute level inside the ECU.

[0090] Broad-spectrum degradation refers to a degradation type in which the aggregate difference value is evenly distributed across all scale factor ranges without obvious peaks, corresponding to a comprehensive decline in the overall performance of the ECU.

[0091] Specifically, after obtaining the aggregated difference values ​​at each scale factor, the scale factor intervals where the peak values ​​of the aggregated difference values ​​are located are first determined, and it is judged whether the distribution of the aggregated difference values ​​at each scale factor interval is uniform. If the peak value is located in the interval [1, τ_max / 3] and the distribution is uneven, it is determined to be high-frequency degradation; if the peak value is located in the interval [τ_max / 3, 2τ_max / 3] and the distribution is uneven, it is determined to be mid-frequency degradation; if the peak value is located in the interval [2τ_max / 3, τ_max] and the distribution is uneven, it is determined to be low-frequency degradation; if the aggregated difference values ​​are uniformly distributed at each scale factor interval, it is determined to be broad-spectrum degradation.

[0092] Understandably, this embodiment classifies ECU degradation into four categories—high-frequency, mid-frequency, low-frequency, and broad-spectrum—based on the peak position and uniformity of the aggregated difference values. This classification method allows different types of ECU internal failure mechanisms to be reflected in different regions of the entropy spectrum—high-frequency degradation corresponds to interrupt delays or instruction execution anomalies, mid-frequency degradation corresponds to control cycle jitter or timer drift, low-frequency degradation corresponds to task scheduling blockages or memory leaks, and broad-spectrum degradation corresponds to an overall decline in ECU performance. By further refining the abstract entropy spectrum shift into actionable degradation types, a classification basis is provided for subsequent targeted diagnostic recommendations.

[0093] In some embodiments of the present invention, the method further includes: grouping the difference vectors according to the DID signal and the scaling factor, calculating the norm of each group of difference vectors, locating the DID signal-scale combination with the largest norm, and taking the DID signal in the DID signal-scale combination with the largest norm as the target diagnostic object; when the degradation type is high-frequency degradation, the diagnostic suggestion for the target diagnostic object is increased interrupt latency or abnormal instruction execution; when the degradation type is mid-frequency degradation, the diagnostic suggestion for the target diagnostic object is control cycle jitter or timer drift; when the degradation type is low-frequency degradation, the diagnostic suggestion for the target diagnostic object is task scheduling blockage or memory leak; when the degradation type is broad-spectrum degradation, the diagnostic suggestion for the target diagnostic object is abnormal ECU power supply voltage or temperature.

[0094] The target diagnostic object refers to the DID signal in the DID signal-scale combination with the largest norm, that is, the signal channel with the largest contribution value in the entire difference vector. This DID signal is the signal channel with the largest norm of its difference vector components among all DID signals and all scale factors, representing the diagnostic data source with the most severe degradation.

[0095] Specifically, firstly, the difference vectors are grouped according to the DID signal and scale factor, with each group corresponding to a difference component of the DID signal under one scale factor. The norm of each group's difference vector is calculated as the contribution value of that group. The group with the largest norm is located among all groups, obtaining the DID signal-scale combination with the largest norm, and the DID signal in this combination is taken as the target diagnostic object. Then, based on the degradation type, diagnostic suggestions are output for the target diagnostic object. When the degradation type is high-frequency degradation, the diagnostic suggestion for the target diagnostic object is increased interrupt latency or abnormal instruction execution; when the degradation type is mid-frequency degradation, the diagnostic suggestion is control cycle jitter or timer drift; when the degradation type is low-frequency degradation, the diagnostic suggestion is task scheduling blockage or memory leak; when the degradation type is broad-spectrum degradation, the diagnostic suggestion is abnormal ECU power supply voltage or temperature.

[0096] Understandably, this embodiment uses the DID signal-scale combination with the largest positioning norm to accurately identify the most severely degraded signal channel from among many DID signals as the target diagnostic object, effectively narrowing the scope of fault diagnosis.

[0097] Furthermore, by combining the degradation type with the target diagnostic object, the output diagnostic suggestions not only indicate the specific failure mechanism inside the ECU, but also point to the specific signal channel, enabling maintenance engineers to quickly locate the root cause of degradation inside the ECU and carry out targeted inspections, avoiding blind troubleshooting.

[0098] To better implement the vehicle ECU complexity degradation detection method in this embodiment of the invention, based on the vehicle ECU complexity degradation detection method, such as... Figure 5 As shown, this embodiment of the invention also provides a vehicle ECU complexity degradation detection system. The vehicle ECU complexity degradation detection system 500 includes: The determining unit 501 is used to acquire the historical time series of multiple DID signals under normal vehicle conditions, extract the complexity metric value of the historical time series of each DID signal under multiple scale factors, and determine the baseline complexity feature vector corresponding to each DID signal based on the complexity metric value under each scale factor, wherein the complexity metric value characterizes the regularity of the signal under the corresponding scale factor. The processing unit 502 is used to construct a normal sample matrix using the baseline complexity feature vector of each DID signal, and to perform dimensionality reduction processing on the normal sample matrix to obtain a projection matrix. The acquisition unit 503 is used to acquire the current time series of each DID signal of the vehicle in the current state, and determine the current complexity feature vector of the current time series of each DID signal. The calculation unit 504 is used to project and reconstruct the current complexity feature vector of each DID signal through the projection matrix, and calculate the error between the reconstructed current complexity feature vector and the current complexity feature vector. The detection unit 505 is used to determine that the vehicle ECU has undergone complexity degradation when the error exceeds a preset threshold.

[0099] The vehicle ECU complexity degradation detection system 300 provided in the above embodiments can implement the technical solutions described in the above vehicle ECU complexity degradation detection method embodiments. The specific implementation principles of each module or unit can be found in the corresponding content in the above vehicle ECU complexity degradation detection method embodiments, and will not be repeated here.

[0100] Accordingly, this application also provides a vehicle including the vehicle ECU complexity degradation detection system provided in any of the above embodiments. The vehicle may be a gasoline-powered vehicle, a plug-in hybrid electric vehicle, or a new energy vehicle, etc., and this specification does not specifically limit it.

[0101] Accordingly, this application also provides a computer-readable storage medium for storing computer-readable programs or instructions. When the programs or instructions are executed by a processor, they can implement the steps or functions of the vehicle ECU complexity degradation detection method provided in the above-described method embodiments.

[0102] Those skilled in the art will understand that all or part of the processes of the methods described in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.), and the computer program can be stored in a computer-readable storage medium. The computer-readable storage medium may be a disk, optical disk, read-only memory, or random access memory, etc.

[0103] The above provides a detailed description of the vehicle ECU complexity degradation detection method, system, and vehicle provided by this invention. Specific examples have been used to illustrate the principles and implementation methods of this invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.

Claims

1. A method for detecting the complexity degradation of a vehicle ECU, characterized in that, include: The historical time series of multiple DID signals under normal vehicle conditions are obtained, and the complexity metric of the historical time series of each DID signal under multiple scale factors is extracted. Based on the complexity metric of each scale, the baseline complexity feature vector corresponding to each DID signal is determined, wherein the complexity metric represents the regularity of the signal under the corresponding scale factor. A normal sample matrix is ​​constructed using the baseline complexity feature vectors of each DID signal. The normal sample matrix is ​​then dimensionality-reduced to obtain the projection matrix. Obtain the current time series of each DID signal of the vehicle in the current state, and determine the current complexity feature vector of the current time series of each DID signal; The current complexity feature vector of each DID signal is projected and reconstructed using the projection matrix, and the error between the reconstructed current complexity feature vector and the current complexity feature vector is calculated. When the error exceeds a preset threshold, it is determined that the vehicle ECU has experienced complexity degradation.

2. The vehicle ECU complexity degradation detection method according to claim 1, characterized in that, The complexity metric for extracting the historical time series of each DID signal under multiple scale factors includes: The historical time series is coarsened according to multiple scale factors to obtain coarse-grained sequences corresponding to each scale factor; Calculate the sample entropy of each coarse-grained sequence to obtain the complexity metric value under the corresponding scaling factor.

3. The vehicle ECU complexity degradation detection method according to claim 2, characterized in that, The step of coarsening the historical time series according to multiple scale factors to obtain coarse-grained sequences corresponding to each scale factor includes: For each scale factor, the historical time series is divided into multiple non-overlapping windows in a continuous arrangement, and each window contains the same number of data values ​​in the historical time series as the scale factor. Calculate the average value of the data within each window; The average values ​​corresponding to each window are arranged in window order to generate a coarse-grained sequence corresponding to the scale factor.

4. The vehicle ECU complexity degradation detection method according to claim 1, characterized in that, The step of reducing the dimensionality of the normal sample matrix to obtain the projection matrix includes: Principal component analysis was performed on the normal sample matrix to generate multiple normal principal components; The projection matrix is ​​obtained by selecting a preset number of normal principal components whose cumulative variance contribution rate exceeds a predetermined threshold from the plurality of normal principal components.

5. The vehicle ECU complexity degradation detection method according to claim 1, characterized in that, The error between the reconstructed current complexity feature vector and the current complexity feature vector includes: Calculate the difference vector between the current complexity feature vector and the reconstructed complexity feature vector; The norm of the difference vector is calculated to obtain the error.

6. The vehicle ECU complexity degradation detection method according to claim 3, characterized in that, After projecting and reconstructing the current complexity feature vector of each DID signal using the projection matrix, the process further includes: Calculate the difference vector between the current complexity feature vector and the reconstructed complexity feature vector; The difference vectors are aggregated according to the scale factor to determine the aggregated difference value on each scale factor.

7. The vehicle ECU complexity degradation detection method according to claim 6, characterized in that, After determining the aggregated difference values ​​on each scale factor, the process further includes: Determine the scale factor interval where the peak value of the aggregated difference value is located, and the distribution state of the aggregated difference value in each scale factor interval. The scale factor interval includes [1,τ_max / 3], [τ_max / 3,2τ_max / 3] and [2τ_max / 3,τ_max], where τ_max is the maximum value among the multiple scale factors. When the peak value is located in the interval [1, τ_max / 3] and the aggregated difference value is not uniformly distributed across the scale factor intervals, it is determined to be high-frequency degradation; When the peak value is located in the interval [τ_max / 3, 2τ_max / 3] and the aggregated difference value is not uniformly distributed across the scale factor intervals, it is determined to be mid-frequency degradation; When the peak value is located in the interval [2τ_max / 3, τ_max] and the aggregated difference value is not uniformly distributed across the scale factor intervals, it is determined to be low-frequency degradation; When the aggregation difference value is uniformly distributed across all scale factor intervals, it is determined to be a broad-spectrum degradation.

8. The vehicle ECU complexity degradation detection method according to claim 7, characterized in that, Also includes: The difference vectors are grouped according to the DID signal and the scaling factor. The norm of each group of difference vectors is calculated. The DID signal-scale combination with the largest norm is located. The DID signal in the DID signal-scale combination with the largest norm is taken as the target diagnostic object. When the degradation type is high-frequency degradation, the diagnostic suggestion for the target diagnostic object is increased interruption latency or abnormal instruction execution. When the degradation type is mid-frequency degradation, the diagnostic suggestion for the target diagnostic object is to control cycle jitter or timer drift; When the degradation type is low-frequency degradation, the diagnostic suggestion for the target diagnostic object is task scheduling blockage or memory leak. When the degradation type is broad-spectrum degradation, the diagnostic recommendation for the target diagnostic object is abnormal ECU power supply voltage or temperature.

9. A vehicle ECU complexity degradation detection system, characterized in that, The system includes: The determination unit is used to acquire the historical time series of multiple DID signals under normal vehicle conditions, extract the complexity metric value of the historical time series of each DID signal under multiple scale factors, and determine the baseline complexity feature vector corresponding to each DID signal based on the complexity metric value under each scale factor, wherein the complexity metric value characterizes the regularity of the signal under the corresponding scale factor. The processing unit is used to construct a normal sample matrix based on the baseline complexity feature vector of each DID signal, and to perform dimensionality reduction processing on the normal sample matrix to obtain a projection matrix. The acquisition unit is used to acquire the current time series of each DID signal of the vehicle in the current state, and determine the current complexity feature vector of the current time series of each DID signal. The calculation unit is used to project and reconstruct the current complexity feature vector of each DID signal through the projection matrix, and calculate the error between the reconstructed current complexity feature vector and the current complexity feature vector. The detection unit is used to determine that the vehicle ECU has experienced complexity degradation when the error exceeds a preset threshold.

10. A vehicle, characterized in that, Includes the vehicle ECU complexity degradation detection system as described in claim 9.