Multi-module battery swap station regulation and control instruction management system and method
By designing multi -module power stations for control instruction management systems, the problems of low instruction receiving and analysis efficiency in the existing system, lack of real -time monitoring and feedback, abnormal processing and security protection are weak, and a more efficient and more stable power station operation operation is achieved Essence
Patent Information
- Application Number
- CN202411265779.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2025-01-24
AI Technical Summary
The existing power swap station regulation and instruction management system has problems such as low command reception and analysis efficiency, lack of real-time monitoring and feedback mechanisms, weak exception handling and safety protection, resulting in limited system operation efficiency and stability.
A multi -module power station regulation instruction management system is designed, including instruction receiving and analytical modules, instruction issued and monitoring feedback modules, and abnormal processing and security protection modules. The system receives and analyzes instructions in real time through the asynchronous data processing method. It uses improvement of random forest algorithms for priority judgment, and the execution status of real -time monitoring instructions is used to handle abnormal conditions in time to ensure safe protection.
It improved the efficiency and accuracy of the management instruction management of power stations, ensured the stable operation and equipment safety of the power station, effectively reduced the stop time caused by abnormal conditions, and improved operating efficiency.
Smart Images

Figure CN119357658A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of multi-module battery swap station control instruction management, and in particular to a multi-module battery swap station control instruction management system and method. Background Art
[0002] With the popularization of electric vehicles and the construction of battery swap stations, the demand for battery swap station control command management system is increasing. In order to improve the operating efficiency of battery swap stations, ensure the stable operation of the power grid and reduce manual management costs, it is necessary to develop an automated, intelligent, multi-module battery swap station control command management system.
[0003] However, some of the on-the-spot control command management systems on the market have low efficiency in command reception and analysis, which often takes a lot of time and manpower; lack of effective monitoring and feedback mechanisms, making it difficult to track and evaluate the execution of commands in real time; and weak exception handling and safety protection. These problems limit the operating efficiency and stability of the system, and limit the degree of automation of the control of the power swap station. Summary of the invention
[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0005] In view of the above existing problems, the present invention is proposed.
[0006] Therefore, the present invention provides a multi-module battery swap station control instruction management system and method, which can solve the problems mentioned in the background technology.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0008] In a first aspect, the present invention provides a multi-module battery swap station control command management system, including: a command receiving and parsing module, a command issuing and monitoring feedback module, and an exception handling and safety protection module;
[0009] The instruction receiving and parsing module is used to receive the control instructions transmitted from the target battery swap station in real time, parse and process the control instructions, and transmit the target battery swap station control instructions after parsing to the instruction issuing and monitoring feedback module;
[0010] The instruction issuance and monitoring feedback module is used to determine the instruction priority of the target battery swap station control instruction after the analysis is completed, and configure the corresponding instruction transmission format and instruction transmission protocol for different target battery swap station control instructions, while monitoring the real-time instruction execution status, and judging whether to re-issue the instruction or handle the exception according to the real-time instruction execution status;
[0011] The exception handling and safety protection module is used to perform exception handling on the abnormal conditions transmitted by the instruction issuance and monitoring feedback module, and to re-perform safety protection detection on the abnormal conditions that have completed the exception handling, thereby completing the target battery swap station control instruction management.
[0012] As a preferred solution of the multi-module battery swap station control command management system described in the present invention, wherein: the command receiving and parsing module includes: a command receiving unit and a command parsing unit;
[0013] The instruction receiving unit is used to receive control instructions from the superior dispatching center in real time using an asynchronous data processing method, wherein the asynchronous data processing method includes comparing the energy calculation results of the echo signal and the noise signal, the power signal-to-noise ratio calculation results, and the cumulative signal-to-noise ratio calculation results with a preset threshold;
[0014] According to the comparison result, it is determined whether to transmit the instruction to the instruction parsing unit or to transmit the instruction to the exception handling and security protection module for exception handling.
[0015] As a preferred solution of the multi-module battery swap station control command management system described in the present invention, the command receiving and parsing module also includes: the command parsing unit is used to parse the command transmitted by the command receiving unit, parse the command by improving the natural language processing method, and transmit the parsed command to the command issuing and monitoring feedback module.
[0016] As a preferred solution of the multi-module battery swap station control command management system described in the present invention, wherein: the command issuing and monitoring feedback module includes: a command issuing unit and a monitoring feedback unit;
[0017] The instruction issuing unit is used to judge the priority of the instruction transmitted by the instruction parsing unit, and issue tasks according to the priority;
[0018] The priority judgment includes using an improved random forest algorithm to perform priority judgment on the instructions transmitted to the instruction parsing unit, and the improved random forest algorithm includes instruction heterogeneity calculation, split point calculation, decision tree error calculation and automatic instruction priority screening;
[0019] The instructions after priority judgment are processed according to a preset priority processing strategy, and the priority processing strategy includes when the priority is level one, directly transmitting the instructions to the target battery swap station; when the priority is level two, performing a secondary judgment on the instructions, and the secondary judgment includes a comprehensive evaluation of the urgency of the instructions, resource occupancy, and execution time window to determine whether they need to be executed immediately or wait for a more appropriate execution time; when the priority is level three, the instructions are transmitted to the exception handling and security protection module for exception handling and protection processing.
[0020] As a preferred solution of the multi-module battery swap station control command management system described in the present invention, the command issuing and monitoring feedback module also includes:
[0021] The monitoring feedback unit includes a real-time data acquisition unit for monitoring the instruction execution status and an instruction execution status feedback unit. The real-time data acquisition unit is responsible for acquiring various parameters in the instruction execution process from the target battery swap station and transmitting the various parameter data to the instruction execution status feedback unit in real time;
[0022] The instruction execution status feedback unit analyzes and judges the instruction execution status based on the data collected in real time;
[0023] When an abnormal situation occurs during the execution of an instruction, the instruction execution status feedback unit will immediately send an abnormal signal to the instruction issuing unit and transmit the abnormal information to the abnormal processing and safety protection module. The abnormal processing and safety protection module will perform abnormal processing based on the received abnormal information.
[0024] As a preferred solution of the multi-module battery swap station control command management system described in the present invention, wherein: the abnormality handling and safety protection module includes: an abnormality handling unit and a safety protection unit;
[0025] The exception handling unit includes performing exception handling on the abnormal instructions transmitted to the instruction receiving and parsing module and the instruction issuing and monitoring feedback module, and the exception handling is processed by a preset exception handling model;
[0026] The exception handling model includes a first exception handling model and a second exception handling model, the first exception handling model includes a first improved exception handling action value function and a first loss function, and the second exception handling model includes a second improved exception handling action value function and a second loss function;
[0027] When an abnormal instruction comes from the instruction receiving and parsing module, a first abnormal processing model is used;
[0028] When an abnormal instruction comes from the instruction issuance and monitoring feedback module, a second abnormal processing model is used.
[0029] As a preferred solution of the multi-module battery swap station control command management system described in the present invention, the abnormality handling and safety protection module also includes:
[0030] The security protection unit includes a security protection detection unit and a security protection strategy unit;
[0031] The safety protection detection unit is responsible for performing safety protection detection on the instructions after abnormal processing to ensure that the instructions will not cause damage or safety risks to the equipment of the battery swap station during execution;
[0032] The Security Protection and Detection Department adopts a multi-level detection mechanism, including but not limited to data integrity verification, instruction execution authority verification, and compliance inspection of instruction execution results;
[0033] The security protection strategy department formulates the first security protection measure according to the detection result of the security protection detection department. When a potential security risk is detected, the security protection strategy department will take measures immediately.
[0034] In a second aspect, the present invention provides a multi-module battery swap station control instruction management method, comprising:
[0035] Receiving the control instruction transmitted by the target battery swap station, and parsing and processing the control instruction;
[0036] The target battery swap station control instructions after parsing are judged for instruction priority, and different target battery swap station control instructions are configured with corresponding instruction transmission formats and instruction transmission protocols, while monitoring the real-time instruction execution status, and judging whether to re-issue the instruction or handle the exception according to the real-time instruction execution status;
[0037] Perform exception handling on abnormal situations, and re-test the abnormal situations that have completed exception handling for safety protection, and complete the control command management of the target battery swap station.
[0038] In a third aspect, the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned method when executing the computer program.
[0039] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method described above when executed by a processor.
[0040] Compared with the prior art, the invention has the following beneficial effects: the invention proposes a multi-module power swap station control instruction management system and method, which receives the control instruction transmitted by the target power swap station and parses and processes the control instruction; the control instruction of the target power swap station after parsing is judged for instruction priority, and the control instructions of different target power swap stations are configured with corresponding instruction transmission formats and instruction transmission protocols, and the real-time instruction execution status is monitored at the same time, and it is judged whether to re-issue the instruction or handle the exception according to the real-time instruction execution status; the abnormal situation is handled, and the abnormal situation that has completed the abnormal handling is re-checked for safety protection, and the target power swap station control instruction management is completed. This application improves the efficiency and accuracy of the power swap station control instruction management, and ensures the stable operation and equipment safety of the power swap station. By using the improved random forest algorithm for priority judgment, tasks can be allocated more scientifically, avoiding resource waste and execution delays caused by improper instruction processing. At the same time, by real-time monitoring of the instruction execution status and timely handling of exceptions, the downtime of the power swap station caused by abnormal situations can be effectively reduced, and the operation efficiency of the power swap station can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0042] Figure 1 A method flow chart of a multi-module battery swap station control instruction management system and method provided by an embodiment of the present invention;
[0043] Figure 2 An internal structural diagram of a computer device for a multi-module battery swap station control instruction management system and method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0045] Example 1
[0046] Reference Figure 1-Figure 2 , which is the first embodiment of the present invention, provides a multi-module battery swap station control instruction management system and method, including:
[0047] Before describing the embodiments of the present application in detail, some related concepts are first explained for the sake of clarity.
[0048] Battery swap station control instructions: Battery swap station control instructions refer to commands issued by the central control system or dispatch center to control and adjust the operating status of various equipment in the battery swap station. These instructions may involve battery replacement, charging, maintenance and other aspects, with the aim of ensuring efficient and safe operation of the battery swap station. For example, the dispatch center may issue instructions to instruct the battery swap station when to perform battery replacement operations, how to allocate charging station resources, etc.
[0049] Random Forest Algorithm: Random Forest is an ensemble learning method that improves prediction accuracy and prevents overfitting by building multiple decision trees and combining their results. Each decision tree is trained independently based on a subset of the training data set, and only a portion of randomly selected features are considered when selecting the optimal split feature at each node. The final prediction result is usually the average of all decision tree prediction results (regression tasks) or the majority voting result (classification tasks).
[0050] Multi-level detection mechanism: A multi-level detection mechanism refers to a multi-level security detection scheme implemented in the system to ensure the security of data and systems. This mechanism usually includes multiple levels of inspection, and each level will prevent different security threats. For example, in the present invention, the multi-level detection mechanism adopted by the security protection detection unit may include the following aspects:
[0051] Data integrity check: Ensure that data has not been tampered with or damaged during transmission.
[0052] Instruction execution authority verification: Confirm that the entity executing the instruction has the corresponding authority to prevent unauthorized access.
[0053] Compliance check of instruction execution results: Ensure that the results produced after the instruction is executed meet the established standards or regulations, such as not causing equipment damage or other safety issues.
[0054] There are some problems in the relevant technologies, such as low efficiency in processing control instructions of battery swap stations, unscientific judgment of instruction priority, and loopholes in exception handling and safety protection. These problems may lead to unstable operation of battery swap stations and even equipment damage and safety accidents.
[0055] This application provides a method that can effectively solve the above-mentioned problems. Next, we will combine multiple embodiments to explain in detail how to implement the multi-module battery swap station control command management system;
[0056] Specifically, the multi-module battery swap station control command management system includes a command receiving and parsing module, a command issuing and monitoring feedback module, and an exception handling and safety protection module;
[0057] The command receiving and parsing module is used to receive the control command transmitted from the target battery swap station in real time, parse and process the control command, and transmit the target battery swap station control command after parsing to the command issuing and monitoring feedback module;
[0058] The instruction issuance and monitoring feedback module is used to determine the instruction priority of the target battery swap station control instructions after the analysis is completed, and configure the corresponding instruction transmission format and instruction transmission protocol for different target battery swap station control instructions, while monitoring the real-time instruction execution status, and judging whether to re-issue the instruction or handle the exception according to the real-time instruction execution status;
[0059] The exception handling and safety protection module is used to handle the abnormal conditions transmitted by the command issuance and monitoring feedback modules, and to re-check the safety protection of the abnormal conditions that have completed the exception handling, so as to complete the control command management of the target battery swap station.
[0060] In the embodiment of the present application, the instruction receiving and parsing module includes: an instruction receiving unit and an instruction parsing unit;
[0061] The instruction receiving unit is used to receive the control instruction from the superior dispatching center in real time using an asynchronous data processing method, wherein the asynchronous data processing method includes comparing the energy calculation results of the echo signal and the noise signal, the power signal-to-noise ratio calculation results, and the cumulative signal-to-noise ratio calculation results with a preset threshold value;
[0062] According to the comparison result, it is determined whether to transmit the instruction to the instruction parsing unit or to transmit the instruction to the exception handling and security protection module for exception handling.
[0063] In an embodiment of the present application, the control instruction processing method of the upper dispatch center of the target battery swap station includes receiving and decoding the control instruction, considering the control instruction received from the upper dispatch center. These instructions are usually in the form of digital signals, including but not limited to charging instructions, discharging instructions, etc. Assume that there is a signal sequence S(t), where t represents time.
[0064] Signal sequence: S(t) = [s1, s2, …, s N ], where s i is the amplitude of the ith sample point, and N is the total length of the signal.
[0065] Furthermore, instruction decoding and validity verification, at this stage, it is necessary to decode the signal sequence S(t) and verify its validity.
[0066] Decoded instruction set: I = [i1, i2, ..., i M ], where i j represents the jth decoded instruction, and M is the number of instructions.
[0067] Furthermore, the effectiveness of instructions can be quantified: signal quality indicators such as signal-to-noise ratio (SNR) can be used to determine the effectiveness of instructions.
[0068] The signal-to-noise ratio (SNR) can be calculated by the following formula:
[0069]
[0070] Among them, E signal Indicates the energy of the signal; E noise Represents the energy of the noise.
[0071] Signal energy E signal :
[0072]
[0073] Noise Energy E noise :
[0074]
[0075] Among them, n i are the noise sample points extracted from the signal.
[0076] Furthermore, once the validity of the instructions is verified, they can be processed and executed. Assuming that a valid instruction has been determined, the instruction execution condition is: only when SNR>SNR threshold The instruction will be executed only when SNR threshold is the preset threshold.
[0077] Furthermore, after executing the command, the battery swap station will feed back the execution result to the superior dispatch center. Assume that the execution result can be represented by a vector R.
[0078] Execution result vector: R = [r1, r2, ..., r L ], where r k denotes the kth result parameter, and L is the number of result parameters.
[0079] Furthermore, the average value can be used to represent the general level of the execution results. For example, if each element in the execution result vector R represents the efficiency of the battery swap station in completing a certain task, then the average value μ RIt reflects the overall performance of the battery swap station when performing the task. Using the standard deviation can ensure the stability and consistency of the execution results. A smaller standard deviation means that the data points are relatively concentrated, that is, the execution results are relatively consistent; a larger standard deviation indicates that the data points are more dispersed, and the execution results may fluctuate greatly.
[0080] In the embodiment of the present application, the judgment criteria are set as follows:
[0081] Average value μ R Judgment criteria:
[0082] Goal: Set a desired mean μ target , which can be a value based on historical data, business requirements, or best practices.
[0083] Judgment: If μ R ≥μ target , it is considered that the execution result has reached the expected level; otherwise, further analysis of the reasons is needed.
[0084] Standard deviation R Judgment criteria:
[0085] Goal: Set a desired standard deviation σ target , which can also be a value based on historical data, business requirements, or best practices.
[0086] Judgment: If σ R ≤σ target , then the stability of the execution result meets the requirements; otherwise, there may be unstable factors and further investigation is needed.
[0087] For example, assuming that the goal is to make the efficiency of the battery swap station in executing the control instructions as high and stable as possible, the following judgment criteria can be set:
[0088] Average value μ target Target: 90%
[0089] Standard deviation target Target: 2%
[0090] For example, suppose there is a set of execution result vectors R = [90, 92, 91, 88, 93], and the average value is calculated:
[0091]
[0092] Calculate the standard deviation:
[0093]
[0094] σ R ≈1.85
[0095] Average value judgment: μ R =90.6 greater than μ target =90%, so the average efficiency of the execution results met expectations.
[0096] Standard deviation judgment: σ R =1.85 less than σ target =2%, so the stability of the execution results also met expectations.
[0097] Based on the above judgment criteria, it can be concluded that the efficiency and stability of the battery swap station in executing control instructions have reached the expected goals.
[0098] It should be noted that the use of the above asynchronous data processing method can process and respond to control instructions in real time, thereby improving the flexibility and reliability of the entire power system. By real-time monitoring and analysis of signal quality indicators, the system can quickly identify and handle abnormal situations to ensure the normal operation of the battery swap station. In addition, by setting reasonable judgment criteria, the efficiency and stability of the battery swap station in performing tasks can be ensured, thereby providing stable and reliable energy support for the entire power system.
[0099] In an embodiment of the present application, the instruction receiving and parsing module also includes: an instruction parsing unit is used to parse the instructions transmitted by the instruction receiving unit, parse the instructions by improving the natural language processing method, and transmit the parsed instructions to the instruction issuing and monitoring feedback module.
[0100] In the embodiment of the present application, the control instruction received by the instruction receiving unit is usually a text message, which contains specific instructions about the operation of the battery swap station, for example, "replace battery A with battery B within 10 minutes".
[0101] Before parsing the instructions, the text needs to be preprocessed, including removing stop words, punctuation, and stemming or lemmatization. Stop word list: for example, "the", "s", "at", etc. Stemming / lemmatization: for example, converting "changing" to "change".
[0102] Furthermore, key features are extracted from the preprocessed text. This can be achieved through the Bag-of-Words (BoW) model, or by using methods such as TF-IDF (Term Frequency-Inverse Document Frequency). In addition, this application uses an improved method:
[0103] Word embedding: Use a pre-trained word embedding model (such as BERT) to obtain a vector representation for each word;
[0104] Mathematical expression: Assuming w is a word and E is the pre-trained word embedding matrix, the word embedding of w is represented by E(w).
[0105] Context-aware feature extraction: Use bidirectional LSTM or Transformer to extract context-aware features.
[0106] Mathematical expression: Assume h t is the hidden state of LSTM at time t, x t is a word in the input sequence, then h t It can be calculated by the following recursive formula:
[0107] h t =LSTM(h,x t )
[0108] For Transformer, a multi-head self-attention mechanism is used to capture the relationship between words.
[0109] Going a step further, an improved natural language processing method is used to parse the instructions. Here, a rule-based approach and a deep learning model are used to identify the key parts of the instructions.
[0110] Rule-based approach: Define a series of rules to identify key information of instructions, such as time, object, action, etc.
[0111] The deep learning model includes: Attention mechanism: Use the attention mechanism to highlight the key parts in the instructions.
[0112] Specifically, suppose we use a model with an attention mechanism to parse instructions. The attention mechanism allows the model to focus on specific parts of the instruction.
[0113] Attention score: Assume e t is the score calculated by the attention mechanism for each time step t, then the attention score can be expressed as:
[0114] e t =Attention(h t ,H)
[0115] Among them, h t is the hidden state of the LSTM at time step t, and H is the sequence of all hidden states.
[0116] Weighted hidden state: Use the attention score to calculate the weighted hidden state c:
[0117]
[0118] Among them, α t is the normalized attention weight, and T is the length of the sequence.
[0119] Furthermore, the sequence-to-sequence model uses a Seq2Seq model (encoder-decoder architecture) to convert raw instructions into structured outputs, convert the parsed instructions into a computer-readable form, and send them to the instruction issuance and monitoring feedback modules.
[0120] It should be noted that, assuming that the instruction received by the battery swap station is: "Replace battery A with battery B within 10 minutes". After parsing, the battery swap station can clearly know that the replacement operation from battery A to battery B needs to be completed within 10 minutes. Through these improved methods, the instruction parsing unit can more accurately understand complex natural language instructions and convert them into a structured data format for subsequent processing and execution.
[0121] In the embodiment of the present application, the instruction issuing and monitoring feedback module includes: an instruction issuing unit and a monitoring feedback unit;
[0122] The instruction issuing unit is used to judge the priority of the instruction transmitted by the instruction parsing unit and issue tasks according to the priority;
[0123] Priority judgment includes using an improved random forest algorithm to judge the priority of instructions transmitted to the instruction parsing unit, and the improved random forest algorithm includes instruction heterogeneity calculation, split point calculation, decision tree error calculation and automatic screening of instruction priority;
[0124] The instructions after priority judgment are processed according to the preset priority processing strategy. The priority processing strategy includes when the priority is level one, directly transmitting the instructions to the target battery swap station; when the priority is level two, making a secondary judgment on the instructions, the secondary judgment includes a comprehensive evaluation of the urgency of the instructions, resource usage and execution time window to determine whether they need to be executed immediately or wait for a more appropriate execution time; when the priority is level three, the instructions are transmitted to the exception handling and security protection module for exception handling and protection processing.
[0125] In the embodiment of the present application, the instruction issuing unit receives the parsed instructions transmitted by the instruction parsing unit, and these instructions have been converted into a structured form. An improved random forest algorithm is used to determine the priority of the instructions.
[0126] Instruction heterogeneity calculation: calculate the differences between instructions.
[0127] Splitting point calculation: Determine the best features and thresholds for segmenting a dataset.
[0128] Decision Tree Error Calculation: Evaluate the prediction error of each decision tree.
[0129] Automatically filter the priority of instructions: According to the results of the above steps, the priority of instructions is automatically filtered out.
[0130] Furthermore, based on the result of the priority judgment, the task is issued according to the preset priority processing strategy.
[0131] Exemplarily, the instructions transmitted by the instruction parsing unit have been converted into a structured form, for example:
[0132] Command 1: {"time":"10 minutes","object_from":"Battery A","action":"Replace","object_to":"Battery B"};
[0133] Instruction 2: {"time":"30 minutes","object_from":"Battery C","action":"Charge","object_to":"80%"};
[0134] Command 3: {"time":"2 hours","object_from":"battery swap station","action":"check","object_to":"comprehensive"};
[0135] Furthermore, an improved random forest algorithm is used to prioritize instructions and calculate the differences between instructions.
[0136] Assume that X is the feature matrix, Y is the target variable (priority), Gini(X,Y) represents the Gini impurity, and Gini(X,Y) can be calculated by the following formula:
[0137]
[0138] where p j is the proportion of category j, and J is the total number of categories.
[0139] Splitting point calculation: Determine the best features and thresholds for segmenting a dataset.
[0140] Assume that S is the candidate segmentation point on feature i, D is the data set, Gini(D,S) represents the Gini impurity after segmentation, and Gini(D,S) can be calculated by the following formula
[0141]
[0142] Among them, D l and D r are the data sets on the left and right of the split point respectively.
[0143] Decision Tree Error Calculation: Evaluate the prediction error of each decision tree.
[0144] Assume that T is a decision tree, D is a data set, Err(T,D) represents the error of decision tree T on data set D. Err(T,D) can be calculated by the following formula:
[0145]
[0146] Among them, y d is the true label of data point d, is the predicted label of the decision tree T for the data point d, and the mountain is the indicator function.
[0147] Automatically filter the priority of instructions: According to the results of the above steps, the priority of instructions is automatically filtered out.
[0148] Assume that P is the feature vector of an instruction, RF is the random forest model, Indicates the prediction priority of the instruction, It can be calculated by the following formula:
[0149]
[0150] In the embodiment of the present application, three thresholds θ1, θ2, and θ3 are set, where θ1<θ2<θ3;
[0151] Priority determination: If The instruction priority is level 1. The instruction priority is level 2. The instruction priority is level three.
[0152] For example, the specific value range depends on the business needs and the training results of the random forest model. Here is an example range for reference: first-level priority threshold θ3: 0.95; second-level priority threshold θ2: 0.6; third-level priority threshold θ1: 0.3; if The instruction priority is level 1. The instruction priority is level 2. The instruction priority is level three.
[0153] Assume that the following prediction results have been obtained using the improved random forest algorithm RF: Instruction 1: Instruction 2: Directive 3: According to the above threshold settings, it can be determined that: Instruction 1: priority level 1. Instruction 2: priority level 2. Instruction 3: priority level 3.
[0154] Instruction 1: Since the priority is level 1, it is directly transmitted to the target battery swap station for execution.
[0155] Instruction 2: Since the priority is level 2, after a second judgment, it is decided to execute within 30 minutes.
[0156] Instruction 3: Since the priority is level 3, it is not executed temporarily, but transmitted to the exception handling and security protection module for evaluation.
[0157] In the embodiment of the present application, the instruction issuing and monitoring feedback module also includes:
[0158] The monitoring feedback unit includes a real-time data acquisition unit for monitoring the instruction execution status and an instruction execution status feedback unit. The real-time data acquisition unit is responsible for acquiring various parameters in the instruction execution process from the target battery swap station and transmitting the various parameter data to the instruction execution status feedback unit in real time;
[0159] The instruction execution status feedback unit analyzes and judges the instruction execution status based on the data collected in real time;
[0160] When an abnormal situation occurs during the execution of an instruction, the instruction execution status feedback unit will immediately send an abnormal signal to the instruction issuing unit and transmit the abnormal information to the abnormal processing and safety protection module. The abnormal processing and safety protection module will perform abnormal processing based on the received abnormal information.
[0161] In the embodiment of the present application, the real-time data acquisition unit is responsible for obtaining various parameters during the execution of the instruction from the target battery swap station. For example, execution time: the actual time required for the instruction to execute. Battery status: the status of the battery before and after the execution of the instruction (such as the remaining power), operation record: the specific steps and results of executing the instruction.
[0162] The instruction execution status feedback unit analyzes and judges the instruction execution status based on the real-time collected data, using statistical methods or machine learning models to analyze the data.
[0163] Assume that X is the collected data vector and f(X) is the analysis function. f(X) can be calculated by the following formula:
[0164]
[0165] Among them, w i is the weight of feature i, x i is the value of feature i, and n is the total number of features.
[0166] Furthermore, anomaly detection algorithms are used to determine whether there are abnormal situations.
[0167] Assuming μ is the mean of normal data, σ is the standard deviation, X is the data point, and Z is the standardized data point, Z can be calculated by the following formula:
[0168]
[0169] If |Z|>θ, where θ is the threshold, then the data point X is considered an anomaly.
[0170] Furthermore, when an abnormal situation occurs during the execution of an instruction, the instruction execution status feedback unit will immediately send an abnormal signal to the instruction issuing unit, and transmit the abnormal information to the abnormal handling and safety protection module for processing.
[0171] Furthermore, when an anomaly is detected, a signal is sent immediately.
[0172] Assuming A is an abnormal signal and δ is an abnormal detection function, A can be calculated by the following formula:
[0173] A=δ(Z)
[0174] If |Z|>θ, then A=1 (indicating abnormality); otherwise A=0 (indicating normality).
[0175] Furthermore, the exception information is transmitted to the exception handling and security protection module.
[0176] Assuming E is the abnormal information and T(E) is the transfer function, T(E) can be calculated by the following formula:
[0177] T(E)=SendToAnomalyHandlingModule(E)
[0178] For example, assume that the execution of an instruction is being monitored, and the instruction requires replacing battery A with battery B within 10 minutes.
[0179] Obtain the actual time required to execute the command, battery status, and other data from the battery swap station. Execution time: 12 minutes. Battery status: Battery A has 5% remaining power, and Battery B has 95% remaining power. Assume that under normal circumstances, the average execution time for this type of command is 10 minutes, with a standard deviation of 1 minute. Calculate the standardized value Z of the execution time.
[0180]
[0181] If |Z|>θ, where θ is a threshold (e.g., 2), then the execution time is considered abnormal.
[0182] Abnormal signal sending: Because |Z|>θ, an abnormal signal is sent.
[0183] Exception information transmission: Transmit exception information to the exception handling and security protection modules.
[0184] In the embodiment of the present application, the exception handling and security protection module includes: an exception handling unit and a security protection unit;
[0185] The exception handling unit includes performing exception handling on the exception instructions transmitted to the instruction receiving and parsing module and the instruction issuing and monitoring feedback module, and the exception handling is processed by a preset exception handling model;
[0186] The exception handling model includes a first exception handling model and a second exception handling model, the first exception handling model includes a first improved exception handling action value function and a first loss function, and the second exception handling model includes a second improved exception handling action value function and a second loss function;
[0187] When an exception instruction comes from the instruction receiving and parsing module, a first exception handling model is used;
[0188] The second exception handling model is used when an abnormal instruction comes from the instruction issuance and monitoring feedback module.
[0189] In an embodiment of the present application, after the monitoring feedback unit detects an abnormal situation, it transmits the abnormal information to the abnormal processing unit. The abnormal information includes the source, type, specific content, etc. of the abnormal instruction.
[0190] Furthermore, a corresponding exception handling model is selected according to the source of the exception instruction;
[0191] The first exception handling model: applicable to abnormal instructions from the instruction receiving and parsing module.
[0192] The second exception handling model: applicable to abnormal instructions from the instruction issuance and monitoring feedback modules.
[0193] Furthermore, the selected exception handling model is used to perform exception handling, and an improved exception handling action value function is designed to calculate the value of the exception handling action. An improved loss function is designed to evaluate the effect of the exception handling action.
[0194] The first improved exception handling action value function in the first exception handling model is expressed as:
[0195] Assuming V1(a) is the value function of the first exception handling action a, r1 is the reward, and γ1 is the discount factor, V1(a) can be calculated by the following formula:
[0196] V1(a)=r1+γ1V1(a′)
[0197] The first loss function is expressed as:
[0198] Assume that L1 is the first loss function and y1 is the actual result. is the prediction result, L1 can be calculated by the following formula:
[0199]
[0200] The second improved exception handling action value function in the second exception handling model is expressed as:
[0201] Assuming V2(a) is the value function of the second exception handling action a, r2 is the reward, and γ2 is the discount factor, V2(a) can be calculated by the following formula
[0202] V2(a)=r2+γ2V2(a′)
[0203] The second loss function is expressed as:
[0204] Assume L2 is the second loss function and y2 is the actual result. is the prediction result, L2 can be calculated by the following formula:
[0205]
[0206] For example, assume that the execution of an instruction is being monitored, and the instruction requires that battery A be replaced with battery B within 10 minutes. The monitoring feedback unit detects that the execution time exceeds 12 minutes, which is considered an abnormal situation. The monitoring feedback unit detects that the execution time is abnormal, and transmits the abnormal information to the abnormality handling unit, indicating that the instruction execution time exceeds the expected execution time of 12 minutes.
[0207] It is determined based on the abnormal information that the abnormal instruction comes from the instruction issuance and monitoring feedback module, and the second abnormal processing model is selected for processing.
[0208] In the second improved exception handling action value function, V2(a) is the value function of the second exception handling action a, r2 is the reward (e.g., reducing the delay time), and γ2 is the discount factor (e.g., 0.9);
[0209] In the second loss function, y2 is the actual result, that is, the actual execution time (12 minutes). is the prediction result, that is, the expected execution time (10 minutes).
[0210] In the embodiment of the present application, the exception handling and security protection module also includes:
[0211] The security protection unit includes the security protection detection department and the security protection strategy department;
[0212] The safety protection detection department is responsible for performing safety protection detection on the instructions after abnormal processing to ensure that the instructions will not cause damage or safety risks to the equipment of the battery swap station during execution;
[0213] The Security Protection and Detection Department adopts a multi-level detection mechanism, including but not limited to data integrity verification, instruction execution authority verification, and compliance inspection of instruction execution results;
[0214] The Security Protection Strategy Department will formulate the first security protection measures based on the detection results of the Security Protection Detection Department. When potential security risks are detected, the Security Protection Strategy Department will take immediate measures.
[0215] In an embodiment of the present application, the security protection detection unit is responsible for performing security protection detection on the instructions after exception processing to ensure that the instructions will not cause damage or safety risks to the battery swap station equipment during execution. Data integrity verification is used to ensure the integrity and consistency of instruction data. Instruction execution authority verification is used to verify the authority to execute instructions. Compliance checks on instruction execution results are used to ensure that the instruction execution results comply with safety specifications. According to the detection results of the security protection detection unit, the security protection strategy unit formulates corresponding security protection measures. When potential security risks are detected, take immediate action.
[0216] For example, assume that the execution of an instruction is being monitored, and the instruction requires that battery A be replaced with battery B within 10 minutes. During the execution of the instruction, the safety protection detection unit detects that the remaining power of battery A is too low, which may cause damage to the equipment of the battery swap station.
[0217] Data integrity check: Use hash functions to verify the integrity of instruction data.
[0218] Assume H is the hash function, m is the original message, and h is the hash value. H(m) can be calculated by the following formula:
[0219] h=H(m)
[0220] Integrity check: If H(m ′ )=h, where m ′ is a received message, the message is considered complete.
[0221] Instruction execution permission verification: Verify the permission to execute instructions.
[0222] Assuming P is the permission function, u is the user, and a is the action, P(u,a) can be calculated by the following formula:
[0223]
[0224] Compliance check of instruction execution results: Ensure that instruction execution results comply with safety regulations.
[0225] Assuming C is the compliance check function and r is the execution result, C(r) can be calculated by the following formula:
[0226]
[0227] The example execution result is that the remaining power of battery A is too low and is not compliant.
[0228] The safety protection measures in the example are formulated as follows:
[0229] Assuming S is the security protection function and r is the execution result, S(r) can be calculated by the following formula:
[0230]
[0231] In summary, the present invention proposes a multi-module battery swap station control instruction management system, which receives the control instruction transmitted by the target battery swap station and parses and processes the control instruction; the target battery swap station control instruction after parsing is judged for instruction priority, and the control instructions of different target battery swap stations are configured with corresponding instruction transmission formats and instruction transmission protocols, while monitoring the real-time instruction execution status, and judging whether to re-issue the instruction or handle the exception according to the real-time instruction execution status; handling the abnormal situation, and re-checking the safety protection of the abnormal situation that has completed the abnormal handling, and completing the target battery swap station control instruction management. This application improves the efficiency and accuracy of the battery swap station control instruction management, ensuring the stable operation of the battery swap station and the safety of the equipment. By using the improved random forest algorithm for priority judgment, tasks can be allocated more scientifically to avoid resource waste and execution delays caused by improper instruction processing. At the same time, by real-time monitoring of the instruction execution status and timely handling of exceptions, the downtime of the battery swap station caused by abnormal situations can be effectively reduced, and the operation efficiency of the battery swap station can be improved.
[0232] This embodiment also provides a multi-module battery swap station control instruction management method, including:
[0233] Receive the control instructions transmitted by the target battery swap station and parse and process the control instructions;
[0234] The target battery swap station control instructions after parsing are judged for command priority, and different target battery swap station control instructions are configured with corresponding command transmission formats and command transmission protocols. At the same time, the real-time command execution status is monitored, and it is determined whether to re-issue the command or handle the exception according to the real-time command execution status;
[0235] Perform exception handling on abnormal situations, and re-test the abnormal situations that have completed exception handling for safety protection, and complete the control command management of the target battery swap station.
[0236] The above-mentioned unit modules may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to the above-mentioned modules.
[0237] This embodiment also provides a computer device, which may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 2 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a multi-module battery swap station control instruction management method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the housing of the computer device, or an external keyboard, touchpad or mouse.
[0238] This embodiment further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0239] Receive the control instructions transmitted by the target battery swap station and parse and process the control instructions;
[0240] The target battery swap station control instructions after parsing are judged for command priority, and different target battery swap station control instructions are configured with corresponding command transmission formats and command transmission protocols. At the same time, the real-time command execution status is monitored, and it is determined whether to re-issue the command or handle the exception according to the real-time command execution status;
[0241] Perform exception handling on abnormal situations, and re-test the abnormal situations that have completed exception handling for safety protection, and complete the control command management of the target battery swap station.
[0242] Example 2
[0243] Reference Figure 1-Figure 2 , which is an embodiment of the present invention, provides a multi-module battery swap station control instruction management system and method. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through experiments.
[0244] In order to verify the effectiveness of the multi-module battery swap station control command management system and method of the present invention, an experimental environment was built. The experimental environment includes a simulated battery swap station, which includes multiple battery packs and corresponding battery swap equipment. In addition, the experimental environment also includes a central control system that integrates the multi-module battery swap station control command management system of the present invention.
[0245] During the experiment, different battery swap station operation scenarios were simulated, including normal operation, battery pack failure, battery swap equipment failure, and external environmental interference. In each scenario, the corresponding control instructions were sent to the central control system, and the entire process of receiving, parsing, executing, and handling exceptions was recorded.
[0246] The experimental results are shown in Table 1:
[0247] Table 1: Experimental results.
[0248]
[0249] The experimental results show that in the normal operation scenario, the instruction processing time is short, the instruction execution success rate is as high as 99.5%, the equipment does not shut down, the safety assessment is full marks, and the efficiency is improved by 20%. In the battery pack failure scenario, the system can detect and handle the exception in time. Although the instruction processing time is slightly increased, the equipment does not shut down. The safety assessment is 9 points, and the efficiency is improved by 15%. In the battery replacement equipment failure scenario, the system can detect and handle the exception in time. Although the instruction processing time is slightly increased, the equipment does not shut down. The safety assessment is 9.5 points, and the efficiency is improved by 18%. In the external environment interference scenario, the system can detect and handle the exception in time. Although the instruction processing time is slightly increased, the equipment does not shut down. The safety assessment is 9.2 points, and the efficiency is improved by 17%.
[0250] Through experimental verification, the multi-module battery swap station control command management system and method of the present invention can significantly improve the efficiency and accuracy of battery swap station control command management, ensuring the stable operation of the battery swap station and the safety of equipment. In addition, the present invention can also effectively reduce the downtime of the battery swap station caused by abnormal conditions and improve the operating efficiency of the battery swap station. Therefore, the present invention has significant practical value and broad application prospects.
[0251] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
[0252] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0253] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0254] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0255] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0256] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0257] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A multi-module battery swap station control command management system, characterized in that: include: Instruction receiving and parsing module, instruction issuing and monitoring feedback module, and exception handling and safety protection module; The instruction receiving and parsing module is used to receive the control instructions transmitted from the target battery swap station in real time, parse and process the control instructions, and transmit the target battery swap station control instructions after parsing to the instruction issuing and monitoring feedback module; The instruction issuance and monitoring feedback module is used to determine the instruction priority of the target battery swap station control instruction after the analysis is completed, and configure the corresponding instruction transmission format and instruction transmission protocol for different target battery swap station control instructions, while monitoring the real-time instruction execution status, and judging whether to re-issue the instruction or handle the exception according to the real-time instruction execution status; The exception handling and safety protection module is used to perform exception handling on the abnormal conditions transmitted by the instruction issuance and monitoring feedback module, and to re-perform safety protection detection on the abnormal conditions that have completed the exception handling, thereby completing the target battery swap station control instruction management.
2. The multi-module battery swap station control command management system according to claim 1, characterized in that: The instruction receiving and parsing module includes: an instruction receiving unit and an instruction parsing unit; The instruction receiving unit is used to receive control instructions from the superior dispatching center in real time using an asynchronous data processing method, wherein the asynchronous data processing method includes comparing the energy calculation results of the echo signal and the noise signal, the power signal-to-noise ratio calculation results, and the cumulative signal-to-noise ratio calculation results with a preset threshold; According to the comparison result, it is determined whether to transmit the instruction to the instruction parsing unit or to transmit the instruction to the exception handling and security protection module for exception handling.
3. The multi-module battery swap station control command management system according to claim 2, characterized in that: The instruction receiving and parsing module also includes: the instruction parsing unit is used to parse the instructions transmitted by the instruction receiving unit, parse the instructions by improving the natural language processing method, and transmit the parsed instructions to the instruction issuing and monitoring feedback module.
4. The multi-module battery swap station control command management system according to claim 3, characterized in that: The command issuing and monitoring feedback module comprises: a command issuing unit and a monitoring feedback unit; The instruction issuing unit is used to judge the priority of the instruction transmitted by the instruction parsing unit, and issue tasks according to the priority; The priority judgment includes using an improved random forest algorithm to perform priority judgment on the instructions transmitted to the instruction parsing unit, and the improved random forest algorithm includes instruction heterogeneity calculation, split point calculation, decision tree error calculation and automatic instruction priority screening; The instructions after priority judgment are processed according to a preset priority processing strategy, and the priority processing strategy includes when the priority is level one, directly transmitting the instructions to the target battery swap station; when the priority is level two, performing a secondary judgment on the instructions, and the secondary judgment includes a comprehensive evaluation of the urgency of the instructions, resource occupancy, and execution time window to determine whether they need to be executed immediately or wait for a more appropriate execution time; when the priority is level three, the instructions are transmitted to the exception handling and security protection module for exception handling and protection processing.
5. The multi-module battery swap station control command management system according to claim 4, characterized in that: The instruction issuing and monitoring feedback module also includes: The monitoring feedback unit includes a real-time data acquisition unit for monitoring the instruction execution status and an instruction execution status feedback unit. The real-time data acquisition unit is responsible for acquiring various parameters in the instruction execution process from the target battery swap station and transmitting the various parameter data to the instruction execution status feedback unit in real time; The instruction execution status feedback unit analyzes and judges the instruction execution status based on the data collected in real time; When an abnormal situation occurs during the execution of an instruction, the instruction execution status feedback unit will immediately send an abnormal signal to the instruction issuing unit and transmit the abnormal information to the abnormal processing and safety protection module. The abnormal processing and safety protection module will perform abnormal processing based on the received abnormal information.
6. The multi-module battery swap station control command management system according to claim 5, characterized in that: The exception handling and safety protection module includes: an exception handling unit and a safety protection unit; The exception handling unit includes performing exception handling on the abnormal instructions transmitted to the instruction receiving and parsing module and the instruction issuing and monitoring feedback module, and the exception handling is processed by a preset exception handling model; The exception handling model includes a first exception handling model and a second exception handling model, the first exception handling model includes a first improved exception handling action value function and a first loss function, and the second exception handling model includes a second improved exception handling action value function and a second loss function; When an abnormal instruction comes from the instruction receiving and parsing module, a first abnormal processing model is used; When an abnormal instruction comes from the instruction issuance and monitoring feedback module, a second abnormal processing model is used.
7. The multi-module battery swap station control command management system according to claim 6, characterized in that: The exception handling and safety protection module also includes: The security protection unit includes a security protection detection unit and a security protection strategy unit; The safety protection detection unit is responsible for performing safety protection detection on the instructions after abnormal processing to ensure that the instructions will not cause damage or safety risks to the equipment of the battery swap station during execution; The Security Protection and Detection Department adopts a multi-level detection mechanism, including but not limited to data integrity verification, instruction execution authority verification, and compliance inspection of instruction execution results; The security protection strategy department formulates the first security protection measure according to the detection result of the security protection detection department. When a potential security risk is detected, the security protection strategy department will take measures immediately.
8. A multi-module battery swap station control instruction management method, characterized in that: include: Receiving the control instruction transmitted by the target battery swap station, and parsing and processing the control instruction; The target battery swap station control instructions after parsing are judged for instruction priority, and different target battery swap station control instructions are configured with corresponding instruction transmission formats and instruction transmission protocols, while monitoring the real-time instruction execution status, and judging whether to re-issue the instruction or handle the exception according to the real-time instruction execution status; Perform exception handling on abnormal situations, and re-test the abnormal situations that have completed exception handling for safety protection, and complete the control command management of the target battery swap station.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to claim 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 8 are implemented.
Citation Information
Cited By
Frequency converter remote monitoring method and system based on Internet of Things
CN120972647A