Charging anomaly early warning method, electronic device, medium, product and electric device
By monitoring charging-related parameters and using a classification model for anomaly warnings during the charging process of electric devices, the problem of poor contact caused by charging port erosion was solved, ensuring the safety of electric device charging.
Patent Information
- Application Number
- CN202511157829.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-18
- Publication Date
- 2026-11-20
AI Technical Summary
During the charging process, electric devices may experience charging port erosion leading to poor contact, which can cause excessive load on the charging circuit and pose a risk of spontaneous combustion, thus affecting the safety of the charging scenario.
By determining the charging status based on the charging impact parameters of electric equipment during the charging period, and using a preset classification model to provide early warning of charging anomalies, including charging port temperature, environmental information and equipment difference characteristics, abnormal states are identified and the equipment is promptly alerted through early warning.
It enables safety monitoring of the charging process of electric equipment, timely identification and early warning of potential charging anomalies, prevention of dangers such as spontaneous combustion, and ensures the safety of the charging scenario.
Smart Images

Figure CN123129784A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging anomaly early warning technology, and in particular to a charging anomaly early warning method, electronic device, medium, product and electric device. Background Technology
[0002] Currently, electric devices such as automobiles, electrical appliances, and computers are increasingly widely used in people's lives. However, during the charging process, some abnormal malfunctions may occur. For example, the charging port of the electric device may be burned, resulting in poor contact during charging. This can lead to excessive load on the charging circuit, and in extreme cases, spontaneous combustion or other dangerous situations, thus affecting the safety of the electric device in the charging scenario. Summary of the Invention
[0003] This application provides a charging anomaly early warning method, which can ensure the safety of electric equipment in charging scenarios, thereby at least partially solving the above-mentioned technical problems.
[0004] To achieve the above objectives, according to a first aspect of this application, a charging anomaly early warning method is provided, comprising:
[0005] Based on the charging influence parameters of the electric equipment during at least one charging period, determine the charging status of the electric equipment during the charging period.
[0006] Based on the charging status of electric equipment during the charging period, an abnormal charging warning is issued.
[0007] Optionally, the charging-influencing parameters include at least one of the following: charging port temperature indication parameters, electric device environmental information, and electric device differential characteristics.
[0008] Optionally, the distinguishing features of electric devices include electric device attribute information and historical electric device charging information.
[0009] Optionally, the charging status includes a normal charging status or an abnormal charging status. Based on the charging status of the electric device during the charging period, an abnormal charging warning is issued, including:
[0010] If an electric device is identified as being in an abnormal charging state for a consecutive preset number of charging periods, an abnormal charging warning will be issued.
[0011] Optionally, a charging anomaly warning can be provided, including:
[0012] The system outputs abnormal warning information for the electric equipment through a preset warning prompt device.
[0013] Optionally, before determining the charging state of the electric device during the charging period based on the charging influence parameters of the electric device during at least one charging period, the method further includes:
[0014] Identify at least one charging period for the electric equipment in a historical period, and obtain the charging impact parameters corresponding to each charging period.
[0015] Optionally, at least one charging period of the electric equipment during a historical period is determined, including:
[0016] Based on the component status of the internal charging components and / or the component status of the external charging components of the electric device, determine the charging start time and charging end time of the electric device in a historical period.
[0017] Based on the start and end times of charging of the electric equipment in a historical period, at least one charging period of the electric equipment in the historical period is determined.
[0018] Optionally, the charging-affecting parameters include the charging port temperature indication parameter, which is obtained based on the charging characteristic indicators within the charging time period.
[0019] Optionally, the charging characteristic indicators during the charging period include at least one of the following: start value, end value, maximum value, minimum value, mean, mode, quantile of a preset proportion, and number of temperature intervals with preset values.
[0020] Optionally, the electric equipment includes vehicles.
[0021] Optionally, the charging state of the electric device during at least one charging period is determined based on charging influence parameters of the electric device during at least one charging period, including:
[0022] Using a pre-defined classification model, the charging impact parameters of electric equipment under each charging time period are identified to determine the charging status of the electric equipment under each charging time period.
[0023] Optionally, the training process of the classification model includes:
[0024] Based on the charging data of historical electric devices that have experienced preset charging faults, samples are obtained. The samples include historical charging impact parameters of historical electric devices during a historical charging time period.
[0025] The classification model is trained based on the samples to obtain a well-trained classification model.
[0026] Optionally, a sample is obtained based on historical charging data of electric devices that have experienced preset charging faults, including:
[0027] Samples are obtained based on historical charging data of electric devices during the fault charging period when the preset charging fault occurred, and historical charging data of electric devices during at least one abnormal charging period before the fault charging period.
[0028] Optionally, before training the classification model based on samples to obtain the trained classification model, the following steps are also included:
[0029] Data augmentation is performed on the samples to generate new samples, which are then used to train the classification model.
[0030] Optionally, charging failures include charging port burn-out.
[0031] Optionally, after issuing a charging anomaly warning based on the charging status of the electric device during the charging period, the system further includes:
[0032] Receive early warning feedback information for abnormal charging of electric equipment, and update the classification model based on the early warning feedback information and charging impact parameters.
[0033] Optionally, the classification model includes a decision tree model.
[0034] According to a second aspect of this application, a charging anomaly warning device is provided, comprising:
[0035] The status determination module is used to determine the charging status of the electric device during the charging period based on the charging influence parameters of the electric device during at least one charging period.
[0036] The early warning module is used to issue early warnings of charging anomalies based on the charging status of electric equipment during the charging period.
[0037] According to a third aspect of this application, an electronic device is provided, including one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs any of the charging abnormality warning methods provided in the embodiments of this application.
[0038] According to a fourth aspect of this application, a computer-readable storage medium is provided, including a computer program, which, when run on a controller, causes the controller to execute any of the charging anomaly warning methods provided in the embodiments of this application.
[0039] According to a fifth aspect of this application, a computer program product is provided, including a computer program or instructions, which, when executed by a processor, implement any of the charging anomaly warning methods provided in the embodiments of this application.
[0040] According to a sixth aspect of this application, an electric device is provided, which includes an electronic device.
[0041] In the charging anomaly early warning method of this application embodiment, the charging status of the electric device during the charging period is determined based on the charging influence parameters of the electric device during at least one charging period. The charging status of the electric device during the charging period is used to determine whether there is an anomaly in the charging process of the electric device, so that a charging anomaly early warning can be issued when an anomaly occurs, thereby ensuring the safety of the electric device in the charging scenario.
[0042] Other features and advantages of this application will be described in detail in the following detailed description section. Attached Figure Description
[0043] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] To gain a more complete understanding of this application and its beneficial effects, the following description will be provided in conjunction with the accompanying drawings, wherein the same reference numerals in the following description denote the same parts.
[0045] Figure 1 This is a flowchart illustrating a charging anomaly early warning method provided in an exemplary embodiment of this disclosure;
[0046] Figure 2 This is another flowchart illustrating the charging anomaly early warning method provided in an exemplary embodiment of this disclosure;
[0047] Figure 3 This is a schematic diagram of the structure of the charging anomaly warning device provided in an exemplary embodiment of this disclosure;
[0048] Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0049] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0050] This application provides a charging anomaly warning method, electronic device, medium, product, and electric device. The charging anomaly warning device can be integrated into electronic devices such as terminal devices and / or cloud servers. For example, the terminal device can be a vehicle control terminal, an in-vehicle data processing system, an in-vehicle communication system, a drone controller (handle, etc.), a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, or other devices installed on the electric device.
[0051] Furthermore, in the embodiments of this application, "multiple" refers to two or more. The terms "first" and "second," etc., in the embodiments of this application are used for distinguishing descriptions and should not be construed as implying relative importance.
[0052] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.
[0053] Please see Figure 1 , Figure 1 This is a flowchart illustrating a charging anomaly warning method according to an embodiment of this application. For ease of description, this embodiment uses a terminal device as an example; that is, the above-described charging anomaly warning method may include:
[0054] S101. Based on the charging influence parameters of the electric equipment during at least one charging time period, determine the charging status of the electric equipment during the charging time period.
[0055] The charging time period mentioned above refers to the time period during which the electric equipment is charged. Each charging session of the electric equipment corresponds to a charging time period, and each charging time period corresponds to a charging influence parameter.
[0056] The aforementioned charging impact parameters are used to indicate parameters that have an impact during the charging process of electric equipment.
[0057] The aforementioned charging status is used to indicate the condition of the electric device during the corresponding charging time period. For example, there are normal charging status and abnormal charging status. The normal charging status indicates that the electric device is in a normal state during the corresponding charging time period, while the abnormal charging status indicates that the electric device is in an abnormal state during the corresponding charging time period. For example, in the abnormal state of the electric device, the charging port of the electric device may be burned, resulting in poor contact during charging. This may lead to excessive load on the charging circuit of the electric device. The large current passing through the damaged port for a long time may cause dangerous situations such as spontaneous combustion in extreme cases.
[0058] In this embodiment, the terminal device acquires charging impact parameters of the electric device during the charging period, so that the terminal device can process the acquired charging impact parameters to determine the charging status of the electric device during the charging period.
[0059] It should be noted that, when the electric device is currently charging, the above-mentioned at least one charging time period may include at least one of the time period during which the electric device is currently charging and the time period during which the electric device had completed charging before the current moment.
[0060] In one embodiment, when the electric device is a vehicle, the vehicle's charging and power distribution system is crucial within the high-voltage system of the new energy vehicle. It is responsible for charging the vehicle's high-voltage battery and supplying power to the internal electrical equipment. The AC charging port in the vehicle's charging and power distribution system is specifically designed to support AC power input. It is primarily used to connect to an external power outlet, such as a household 220V / 240V power grid, to support daily slow charging. This charging method is typically slower but offers higher safety, a relatively simple structure, and lower cost, making it suitable for various scenarios such as homes and public places.
[0061] During the charging process via the vehicle's AC charging port, the AC charging port may become eroded, resulting in poor contact during charging. This can lead to an overload on the charging circuit of the electric device, and prolonged exposure to high current through the damaged port can cause dangerous situations such as spontaneous combustion in extreme cases.
[0062] In some embodiments, charging impact parameters include at least one of the following: charging port temperature indication parameters, electric device environmental information, and electric device differential characteristics.
[0063] The charging port temperature indicator parameter mentioned above refers to the temperature of the charging port when the electric device is charging.
[0064] The aforementioned environmental information of the electric equipment may include environmental information inside the electric equipment and / or environmental information outside the electric equipment. For example, if the electric equipment is a vehicle, the environmental information of the electric equipment may include the temperature and humidity inside and outside the vehicle, the region where the vehicle is located, etc.
[0065] The aforementioned electric equipment difference features are used to characterize the individual difference information of the electric equipment. This individual difference information may include information that distinguishes the electric equipment from other electric equipment or electric equipment charged during other charging periods, so as to realize the difference between the electric equipment during each charging and other electric equipment, and / or, to realize the difference between the electric equipment during each charging and electric equipment charged during other time periods.
[0066] Specifically, when recording charging impact parameters, one row of charging impact parameters can be recorded for each charging segment.
[0067] In some embodiments, the distinguishing features of the electric device include electric device attribute information and historical electric device charging information.
[0068] The aforementioned electric equipment attribute information is used to indicate the configuration information related to the electric equipment. For example, if the electric equipment is a vehicle, the electric equipment attribute information may be the vehicle model configuration.
[0069] The aforementioned historical electric device charging information is used to describe the charging information of electric devices before the corresponding charging time period. For example, the historical electric device charging information includes at least one of the following: the number of historical charging sessions, the historical charging duration, the start and / or end of the charging period, the remaining battery power of the vehicle, and the charging time.
[0070] In some embodiments, the method for determining the charging state of an electric device during a charging period based on charging influence parameters of the electric device during at least one charging period may include: comparing a preset threshold with the charging influence parameters to determine the charging state of the electric device during the charging period based on the comparison result of the preset threshold and the charging influence parameters; or, inputting the charging influence parameters into a model to use the model output as the charging state of the electric device during the charging period.
[0071] For example, in the case of an electric device being a vehicle, since the temperature of the charging port is generally less than or equal to 45 degrees when the vehicle is charging normally, and generally greater than 75 degrees when the vehicle is charging abnormally, a threshold between 45 and 75 degrees can be set for comparison with the charging port temperature indication parameter in the charging impact parameters.
[0072] S102. Based on the charging status of the electric equipment during the charging period, issue an alarm for abnormal charging.
[0073] In this embodiment, the terminal device can identify potentially risky electric devices in advance based on the charging status of the electric device during the charging period (e.g., identify vehicles that may have their charging ports burned out in the future), so as to provide charging anomaly warnings for the identified abnormal electric devices.
[0074] As can be seen from the above, by determining the charging status of the electric device during at least one charging period based on the charging impact parameters of the electric device, the charging status of the electric device during the charging period can be used to judge whether there is any abnormality in the charging process of the electric device, so that charging abnormality warning can be issued when an abnormality occurs, thereby ensuring the safety of the electric device in the charging scenario.
[0075] In some embodiments, the charging state includes a normal charging state or an abnormal charging state. Based on the charging state of the electric device during a charging period, an abnormal charging warning is issued, including: issuing an abnormal charging warning when the electric device has a continuous preset number of charging periods that are determined to be in an abnormal charging state.
[0076] For example, if there are currently 6 charging time periods, the 6 charging time periods are: the first charging time period, the second charging time period, the third charging time period, the fourth charging time period, the fifth charging time period, and the sixth charging time period.
[0077] In this regard, if the abnormal charging time periods in the charging abnormal state are the first charging time period, the third charging time period, the fourth charging time period, the fifth charging time period, and the normal charging time period in the charging normal state is the second charging time period, and the preset number is four, then since the third, fourth, fifth, and sixth charging time periods are all abnormal charging time periods, and the third, fourth, fifth, and sixth charging time periods are consecutive charging time periods, the electric device has four consecutive charging time periods that are determined to be in an abnormal charging state. Therefore, the electric device needs to be treated as a risk device and an early warning needs to be issued, that is, an abnormal charging warning needs to be issued for the electric device.
[0078] In some embodiments, providing charging anomaly warnings includes: outputting anomaly warning information of the electric device through a preset warning prompting device, thereby prompting relevant users of the electric device to promptly detect problems through proactive warning processing.
[0079] The warning and alert devices include, but are not limited to: cloud-based diagnostic platforms, mobile terminals held by users of electric equipment (such as mobile phones), and vehicle-mounted alerts.
[0080] For example, when the electric device is a vehicle, for vehicles with a risk of charging port burning, the terminal device can promptly issue a warning notification on the cloud diagnostic platform and notify the owner's mobile app through pop-up windows, abnormal charging termination, and other information to prompt the owner to choose the nearest authorized service shop for maintenance as soon as possible or to suggest that the user try to replace the charging pile for recharging. This achieves proactive fault prevention to ensure vehicle charging safety and prevent fires.
[0081] The process of issuing early warning notifications on the cloud diagnostic platform may include: after a user logs into the cloud diagnostic platform, the platform may display the number of early warnings in a pop-up window (e.g., the number of early warnings is indicated by a notification icon in the upper right corner of the platform), and redirect the user to an early warning record query page to query the platform's early warning records; and / or, the platform may send email notifications through its backend to prompt the user to be aware of the notifications via email.
[0082] The warning record query page includes, but is not limited to, vehicle identification (such as VIN), warning time, and vehicle information. Vehicle information includes, but is not limited to, charging duration, charging start time, charging end time, charging port temperature at the start of charging, charging end temperature, and maximum temperature of the charging segment.
[0083] In some embodiments, before determining the charging status of the electric device during a charging period based on the charging influence parameters of the electric device during at least one charging period, the method further includes: the terminal needs to divide the charging period to determine at least one charging period of the electric device in a historical period, and then obtain the charging influence parameters corresponding to each charging period, so that the terminal device can determine the charging status of the corresponding charging period based on the charging influence parameters corresponding to each charging period.
[0084] In some embodiments, determining at least one charging period of the electric device in a historical period includes: determining the charging start time and charging end time of the electric device in a historical period based on the component state of the internal charging component and / or the component state of the external charging component of the electric device; and determining at least one charging period of the electric device in a historical period based on the charging start time and charging end time of the electric device in a historical period.
[0085] The internal charging components of the aforementioned electric equipment are components associated with charging the equipment, such as the battery and power battery manager of the electric equipment.
[0086] Among them, the external charging components of the aforementioned electric equipment are components associated with charging that are not installed on the electric equipment, such as charging guns, devices that supply power to the electric equipment, etc.
[0087] The aforementioned component states include, but are not limited to, the component's running state and the connection state between the component and other components.
[0088] For example, the component status of the aforementioned internal charging component can be the state of charge of the battery of the electric device, or the operating status between the power battery manager and external devices (such as charging guns, devices that supply power to the electric device, etc.).
[0089] For example, the component status of the aforementioned external charging component can be the charging gun connection status.
[0090] For example, the charging start time is determined by the charging gun connection status being never connected to a connection, and / or the operating state between the power battery manager and the external device being normal charging; the charging end time is determined by the connection status changing from connected to not connected, and / or the operating state between the power battery manager and the external device changing from normal charging to the end of charging.
[0091] In addition, based on the component status of the internal charging components and / or the component status of the external charging components of the electric device, the moment when the electric device is charging in progress in a historical period can be determined, so as to obtain the charging start time and charging end time more accurately. For example, the charging gun of the vehicle is always connected during charging, and the operating status between the power battery manager and the external device is the normal charging state.
[0092] In some embodiments, the charging impact parameters include the charging port temperature indication parameter, and the charging port temperature indication parameter corresponding to the charging time period is obtained based on the charging characteristic indicators within the charging time period.
[0093] Among them, the charging characteristic indicators during the charging period can be obtained by descriptive statistics of the charging port temperature values at multiple charging moments during the charging period.
[0094] Specifically, the charging characteristic indicators during the charging period include at least one of the following: start value, end value, maximum value, minimum value, mean, mode, quantile of a preset proportion, and number of temperature intervals with preset values.
[0095] The preset percentages of the aforementioned quantiles can be set according to requirements and are not limited here. For example, 5th percentile, 25th percentile, 50th percentile, 75th percentile, 95th percentile, etc.
[0096] For example, the method for determining the 5% quantile can be to arrange the charging port temperature values at each charging moment within a charging time period from smallest to largest, and then select the charging port temperature value at the 5% position as the charging characteristic index, which is the aforementioned charging port temperature indication parameter.
[0097] The preset values mentioned above can be set according to requirements and are not limited here. For example, the number of temperature intervals with intervals of 5 can be the number of data frames of the charging port temperature value in the interval [0, 5).
[0098] In some embodiments, the terminal can use big data technology to obtain historical device data of electric devices in a historical period (e.g., vehicle network data of vehicles in a historical period), and preprocess the obtained historical device data to obtain preprocessed data. The terminal can then divide the charging time period based on the processed data to determine at least one charging time period of the electric device in a historical period. Then, the terminal can summarize and obtain the charging impact parameters corresponding to each charging time period from the processed data.
[0099] The methods for preprocessing the acquired historical equipment data include, but are not limited to: handling abnormal times in historical equipment data, extracting required fields, filling missing values, data standardization, and handling outliers.
[0100] Specifically, the above-mentioned handling of abnormal times in historical device data can be to remove data with mismatched times (for example, a certain data does not match the data recorded on the same day / the initial wake-up time data of the vehicle system) or fill in missing values.
[0101] Specifically, the above-mentioned requirement field extraction can be to extract the field data needed for charging warning and / or charging time period division from historical device data. For example, indicators such as charging gun connection status, power battery manager and external device (such as charging gun) status, and device battery state of charge can be used to divide the charging time period. Another example is charging port temperature, vehicle interior and exterior temperature and other charging-affecting parameters can be used to make charging warning judgments.
[0102] Specifically, the missing value filling mentioned above can be done by filling missing data in fields of historical device data using a downfill method. For example, regarding the state of charge, if the state of charge of a certain second of the electric device's data is missing, the state of charge of the previous second's data can be used to fill it.
[0103] Specifically, the outlier processing described above can be to identify outliers from historical device data, and then fill or delete the outliers using other data. For example, regarding the state of charge, if the maximum state of charge of an electric device is 100, and there are values exceeding 100 in the historical device data, then the values exceeding 100 are considered outliers, and other indicators such as the remaining battery power can be used to fill or delete the outliers.
[0104] In some embodiments, the electric equipment includes a vehicle.
[0105] In this embodiment, the terminal device can utilize big data for distributed full-scale electric vehicle monitoring, simultaneously monitoring a large number of vehicles (e.g., over 3 million vehicles). Furthermore, it can utilize the vehicle-side ECU for edge computing and data collection, utilize the vehicle-mounted PAD and / or 4G / 5G signal transmission for data transmission, utilize servers and / or big data algorithms for data reception, parsing, and processing, and utilize servers and / or databases and / or cloud platforms for data display, notification, and early warning. For example, it can display details of early warning vehicles through a cloud-based fault early warning platform, and / or issue early warnings to early warning vehicles, and / or report the processing results of early warning vehicles.
[0106] In some embodiments, determining the charging status of an electric device in at least one charging time period based on charging influence parameters of the electric device in at least one charging time period includes: using a preset classification model to identify the status of the charging influence parameters of the electric device in each charging time period, i.e., determining whether the electric device is abnormal in each charging time period, classifying the charging status of the charging time period online to determine the charging status of the electric device in each charging time period, i.e., dividing the charging time period into a normal charging segment or an abnormal charging segment based on the charging status.
[0107] In some embodiments, the training process of the classification model includes: obtaining samples based on the charging data of historical electric devices that have experienced preset charging faults, the samples including historical charging influence parameters of historical electric devices during a historical charging period; and training the classification model based on the samples to obtain a trained classification model.
[0108] The charging data of the aforementioned electric devices that experienced preset charging faults can be obtained from the aforementioned historical device data (such as vehicle network data).
[0109] In this embodiment, by dividing user charging segments based on vehicle network data and summarizing relevant statistical information of charging segments, and combining the influence of environmental factors and individual vehicle differences, the corresponding classification algorithm is used to classify, train and verify normal charging segments and multiple abnormal charging segments before the occurrence of charging port ablation, so as to build, train and optimize the classification model.
[0110] Specifically, the terminal device can construct samples corresponding to abnormal charging time periods based on the charging data of historical electric devices that have experienced preset charging faults, and construct samples corresponding to normal charging time periods based on the charging data of historical electric devices that have not experienced faults. The two types of samples are divided into training sets and test sets respectively, thereby constructing a classification model. The corresponding algorithm is then used to train, predict, and adjust the parameters of the classification model using the data in the training set and test set, thereby obtaining a classification model with high classification accuracy.
[0111] For example, a terminal device can create a decision tree classification model (such as the DecisionTreeClassifier) as a classification model, and use a grid search algorithm to train, predict, and adjust the parameters of the decision tree classification model using data from the training set and the test set, thereby obtaining a decision tree classification model with high classification accuracy.
[0112] In some embodiments, the aforementioned charging failure may include charging port ablation.
[0113] In some embodiments, obtaining samples based on charging data of historical electric devices that have experienced a preset charging failure includes: obtaining samples based on charging data of historical electric devices during the fault charging period when the preset charging failure occurred, and charging data of historical electric devices during at least one abnormal charging period before the fault charging period.
[0114] It is understandable that because there are relatively few historical electric devices that have experienced preset charging failures, for example, too few vehicles have experienced charging port burning failures, the samples are imbalanced when building and training the classification model. In order to solve the problem of sample imbalance, it is necessary to oversample based on the charging data of historical electric devices during the fault charging period when the preset charging failure occurred, as well as the charging data of historical electric devices during at least one abnormal charging period before the fault charging period, in order to obtain more samples corresponding to the abnormal charging period.
[0115] The aforementioned sample imbalance refers to a situation where one type of label inherently occupies a large proportion in a dataset. For example, a bank needs to determine whether "a person who has applied for a credit card will default," considering the ratio of "yes" to "no" (1%: 99%). In this classification situation, even if the model does nothing and predicts "no" for all results, the accuracy can still reach 99%. Similarly, when predicting abnormal charging, the category corresponding to "normal charging time period" inherently occupies a significant proportion, resulting in a high overall accuracy regardless of the prediction method. The focus should be on the accuracy of predicting "abnormal charging time period," therefore, data oversampling is needed to increase the number of samples corresponding to abnormal charging time periods.
[0116] In some embodiments, before training the classification model based on the samples to obtain the trained classification model, the method further includes: performing data augmentation on the samples to generate new samples, and training the classification model based on the new samples. This method uses data augmentation techniques to generate new samples corresponding to abnormal charging time periods to simulate the actual situation, ensuring that the generated new samples are consistent with the original samples corresponding to abnormal charging time periods in terms of feature values.
[0117] The data augmentation techniques mentioned above are strategies used in machine learning and deep learning to increase the diversity of training datasets, thereby helping models generalize better to unseen inputs. They compensate for potential dataset deficiencies or class imbalances by performing a series of transformations on existing samples during training to create new samples that appear different but are actually of the same class.
[0118] Specifically, in the process of data augmentation of oversampled data, linear interpolation can be used to synthesize new samples; alternatively, SVMSMOTE, a variant of the SMOTE algorithm, can be used to use support vector machines (SVM) to determine the most valuable regions for synthesizing new samples from minority class samples. The core idea is to use the boundary decision characteristics of SVM to identify the boundary between minority class samples and majority class samples, and then add new synthetic minority class samples in these key regions to improve the performance of the classification model.
[0119] In some embodiments, after issuing a charging anomaly warning based on the charging status of the electric device during the charging period, the method further includes: receiving warning feedback information for the charging anomaly warning of the electric device, and updating the classification model based on the warning feedback information and charging impact parameters.
[0120] In this embodiment, the aforementioned early warning feedback information may include user feedback information and / or actual maintenance records of the electric equipment. Based on the user feedback information, the early warning effect can be evaluated, such as whether the early warning result is inaccurate or accurate. Based on the evaluation of the early warning effect, corresponding labels are configured for the charging impact parameters of the current early warning. If the early warning result is accurate, it indicates that the electric vehicle is experiencing a charging failure. Therefore, the charging impact parameters are used as samples corresponding to the abnormal charging time period to update and optimize the classification model. The model parameters of the classification model are continuously improved and adjusted to better adapt to new situations such as market changes and the development of new technologies, reduce the impact of outdated information on the classification model, maintain the efficiency and effectiveness of the classification model, and improve the reaction speed and accuracy of the classification model in predicting the charging status of the corresponding charging time period, so as to reduce misjudgments and omissions when the electric equipment is charging abnormally warned.
[0121] Understandably, by periodically comparing electric devices that exhibit charging anomalies with those that actually experience charging failures, and by adding samples online corresponding to the abnormal charging time periods of the latest electric devices that actually experience charging failures, the classification model can be learned and iteratively optimized online based on these online samples, thereby updating the classification model.
[0122] In some embodiments, the classification model may include a decision tree model. Furthermore, the classification model may also be trained based on supervised machine learning classification methods such as neural networks, Bayesian classification, logistic regression, and support vector machines.
[0123] The decision tree model described above utilizes the decision tree algorithm, a commonly used machine learning algorithm, to primarily handle classification and regression problems. It is presented in the form of a tree structure, where each internal node represents a feature or attribute test, each branch represents the result (yes / no) of that feature, and each leaf node (terminal node) represents a decision or prediction result.
[0124] Please see Figure 2 , Figure 2 This is another flowchart illustrating a charging anomaly warning method provided in an embodiment of this application. The charging anomaly warning method may include:
[0125] Step 1: Obtain the vehicle network data of the target vehicle in the historical period, and perform vehicle network data preprocessing to obtain preprocessed data.
[0126] Step 2: Divide the charging segment based on the preprocessed data to obtain each charging time period.
[0127] Step 3: Perform descriptive statistics on the charging information related to each charging time period to obtain the charging impact parameters for each charging time period.
[0128] Step 4: Obtain abnormal charging segment samples (i.e., samples corresponding to the abnormal charging time periods mentioned above), and oversample the abnormal charging segment samples to obtain the training samples.
[0129] Step 5: Based on the samples to be trained, construct, train and optimize the classification algorithm model (i.e., the classification model mentioned above).
[0130] Step 6: Use a classification algorithm model to predict the charging impact parameters during the charging period to obtain the charging status of the target vehicle during the charging period.
[0131] Step 7: Based on the charging status of the target vehicle during the charging period, perform proactive vehicle fault warning (i.e., the above-mentioned charging anomaly warning).
[0132] Step 8: After the vehicle actively issues a fault warning, user feedback information can be received to iteratively optimize the training data online, obtain new samples, and use the new samples to update the classification algorithm model.
[0133] As can be seen from the above, by acquiring the vehicle network data of the target vehicle in historical periods, the charging impact parameters of the target vehicle in each charging period are obtained. Then, abnormal charging segment samples are obtained to train the classification algorithm model. Based on the trained classification algorithm model, the charging impact parameters of each charging period are predicted to obtain the charging status of the target vehicle in the charging period. Based on the charging status, the vehicle's active fault prediction is performed, thereby ensuring the safety of electric equipment in the charging scenario.
[0134] To facilitate better implementation of the charging anomaly early warning method provided in this application, this application also provides an apparatus based on the above-described charging anomaly early warning method. The meanings of the terms used are the same as in the charging anomaly early warning method described above, and specific implementation details can be found in the descriptions within the method embodiments.
[0135] For example, such as Figure 3 As shown, the charging anomaly warning device may include:
[0136] The state determination module 301 is used to determine the charging state of the electric device during the charging period based on the charging influence parameters of the electric device during at least one charging period.
[0137] The early warning module 302 is used to issue early warnings of charging anomalies based on the charging status of the electric equipment during the charging period.
[0138] Optionally, the charging-influencing parameters include at least one of the following: charging port temperature indication parameters, electric device environmental information, and electric device differential characteristics.
[0139] Optionally, the distinguishing features of electric devices include electric device attribute information and historical electric device charging information.
[0140] Optionally, the charging status includes a normal charging status or an abnormal charging status, and the early warning module 302 is specifically used for:
[0141] If an electric device is identified as being in an abnormal charging state for a consecutive preset number of charging periods, an abnormal charging warning will be issued.
[0142] Optionally, the early warning module 302 is specifically used for:
[0143] The system outputs abnormal warning information for the electric equipment through a preset warning prompt device.
[0144] Optionally, the charging anomaly warning device may further include a parameter acquisition module, which is specifically used for:
[0145] Identify at least one charging period for the electric equipment in a historical period, and obtain the charging impact parameters corresponding to each charging period.
[0146] Optionally, the parameter acquisition module is specifically used for:
[0147] Based on the component status of the internal charging components and / or the component status of the external charging components of the electric device, determine the charging start time and charging end time of the electric device in a historical period.
[0148] Based on the start and end times of charging of the electric equipment in a historical period, at least one charging period of the electric equipment in the historical period is determined.
[0149] Optionally, the charging-affecting parameters include the charging port temperature indication parameter, which is obtained based on the charging characteristic indicators within the charging time period.
[0150] Optionally, the charging characteristic indicators during the charging period include at least one of the following: start value, end value, maximum value, minimum value, mean, mode, quantile of a preset proportion, and number of temperature intervals with preset values.
[0151] Optionally, the electric equipment includes vehicles.
[0152] Optionally, the status determination module 301 is specifically used for:
[0153] Using a pre-defined classification model, the charging impact parameters of electric equipment under each charging time period are identified to determine the charging status of the electric equipment under each charging time period.
[0154] Optionally, the charging anomaly warning device may also include a model training module, which is specifically used for:
[0155] Based on the charging data of historical electric devices that have experienced preset charging faults, samples are obtained. The samples include historical charging impact parameters of historical electric devices during a historical charging time period.
[0156] The classification model is trained based on the samples to obtain a well-trained classification model.
[0157] Optionally, the model training module is specifically used for:
[0158] Samples are obtained based on historical charging data of electric devices during the fault charging period when the preset charging fault occurred, and historical charging data of electric devices during at least one abnormal charging period before the fault charging period.
[0159] Optionally, the model training module is also used for:
[0160] Data augmentation is performed on the samples to generate new samples, which are then used to train the classification model.
[0161] Optionally, charging failures include charging port burn-out.
[0162] Optionally, the charging anomaly warning device may also include a model update module, which is specifically used for:
[0163] Receive early warning feedback information for abnormal charging of electric equipment, and update the classification model based on the early warning feedback information and charging impact parameters.
[0164] Optionally, the classification model includes a decision tree model.
[0165] The charging anomaly early warning device proposed in this application determines the charging status of the electric device during at least one charging time period based on the charging influence parameters of the electric device during the charging time period. Based on the charging status of the electric device during the charging time period, it judges whether there is an anomaly in the charging process of the electric device, so as to provide a charging anomaly early warning when an anomaly occurs, thereby ensuring the safety of the electric device in the charging scenario.
[0166] In practice, each of the above modules can be implemented as an independent entity or can be combined arbitrarily to be implemented as the same or several entities. For the specific implementation methods and corresponding beneficial effects of each of the above modules, please refer to the previous method embodiments, which will not be repeated here.
[0167] This application also provides an electronic device, such as... Figure 4 As shown, it illustrates a structural schematic diagram of the electronic device involved in the embodiments of this application, specifically:
[0168] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0169] The processor 401 is the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes computer programs and / or modules stored in the memory 402, and calls data stored in the memory 402, to perform various functions and process data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.
[0170] The memory 402 can be used to store computer programs and modules. The processor 401 executes various functional applications and data processing by running the computer programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0171] The electronic device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0172] The electronic device may also include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0173] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 runs the computer programs stored in the memory 402 to realize various functions, such as:
[0174] Based on the charging influence parameters of the electric equipment during at least one charging period, determine the charging status of the electric equipment during the charging period.
[0175] Based on the charging status of electric equipment during the charging period, an abnormal charging warning is issued.
[0176] For details on the specific implementation methods and corresponding beneficial effects of the above operations, please refer to the detailed description of the charging anomaly warning method above, which will not be repeated here.
[0177] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by a computer program, or by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0178] Therefore, embodiments of this application provide a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps of any of the charging anomaly warning methods provided in embodiments of this application. For example, the computer program can execute the following steps:
[0179] Based on the charging influence parameters of the electric equipment during at least one charging period, determine the charging status of the electric equipment during the charging period.
[0180] Based on the charging status of electric equipment during the charging period, an abnormal charging warning is issued.
[0181] For details on the specific implementation methods and corresponding beneficial effects of the above operations, please refer to the previous embodiments, which will not be repeated here.
[0182] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0183] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the charging anomaly warning methods provided in the embodiments of this application, the beneficial effects that any of the charging anomaly warning methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0184] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned charging anomaly warning method.
[0185] According to one aspect of this application, an electric device is provided, which includes the aforementioned electronic device.
[0186] The above provides a detailed description of a charging anomaly warning method, device, electronic device, medium, product, and electric device provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A charging anomaly early warning method, characterized in that, The method includes: Based on the charging influence parameters of the electric equipment during at least one charging time period, the charging status of the electric equipment during the charging time period is determined. Based on the charging status of the electric device during the charging period, an abnormal charging warning is issued.
2. The charging anomaly early warning method according to claim 1, characterized in that, The charging-affecting parameters include at least one of the following: charging port temperature indication parameters, electric device environmental information, and electric device differential characteristics.
3. The charging anomaly early warning method according to claim 2, characterized in that, The distinguishing features of the electric devices include electric device attribute information and historical electric device charging information.
4. The charging anomaly early warning method according to claim 1, characterized in that, The charging status includes a normal charging status or an abnormal charging status. The abnormal charging warning based on the charging status of the electric device during the charging time period includes: If the electric device is identified as being in an abnormal charging state for a consecutive preset number of charging periods, an abnormal charging warning will be issued.
5. The charging anomaly early warning method according to claim 1, characterized in that, The charging anomaly warning includes: The device outputs abnormal warning information of the electric equipment through a preset warning prompt device.
6. The charging anomaly early warning method according to claim 1, characterized in that, Before determining the charging state of the electric device during the charging period based on charging influence parameters of the electric device during at least one charging period, the method further includes: Determine at least one charging time period for the electric device in a historical period, and obtain the charging impact parameters corresponding to each charging time period.
7. The charging anomaly early warning method according to claim 6, characterized in that, Determining at least one charging period of the electric device in a historical period includes: Based on the component status of the internal charging component and / or the component status of the external charging component of the electric device, the charging start time and charging end time of the electric device in the historical period are determined. Based on the start and end times of charging of the electric device during the historical period, at least one charging time period of the electric device during the historical period is determined.
8. The charging anomaly early warning method according to claim 6, characterized in that, The charging impact parameters include the charging port temperature indication parameter, and the charging port temperature indication parameter corresponding to the charging time period is obtained based on the charging characteristic indicators within the charging time period.
9. The charging anomaly early warning method according to claim 8, characterized in that, The charging characteristic indicators during the charging period include at least one of the following: start value, end value, maximum value, minimum value, mean, mode, quantile of a preset proportion, and number of temperature intervals with preset values.
10. The charging anomaly early warning method according to claim 1, characterized in that, The electric equipment includes vehicles.
11. The charging anomaly early warning method according to any one of claims 1 to 10, characterized in that, The determination of the charging status of the electric device during at least one charging period based on charging influence parameters of the electric device during at least one charging period includes: By using a preset classification model, the charging influence parameters of the electric device under each charging time period are identified to determine the charging status of the electric device under each charging time period.
12. The charging anomaly early warning method according to claim 11, characterized in that, The training process of the classification model includes: Based on the charging data of historical electric devices that have experienced preset charging faults, a sample is obtained, and the sample includes the historical charging impact parameters of the historical electric devices during a historical charging time period. The classification model is trained based on the samples to obtain a trained classification model.
13. The charging anomaly early warning method according to claim 12, characterized in that, The process of obtaining samples based on historical charging data of electric devices that have experienced preset charging faults includes: Samples are obtained based on the charging data of the historical electric devices during the fault charging period in which the preset charging fault occurred, and the charging data of the historical electric devices during at least one abnormal charging period before the fault charging period.
14. The charging anomaly early warning method according to claim 12, characterized in that, Before training the classification model based on the samples to obtain the trained classification model, the process also includes: The samples are augmented to generate new samples, which are then used to train the classification model.
15. The charging anomaly early warning method according to claim 12, characterized in that, The charging faults include charging port burn-out.
16. The charging anomaly early warning method according to claim 11, characterized in that, After issuing a charging anomaly warning based on the charging status of the electric device during the charging time period, the method further includes: Receive early warning feedback information for charging anomalies of the electric device, and update the classification model based on the early warning feedback information and the charging impact parameters.
17. The charging anomaly early warning method according to claim 11, characterized in that, The classification model includes the decision tree model.
18. An electronic device, characterized in that, It includes one or more processors and a memory, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the charging anomaly warning method according to any one of claims 1 to 17.
19. A storage medium, characterized in that, Includes a computer program, which, when run on a controller, causes the controller to perform the steps of the charging anomaly warning method according to any one of claims 1 to 17.
20. A computer program product, characterized in that, It includes a computer program or instructions that, when executed by a processor, implement the steps of the charging anomaly warning method according to any one of claims 1 to 17.
21. An electric device, characterized in that, The electric device includes the electronic device as described in claim 18.
