A cross-architecture adaptive deployment adaptation intermediate layer method and system of a new energy vehicle three-electricity risk control evaluation platform
By adaptively deploying and adapting the middleware layer across architectures, the stability issues of the new energy vehicle three-electric risk control assessment platform under various deployment modes and network environments are resolved, achieving business continuity and flexible model upgrades, and ensuring the stable operation of the three-electric risk control assessment.
Patent Information
- Application Number
- CN202611318323.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-24
AI Technical Summary
Existing risk control assessment platforms for new energy vehicles cannot be compatible with multiple deployment modes. Model iteration requires downtime for updates, and the inability to switch computing nodes when the network is unstable leads to assessment interruptions, making it difficult to adapt to complex business scenarios.
Design a cross-architecture adaptive deployment adaptation middleware layer, including a protocol parsing adaptation sublayer, a deployment topology adaptation sublayer, and a model version management sublayer, to achieve adaptive protocol parsing, automatic switching of deployment modes, and gray-scale hot switching of models, isolate heterogeneous data acquisition terminals and risk control assessment engines, and support multiple deployment forms and model version management.
It achieves business continuity in various deployment environments, supports model grayscale verification and hot switching, avoids downtime for updates, and ensures the stable operation of the three-electric risk control assessment.
Smart Images

Figure CN123164130A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of risk control technology for the three-electric systems of new energy vehicles, and in particular to a cross-architecture adaptive deployment and adaptation intermediate layer method and system for a risk control assessment platform for the three-electric systems of new energy vehicles. Background Technology
[0002] With the popularization of new energy vehicles, the BMS message protocols of different car manufacturers are not unified, and there are many types of heterogeneous data acquisition terminals with significant differences in data formats, units, and field definitions. Most existing three-electric risk control assessment engines are strongly bound to the data acquisition terminals, which can only adapt to fixed deployment environments and cannot be compatible with multiple deployment modes such as cloud, edge, and local. At the same time, the three-electric risk control models are frequently iterated. When a new version of the model is launched, traditional solutions require downtime for updates and lack the ability to perform gray-scale verification and hot switching rollback. When the network is weak or disconnected, the system cannot automatically switch computing nodes, which can easily lead to assessment interruptions and make it difficult to adapt to complex business scenarios that combine vehicle-side, site-side, and cloud-side applications. Summary of the Invention
[0003] The purpose of this invention is to overcome the shortcomings of the prior art and provide a cross-architecture adaptive deployment and adaptation middleware method and system for a new energy vehicle three-electric risk control assessment platform. It builds an independent middleware layer, isolates heterogeneous data acquisition terminals and risk control assessment engines, and realizes adaptive protocol parsing, automatic switching of deployment modes, and hot switching of model grayscale. It is compatible with multiple deployment forms such as pure cloud, cloud-edge hybrid mode, and pure local edge. To achieve the above objectives, the present invention adopts the following technical solution: a cross-architecture adaptive deployment and adaptation intermediate layer method for a new energy vehicle three-electric risk control assessment platform, wherein the intermediate layer is deployed on a server and / or an edge detection terminal, and the intermediate layer includes a protocol parsing adaptation sublayer, a deployment topology adaptation sublayer, and a model version management sublayer; the method includes the following steps: S1, the protocol parsing adaptation sublayer loads an externally imported protocol parsing template library, receives the original three-electric messages reported by heterogeneous acquisition terminals, and performs message parsing, field normalization, and unit conversion on the original messages based on the successfully matched protocol parsing templates, and outputs the original feature dataset; S2, the deployment topology adaptation sublayer collects the current network connectivity status and node computing power parameters, automatically determines the currently available deployment mode, including pure cloud mode, cloud-edge hybrid mode, and pure local edge mode; generates scheduling instructions according to the determined deployment mode, and distributes the original feature dataset to the corresponding computing nodes; S3. The model version management sublayer obtains the version information of the three-electric risk control assessment model / remote AI inference service to be run, and performs hot-swapping loading of the model or AI inference service; when a gray-scale switch of the model or remote AI inference service is required, the old version assessment model / old remote AI inference service and the new version assessment model / new remote AI inference service are called at the same time, and the same batch of original feature datasets are input into the old and new models or AI inference services respectively, and the assessment results are aligned and verified; when the alignment verification meets the preset consistency threshold, the new version model or new remote AI inference service is switched as the official running object; if the verification fails, the old version model or old remote AI inference service is maintained and an abnormal alarm is output; S4. The standardized feature dataset processed by the intermediate layer is output to the external three-electric risk control assessment engine, which performs risk control assessment calculation and outputs standardized assessment results. Furthermore, the protocol parsing template library supports dynamic addition, modification, and deletion of protocol parsing templates without modifying the business code of the three-electric risk control assessment engine. The protocol parsing template includes message header identifiers, field offset mapping relationships, unit conversion rules, and scalable battery feature extension fields. The scalable battery feature extension fields are used to access the private BMS messages of semi-solid-state and solid-state next-generation batteries.Furthermore, the automatic deployment mode determination logic is as follows: It collects data on cloud service network connectivity, edge node CPU computing power, memory usage, and data uplink bandwidth. If the cloud network is connected normally and the bandwidth is greater than the first threshold, it is determined to be a pure cloud mode, and all feature data is uploaded to the cloud node for processing. If the cloud network is weak and the bandwidth is lower than the first threshold but not disconnected, it is determined to be a cloud-edge hybrid mode, where the edge node completes preliminary preprocessing, high-priority features are processed locally, and all data is transmitted back to the cloud at an opportune time. If the cloud network is disconnected, it is determined to be a pure local edge mode, and all calculations are completed locally on the edge detection terminal. Furthermore, the evaluation result alignment verification includes: calculating the deviation rate between the risk score output by the old version model or old remote AI inference service and the risk score output by the new version model or new remote AI inference service for the same batch of samples. When the overall sample deviation rate is less than a preset consistency threshold, the verification is considered successful; if it exceeds the threshold, an output version mismatch alarm is issued, and a difference comparison report is generated. Furthermore, the model version management sublayer also includes a version rollback mechanism. If an anomaly occurs during the operation of a new version model or a new version of the remote AI inference service, it can be hot-rolled back to the previous stable version of the model or remote AI inference service without downtime. Additionally, it includes a data pass-through verification step: the protocol parsing and adaptation sublayer outputs data carrying a template version identifier. The deployment topology adaptation sublayer and the model version management sublayer read the template version identifier and verify whether the template version is compatible with the current model or AI inference service input requirements. If incompatible, the data is intercepted and a protocol version mismatch alarm is output. This invention also discloses a cross-architecture adaptive deployment and adaptation middleware system for a new energy vehicle three-electric system risk control assessment platform, used to execute the above-mentioned method, including: a protocol parsing and adaptation submodule, used to load a protocol parsing template library, complete heterogeneous acquisition terminal message parsing, field normalization processing, and output the original feature dataset; a deployment topology adaptation submodule, used to collect network and computing power status, automatically identify deployment modes, generate scheduling instructions to distribute feature datasets; a model version management submodule, used to realize hot switching loading of assessment models / remote AI inference services, grayscale alignment verification of new and old models or remote AI inference services, version switching and rollback; and a data interface module, used to output the standardized feature dataset to an external three-electric system risk control assessment engine. Furthermore, the system is a software logic middleware, does not contain a physical acquisition hardware structure, and connects to external third-party heterogeneous acquisition terminals through a data interaction interface, issuing message format and reporting timing constraint instructions to the external acquisition terminals.The beneficial effects of this invention are: 1. It sets up an independent intermediate layer to isolate the data acquisition terminal and the risk control engine. The protocol template can be dynamically maintained and adapted to multiple BMS vendors and new-generation solid-state battery messages. The business engine does not need to be modified. 2. It automatically identifies the network and computing power status and automatically switches between pure cloud, cloud-edge hybrid, and pure local edge deployment modes. Business is not interrupted in weak network or network outage environments. 3. The model supports grayscale alignment verification, hot switching, and anomaly rollback. The upgrade process does not require downtime, ensuring the continuous and stable operation of the three-electric risk control business. Detailed Implementation
[0004] The present invention will be further described in detail below with reference to specific embodiments. Embodiment 1: A cross-architecture adaptive deployment and adaptation method for the middle layer of a new energy vehicle three-electric risk control assessment platform. The middle layer is deployed on the edge server of the site and connects to multiple heterogeneous data acquisition terminals of new energy vehicles of different brands. S1. The protocol parsing and adaptation sublayer preloads multiple BMS protocol parsing templates, receives raw BMS messages reported by multiple vehicles, matches the corresponding protocol template, completes message parsing, normalizes fields such as voltage, current, SOC, and temperature, unifies units, and outputs the raw feature dataset. S2. The topology adaptation sublayer is deployed to monitor the uplink bandwidth from the site to the cloud server in real time. If the bandwidth is sufficient, it is determined to be in pure cloud mode, and all raw feature datasets are scheduled to be uploaded to the cloud. S3. The three-electric risk control assessment model needs to be upgraded. The model version management sublayer loads both the old and new versions of the risk control model. The same batch of vehicle feature data is sent to the old and new models simultaneously. The deviation of the risk assessment score is statistically analyzed. If the overall deviation is less than the 5% consistency threshold, the verification is deemed qualified, and the model is hot-swapped to the new version for formal operation. S4. The standardized feature data is output to the external three-electric risk control assessment engine, and the engine outputs the battery risk assessment results. Example 2: This example is basically the same as Example 1, except that: the site network deteriorates, uplink bandwidth decreases, triggering a cloud-edge hybrid mode; high-risk battery features are preferentially processed locally at the site edge, and the complete original dataset is transmitted back to the cloud during network recovery downtime; if the deviation of the new version model exceeds the threshold, the new version is not switched, an alarm is output, and the old version continues to work. Example 3: If the site cloud network is completely disconnected, it automatically switches to a pure local edge mode, and all risk control calculations are completed locally on the site edge terminal; if the new version runs abnormally, the model version management sublayer triggers a hot rollback, directly switching back to the previous stable model, without interrupting service. Example 4: The protocol parsing adaptation sublayer accesses the private packets of solid-state battery vehicles, imports a new protocol parsing template, and can complete the parsing of solid-state battery packets without modifying the risk control engine code; the output data carries the template version identifier, the downstream sublayer checks version compatibility, and if the version does not match, the data is directly intercepted and an alarm is issued. The system embodiment of the present invention is used to implement all the above-mentioned method processes. The system is a software middleware and does not come with its own hardware acquisition device. It connects to external heterogeneous acquisition terminals through interfaces to realize protocol adaptation, deployment scheduling, model version management, and output standardized data to external risk control assessment engines. Attached Figure Description
[0005] Appendix Figure 1 This is a data flow diagram of the overall architecture of the present invention; including: heterogeneous acquisition terminal → protocol parsing and adaptation sublayer → deployment topology adaptation sublayer → model version management sublayer → external three-electric risk control assessment engine → output assessment results.
Claims
1. A cross-architecture adaptive deployment and adaptation method for an electric vehicle three-electric system risk control assessment platform, characterized in that, The intermediate layer is deployed on servers and / or edge detection terminals. The intermediate layer includes a protocol parsing adaptation sublayer, a deployment topology adaptation sublayer, and a model version management sublayer. The method includes the following steps: S1. The protocol parsing adaptation sublayer loads an externally imported protocol parsing template library, receives raw data packets from heterogeneous acquisition terminals, and performs packet parsing, field normalization, and unit conversion on the raw data packets based on successfully matched protocol parsing templates, outputting the raw feature dataset; S2. The deployment topology adaptation sublayer collects the current network connectivity status and node computing power parameters, automatically determines the currently available deployment mode, including pure cloud mode, cloud-edge hybrid mode, and pure local edge mode; and generates scheduling instructions based on the determined deployment mode, distributing the raw feature dataset to the corresponding computing nodes. S3. The model version management sublayer obtains the version information of the three-electric risk control assessment model / remote AI inference service to be run, and performs hot-swapping loading of the model or AI inference service; when a gray-scale switch of the model or remote AI inference service is required, the old version assessment model / old remote AI inference service and the new version assessment model / new remote AI inference service are called at the same time, and the same batch of original feature datasets are input into the old and new models or AI inference services respectively, and the assessment results are aligned and verified; when the alignment verification meets the preset consistency threshold, the new version model or new remote AI inference service is switched as the official running object; if the verification fails, the old version model or old remote AI inference service is maintained and an abnormal alarm is output; S4. The standardized feature dataset processed by the intermediate layer is output to the external three-electric risk control assessment engine, which performs risk control assessment calculation and outputs standardized assessment results.
2. The method according to claim 1, characterized in that, The protocol parsing template library supports dynamic addition, modification, and deletion of protocol parsing templates without modifying the business code of the three-electric risk control assessment engine. The protocol parsing template includes message header identifier, field offset mapping relationship, unit conversion rule, and scalable battery feature extension field. The scalable battery feature extension field is used to access the private BMS message of semi-solid and solid-state next-generation batteries.
3. The method according to claim 1, characterized in that, The specific steps for automatically determining the deployment mode in step S2 include: S21: Collecting cloud service network connectivity, edge node CPU computing power, memory usage, and data uplink bandwidth; S22: If the cloud network is connected normally and the bandwidth is greater than the first threshold, it is determined to be a pure cloud mode, and all feature data is uploaded to the cloud node for processing; S23: If the cloud network is weak and the bandwidth is lower than the first threshold but not disconnected, it is determined to be a cloud-edge hybrid mode, the edge node completes preliminary preprocessing, high-priority features are processed locally, and all data is transmitted back to the cloud when appropriate; S24: If the cloud network is disconnected, it is determined to be a pure local edge mode, and all calculations are completed locally on the edge detection terminal.
4. The method according to claim 1, characterized in that, The alignment verification of the evaluation results in step S3 includes: calculating the deviation rate between the risk score output by the old version model or the old remote AI inference service and the risk score output by the new version model or the new remote AI inference service under the same batch of samples; when the overall deviation rate of the samples is less than the preset consistency threshold, the verification is deemed to have passed; if it exceeds the threshold, an alarm for mismatched output versions is issued, and a difference comparison report is generated.
5. The method according to claim 1, characterized in that, The model version management sublayer also includes a version rollback mechanism. If an anomaly occurs during the operation of a new version model or a new version of the remote AI inference service, it can be hot-rolled back to the previous stable version of the model or remote AI inference service without downtime.
6. The method according to any one of claims 1-5, characterized in that, It also includes a data pass-through verification step: the protocol parsing and adaptation sublayer outputs data carrying a template version identifier, the deployment topology adaptation sublayer and the model version management sublayer read the template version identifier, and verify whether the template version is compatible with the current model or AI inference service input requirements. If they are not compatible, the data is intercepted and a protocol version mismatch alarm is output.
7. A cross-architecture adaptive deployment and adaptation middleware system for a new energy vehicle three-electric system risk control assessment platform, characterized in that, The method for performing any one of claims 1-6 comprises: a protocol parsing and adaptation submodule, used to load a protocol parsing template library, complete heterogeneous acquisition terminal message parsing and field normalization processing, and output the original feature dataset; a deployment topology adaptation submodule, used to collect network and computing power status, automatically identify deployment modes, and generate scheduling instructions to distribute the feature dataset; a model version management submodule, used to realize hot switching loading of evaluation models / remote AI inference services, grayscale alignment verification of new and old models or remote AI inference services, version switching and rollback; and a data interface module, used to output the standardized feature dataset to an external three-electric risk control evaluation engine.
