A method for safely monitoring output data of shared batteries for smart tractors

By performing clustering and feature analysis on the two-dimensional status data set of the tractor's shared battery, the problem of voltage and current fluctuations caused by vibration is solved, monitoring accuracy is improved, and data security is ensured.

CN118427647BActive Publication Date: 2024-09-17SHANDONG GREEN ENERGY HUANYU LOW CARBON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410895446.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-17
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

The tractor vibrates violently during operation, resulting in poor contact at the battery's electrical connection points, causing voltage and current fluctuations. The existing clustering algorithm cannot accurately monitor the battery status, reducing the accuracy of status monitoring.

Method used

By obtaining the two-dimensional status data set of the tractor's shared battery, use a clustering algorithm to obtain the cluster center and initial clustering results, calculate the neighborhood range of the data points, obtain the status difference vector and similar status difference vectors, and analyze their location and quantity characteristics , calculate angle feature values ​​and distance feature values, and adaptively adjust the clustering results to improve monitoring accuracy.

Benefits of technology

It effectively avoids inaccurate clustering caused by vibration, improves the accuracy of battery status monitoring, and ensures the safety of tractor-shared battery output data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118427647B
    Figure CN118427647B
Patent Text Reader

Abstract

The present invention relates to the field of battery monitoring technology, and specifically to a method for safely monitoring the output data of a shared battery of a smart tractor; obtaining a state difference vector and a corresponding state difference vector of the same type according to the positional characteristics of a data point and other data points in a neighborhood; obtaining a target data point set according to the distance characteristics and quantity characteristics between the state difference vectors of the same type; obtaining a distance feature value and a cluster vector according to the positional characteristics of the cluster center and the central data point of the target data point set; obtaining an angle feature value according to the directional difference characteristics of the cluster vector and the central vector of the target data point set. The present invention obtains the degree of adaptation between the target data point set and the cluster center according to the distance feature value and the angle feature value, adaptively obtains the final clustering result of the two-dimensional state data set according to the degree of adaptation, and monitors the working state of the shared battery; and improves the accuracy of clustering and monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery monitoring, and in particular to a method for safely monitoring output data of a shared battery of a smart tractor. Background Art

[0002] Tractor shared batteries are a new type of agricultural machinery power solution, which aims to improve the flexibility and efficiency of agricultural machinery use. In order to ensure that the shared battery is working properly, it is necessary to monitor the working parameters of the battery during operation; the existing clustering algorithm can cluster the state data at different times to obtain different clustering clusters. The state characteristics in each clustering cluster are similar, and the state differences of the battery are analyzed according to different clustering clusters. However, due to the violent vibration of the tractor during operation, the electrical connection points of the battery may have poor contact, causing fluctuations in voltage and current. The acquired state data set is distorted due to the fluctuating voltage and current data, which makes the battery state monitoring accuracy low. Summary of the invention

[0003] In order to solve the technical problem that the fluctuation of voltage and current leads to distortion of clustering results and low accuracy of battery status monitoring, the present invention aims to provide a method for safely monitoring output data of shared batteries of smart tractors. The technical solution adopted is as follows:

[0004] Acquire a two-dimensional state data set for monitoring the shared battery state of the tractor; cluster the two-dimensional state data set according to a clustering algorithm to obtain different cluster centers and initial clustering results in the clustering space; obtain a neighborhood range of the data point according to the distance characteristics between the data point in the two-dimensional state data set and other data points in the clustering space;

[0005] Obtain a state difference vector according to the positional features of the data point and other data points in the neighborhood, obtain similar state difference vectors of the state difference vectors according to similar features between the state difference vectors; obtain similar feature values ​​according to the distance features and quantity features between the similar state difference vectors of the state difference vectors; obtain different target data point sets according to the positional features of the state difference vectors and the similar feature values;

[0006] Obtaining a central data point and a central vector according to the positional features of the target data point set; obtaining a distance eigenvalue and a cluster vector according to the positional features of the central data point and the cluster center; obtaining an angle eigenvalue according to the directional difference features of the central vector and the cluster vector; obtaining a degree of adaptation between the target data point set and the cluster center according to the distance eigenvalue and the angle eigenvalue; and adaptively obtaining a final clustering result of the two-dimensional state data set according to the degree of adaptation;

[0007] The working status of the shared battery is monitored according to the final clustering result.

[0008] Furthermore, the step of obtaining the neighborhood range of the data point according to the distance feature between the data point in the two-dimensional state data set and other data points in the cluster space includes:

[0009] In the clustering space, the Euclidean distance between the data point and other data points that are closest to it is calculated to obtain the nearest neighbor distance, and the Euclidean distance between the data point and other data points that are farthest away is calculated to obtain the farthest distance; the average of the nearest neighbor distance and the farthest distance is calculated to obtain the neighborhood radius of the data point; and the area within the neighborhood radius of the data point in the clustering space is used as the neighborhood range.

[0010] Furthermore, the step of obtaining a state difference vector according to the positional features of the data point and other data points within the neighborhood, and obtaining similar state difference vectors of the state difference vector according to similar features between the state difference vectors includes:

[0011] A vector is constructed by taking the data point as a starting point and any other data point in the neighborhood as an end point to obtain the state difference vector;

[0012] For all state difference vectors in the cluster space, other state difference vectors whose length difference with any state difference vector is less than a preset length difference value and whose direction angle difference with any state difference vector is less than a preset angle difference value are regarded as the same type state difference vector of the arbitrary state difference vector.

[0013] Furthermore, the step of obtaining similar feature values ​​according to the distance feature and quantity feature between the same type of state difference vectors includes:

[0014] The number of similar state difference vectors of the state difference vector is calculated and normalized to obtain a similar number eigenvalue; for any similar state difference vector of the state difference vector, the Euclidean distance between the arbitrary similar state difference vector and any other similar state difference vector closest to it is calculated to obtain a vector interval distance of the arbitrary similar state difference vector; the average value of the vector interval distances of all arbitrary similar state difference vectors is calculated and negatively correlated to obtain a similar interval eigenvalue; the sum of the similar number eigenvalue and the similar interval eigenvalue is calculated to obtain a similar eigenvalue of the state difference vector.

[0015] Furthermore, the step of acquiring different target data point sets according to the position features of the state difference vector and the similar feature values ​​includes:

[0016] The state difference vector corresponding to the maximum value of the similar eigenvalue is taken as the target state difference vector, and the target state difference vector and the corresponding state difference vector of the same type are clustered by the K-means clustering algorithm to obtain different state difference vector clusters; all data points constructing any state difference vector cluster are taken as a target data point set.

[0017] Furthermore, the step of obtaining a central data point and a central vector according to the positional features of the target data point set includes:

[0018] The minimum bounding rectangle of any target data point set is obtained, and the geometric center position of the minimum bounding rectangle is used as the central data point; the state difference vectors with the largest number of the same angle direction in the state difference vector cluster corresponding to the arbitrary target data point set are used as the central vector.

[0019] Furthermore, the step of obtaining the distance feature value and the cluster vector according to the position features of the central data point and the cluster center includes:

[0020] The Euclidean distance between the central data point and any cluster center is calculated and negatively correlated to obtain a distance characteristic value between the central data point and any cluster center; and a vector constructed by the central data point and any cluster center is used as a cluster vector.

[0021] Furthermore, the step of obtaining the angle feature value according to the direction difference feature of the center vector and the cluster vector includes:

[0022] The angle between the center vector and the cluster vector is calculated according to the arccosine function to obtain the vector angle; the absolute value of the difference between 90 degrees and the vector angle is calculated and negatively correlated to obtain the angular eigenvalues ​​of the center vector and the cluster vector.

[0023] Furthermore, the step of obtaining the degree of adaptation between the target data point set and the cluster center according to the distance eigenvalue and the angle eigenvalue comprises:

[0024] Calculate the product of the distance eigenvalue and the preset first weight to obtain the first adaptation coefficient; calculate the product of the angle eigenvalue and the preset second weight to obtain the second adaptation coefficient, calculate the sum of the first adaptation coefficient and the second adaptation coefficient, and obtain the degree of adaptation of the target data point set and the cluster center.

[0025] Furthermore, the step of adaptively acquiring the final clustering result of the two-dimensional state data set according to the adaptation degree includes:

[0026] The data points in the target data point set are divided into clusters where the cluster center with the greatest degree of adaptation is located, so as to obtain the latest clusters of the target data point set; and the initial clustering results are updated according to different latest clustering clusters to obtain the final clustering results.

[0027] The present invention has the following beneficial effects:

[0028] In the present invention, obtaining the cluster center and the initial clustering result can determine the preliminary clustering of the two-dimensional state data set, which is convenient for clustering adjustment of the data points affected by vibration; obtaining the neighborhood range can determine the distance range between the data points that are not affected by vibration and the data points that are affected by vibration and reflect the same state of the battery. Obtaining the state difference vector can reflect the displacement relationship and association pattern between two data points in the cluster space, and obtaining the same type of state difference vector can determine the state difference vector with similar displacement relationship and association pattern in the cluster space, so as to facilitate the determination of the positional relationship between the data points that are not affected by vibration and the data points that are affected by vibration and represent the same state of the battery. Obtaining similar eigenvalues ​​can characterize the quantitative characteristics and positional characteristics of the state difference vector and the same type of state difference vector, so that the data points that are not affected by vibration and the data points that are affected by vibration and represent the same state of the battery are in the same target data point set. Obtaining clustering eigenvalues ​​can determine the distance characteristics between the cluster center and the target data point set, and select a more appropriate cluster; obtaining angle eigenvalues ​​can determine the location characteristics of the cluster center and the target data point set; and then determine the degree of fit between the target data point set and the cluster center based on the angle eigenvalues ​​and distance eigenvalues. Obtaining the final clustering result based on the degree of fit can avoid the situation where some data points are inaccurately clustered due to vibration, thereby improving the accuracy of clustering and monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. 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 paying creative work.

[0030] Figure 1 A flow chart of a method for safely monitoring shared battery output data of a smart tractor provided in one embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a shared battery output data safety monitoring method for a smart tractor proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0032] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0033] The specific scheme of the shared battery output data safety monitoring method for a smart tractor provided by the present invention is described in detail below with reference to the accompanying drawings.

[0034] See also Figure 1 , which shows a flow chart of a method for safely monitoring output data of a shared battery of a smart tractor provided by an embodiment of the present invention, the method comprising the following steps:

[0035] Step S1, obtaining a two-dimensional state data set for monitoring the shared battery state of the tractor; clustering the two-dimensional state data set according to a clustering algorithm to obtain different cluster centers and initial clustering results in the clustering space; and obtaining a neighborhood range of the data point according to the distance characteristics between the data point in the two-dimensional state data set and other data points in the clustering space.

[0036] In the embodiment of the present invention, the implementation scenario is to monitor the shared battery of the tractor, cluster the state data of the shared battery at different acquisition moments, and obtain different clustering clusters; analyze the working performance of the battery according to the data difference characteristics in different clustering clusters. First, a two-dimensional state data set for monitoring the state of the shared battery of the tractor is obtained, and the voltage and current data at each acquisition moment are obtained through the sensor of the shared battery during the operation of the tractor; in the embodiment of the present invention, the acquisition frequency is three times per second, and the implementer can determine the acquisition frequency and acquisition object according to the implementation scenario, such as the two-dimensional data composed of power and temperature. Each acquisition moment in the two-dimensional state data set corresponds to the values ​​of the two dimensions of current and voltage, and the two-dimensional data at each acquisition moment in the two-dimensional state data set are clustered, and the working performance of the battery is analyzed according to the data difference characteristics between different clustering clusters. However, since the motor and transmission system of the tractor will cause the fuselage to vibrate greatly during operation, the continuous vibration may cause the electrical connection points (such as wiring terminals and connectors) of the shared battery to have temporary poor contact, thereby causing voltage and current fluctuations; the acquired state data set is distorted due to the fluctuating voltage and current data, resulting in low accuracy in battery state monitoring. Therefore, it is necessary to improve the clustering process according to the fluctuation characteristics of voltage and current data caused by vibration, so as to improve the accuracy of clustering results and monitoring.

[0037] Furthermore, the two-dimensional state data set is preliminarily clustered, and the two-dimensional state data set is clustered according to the clustering algorithm to obtain different cluster centers and initial clustering results in the clustering space. In the embodiment of the present invention, the existing K-means clustering algorithm is used to cluster the two-dimensional state data set. The implementer can use other clustering algorithms such as the DBSCAN density clustering algorithm; the clustering space refers to the two-dimensional plane formed by the two-dimensional state data set, the horizontal axis is the voltage value at different acquisition times, and the vertical axis is the current value at different acquisition times. The two-dimensional data at each acquisition time forms a data point in the clustering space. In the embodiment of the present invention, 5 clusters are divided to obtain 5 cluster centers. Different cluster clusters represent different states of the shared battery. The implementer can determine the number of cluster centers according to the implementation scenario; the K-means clustering process belongs to the prior art, and the specific clustering steps are not repeated.

[0038] The vibration of tractors in working environment has high similarity, and the fluctuation of current and voltage data caused by vibration also has similarity; in the two-dimensional state data set of voltage and current, due to the influence of vibration on some data points at the time of acquisition, the voltage and current data points affected by vibration and those not affected by vibration will generate two data points in different positions in the clustering space; but the battery state represented by these two data points is the same. The same vibration factor will lead to multiple data points of the same situation. In the clustering space, the displacement between the data points affected by vibration and those not affected by vibration is similar, with similar direction and displacement length, and can be concentrated in one place to form a data lattice. This type of data lattice may be divided into different clusters in the clustering process, but the battery state represented by this type of data lattice is the same, but the data is deviated due to vibration; therefore, it is necessary to determine the data points suspected to be deviated by vibration in the middle of the cluster, and re-acquire the clusters where these data points are located to improve the accuracy of clustering and battery monitoring. First, the neighborhood range of the data point is obtained according to the distance characteristics between the data point in the two-dimensional state data set and other data points in the clustering space.

[0039] Preferably, in one embodiment of the present invention, the step of obtaining the neighborhood range includes: calculating the Euclidean distance between the data point and the other data points closest to it in the cluster space to obtain the nearest neighbor distance, wherein the nearest neighbor distance represents the distance characteristics between any data point and other data points reflecting the most similar state of the battery in the cluster space. Calculating the Euclidean distance between the data point and other data points with the farthest distance to obtain the farthest distance; the farthest distance represents the distance characteristics between any data point and other data points reflecting the most different state of the battery in the cluster space. Calculating the average of the nearest neighbor distance and the farthest distance to obtain the neighborhood radius of the data point; in the cluster space, the area within the neighborhood radius of the data point is taken as the neighborhood range; since the vibration of the tractor will cause a certain deviation in the voltage and current, the degree of deviation will not cause a large difference in the state characteristics of the battery; therefore, in the cluster space, for the data points that are normally not affected by the vibration, there will be other affected data points affected by the vibration within their neighborhood range, so obtaining the neighborhood range can determine the range of other affected data points corresponding to the data points that are not affected by the vibration. The normal data point and the vibration-affected data point represent the same battery status, but may not be classified into the same cluster during the clustering process.

[0040] Step S2, obtaining a state difference vector based on the positional features of the data point and other data points in the neighborhood, obtaining similar state difference vectors of the state difference vectors based on similar features between the state difference vectors; obtaining similar feature values ​​based on the distance features and quantity features between similar state difference vectors of the state difference vectors; obtaining different target data point sets based on the positional features and similar feature values ​​of the state difference vectors.

[0041] After obtaining the neighborhood range of each data point, the positional relationship between the data point and other data points in the neighborhood range can be analyzed to determine other data points affected by vibration. Therefore, the state difference vector is obtained according to the positional characteristics of the data point and other data points in the neighborhood range, specifically including: constructing a vector with the data point as the starting point and any other data point in the neighborhood range as the end point to obtain the state difference vector; the state difference vector can characterize the displacement mode and correlation degree of the data point and other data points, as well as the degree of difference in the battery state represented by the two data points. For all state difference vectors in the clustering space, other state difference vectors whose length difference with any state difference vector is less than the preset length difference value and whose direction angle difference is less than the preset angle difference value are regarded as the same state difference vectors of any state difference vector. In the embodiment of the present invention, the preset length difference value is 0.2, and the preset angle difference value is 2 degrees, which can be determined by the implementer according to the implementation scenario. Among all the state difference vectors in the clustering space, if there are other state difference vectors whose vector lengths are less than 0.2 and whose vector direction angles are less than 2 degrees compared with the arbitrary state difference vector, the other state difference vector can be considered to be a state difference vector of the same type as the arbitrary state difference vector; the displacement pattern and correlation degree between the two data points corresponding to the other state difference vector are similar to those of the arbitrary state difference vector, and the degree of difference between the two data points in the other state difference vector and the arbitrary state difference vector in reflecting the battery state is similar.

[0042] Furthermore, since the vibration of the tractor is relatively frequent, there are more data points affected by vibration in the two-dimensional state data set, which makes the displacement relationship and association pattern between the data points not affected by vibration and the data points affected by vibration that reflect the same state of the battery in the cluster space the most common; therefore, if a state difference vector corresponds to more similar state difference vectors and the closer the interval, it means that the state difference vector and the corresponding similar state difference vector are more likely to represent the displacement relationship and association pattern between the data points not affected by vibration and the data points affected by vibration. Therefore, similar feature values ​​can be obtained based on the distance characteristics and quantity characteristics between the similar state difference vectors of the state difference vector.

[0043] Preferably, in one embodiment of the present invention, the step of obtaining similar eigenvalues ​​includes: calculating the number of similar state difference vectors of the state difference vector and normalizing them to obtain similar number eigenvalues; when the number of similar state difference vectors is larger, the similar data eigenvalue is larger, and the displacement relationship and correlation pattern between the data points not affected by vibration and the data points affected by vibration reflecting the same state of the battery in the cluster space are more common. For any similar state difference vector of the state difference vector, the Euclidean distance between the arbitrary similar state difference vector and the nearest other arbitrary similar state difference vector is calculated to obtain the vector interval distance of any similar state difference vector; the average value of the vector interval distance of all arbitrary similar state difference vectors is calculated and negatively correlated to obtain the similar interval eigenvalue; when the vector interval distance is smaller, the similar interval eigenvalue is larger, and the distribution of the similar state difference vector is denser, then all the corresponding data points in the similar state difference vector are more likely to represent the data dense distribution characteristics that appear after being affected by vibration in the cluster space. The sum of the same type of quantity eigenvalues ​​and the same type of interval eigenvalues ​​is calculated to obtain the similar eigenvalue of the state difference vector; when the similar eigenvalue is larger, the displacement relationship and association pattern between the two data points represented by the state difference vector and the corresponding same type of state difference vector are more likely to be the displacement relationship and association pattern between the data points not affected by vibration and the data points affected by vibration reflecting the same state of the battery.

[0044] Further, after obtaining similar eigenvalues ​​of different state difference vectors, different target data point sets can be obtained according to the positional features and similar eigenvalues ​​of the state difference vectors; preferably, in one embodiment of the present invention, the step of obtaining the target data point set includes: taking the state difference vector corresponding to the maximum value of the similar eigenvalue as the target state difference vector, and the displacement relationship and association pattern between the data points corresponding to the target state difference vector are the displacement relationship and association pattern between the data points not affected by vibration and the data points affected by vibration reflecting the same state of the battery. Since the data points in the target state difference vector and the corresponding state difference vector of the same type may appear in different clusters, representing different battery states; in order to divide such data points into their respective appropriate clusters, it is necessary to cluster the target state difference vector and the corresponding state difference vector of the same type through the K-means clustering algorithm to obtain different state difference vector clusters, and the features of the state difference vectors in each state difference vector cluster are similar; the K-means clustering algorithm belongs to the prior art, and the specific clustering steps are not repeated. All data points of any state difference vector cluster are constructed as a target data point set; the battery states represented by the data points in each target data point set are similar.

[0045] Step S3, obtain the central data point and the central vector according to the position characteristics of the target data point set; obtain the distance eigenvalue and the cluster vector according to the position characteristics of the central data point and the cluster center; obtain the angle eigenvalue according to the direction difference characteristics of the central vector and the cluster vector; obtain the degree of adaptation of the target data point set and the cluster center according to the distance eigenvalue and the angle eigenvalue; and adaptively obtain the final clustering result of the two-dimensional state data set according to the degree of adaptation.

[0046] After obtaining different target data point sets, the data points in the target data point set may be in different clusters in the initial clustering results due to vibration, but the battery states represented by the data points in the target data point set are close; therefore, in order to improve clustering accuracy, it is necessary to re-determine the most appropriate cluster set for each target data point set. In the clustering space, the closer the target data point set is to the existing cluster center, the more the target data point set conforms to the data characteristics of the cluster where the cluster center is located. First, the central data point and the central vector are obtained according to the position characteristics of the target data point set. Preferably, in one embodiment of the present invention, the step of obtaining the central data point and the central vector includes: obtaining the minimum enclosing rectangle of any target data point set. Obtaining the minimum enclosing rectangle belongs to the prior art and the specific steps are not repeated here; taking the geometric center position of the minimum enclosing rectangle as the central data point; the closer the distance between the central data point and the cluster center, the more suitable the arbitrary target data point set is for clustering into the cluster cluster where the cluster center is located; taking the state difference vectors with the largest number of the same angle direction in the state difference vector cluster corresponding to the arbitrary target data point set as the central vector, when the vector constructed by the cluster center and the central data point is more perpendicular to the central vector, it means that the overall distribution area of ​​the data points in the target data point set is more perpendicular to the cluster center, and all the data points in the target data point set are closer to the cluster center.

[0047] Further, the distance eigenvalue and cluster vector can be obtained according to the position characteristics of the central data point and the cluster center; preferably, in one embodiment of the present invention, the step of obtaining the distance eigenvalue and cluster vector includes: calculating the Euclidean distance between the central data point and any cluster center and negatively correlating and mapping, obtaining the distance eigenvalue between the central data point and any cluster center; when the distance between the central data point and the arbitrary cluster center is smaller, the distance eigenvalue is larger, and the cluster cluster where the arbitrary cluster center is located is more suitable as the cluster cluster of the target data point set. The vector constructed by the central data point and the arbitrary cluster center is used as the cluster vector, and the cluster vector is used to analyze the verticality between the arbitrary cluster center and the central vector. Then, the angle eigenvalue is obtained according to the direction difference characteristics of the central vector and the cluster vector, specifically including: calculating the angle between the central vector and the cluster vector according to the inverse cosine function, obtaining the vector angle; calculating the absolute value of the difference between 90 degrees and the vector angle and negatively correlating and mapping, obtaining the angle eigenvalue of the central vector and the cluster vector. When the vector angle is closer to 90 degrees, the angle eigenvalue is larger, which means that the central vector of the target data point set is more perpendicular to the cluster vector, and the overall distribution area of ​​the data points in the target data point set is more perpendicular to the cluster center.

[0048] After obtaining the distance eigenvalues ​​and angle eigenvalues ​​of the target data point set and the cluster center, the degree of adaptation of the target data point set and the cluster center can be obtained according to the distance eigenvalues ​​and angle eigenvalues; preferably, in one embodiment of the present invention, the step of obtaining the degree of adaptation includes: calculating the product of the distance eigenvalue and the preset first weight to obtain the first adaptation coefficient; calculating the product of the angle eigenvalue and the preset second weight to obtain the second adaptation coefficient, calculating the sum of the first adaptation coefficient and the second adaptation coefficient, and obtaining the degree of adaptation of the target data point set and the cluster center. In an embodiment of the present invention, the preset first weight is 0.7, and the preset second weight is 0.3. The implementer can determine it by himself according to the implementation scenario. The greater the degree of adaptation of the target data point set and the cluster center, the more suitable the target data point set is for clustering into the cluster cluster where the cluster center is located. The formula for obtaining the degree of adaptation includes:

[0049] In the formula, Indicates the degree of fit between any target data point set and any cluster center. Indicates the preset first weight, represents the Euclidean distance between the arbitrary target data point set and the arbitrary cluster center, represents an exponential function with a natural constant as base, Indicates a negative correlation mapping of the Euclidean distance, that is, the distance eigenvalue, represents the first adaptation coefficient; Indicates the preset second weight, represents the cosine value of the center vector and the cluster vector, represents the vector angle between the center vector and the cluster vector, represents the angle eigenvalue, represents the second adaptation coefficient.

[0050] After obtaining the degree of fit between the target data point set and different cluster centers, the final clustering result of the two-dimensional state data set can be adaptively obtained according to the degree of fit, specifically including: dividing the data points in the target data point set into the cluster cluster where the cluster center with the greatest degree of fit is located, obtaining the latest cluster cluster of the target data point set; updating the initial clustering results according to different latest cluster clusters, obtaining the final clustering result. The final clustering result makes the data points in the target data point set divided into the same cluster cluster, avoiding the classification of the data points in the target data point set into different cluster clusters, which reduces the accuracy of clustering.

[0051] Step S4, monitoring the working status of the shared battery according to the final clustering result.

[0052] The final clustering result divides the data points representing the same battery status into the same clustering cluster, and then the working status of the shared battery can be monitored according to the final clustering result. In the embodiment of the present invention, the working status of the shared battery is judged according to the number characteristics of data points in different clustering clusters. For example, when the number of data points in the clustering cluster with relatively abnormal status data exceeds the preset number threshold, it is considered that the status of the shared battery is poor. The implementer can determine the preset number threshold according to the implementation scenario, or use other monitoring methods according to the final clustering result, which is not limited here.

[0053] In summary, the embodiment of the present invention provides a method for safely monitoring the output data of a shared battery of a smart tractor; a state difference vector and a corresponding state difference vector of the same type are obtained according to the positional characteristics of the data point and other data points in the neighborhood; a target data point set is obtained according to the distance characteristics and quantity characteristics between the state difference vectors of the same type; a distance eigenvalue and a cluster vector are obtained according to the positional characteristics of the cluster center and the central data point of the target data point set; and an angle eigenvalue is obtained according to the directional difference characteristics of the cluster vector and the central vector of the target data point set. The present invention obtains the degree of adaptation of the target data point set and the cluster center according to the distance eigenvalue and the angle eigenvalue, and adaptively obtains the final clustering result of the two-dimensional state data set according to the degree of adaptation and monitors the working state of the shared battery; and improves the accuracy of clustering and monitoring.

[0054] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0055] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A method for safely monitoring output data of a shared battery of a smart tractor, characterized in that: The method comprises the following steps: Acquire a two-dimensional state data set for monitoring the shared battery state of the tractor; cluster the two-dimensional state data set according to a clustering algorithm to obtain different cluster centers and initial clustering results in the clustering space; obtain a neighborhood range of the data point according to the distance characteristics between the data point in the two-dimensional state data set and other data points in the clustering space; Obtain a state difference vector according to the positional features of the data point and other data points in the neighborhood, obtain similar state difference vectors of the state difference vectors according to similar features between the state difference vectors; obtain similar feature values ​​according to the distance features and quantity features between the similar state difference vectors of the state difference vectors; obtain different target data point sets according to the positional features of the state difference vectors and the similar feature values; Obtaining a central data point and a central vector according to the positional features of the target data point set; obtaining a distance eigenvalue and a cluster vector according to the positional features of the central data point and the cluster center; obtaining an angle eigenvalue according to the directional difference features of the central vector and the cluster vector; obtaining a degree of adaptation between the target data point set and the cluster center according to the distance eigenvalue and the angle eigenvalue; and adaptively obtaining a final clustering result of the two-dimensional state data set according to the degree of adaptation; monitoring the working status of the shared battery according to the final clustering result; The step of acquiring the two-dimensional state data set includes: acquiring the voltage and current of the shared storage battery at each acquisition moment, and constructing the two-dimensional state data set according to the two-dimensional data of the voltage and current at each acquisition moment.

2. The method for safely monitoring output data of a shared battery of a smart tractor according to claim 1 is characterized in that: The step of obtaining the neighborhood range of the data point according to the distance feature between the data point in the two-dimensional state data set and other data points in the cluster space comprises: In the clustering space, the Euclidean distance between the data point and other data points that are closest to it is calculated to obtain the nearest neighbor distance, and the Euclidean distance between the data point and other data points that are farthest away is calculated to obtain the farthest distance; the average of the nearest neighbor distance and the farthest distance is calculated to obtain the neighborhood radius of the data point; and the area within the neighborhood radius of the data point in the clustering space is used as the neighborhood range.

3. The method for safely monitoring output data of a shared battery of a smart tractor according to claim 1 is characterized in that: The steps of obtaining a state difference vector according to the position features of the data point and other data points in the neighborhood, and obtaining similar state difference vectors of the state difference vector according to similar features between the state difference vectors include: A vector is constructed by taking the data point as a starting point and any other data point in the neighborhood as an end point to obtain the state difference vector; For all state difference vectors in the cluster space, other state difference vectors whose length difference with any state difference vector is less than a preset length difference value and whose direction angle difference with any state difference vector is less than a preset angle difference value are regarded as the same type state difference vector of the arbitrary state difference vector.

4. The method for safely monitoring output data of a shared battery of a smart tractor according to claim 1, characterized in that: The step of obtaining similar feature values ​​according to the distance feature and quantity feature between the same type of state difference vectors comprises: The number of similar state difference vectors of the state difference vector is calculated and normalized to obtain a similar number eigenvalue; for any similar state difference vector of the state difference vector, the Euclidean distance between the arbitrary similar state difference vector and any other similar state difference vector closest to it is calculated to obtain a vector interval distance of the arbitrary similar state difference vector; the average value of the vector interval distances of all arbitrary similar state difference vectors is calculated and negatively correlated to obtain a similar interval eigenvalue; the sum of the similar number eigenvalue and the similar interval eigenvalue is calculated to obtain a similar eigenvalue of the state difference vector.

5. The method for safely monitoring output data of a shared battery of a smart tractor according to claim 1 is characterized in that: The step of acquiring different target data point sets according to the position features of the state difference vector and the similar feature values ​​comprises: The state difference vector corresponding to the maximum value of the similar eigenvalue is taken as the target state difference vector, and the target state difference vector and the corresponding state difference vector of the same type are clustered by the K-means clustering algorithm to obtain different state difference vector clusters; all data points constructing any state difference vector cluster are taken as a target data point set.

6. The method for safely monitoring output data of a shared battery of a smart tractor according to claim 5, characterized in that: The step of obtaining a central data point and a central vector according to the positional features of the target data point set comprises: The minimum bounding rectangle of any target data point set is obtained, and the geometric center position of the minimum bounding rectangle is used as the central data point; the state difference vectors with the largest number of the same angle direction in the state difference vector cluster corresponding to the arbitrary target data point set are used as the central vector.

7. The method for safely monitoring output data of a shared battery of a smart tractor according to claim 1, characterized in that: The step of obtaining the distance feature value and the cluster vector according to the position features of the central data point and the cluster center comprises: The Euclidean distance between the central data point and any cluster center is calculated and negatively correlated to obtain a distance characteristic value between the central data point and any cluster center; and a vector constructed by the central data point and any cluster center is used as a cluster vector.

8. The method for safely monitoring output data of a shared battery of a smart tractor according to claim 1 is characterized in that: The step of obtaining the angle feature value according to the direction difference feature of the center vector and the cluster vector comprises: The angle between the center vector and the cluster vector is calculated according to the arccosine function to obtain the vector angle; the absolute value of the difference between 90 degrees and the vector angle is calculated and negatively correlated to obtain the angular eigenvalues ​​of the center vector and the cluster vector.

9. The method for safely monitoring output data of a shared battery of a smart tractor according to claim 1, characterized in that: The step of obtaining the degree of adaptation between the target data point set and the cluster center according to the distance eigenvalue and the angle eigenvalue comprises: Calculate the product of the distance eigenvalue and the preset first weight to obtain the first adaptation coefficient; calculate the product of the angle eigenvalue and the preset second weight to obtain the second adaptation coefficient, calculate the sum of the first adaptation coefficient and the second adaptation coefficient, and obtain the degree of adaptation of the target data point set and the cluster center.

10. The method for safely monitoring output data of a shared battery of a smart tractor according to claim 1, characterized in that: The step of adaptively obtaining the final clustering result of the two-dimensional state data set according to the adaptation degree comprises: The data points in the target data point set are divided into clusters where the cluster center with the greatest degree of adaptation is located, so as to obtain the latest clusters of the target data point set; and the initial clustering results are updated according to different latest clustering clusters to obtain the final clustering results.