Federal incremental learning-based battery health diagnosis method and system for autonomous truck fleet
By employing a federated incremental learning approach, an edge-cloud collaborative architecture is constructed. The client only uploads encrypted model parameters. Combined with additive homomorphic encryption and secure transmission, the issues of data privacy, model generalization, and service continuity in battery health diagnosis of autonomous truck fleets are resolved, achieving high-precision battery health status assessment and remaining life prediction.
Patent Information
- Application Number
- CN202611361275.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-27
AI Technical Summary
Battery health diagnostics for autonomous truck fleets suffer from issues such as insufficient data privacy protection, weak model generalization ability, difficulty in adapting to incremental data, and poor service continuity under complex operating conditions.
We adopt a federated incremental learning approach, which constructs an edge-cloud collaborative federated learning architecture. The client only uploads the encrypted model parameter updates. Combined with additive homomorphic encryption and secure transmission protocol, we achieve cross-vehicle collaborative modeling and perform incremental training and diagnosis locally. We integrate knowledge distillation loss and elastic weight consolidation loss to prevent catastrophic forgetting. We use encoder-decoder deep network to assess battery health status and predict remaining life.
It has improved the generalization ability and service continuity of diagnostic models while protecting data privacy, prevented catastrophic amnesia, and improved the accuracy of battery health status assessment and remaining life prediction.
Smart Images

Figure CN123179352A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power battery health management technology, and in particular to a method and system for diagnosing the battery health of an autonomous truck fleet based on federated incremental learning. Background Technology
[0002] As autonomous driving technology is gradually implemented in the commercial vehicle sector, the scale of autonomous truck fleets continues to expand. The health status of the power batteries in these fleets directly impacts vehicle operational safety and efficiency. Accurately assessing the State of Health (SOH) and predicting the Remaining Useful Life (RUL) is crucial for fleet preventative maintenance and scheduling decisions.
[0003] The existing battery health diagnostic solutions for autonomous truck fleets have the following main shortcomings:
[0004] First, there is insufficient protection of data privacy. Traditional centralized diagnostic methods require uploading the raw battery operating data of each vehicle to the cloud for centralized training. However, the raw battery data contains sensitive operational information such as truck operating routes, load conditions, and charging habits. Centralized transmission and storage pose a risk of data leakage, and large-scale data transmission consumes a lot of communication bandwidth, making it difficult to meet the low-latency requirements of real-time diagnostics.
[0005] Second, the model has weak generalization ability. In the single-vehicle independent modeling scheme, each vehicle trains its diagnostic model based on its own limited battery data. The data volume is insufficient and the operating conditions are limited, making it difficult for the model to adapt to the diverse operating conditions of different vehicles and different operating scenarios in the fleet, resulting in a continuous decline in long-term diagnostic accuracy.
[0006] Third, it struggles to adapt to incremental data. Battery operation data is continuously generated incrementally, and ordinary federated learning solutions use a full-scale training mode, which cannot effectively handle incremental data. When learning new data patterns, the model is prone to catastrophic forgetting and cannot balance the ability to learn new scenarios with the ability to retain old knowledge.
[0007] Fourth, poor service continuity under complex operating conditions. The fleet operates in a complex environment. Vehicles may go offline or experience network interruptions due to entering signal blind spots, and cloud servers may also experience temporary failures. Traditional solutions are prone to interruptions in diagnostic services and loss of training processes under these extreme conditions, making it difficult to guarantee the stable operation of the fleet around the clock.
[0008] Therefore, there is an urgent need for a battery health diagnostic solution for autonomous truck fleets that can achieve cross-vehicle collaborative modeling, adapt to incremental data for continuous learning, and maintain service continuity under complex operating conditions while protecting data privacy. Summary of the Invention
[0009] This invention overcomes the shortcomings of existing technologies and provides a battery health diagnosis method for autonomous truck fleets based on federated incremental learning.
[0010] To achieve the above objectives, the technical solution adopted by this invention is: a battery health diagnosis method for an autonomous truck fleet based on federated incremental learning, comprising the following steps:
[0011] S1. Construct a federated learning architecture that integrates end-to-end cloud: Deploy a federated server in the cloud and deploy a local client on each autonomous truck; the client only uploads encrypted model parameter updates to the server and does not transmit raw battery data;
[0012] S2. Client-side incremental acquisition and preprocessing of battery time-series data: The vehicle battery management system continuously acquires multi-dimensional time-series battery data, uses a sliding time window for cache management, and performs outlier cleaning, missing value imputation, health feature extraction and normalization on the acquired data to form a standardized incremental sample sequence.
[0013] S3. Perform local incremental model training based on knowledge constraints: The client downloads the latest global model from the server and performs incremental training using locally added standardized incremental samples; a deep network adapted to multivariate time-series data is used as the diagnostic prediction model, simultaneously outputting battery health status assessment values and remaining life prediction values; the training objective function integrates standard task loss, knowledge distillation loss, and elastic weight consolidation loss, using knowledge distillation loss to constrain the output difference between the new model and the old global model, and using elastic weight consolidation loss to constrain model parameters important to historical tasks, in order to prevent catastrophic forgetting in incremental training; after training is completed, an encrypted model parameter update is generated and uploaded to the server;
[0014] S4. Secure aggregation and global model iteration update in the cloud: The server receives the model parameter update amount uploaded by each client in encryption, performs a weighted aggregation operation on the model parameter update amount of each client in the ciphertext field using the additive homomorphic encryption feature, decrypts only the aggregated global update amount to update the global model, and sends the updated global model to each client.
[0015] S5. Achieve closed-loop operation of diagnosis, monitoring, and adaptive triggering: The client deploys the updated global model to perform real-time battery health diagnosis, and reports the diagnosis results to the fleet management platform; continuously monitor two indicators: the degree of model performance degradation and the distribution offset of new data features; adaptively set the trigger thresholds for each indicator based on the statistical characteristics of historical normal operation data; when any monitored indicator exceeds its corresponding trigger threshold, the client initiates a retraining request to the server; the server automatically starts a new round of federated training based on the proportion of clients receiving retraining requests or the detected regional operating condition changes.
[0016] In a preferred embodiment of the present invention, in step S1, the communication between the client and the server adopts a two-way authentication mechanism based on X.509 digital certificates, and the data transmission adopts the TLS 1.3 secure transmission protocol; the model parameter update amount is encrypted using the Paillier additive homomorphic encryption algorithm, and the server aggregates the model parameter update amounts of each client through weighted operations in the ciphertext field. The global model update amount is only obtained by decrypting with the private key after the aggregation is completed. The model parameter update amount of a single client cannot be decrypted and spied on by the server.
[0017] In a preferred embodiment of the present invention, in step S2, the battery multidimensional time-series data includes battery cell voltage, total current, multi-point temperature, AC internal resistance, state of charge, and vehicle load power. A double-buffered sliding window mechanism is used to manage the data. A fixed-length first-in-first-out buffer queue is used to store the latest collected raw time-series data, and another processing queue is used to store standardized samples that have completed preprocessing. The outlier cleaning combines physical boundary constraints and statistical outlier detection. First, data that exceeds a reasonable physical range is removed, and then outliers are identified based on the mean and standard deviation within the sliding window. The missing value imputation adopts different strategies according to the missing duration. When the missing duration is less than a preset threshold, linear interpolation is used for imputation. When the missing duration is greater than or equal to the preset threshold, historical data sliding mean compensation under the same operating conditions is used. The extracted health features include capacity decay trend, internal resistance change rate, temperature rise rate, and charge / discharge voltage difference. All features are time-aligned and then normalized using Z-score based on historical sliding window statistics.
[0018] In a preferred embodiment of the present invention, in step S3, the deep network adapted to multivariate time-series data adopts an encoder-decoder architecture; the encoder adopts a hybrid structure of stacked bidirectional LSTM layers and one-dimensional temporal convolutional layers to capture long-short-term dependencies and local patterns in battery multivariate time-series data; the decoder includes two parallel fully connected output heads, which respectively output the regression value of battery health status and the predicted value of remaining life, realizing the simultaneous output of multi-task battery health assessment and remaining life prediction.
[0019] In a preferred embodiment of the present invention, in step S3, the training objective function is: ,in, As a standard task loss, the mean squared error loss is used to calculate the joint error between the predicted battery health status and the predicted remaining life. The knowledge distillation loss is used to constrain the difference between the output of the new model and the output of the old global model, thereby achieving the transfer and preservation of historical diagnostic knowledge. To consolidate the loss with elastic weights, the importance of each model parameter to the historical task is quantified by the Fisher information matrix calculated by approximation, and a penalty is imposed on parameters with high importance that deviate from the global model parameter values. and The knowledge distillation weight and the elasticity weight are respectively determined by grid search on the local validation set.
[0020] In a preferred embodiment of the present invention, in step S4, the aggregation weight of the weighted aggregation operation is obtained by normalizing the calculation based on the effective sample size of each client in this round, the historical data quality score, and the participation stability coefficient; the historical data quality score is calculated based on the reciprocal of the client's historical diagnostic error, and the participation stability coefficient is the proportion of rounds in which the client successfully participated in aggregation in the past multiple training rounds; for clients that failed to participate in the current round of aggregation in time due to network or equipment failure, the server retains the effective model state of the previous round, allowing them to submit model parameter updates or reconnect to training in subsequent rounds.
[0021] In a preferred embodiment of the present invention, in step S5, the model performance degradation index is the relative rate of change between the average validation loss of the model on a number of recent new samples and the historical baseline loss; the data feature distribution offset index is obtained by extracting the principal projection direction of historical features through principal component analysis, calculating the one-dimensional Wasserstein distance between the new feature and the historical feature in this direction and taking the maximum value; the trigger threshold of the model performance degradation index is set as a preset multiple of the standard deviation of the historical baseline loss on the historical validation set, and the trigger threshold of the data feature distribution offset index is determined based on the preset quantile of the offset distance distribution between historical normal samples.
[0022] In a preferred embodiment of the present invention, in step S5, the triggering conditions for the server to automatically start a new round of federated training include: the proportion of the number of clients receiving retraining requests to the total number of online clients exceeds a preset proportion, or the server detects regional changes in operating conditions by analyzing the trend of diagnostic results reported by each client; the method also includes an anomaly fault tolerance mechanism: when a client is offline or the network is interrupted, the latest local model is used to continue real-time diagnosis, and the model parameter update amount and monitoring log generated in this round of training are written to a local persistent cache queue. After the network is restored, the interrupted transmission is executed in the order of the timestamp of the cache queue; when the server fails, the fleet management platform switches to read-only diagnostic mode, only receives and displays the diagnostic results reported by each client, suspends model aggregation and issuing instructions, and after the server recovers, the status of each client is synchronized and compensatory aggregation or rescheduling training is performed.
[0023] In a preferred embodiment of the present invention, a battery health diagnostic system for an autonomous truck fleet based on federated incremental learning is provided, including a cloud federated server and a local client deployed on each autonomous truck.
[0024] The cloud-based federated server includes a global model maintenance module, a training scheduling module, and a security aggregation module.
[0025] The global model maintenance module is used to maintain and update the global diagnostic model; the training scheduling module is used to coordinate the federated training process in training rounds, manage client registration and status, select a subset of clients participating in the current training round from online clients, and distribute the current global model to the selected clients; the secure aggregation module is used to receive the encrypted model parameter update amount uploaded by each client, perform a weighted aggregation operation on the model parameter update amount of each client in the ciphertext domain using the additive homomorphic encryption property, decrypt only the aggregated global update amount and update the global model, and then distribute the updated global model to each client.
[0026] The local client includes a data acquisition and preprocessing module, a local incremental training module, and a real-time diagnosis and monitoring module.
[0027] The data acquisition and preprocessing module is used to continuously acquire multi-dimensional time-series battery data through the vehicle battery management system and vehicle bus, perform cache management with a sliding time window, clean up outliers, fill in missing values, extract health features and normalize the acquired data to form a standardized incremental sample sequence.
[0028] The local incremental training module is used to download the latest global model from the server, perform incremental training using locally added standardized incremental samples, and adopt a deep network adapted to multivariate time series data as a diagnostic prediction model to simultaneously output battery health status assessment value and remaining life prediction value. The training objective function integrates standard task loss, knowledge distillation loss and elastic weight consolidation loss to prevent catastrophic forgetting in incremental training. After training is completed, an encrypted model parameter update is generated and uploaded to the server.
[0029] The real-time diagnosis and monitoring module is used to deploy the updated global model for real-time battery health diagnosis, report the diagnosis results to the fleet management platform, and continuously monitor two indicators: the degree of model performance degradation and the offset of new data feature distribution. Based on the statistical characteristics of historical normal operation data, it adaptively sets the trigger thresholds for each indicator. When any monitored indicator exceeds its corresponding trigger threshold, it initiates a retraining request to the server. The local client only uploads the encrypted model parameter update to the cloud federated server and does not transmit the original battery data. The cloud federated server automatically starts a new round of federated training based on the proportion of clients that receive retraining requests or the detected regional operating condition changes.
[0030] In a preferred embodiment of the present invention, the communication between the cloud federated server and the local client adopts a two-way authentication mechanism based on X.509 digital certificates and a TLS 1.3 secure transmission protocol; the model parameter update is encrypted using the Paillier additive homomorphic encryption algorithm; the local client also includes a local persistent caching module, which is used to cache the model parameter update and monitoring logs when the client is offline or the network is interrupted, and to perform breakpoint resume transmission in the order of timestamps after the network is restored; the system also includes a fleet management platform, which is used to receive and display the diagnostic results reported by each client, generate maintenance work orders and risk warnings, and switch to read-only diagnostic mode when the cloud federated server fails.
[0031] In a preferred embodiment of the present invention, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the above-described method for battery health diagnosis of an autonomous truck fleet based on federated incremental learning.
[0032] This invention addresses the shortcomings of the prior art and has the following beneficial effects:
[0033] (1) By constructing a federated learning architecture for end-to-cloud collaboration, the client only uploads the encrypted model parameter update and does not transmit the original battery data. Combined with two-way authentication, secure transmission protocol and additive homomorphic encryption, it can protect the data privacy of each vehicle throughout the entire process of cross-vehicle collaborative modeling, avoid the leakage of sensitive operational information contained in the original battery data, and reduce the bandwidth occupation and latency caused by large-scale data transmission.
[0034] (2) This invention aggregates the model knowledge of multiple vehicles through a federated learning architecture, enabling the global model to learn the battery degradation patterns of different vehicles and under different operating conditions in the fleet. This is beneficial to improving the generalization ability of the diagnostic model and overcoming the long-term accuracy decline problem caused by the limited amount of data and insufficient operating condition coverage in single-vehicle independent modeling.
[0035] (3) In this invention, knowledge distillation loss and elastic weight consolidation loss are integrated in local incremental training. Knowledge distillation loss constrains the diagnostic behavior of the new model and the old model in the output space, and elastic weight consolidation loss protects the model parameters that are important to the historical task in the parameter space. This can prevent catastrophic forgetting while learning new data patterns, and enable the model to continuously iterate with battery incremental data without losing the learned knowledge.
[0036] (4) The present invention adopts an encoder-decoder deep network designed specifically for multivariate time series data. The encoder integrates bidirectional LSTM and one-dimensional temporal convolutional layer to capture the long and short-term dependencies and local patterns of the time series. The decoder provides battery health status assessment and remaining life prediction simultaneously from dual output heads, which is beneficial to improving the accuracy of SOH diagnosis and RUL prediction.
[0037] (5) This invention utilizes the additive homomorphic encryption feature in the cloud to complete weighted aggregation in the ciphertext domain. The aggregation weights are allocated based on the number of effective samples from the client, the data quality score, and the participation stability. This can improve the generalization performance and robustness of the global model after aggregation without prying into the parameters of a single client.
[0038] (6) This invention monitors two indicators: the degree of model performance degradation and the feature distribution offset. Based on the statistical characteristics of historical normal operation data, it adaptively sets the trigger threshold, which can automatically identify the model performance degradation or changes in operating conditions and trigger retraining. This avoids the arbitrariness of manually setting thresholds and enables the diagnostic model to be continuously optimized as the fleet's operating environment changes.
[0039] (7) The present invention configures an abnormal fault tolerance mechanism for offline cache retransmission on the client and read-only diagnosis of server faults. Under complex working conditions such as vehicle offline, network interruption or temporary server failure, the diagnostic service can be maintained continuously and the training process can be recovered, which is conducive to ensuring the stable operation of battery health monitoring service for autonomous truck fleets around the clock. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 This is a schematic diagram of the overall architecture of the edge-cloud collaborative federated learning system of the present invention;
[0042] Figure 2 This is a schematic diagram of the client-side data acquisition and preprocessing process of the present invention;
[0043] Figure 3 This is a schematic diagram of the local incremental model training network architecture of the present invention;
[0044] Figure 4 This is a schematic diagram of the cloud-based secure aggregation and global model update process of the present invention;
[0045] Figure 5 This is a schematic diagram illustrating the closed-loop operation of the diagnostic, monitoring, and adaptive triggering mechanisms of this invention. Detailed Implementation
[0046] 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 some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0047] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein. Therefore, the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0048] It should be noted in advance that the main technical problem to be solved by this invention is that in the battery health diagnosis of autonomous truck fleets, the centralized transmission of raw battery data poses a risk of privacy leakage, the generalization ability of independent modeling of a single vehicle is insufficient, ordinary federated learning is difficult to adapt to incremental data and is prone to catastrophic forgetting, and the continuity of diagnostic services is poor under complex working conditions.
[0049] Secondary technical issues include: the impact of preprocessing quality of multi-dimensional time-series battery data on diagnostic accuracy; how to balance model performance and individual client privacy when updating multi-client models in the cloud; and how to automatically identify changes in operating conditions and trigger model retraining to maintain diagnostic accuracy.
[0050] This invention discloses a method and system for battery health diagnosis of an autonomous truck fleet based on federated incremental learning. The steps of this method include:
[0051] Before describing each step in detail, let's define the core terms used in this article: State of Health (SOH) is defined as the ratio of the battery's current maximum usable capacity to its rated capacity, expressed as a percentage, used to quantify the degree of battery aging; Remaining Useful Life (RUL) is defined as the cumulative mileage or number of charge-discharge cycles from the current moment until the battery capacity decays to 80% of its rated capacity (i.e., SOH drops to 80%); Model parameter update refers to the difference between the model parameters after local training and the global model parameters; Incremental samples refer to battery data samples newly collected and preprocessed by the client since the last round of federated training.
[0052] S1. Construct a federated learning architecture that integrates edge and cloud computing. For example... Figure 1As shown, a federated server is deployed in the cloud to maintain the global model, coordinate training rounds, register and schedule clients, and aggregate model updates. A local client is deployed on each autonomous truck to collect and manage its battery data, train the model, and perform real-time diagnostics. The client only uploads encrypted model parameter updates to the server and never transmits raw battery data. Communication uses a two-way authentication mechanism based on digital certificates to ensure the legitimacy of participants. Data transmission uses a high-version secure transmission protocol to ensure link security. The model updates uploaded by the client are encrypted using an additive homomorphic encryption algorithm, enabling the server to perform secure aggregation without decryption, thus protecting the data privacy of each vehicle throughout the collaborative training process. The specific implementation method of this step is as follows:
[0053] A federated server is deployed in the cloud, which acts as a central coordinating node and is responsible for maintaining the global diagnostic model. The server manages the identity information of all legitimate clients through a registry, and each client... Each autonomous truck is identified by a unique vehicle identification number. and digital certificates Common identifier. Servers are assigned in rounds. Federated training is scheduled on a unit basis. At the beginning of each round, the server selects a subset of clients to participate in the training round from the set of online and healthy clients according to a preset strategy (such as random selection or based on data quality scoring). and broadcast the current global model parameters to it. Meanwhile, the server maintains a model update aggregator designed to handle encrypted input.
[0054] A local client is deployed on each autonomous truck. This client is a software module that integrates data acquisition, local training, and secure communication functions. The client continuously collects multivariable time-series battery data, including voltage, from the vehicle at a fixed sampling frequency through the vehicle's battery management system interface. Current ,temperature and internal resistance And so on, and perform local caching and management. When the client receives the server's training instructions and global model... Subsequently, the newly added battery data sample set of this vehicle was used. Perform local incremental training to obtain local model parameters. The client calculates the parameter updates relative to the global model in this round:
[0055] ;
[0056] To protect data privacy, the client encrypts the update using an additive homomorphic encryption algorithm (such as Paillier) before uploading. Let the system's public key be... The encryption function is Then the client generates ciphertext update volume This encryption process ensures that the information contained in the original battery data cannot be reverse-engineered through parameter updates, thus strengthening privacy protection from the source.
[0057] Regarding the engineering implementation of Paillier additive homomorphic encryption, the following further explanation is needed: The key pairs of the Paillier encryption system are generated by a cloud-based federated server. The public key (containing the modulus n and generator g) is distributed to all legitimate clients, while the private key is securely stored by the server and not disclosed to external parties. Clients do not hold the private key. Since the model parameter updates are floating-point numbers while Paillier encryption only supports integer operations, the client multiplies each floating-point parameter by a preset scaling factor (10^6 is recommended) and rounds it to a fixed-point integer before encryption and uploading. The server decrypts the result to obtain the integer aggregation and then divides it by the scaling factor to restore floating-point precision. The length of the ciphertext after Paillier encryption is approximately twice that of the plaintext. For models with a large number of parameters, layered encryption and batch transmission mechanisms can be used to reduce communication overhead. The aggregated weights participate in scalar multiplication operations in plaintext form. The weights themselves only reflect the relative contribution ratio of the client (obtained from sample size, data quality score, and participation in stability calculations) and do not reveal the original battery data content.
[0058] All communication between the client and server must go through a strict secure channel establishment process. First, two-way authentication based on X.509 digital certificates is performed: the client verifies the legality and validity of the server certificate, and the server also verifies the client certificate. and its corresponding This ensures that only authorized vehicles and equipment can participate in federal training. After authentication, both parties negotiate session keys using a high-version secure transmission protocol (such as TLS 1.3) and establish an encrypted link. All subsequent communication data (including model parameters and encrypted updates) are transmitted through this encrypted link, ensuring the confidentiality and integrity of the transmission process and effectively resisting man-in-the-middle attacks and data eavesdropping.
[0059] The server received a subset from the client. Ciphertext update set Then, leveraging the properties of additive homomorphic encryption, a secure aggregation operation is performed directly on the ciphertext field without decryption. The Paillier encryption algorithm satisfies:
[0060] ;
[0061] The multiplication here refers to modulo multiplication. The server calculates the aggregated ciphertext. ,here To be assigned to the client The aggregation weight can typically be based on its local data volume. Perform normalization settings, that is:
[0062] ;
[0063] Due to homomorphism, In reality, it is a weighted aggregate update:
[0064] ;
[0065] The server uses the private key it holds. Decrypt the aggregation result:
[0066] ;
[0067] Finally, the server updates the global model:
[0068] ;
[0069] in This represents the server-side learning rate. This secure aggregation mechanism based on homomorphic encryption prevents the server from peeking into the specific updates of any individual client when integrating knowledge from multiple parties, achieving collaborative training where "data is usable but not visible," thus balancing model performance with privacy and security requirements in engineering. The updated global model. It will be used for the next round of training or distributed to each client for local real-time battery health diagnosis.
[0070] S2, Client-side incremental acquisition and preprocessing of battery time-series data. For example... Figure 2 As shown, the local client continuously and incrementally collects multi-dimensional time-series data on battery operation, including voltage, current, temperature, internal resistance, state of charge, and operating load, through the vehicle battery management system and vehicle bus. The data is cached and managed in the form of a sliding time window. The preprocessing stage cleans the raw data, identifies and removes outliers using a combination of statistical methods and physical constraints, and fills in missing values using interpolation or historical pattern-based compensation methods based on the duration of the missing value. On this basis, features characterizing the battery's health status are extracted, such as capacity decay trends, internal resistance change rates, temperature rise rates, and charge / discharge voltage differences. All features are then time-aligned and normalized to form a standardized incremental sample sequence suitable for model training. The specific implementation method of this step is as follows:
[0071] The client connects to the BMS controller LAN interface via a standardized vehicle CAN bus interface, with a fixed sampling period. Poll and read the voltage of individual battery cells (e.g., every 1 second). Total current Multi-point temperature Internal resistance to communication State of charge and vehicle load power The original time-series data stream. To adapt to the needs of incremental learning and real-time diagnosis, the data is managed locally using a double-buffered sliding window mechanism: a fixed-length sliding window... The first-in-first-out (FIFO) buffer queue is used to store the latest collected raw time series:
[0072] ;
[0073] Each of them One queue contains a multi-dimensional data point; another queue stores preprocessed, standardized samples, which serve as direct input for subsequent model training and inference. This design ensures continuity in data processing and deterministic memory usage.
[0074] The preprocessing begins with outlier cleaning. For each data dimension... Combining physical boundary constraints with statistical outlier detection: physical constraints directly eliminate values that clearly exceed a reasonable range, such as voltage. The statistical method, on the other hand, is based on the dynamic statistical characteristics of the data within the sliding window, calculating the mean of the current window. and standard deviation If a certain sampling point satisfy (in If a preset threshold (e.g., 3) is used, it is considered abnormal. For missing values, the duration of the missing value is considered. Adopt different strategies: If Less than the threshold (e.g., 3 sampling periods) are filled using linear interpolation, i.e.:
[0075] ;
[0076] like If so, compensation based on historical patterns will be initiated, using the moving average of historical data from the same operating condition segment (such as the same SOC range or similar load) to fill the gap.
[0077] ;
[0078] This ensures data continuity and reduces noise introduction.
[0079] Feature extraction aims to construct indicators characterizing the state of health (SOH) of a battery from cleaned time-series data. This includes calculating capacity degradation trend features. The discharge capacity is estimated using the ampere-hour integral method during a complete charging segment. and with rated capacity Compare,
[0080] ;
[0081] Internal resistance change rate characteristics By analyzing the AC internal resistance sequence within the sliding window Perform a linear fit and take its slope. ,Right now:
[0082] ;
[0083] Temperature rise rate characteristics Calculated during the constant load phase.
[0084] ;
[0085] Charge and discharge voltage difference characteristics Then select the voltage difference on the charge and discharge curves at the same SOC point (e.g., 50%). A sliding window synchronization mechanism ensures that all characteristic sequences are synchronized.
[0086] ;
[0087] In timestamp Strict alignment.
[0088] Finally, all features are normalized to eliminate the influence of units. A Z-score normalization method based on historical sliding window statistics is used for the features. In time value Its standardized value is:
[0089] ;
[0090] in and This represents the mean and standard deviation of this feature over a relatively recent historical window (e.g., the past 24 hours). Through the above steps, a standardized incremental sample sequence is ultimately formed:
[0091] ;
[0092] in The required sequence length is specified for model input. This preprocessing process is entirely performed locally on the client side, ensuring that the raw data is not uploaded, while providing high-quality, standardized input for subsequent federated incremental learning, effectively improving the convergence speed and diagnostic accuracy of model training.
[0093] Based on the preprocessing and feature extraction described above, it is also necessary to construct the label data required for supervised learning. The SOH label is calculated by estimating the current maximum available capacity using the ampere-hour integration method over a complete charging segment; that is, SOH equals the current maximum available capacity divided by the rated capacity and then multiplied by 100%. For scenarios where a complete charging segment cannot be obtained, an indirect estimation method based on the mapping relationship between internal resistance and capacity is used. The RUL label is constructed based on historical data throughout the battery's entire lifecycle: taking the moment when the battery capacity first decays to 80% of the rated capacity as the end of the lifecycle, and tracing back from that moment, the remaining driving mileage or remaining cycle count is labeled for each historical moment. For in-service vehicles that have not yet reached the end of their lifecycle, a truncated label construction method based on the historical degradation curve of the same battery model is used, combined with the current SOH value and the average degradation rate to estimate the RUL label. All of the above label construction processes are completed locally on the client side. The label data and feature data together constitute a standardized incremental sample sequence for local incremental model training.
[0094] S3. Perform local incremental model training based on knowledge constraints. After downloading the latest global model from the server, the client performs incremental training using newly added local battery data samples. The diagnostic prediction model used is a deep network designed specifically for multivariate time-series data. Its encoding part can effectively extract time-series features, and the output layer simultaneously provides health status assessment and remaining life prediction. The training objective function, based on the standard task loss, integrates knowledge distillation loss and elastic weight consolidation loss. Knowledge distillation weights are used to control the strength of knowledge transfer from the old global model to the new local model, while elastic weight consolidation weights are used to constrain model parameters that are important for historical tasks. Their importance is measured by an approximate Fisher information matrix. By adjusting these two types of weights, while effectively learning new data patterns, catastrophic forgetting of learned knowledge is prevented. After training is completed, encrypted model updates are generated. The specific implementation method of this step is as follows:
[0095] like Figure 3 As shown, the client downloads and loads the latest global model parameters from the server. As initialization of the local model, the diagnostic prediction model used for incremental training is an encoder-decoder architecture. The encoder part employs a hybrid structure of stacked bidirectional LSTM layers and one-dimensional temporal convolutional layers (TCN) to fully capture long-short-term dependencies and local patterns in the multivariate battery time-series data. The input consists of preprocessed and feature-engineered time-series samples. ,in For time step, The feature dimension is [value]. The decoder section contains two parallel fully connected output heads, which output the regression values of the state of health (SOH). and predicted remaining useful life (RUL) .
[0096] It is important to note that the training process of this invention is divided into an initial training phase and an incremental training phase. Upon initial system deployment, the initial training phase is performed: several representative vehicles from the fleet are selected (e.g., vehicles covering different operating conditions and battery batches). Each client performs federated training based on its local initial dataset (preferably no fewer than 500 samples corresponding to complete charge-discharge cycles). At this stage, the training objective function only includes the standard task loss (i.e., knowledge distillation weights are 0, and elastic weight consolidation weights are 0), without enabling knowledge distillation loss or elastic weight consolidation loss. After several rounds (preferably no fewer than 20 rounds) of federated aggregation, an initial global model is obtained, and the initial Fisher information matrix is calculated based on the initial training data. After the initial training is completed, the system enters the incremental training phase, where knowledge distillation loss and elastic weight consolidation loss are enabled to prevent catastrophic forgetting.
[0097] In one specific embodiment, the hyperparameters of the encoder-decoder network are configured as follows: The encoder contains two bidirectional LSTM layers with 128 hidden units per layer, followed by a Dropout layer (dropout rate of 0.2); it also contains three one-dimensional temporal convolutional layers (TCNs) with a kernel size of 3, dilation coefficients of 1, 2, and 4, and 64 filters per layer, using the ReLU activation function; the outputs of the LSTM and TCN branches are concatenated along the feature dimension before being input into the decoder. The decoder has two parallel output heads, each containing a fully connected layer (ReLU activation) with 64 neurons and a linear output layer, outputting the SOH regression value and the RUL prediction value, respectively. Model training uses the Adam optimizer with an initial learning rate of 0.001, a batch size of 32, 10 local training epochs, and an input sequence length of 100 time steps. The typical value range for knowledge distillation weights is 0.1 to 1.0, and the typical value range for elasticity weights and consolidation weights is 0.01 to 0.1. Both are determined by grid search on the local validation set.
[0098] The training data for local incremental training consists of standardized incremental samples added since the last round of federated training. When the number of new samples is less than the preset minimum (200 samples are recommended), historical samples from the most recent sliding window are reused to supplement the data, with the ratio of new to old samples not less than 1:1. Incremental training is executed when each round of federated training instruction arrives. The training frequency is controlled by an adaptive triggering mechanism, typically one round every 1 to 7 days, depending on the fleet's operating conditions and the model's performance degradation rate.
[0099] Objective function for local incremental training It consists of three parts: standard task loss Knowledge distillation loss and elastic weight consolidation loss The specific form is:
[0100] ;
[0101] in, and These are the knowledge distillation weight and the resilience weight, determined through a grid search on the local validation set, with typical value ranges of [missing values]. and Standard mission loss The mean squared error (MSE) loss is defined as:
[0102] ;
[0103] in This represents the current incremental batch sample size. Knowledge distillation loss. Used to constrain the difference between the output of the new model and the output of the old global model in order to preserve historical knowledge, it is defined as:
[0104] ;
[0105] Among them, the subscript The predicted value is determined by the parameter. The old model was generated. This design ensures that when the model adapts to new data distributions, its output behavior does not deviate drastically from the learned diagnostic patterns, effectively mitigating catastrophic forgetting.
[0106] Elastic weight consolidation loss Used to constrain model parameters that are crucial to historical tasks. Its core is the calculation of the Fisher information matrix. Diagonal approximation to quantize each parameter Importance to historical missions. It is approximated by the expectation of the square of the gradient of the loss function on historical data (or the previous training data), that is:
[0107] ;
[0108] In actual calculations, the mean of the squared gradients over the historical sample set is used for estimation. Defined as:
[0109] ;
[0110] in These are global model parameters. This loss term applies to parameters that are of high importance. (Right now Larger values are penalized more severely, limiting their deviation from older values and thus protecting the model's ability to remember historical knowledge. This is achieved through fusion. and The system can constrain old knowledge at both the parameter space and output space levels, making it more robust than a single method.
[0111] The training process uses the Adam optimizer to optimize the total loss. Minimize and iteratively update the local model parameters. After training is complete, the client calculates the model update amount. Finally, the client uses the Paillier encryption public key issued by the server. Regarding the update volume Each scalar element is encrypted to generate a ciphertext model update. And prepare to upload.
[0112] S4. Secure aggregation and global model iteration updates are implemented in the cloud. The federated server receives encrypted model updates uploaded from various online clients. Utilizing the properties of additive homomorphic encryption, the server directly performs aggregation operations such as summation on these updates in the ciphertext domain, without needing to and being able to decrypt the parameters of individual clients. During aggregation, different weights can be assigned to each client based on data quality, effective sample size, or historical participation stability, resulting in weighted fusion and the generation of a new generation of global models. For clients that fail to participate in the current round of aggregation due to network or equipment failure, the server retains their valid state from the previous round, allowing them to submit updates or rejoin training in subsequent rounds, ensuring the continuity and robustness of the federated learning process in large-scale, dynamically changing fleet environments. The updated global model will be distributed to all clients. The specific implementation method of this step is as follows:
[0113] like Figure 4 As shown, at the start of each training round, the federated server broadcasts the current global model parameters to all online registered clients. And training configuration. After the client completes local incremental training, the model update amount is calculated:
[0114] ;
[0115] And using the public key of the Paillier additive homomorphic encryption algorithm. Encryption is performed to obtain the ciphertext update. The server receives data from... Ciphertext update set for each client .
[0116] The server provides each participating client with Calculate aggregate weights This weight is determined by three factors: the client... Effective sample size used in this training round Its historical data quality score (Calculated based on the reciprocal of historical diagnostic errors), and its participation in the stability coefficient. (defined as past) The proportion of rounds in which the aggregation was successfully participated (the weighting formula is as follows:)
[0117] ;
[0118] This weighting method ensures that clients with large amounts of high-quality data and stable participation contribute more to the global model, thereby improving the generalization performance and robustness of the aggregated model.
[0119] Using the homomorphic addition property of Paillier encryption, for two ciphertexts and ,have For plaintext scalars With ciphertext ,have The server performs a weighted aggregation operation in the encrypted domain:
[0120] ;
[0121] This process is entirely performed on encrypted data, and the server cannot obtain any plaintext updates from the client. This achieves strict privacy protection during the aggregation phase.
[0122] After aggregation is complete, the server uses its private key. right Decryption is performed to obtain the plaintext aggregated update. Then, the server executes the formula:
[0123] ;
[0124] Update the global model, where This is the server-side global learning rate. For clients that failed to upload updates in a timely manner due to network latency or device malfunction... The server marks its state as "lagging" and retains its previous valid model version. For reference only. When such clients are relaunched in subsequent rounds, their performance can be calculated based on their latest local data. Or the latest global model The incremental updates are then retransmitted, and the server incorporates them into subsequent rounds of aggregation calculations. This mechanism ensures that even if some nodes temporarily go offline in a dynamically changing fleet environment, the federated training process can continue uninterrupted, and all historical contributions have the opportunity to be absorbed by subsequent aggregations, enhancing the system's fault tolerance and long-term robustness.
[0125] Updated global model parameters After being digitally signed, the data is distributed to all online clients via a secure channel. The server also maintains a version log, recording the participants, weights, and model hashes for each round of aggregation, for auditing and tracing the training process.
[0126] S5. Achieve closed-loop operation of diagnosis, monitoring, and adaptive triggering. The updated model is deployed on each vehicle client for real-time health diagnosis and lifespan prediction of local battery data. The results are reported to the fleet management platform to support operational decisions. The system continuously monitors two key indicators: the degree of performance degradation of the model on new local data and the offset of the feature distribution of the new data relative to historical normal samples. The trigger thresholds for both indicators are adaptively set based on the statistical characteristics of historical normal operating data. When either monitoring indicator exceeds its threshold, the client can send a retraining request to the server. The server can automatically initiate a new round of federated training when considering the requests from various clients or detecting regional changes in operating conditions. Simultaneously, the system has an anomaly tolerance mechanism: when a client is offline, it uses the latest local model to maintain diagnosis and caches updates for later transmission; when the server fails, the fleet platform can switch to read-only diagnostic mode, and continue the training process after the server recovers, thereby ensuring the service continuity and long-term stable iteration of the entire diagnostic system in complex environments. The specific implementation method of this step is as follows:
[0127] like Figure 5 As shown, after completing federated incremental learning, the client will update the global model. Deployed on a local inference engine for real-time processing of battery time-series data collected from the vehicle's BMS. The model outputs the regression value of the battery's state of health (SOH) in parallel. and the predicted value of remaining useful life (RUL) ,Right now The diagnostic results, along with the timestamp and vehicle identification, are reported to the fleet management platform, which then generates maintenance work orders and risk warnings. To evaluate the model's adaptability to new data, the system continuously calculates two monitoring metrics. The first is the performance degradation metric. Defined as the model in the most recent Average validation loss on new samples Compared with historical baseline loss Relative rate of change: .in It is the average loss calculated on a historical normal operating condition validation set. The calculation is consistent with the task loss function during the model training phase. The second is the distribution offset index. Used to quantify new data features Distribution with historical normal characteristics The differences between them are calculated using a one-dimensional projection approximation of the Wasserstein distance: firstly, principal component analysis (PCA) is used to obtain the main projection directions of historical features. Then, the Wasserstein distance between the projection of the new feature in that direction and the historical projection distribution is calculated, and the maximum distance is selected as the mean. :
[0128] ;
[0129] in It is from the front A set consisting of principal component vectors. This represents the one-dimensional Wasserstein distance. This projection-based metric is computationally efficient and effectively captures the overall shift of multidimensional distributions. The trigger thresholds for both metrics... and All settings are adaptively configured based on the statistical characteristics of historical normal operation data. Performance degradation threshold. Set as the upper bound of the historical baseline loss fluctuation range, for example, take Standard deviation on the historical validation set of Times: ,in This is an adjustable coefficient, typically ranging from 2 to 3. Distribution offset threshold. This is determined based on the quantiles of the distance distribution between historical normal samples, for example, taking historical... sequential Quantiles. This statistically-based adaptive setting method avoids the arbitrariness of manually setting thresholds, enabling the system to adapt to the inherent data fluctuations of different fleets and battery models, thus improving the robustness and generalization ability of the triggering mechanism. When any monitoring indicator meets... or At that time, the client-side local trigger is activated, generating a retraining request containing the metric value, timestamp, and vehicle ID, which is sent to the federated server via a secure channel.
[0130] The typical value ranges for the above preset parameters are as follows: the coefficient in the performance degradation index trigger threshold is usually 2 to 3, that is, the trigger threshold is equal to the coefficient multiplied by the standard deviation of the historical baseline loss on the historical validation set; the distribution offset index trigger threshold is the 95th quantile of the offset distance distribution between historical normal samples; the threshold for the proportion of clients triggered by global retraining on the server side is usually 20% to 40% (e.g., 30%); the number of principal components in principal component analysis is the top 5 to 10 principal components (cumulative variance contribution rate not less than 90%); the number of the most recent new samples in the model performance degradation calculation is usually 50 to 200; the proportion of the subset selected by the server from online clients to participate in this round of training is usually 30% to 100% of the total number of online clients. The above parameters can be adjusted according to the fleet size, battery model and operating conditions, and the adjustment methods include grid search based on the historical validation set or empirical setting.
[0131] The server maintains a global request queue and sets two aggregation trigger conditions: one is when the proportion of clients receiving retraining requests exceeds a preset global proportion. (For example Secondly, the server analyzes the trends in diagnostic results reported by each client to detect regional changes in operating conditions (such as changes in ambient temperature patterns due to seasonal changes). If either condition is met, the server automatically broadcasts a command to all online clients, initiating a new round of federated training. This fault-tolerance mechanism ensures the continuity of the closed loop.
[0132] When the client is offline or the network is interrupted, the local diagnostic service remains unaffected and continues to use the latest model. Perform inference and update the model generated in this round of training. Monitoring logs are written to a local persistent cache queue and marked as pending transmission. Once the network recovers, the client executes a resume transmission based on the timestamp order of the cache queue, resending the backlogged updates to the server.
[0133] When a temporary server failure occurs, the fleet management platform switches to read-only diagnostic mode. In this mode, the platform only receives and displays diagnostic results reported by clients, suspending all model aggregation and command issuance. After the server resumes operation, it first synchronizes the status of each client and checks the training epochs missed during the failure. It can perform compensatory aggregation based on cached client updates or reschedule the training process, thereby ensuring the service continuity of the entire diagnostic system and the long-term stable iteration of the model in complex and unstable environments.
[0134] Based on the preferred embodiments of the present invention described above, those skilled in the art can make various changes and modifications without departing from the inventive concept. The technical scope of this invention is not limited to the contents of the specification, but must be determined according to the scope of the claims.
Claims
1. A battery health diagnosis method for an autonomous truck fleet based on federated incremental learning, characterized in that, Includes the following steps: S1. Construct a federated learning architecture that integrates end-to-end cloud: Deploy a federated server in the cloud and deploy a local client on each autonomous truck; the client only uploads encrypted model parameter updates to the server and does not transmit raw battery data; S2. Client-side incremental acquisition and preprocessing of battery time-series data: The vehicle battery management system continuously acquires multi-dimensional time-series battery data, uses a sliding time window for cache management, and performs outlier cleaning, missing value imputation, health feature extraction and normalization on the acquired data to form a standardized incremental sample sequence. S3. Perform local incremental model training based on knowledge constraints: The client downloads the latest global model from the server and performs incremental training using the newly added standardized incremental samples locally; A deep network adapted to multivariate time-series data is used as a diagnostic prediction model to simultaneously output battery health status assessment value and remaining life prediction value. The training objective function integrates standard task loss, knowledge distillation loss, and elastic weight consolidation loss. The knowledge distillation loss constrains the output difference between the new model and the old global model, and the elastic weight consolidation loss constrains the model parameters that are important to historical tasks, so as to prevent catastrophic forgetting in incremental training. After training is complete, encrypted model parameter updates are generated and uploaded to the server. S4. Secure aggregation and global model iteration update in the cloud: The server receives the model parameter update amount uploaded by each client in encryption, performs a weighted aggregation operation on the model parameter update amount of each client in the ciphertext field using the additive homomorphic encryption feature, decrypts only the aggregated global update amount to update the global model, and sends the updated global model to each client. S5. Achieve closed-loop operation of diagnosis, monitoring and adaptive triggering: The client deploys the updated global model to perform real-time battery health diagnosis, and the diagnosis results are reported to the fleet management platform. The system continuously monitors two metrics: the degree of model performance degradation and the offset of new data feature distribution. Based on the statistical characteristics of historical normal operation data, the system adaptively sets the trigger thresholds for each metric. When any monitored metric exceeds its corresponding trigger threshold, the client initiates a retraining request to the server. The server automatically starts a new round of federated training based on the proportion of clients receiving retraining requests or the detected regional changes in operating conditions.
2. The battery health diagnosis method for an autonomous truck fleet based on federated incremental learning according to claim 1, characterized in that: In step S1, the communication between the client and the server adopts a two-way authentication mechanism based on X.509 digital certificates, and the data transmission adopts the TLS 1.3 secure transmission protocol. The model parameter update is encrypted using the Paillier additive homomorphic encryption algorithm. The server aggregates the model parameter update of each client through weighted operation in the ciphertext field. The global model update is obtained by decryption with the private key only after the aggregation is completed. The model parameter update of a single client cannot be decrypted and spied on by the server.
3. The battery health diagnosis method for an autonomous truck fleet based on federated incremental learning according to claim 1, characterized in that: In step S2, the battery multidimensional time-series data includes individual battery cell voltage, total current, multi-point temperature, AC internal resistance, state of charge, and vehicle load power. A double-buffered sliding window mechanism is used to manage the data. A fixed-length first-in-first-out buffer queue is used to store the latest collected raw time-series data, and another processing queue is used to store standardized samples that have completed preprocessing. The outlier cleaning combines physical boundary constraints and statistical outlier detection. First, data that exceeds a reasonable physical range is removed, and then outliers are identified based on the mean and standard deviation within the sliding window. The missing value imputation adopts different strategies according to the missing duration. When the missing duration is less than a preset threshold, linear interpolation is used for imputation. When the missing duration is greater than or equal to the preset threshold, historical data sliding mean compensation under the same operating conditions is used. The extracted health features include capacity decay trend, internal resistance change rate, temperature rise rate, and charge / discharge voltage difference. All features are time-aligned and then normalized using Z-score based on historical sliding window statistics.
4. The battery health diagnosis method for an autonomous truck fleet based on federated incremental learning according to claim 1, characterized in that: In step S3, the deep network adapted to multivariate time-series data adopts an encoder-decoder architecture; The encoder employs a hybrid structure of stacked bidirectional LSTM layers and one-dimensional temporal convolutional layers to capture long-short-term dependencies and local patterns in multivariate time-series battery data. The decoder contains two parallel fully connected output heads that output the regression value of battery health status and the predicted value of remaining life, respectively, enabling simultaneous output of multi-task battery health assessment and remaining life prediction.
5. The battery health diagnosis method for an autonomous truck fleet based on federated incremental learning according to claim 1, characterized in that: In step S3, the training objective function is: ,in, As a standard task loss, the mean squared error loss is used to calculate the joint error between the predicted battery health status and the predicted remaining life. The knowledge distillation loss is used to constrain the difference between the output of the new model and the output of the old global model, thereby achieving the transfer and preservation of historical diagnostic knowledge. To consolidate the loss with elastic weights, the importance of each model parameter to the historical task is quantified by the Fisher information matrix calculated by approximation, and a penalty is imposed on parameters with high importance that deviate from the global model parameter values. and The knowledge distillation weight and the elasticity weight are respectively determined by grid search on the local validation set.
6. The battery health diagnosis method for an autonomous truck fleet based on federated incremental learning according to claim 1, characterized in that: In step S4, the aggregation weights of the weighted aggregation operation are calculated and normalized based on the effective sample size of each client in this round, the historical data quality score, and the participation stability coefficient. The historical data quality score is calculated based on the reciprocal of the client's historical diagnostic error, and the participation stability coefficient is the proportion of rounds in which the client successfully participated in aggregation in the past training rounds. For clients that failed to participate in the current round of aggregation in time due to network or equipment failure, the server retains the effective model state of the previous round, allowing them to submit model parameter updates or reconnect to training in subsequent rounds.
7. The battery health diagnosis method for an autonomous truck fleet based on federated incremental learning according to claim 1, characterized in that: In step S5, the model performance degradation index is the relative rate of change between the average validation loss of the model on a number of recent new samples and the historical baseline loss; the data feature distribution shift index is obtained by extracting the principal projection direction of historical features through principal component analysis, calculating the one-dimensional Wasserstein distance between the new feature and the historical feature in this direction and taking the maximum value; the trigger threshold of the model performance degradation index is set as a preset multiple of the standard deviation of the historical baseline loss on the historical validation set, and the trigger threshold of the data feature distribution shift index is determined based on the preset quantile of the shift distance distribution between historical normal samples.
8. The battery health diagnosis method for an autonomous truck fleet based on federated incremental learning according to claim 1, characterized in that: In step S5, the triggering conditions for the server to automatically start a new round of federated training include: the proportion of the number of clients receiving retraining requests to the total number of online clients exceeds a preset proportion, or the server detects regional changes in operating conditions by analyzing the trend of diagnostic results reported by each client; the method also includes an anomaly fault tolerance mechanism: when a client is offline or the network is interrupted, the latest local model is used to continue real-time diagnosis, and the model parameter update amount and monitoring log generated in this round of training are written to a local persistent cache queue. After the network is restored, the interrupted transmission is executed in the order of the timestamp of the cache queue; when the server fails, the fleet management platform switches to read-only diagnostic mode, only receiving and displaying the diagnostic results reported by each client, suspending model aggregation and issuing instructions, and after the server recovers, synchronizing the status of each client and performing compensatory aggregation or rescheduling training.
9. A battery health diagnostic system for an autonomous truck fleet based on federated incremental learning, characterized in that, This includes cloud-based federated servers and local clients deployed on each autonomous truck; The cloud-based federated server includes a global model maintenance module, a training scheduling module, and a security aggregation module. The global model maintenance module is used to maintain and update the global diagnostic model; the training scheduling module is used to coordinate the federated training process in training rounds, manage the registration and status of clients, select a subset of clients participating in the current training round from online clients, and distribute the current global model to the selected clients. The secure aggregation module is used to receive the model parameter update amount uploaded by each client in encryption, and to perform a weighted aggregation operation on the model parameter update amount of each client in the ciphertext field using the additive homomorphic encryption feature. Only the aggregated global update amount is decrypted and the global model is updated, and then the updated global model is sent to each client. The local client includes a data acquisition and preprocessing module, a local incremental training module, and a real-time diagnosis and monitoring module. The data acquisition and preprocessing module is used to continuously acquire multi-dimensional time-series battery data through the vehicle battery management system and vehicle bus, perform cache management with a sliding time window, clean up outliers, fill in missing values, extract health features and normalize the acquired data to form a standardized incremental sample sequence. The local incremental training module is used to download the latest global model from the server, perform incremental training using locally added standardized incremental samples, and adopt a deep network adapted to multivariate time series data as a diagnostic prediction model to simultaneously output battery health status assessment value and remaining life prediction value. The training objective function integrates standard task loss, knowledge distillation loss and elastic weight consolidation loss to prevent catastrophic forgetting in incremental training. After training is completed, an encrypted model parameter update is generated and uploaded to the server. The real-time diagnosis and monitoring module is used to deploy the updated global model for real-time battery health diagnosis, report the diagnosis results to the fleet management platform, continuously monitor two indicators: the degree of model performance degradation and the new data feature distribution offset, adaptively set the trigger threshold of each indicator based on the statistical characteristics of historical normal operation data, and initiate a retraining request to the server when any monitoring indicator exceeds its corresponding trigger threshold. The local client only uploads the encrypted model parameter updates to the cloud federated server and does not transmit the original battery data; the cloud federated server automatically starts a new round of federated training based on the proportion of clients receiving retraining requests or the detected regional operating condition changes.
10. The battery health diagnostic system for an autonomous truck fleet based on federated incremental learning according to claim 9, characterized in that: The communication between the cloud federated server and the local client adopts a two-way authentication mechanism based on X.509 digital certificates and a TLS 1.3 secure transmission protocol; the model parameter update is encrypted using the Paillier additive homomorphic encryption algorithm; the local client also includes a local persistent caching module, which is used to cache the model parameter update and monitoring logs when the client is offline or the network is interrupted, and to resume the interrupted transmission in the order of timestamps after the network is restored; the system also includes a fleet management platform, which is used to receive and display the diagnostic results reported by each client, generate maintenance work orders and risk warnings, and switch to read-only diagnostic mode when the cloud federated server fails.
