A vehicle detection system and method based on the Internet
By modifying the K-Shape algorithm to deal with the impact of noise, the accuracy of clustering and anomaly detection of vehicle power data is improved, the problem of noise affecting the clustering results is solved, and more efficient abnormal data identification is achieved.
Patent Information
- Application Number
- CN202410813448.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-24
AI Technical Summary
In the existing technology, vehicle power data will generate noise during collection, which affects the K-Shape algorithm's evaluation of similarity, thus affecting the accuracy of clustering results and, in turn, the accuracy of anomaly detection.
By analyzing the degree of noise expression in the vehicle current data sequence, the similarity evaluation of the K-Shape algorithm is modified, the modified K-Shape algorithm is used to cluster the current data, and the difference values between clusters are calculated to identify abnormal data and improve Accuracy of clustering results and accuracy of anomaly detection.
By modifying the K-Shape algorithm, the accuracy of the clustering results of vehicle power data and the accuracy of anomaly detection are improved, abnormal data can be identified more accurately, and the speed and accuracy of detection are improved.
Smart Images

Figure CN118378116B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and more specifically, to an Internet-based vehicle detection system and method. Background Art
[0002] The smart terminal power operation and maintenance safety data system refers to a system that uses smart terminal devices and related technologies to manage and monitor safety data in the power operation and maintenance process. This system can collect and monitor the operating status, current, voltage and other parameters of power terminal equipment in real time, and provide early warning and fault diagnosis through data analysis and processing to ensure the safety of power operation and maintenance. Nowadays, with the development of electric vehicles and hybrid electric vehicles, power safety in vehicles has become particularly important. Therefore, it is necessary to detect vehicles through the smart terminal power operation and maintenance safety data system in order to find and solve problems in a timely manner.
[0003] In the related technologies, for example, the Chinese patent document with publication number CN110533112B discloses a cross-domain analysis and fusion method for Internet of Vehicles big data. The present invention optimizes the support for Internet of Vehicles-specific data such as stream data through data preprocessing technology, uncertain data preprocessing technology, and Internet of Vehicles industry data processing and fusion technology; based on new data mining algorithms such as mining, analysis, clustering technology, behavior recognition, anomaly detection, etc. of Internet of Vehicles stream data, the intelligence level of the system is improved.
[0004] At present, some clustering methods are used for anomaly detection of vehicle data, such as the K-Shape clustering algorithm. However, since the vehicle power data will generate noise when it is collected, and the K-Shape algorithm focuses on the shape and pattern similarity of the time series, and the noise has a great influence on the shape of the time series, thus affecting the K-Shape algorithm's evaluation of similarity, and then affecting the accuracy of the clustering results. Summary of the invention
[0005] The present invention provides an Internet-based vehicle detection system and method, aiming to solve the problem in the related art that noise is generated when the vehicle power data is collected, and the K-Shape algorithm focuses on the shape and pattern similarity of the time series, and the noise has a great influence on the shape of the time series, thereby affecting the K-Shape algorithm's evaluation of the similarity, and further affecting the accuracy of the clustering results.
[0006] In a first aspect, the present invention provides an Internet-based vehicle detection method, comprising: collecting vehicle current data to obtain a current data sequence ; The modified K-Shape algorithm is used to normalize the current data series Clustering is performed to obtain clustering results, wherein the clustering results are multiple clusters, and the difference values between the clusters are calculated to determine abnormal data to detect the vehicle; wherein the modified K-Shape algorithm includes: calculating the vector The sequence and vector The similarity between the sequences ,include:
[0007] ; In the formula, Indicates the first The value of the data point, Indicates the first The value of the data point, Indicates the first The noise performance degree corresponding to the data point is Indicates the first The noise performance degree corresponding to the data point is represents the length of the repeated sequence of vector A and vector B; the noise performance reflects the current data sequence The speed of fluctuation frequency and the unevenness of fluctuation amplitude of medium current data.
[0008] The effect is that by analyzing the noise performance of data points in the vehicle current data sequence, a correction factor for correcting the similarity evaluation of the K-Shape algorithm is obtained, and then the K-Shape algorithm is corrected, thereby improving the accuracy of the clustering results, thereby improving the accuracy of vehicle anomaly detection.
[0009] In one embodiment, the difference values between clusters calculated in the K-Shape algorithm are used as the abnormality degree, including: calculating the average value of the distance between any cluster and other clusters in the clustering result, and using the value after normalization of the average value as the abnormality degree of each cluster.
[0010] In one embodiment, the difference value between each cluster calculated in the K-Shape algorithm is used as the abnormality degree, and the method further includes: obtaining the abnormality degree of each cluster according to the product between the number of data points in any cluster in the clustering result and the average value of the distance between the cluster and other clusters, wherein the abnormality degree is negatively correlated with the number of data points in the cluster and positively correlated with the distance value between the cluster and other clusters.
[0011] The effect is that when calculating the degree of anomaly, the uniqueness of the abnormal data is taken into account (abnormal data is not easy to form a large cluster with most of the data, so abnormal data often appear in clusters with fewer data points). Therefore, the uniqueness of the abnormal data and the method of calculating differences in the K-Shape algorithm itself are combined together to improve the accuracy of the final calculation of the degree of anomaly.
[0012] In one embodiment, the abnormality degree of each cluster is obtained according to the product of the number of data points in any cluster in the clustering result and the average value of the distance between the cluster and other clusters, including: calculating the abnormality degree of the cluster in the clustering result of the modified K-Shape algorithm. The abnormality of the cluster , the calculation formula is: ; In the formula, For the The number of data points in a cluster, is the number of clusters in the clustering result, Indicates the current Clusters and clustering results The distance between clusters, () represents the normalization function, are preset parameters.
[0013] In one embodiment, the difference values between the clusters are calculated to determine abnormal data for vehicle detection, including: determining the degree of abnormality of each cluster according to the difference values between the clusters; in response to the abnormality degree of the cluster being greater than or equal to a preset threshold, determining the cluster as abnormal data for vehicle detection.
[0014] The effect is that by setting a threshold and performing a comparison, data processing is facilitated, the speed of data processing is improved, and abnormal data can be quickly obtained.
[0015] In one embodiment, the noise performance level is determined by the current data sequence The speed of the fluctuation frequency and the uniformity of the fluctuation amplitude of the current data are calculated, including: calculating the current data points The noise performance ,in, Represented as a current data sequence Middle data points, the calculation formula is: ; In the formula, Represents current data points The number of data points in the local range, where the local range is expressed in The length of W data points is centered. Represents current data points The number of extreme points of the fitting curve in the local range, Represents current data points The fitting curve in the local range, The current data point In local area data points and The integral between the data points is the fitting curve In its domain The area enclosed by the x-axis, , Represents the current data points In local area data points and The current data value of each data point is () is a normalization function. Its effect is to convert the data into a quantifiable form for subsequent analysis.
[0016] In one embodiment, the fitting curve is obtained as The method comprises: using the least square method to calculate the current data points The data points in the local range are fitted to obtain the fitting curve: .
[0017] The effect is that the least square method is used to fit the data point memory curve, which is simple to calculate and is conducive to data processing.
[0018] In one embodiment, the modified K-Shape algorithm is used to normalize the current data sequence. Clustering, get the clustering results, including: standardizing the current data series , cluster number k, sliding window length z, and sliding step size d are input into the K-Shape clustering algorithm, and k points are selected as initial clustering centers for K-Shape clustering to obtain clustering results; among which, the values of k, z, and d are all preset values.
[0019] In one embodiment, the current data of the vehicle is collected to obtain a current data sequence , including: using a current sensor to collect current data of a vehicle in normal operation within a preset time at a preset frequency, and obtaining a vehicle current data sequence .
[0020] In a second aspect of the present invention, there is also provided an Internet-based vehicle detection system, comprising a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program to implement any of the Internet-based vehicle detection methods described above.
[0021] Beneficial effects: According to the changing characteristics of the vehicle current data sequence, the noise performance degree of the current data point is calculated. The similarity measurement in the K-Shape algorithm is corrected by the noise performance degree of each current data point. This can more accurately reflect the true similarity between sequences and more accurately identify those truly abnormal data, thereby improving the accuracy of detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0023] Figure 1 is a flowchart schematically illustrating detection of abnormal data according to an embodiment of the present invention;
[0024] Figure 2 FIG. 1 is a schematic diagram schematically showing a system structure according to an embodiment of the present invention.
[0025] Reference numerals
[0026] 1. Processor; 2. Communication bus; 3. Memory; 4. Communication interface. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0028] like Figure 1 As shown, the specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings.
[0029] In one embodiment, since the vehicle power data will generate noise when it is collected, and the K-Shape algorithm focuses on the shape and pattern similarity of the time series, and the noise has a great impact on the shape of the time series, thereby affecting the K-Shape algorithm's evaluation of similarity, and further affecting the accuracy of the clustering results. Therefore, the present invention obtains a correction factor for correcting the K-Shape algorithm's similarity evaluation by analyzing the degree of noise performance of data points in the vehicle current data sequence, thereby improving the clustering results and performing anomaly detection based on the clustering results. The specific steps are as follows:
[0030] Step S101: Collecting vehicle current data.
[0031] In one embodiment, a current sensor is used to collect current data of a vehicle in normal operation within a preset time at a preset frequency to obtain a vehicle current data sequence. The preset frequency may be 10 Hz, 15 Hz or 20 Hz, and the preset time may be one hour, thirty minutes or two hours. Both the preset frequency and the preset time may be adjusted according to actual conditions.
[0032] Exemplarily, a current sensor is used at a frequency of 10 Hz to collect current data of a vehicle during normal operation for one hour, and the collected data is used as a vehicle current data sequence.
[0033] In one embodiment, because the K-Shape algorithm measures the distance between time series by the cross-correlation method, and when measuring similarity, it calculates the maximum value of the cross-correlation sequence similarity measure of two vectors (that is, when calculating the distance between two current data points, since the K-Shape algorithm focuses on the shape of the time series, it is necessary to consider the local range of the two data points, and the local range of the two data points is the two vectors). In this process, the noise data will undoubtedly affect the similarity measure of the two vectors, so it is necessary to make corrections to the similarity measure. For current data points with a large degree of noise performance, the authenticity of the data is low and the similarity measure is unreliable, so it is necessary to make a larger correction to the similarity measure; on the contrary, for points with a small degree of noise performance, the authenticity of the data is high and the similarity measure is reliable, so a smaller correction is made to it, which can enable the K-Shape algorithm to more accurately cluster sequences of similar shapes together, thereby improving the quality and reliability of the entire clustering process.
[0034] Step S102: Calculate the noise performance level of the current data points according to the variation characteristics of the vehicle current data sequence.
[0035] It should be noted that because the vibration of the vehicle during driving can be transmitted to the electrical system, random fluctuations in the current data occur, i.e., noise. These noises appear as high-frequency fluctuations in the data, and because the road surface is uneven during driving, the fluctuation amplitude of the current data will show uneven changes during the high-frequency fluctuation. In summary, the degree of noise performance of the vehicle current data point can be calculated using the speed of the fluctuation frequency of the current data and the uniformity of the fluctuation amplitude. The faster the current data fluctuates and the worse the uniformity of the fluctuation amplitude, the greater the degree of noise performance.
[0036] Specifically, the appearance of extreme points on a curve indicates that the data has peaks or troughs, that is, fluctuations. The ratio of the number of extreme points in a data range to the length of the data range can be used to represent the speed of the data fluctuation frequency. Therefore, when calculating the speed of the fluctuation frequency of the current data point, curve fitting can be performed within the local range of the data point, and the ratio of the number of extreme points to the length of the local range can be used to represent the speed of the fluctuation frequency within the local range of the current data point. The larger the ratio, the greater the frequency.
[0037] Regarding the uniformity of the fluctuation amplitude: the uniformity of the fluctuation amplitude can be represented by the loss of the fitting curve in the fitting process, because the more uniform the fluctuation amplitude is, the closer the curve fitting will be to the real data, that is, the fitting loss is small; conversely, if the fluctuation amplitude is uneven, the curve fitting will deviate more from the real data, that is, the fitting loss is large. Therefore, the loss in the fitting process can be used to represent the uniformity of the fluctuation amplitude of the current data, where the greater the loss, the worse the uniformity.
[0038] For example, The current data sequence obtained is The local range of the i-th data point in The length of W data points centered on the local range W. It should be noted that the size of the local range W can be set manually, but it should be noted that the larger the local range W, the more accurate the calculation, but the larger the amount of calculation. In this embodiment, the empirical value W=21, and W is an odd number.
[0039] Furthermore, for data points at the edge of the data sequence, there may be some missing parts in the local range, and the missing parts will be directly discarded. (the first data point in the current series), the left side of which is missing points ( is the lower limit function) is discarded, then the current data The local range size is the non-missing part, that is, the right side The point and itself points, and then use the least squares method to fit the curve of the data points in the local range. The fitting curve is , count the number of points (extreme points) in the fitting curve where the first-order derivative is 0 and the second-order derivative is not 0, and use the ratio of this number to the number of data points in the local range to characterize the speed of the fluctuation frequency.
[0040] Secondly, the average difference between the area enclosed by the x-axis in the fitting curve and the area enclosed by the actual current value and the x-axis is used to represent the loss in the fitting process. The larger the average area difference, the greater the loss. Then the current data point is obtained. The calculation formula for the noise performance degree is:
[0041] .
[0042] In the formula, Represents current data points The noise performance level, Represents current data points The number of data points in the local area, Represents current data points The number of extreme points of the fitting curve in the local range, Represents current data points The fitting curve in the local range, The current data point In local area data points and The integral between the data points is the fitting curve In its domain The area enclosed by the x-axis, , Represents the current data points In local area data points and data points, , Represents the current data points In local area data points and The current data value of each data point is () is the normalization function.
[0043] In the formula, Indicates data points and The area of the trapezoid formed by the data points and the x-axis; then the jth data point and the The loss of a data point in the fitting process is , then at the current data point The average difference between the area enclosed by the fitting curve and the x-axis in the local range and the area enclosed by the actual current value and the x-axis represents the loss in the fitting process. is a number between 0 and 1. In order to avoid the imbalance between the speed of the fluctuation frequency and the uniformity of the fluctuation amplitude when measuring the degree of noise performance, it is necessary to normalize the uniformity of the fluctuation amplitude. The degree of noise at each data point in .
[0044] Step S103: modifying the K-Shape algorithm according to the degree of noise performance.
[0045] In one embodiment, after calculating the noise performance of the vehicle current data point, the correction factor of the similarity metric of the K-Shape algorithm can be calculated according to the noise performance. For current data points with a large noise performance, a larger correction is made to their similarity metric; conversely, for points with a small noise performance, a smaller correction is made to them.
[0046] Specifically, the similarity measure in the K-Shape algorithm is calculated by the dot product of two vectors. For example, the K-Shape algorithm stores the time series in two vectors A and B of dimension n (A and B are the local ranges of the two data points when measuring the similarity), keeps the position of vector A unchanged, and calculates the sum of the dot products of the overlapping parts of the sequence in the process of sliding vector B, and obtains the similarity between the sequence where vector A is located and the sequence where vector B is located. The similarity measure in the K-Shape algorithm belongs to the prior art, so it will not be described in detail. The present invention makes corrections according to the degree of noise performance of the data point when calculating the similarity measure. For current data points with high noise performance, the authenticity of the data is low and the similarity measure is unreliable, so a larger correction is made to the similarity measure; on the contrary, for points with low noise performance, the authenticity of the data is high and the similarity measure is credible, so a smaller correction is made to it.
[0047] For example, there are two sliding windows in the K-Shape algorithm, namely the first window and the second window, where the first window represents the local range when the o-th data point is measured for similarity, and the second window represents the local range when the p-th data point is measured for similarity. Then, the position of the first window is kept fixed, the second window is slid, and the sequence of the overlapped part of the second window and the first window is found when the second window is slid. Then, the sequence of the overlapped part in the first window is obtained as the vector , the overlapping sequences in the second window are taken as vectors .
[0048] In one embodiment, the vector is calculated The sequence and vector The similarity between the sequences R(A,B) includes:
[0049] .
[0050] In the formula, It represents the dot product of vector A and vector B after the degree of noise representation is corrected, that is, it represents the similarity between the sequence where vector A is located and the sequence where vector B is located. Indicates the first The value of the data point, Indicates the first The value of the data point, Indicates the first The noise performance degree corresponding to the data point is Indicates the first The noise performance degree corresponding to the data point is Represents the length of the repeated sequence of vector A and vector B. So far, the above method can be used to correct the measurement method of the similarity between two vectors.
[0051] In the formula, That is the correction factor. For current data points with greater noise performance, the authenticity of the data is low, that is, the correction factor is small, which makes the final calculated similarity smaller. Conversely, for current data points with smaller noise performance, the authenticity of the data is high, that is, the correction factor is large, which makes the final calculated similarity larger.
[0052] Step S104: clustering the vehicle current data sequence using the modified K-Shape clustering algorithm.
[0053] In one embodiment, the normalized current data sequence , cluster number k, sliding window length z, and sliding step size d are input into the modified K-Shape clustering algorithm, and k points are selected as initial clustering centers for clustering to obtain clustering results; among which, the values of k, z, and d are all preset values.
[0054] Step S105: Calculate the abnormality level of each cluster according to the clustering result.
[0055] In one embodiment, calculating the abnormality degree of each cluster includes: calculating the average value of the distance between any cluster and other clusters in the clustering result, wherein the average value is the difference value, and using the normalized value of the difference value as the abnormality degree of each cluster.
[0056] For example, the clustering results in four clusters, namely the first cluster, the second cluster, the third cluster and the fourth cluster. When calculating the abnormality of the second cluster, it is necessary to first calculate the distance between the second cluster and the first cluster, the distance between the second cluster and the third cluster, and the distance between the second cluster and the fourth cluster, and then obtain the sum of the distances, and then calculate the difference value, which is the average of the sum of all the above distances. Then the value after normalization of the average value is used as the abnormality of the second cluster.
[0057] In another embodiment, in many cases, due to its uniqueness, abnormal data is not easy to form a large cluster with most data, so abnormal data often appears in clusters with fewer data points, and there is a significant difference between the abnormal data cluster and other clusters. Therefore, the number of data points in the cluster and the distance between the cluster and other clusters (the difference in the k-shape algorithm represents the distance) can be used to represent the degree of abnormality. The fewer the data points and the greater the distance, the greater the degree of abnormality. Specifically, the difference value is obtained according to the product between the number of data points in any cluster in the clustering result and the average value of the distance between the cluster and other clusters, and the normalized value of the difference value is used as the degree of abnormality of each cluster, wherein the degree of abnormality is negatively correlated with the number of data points in the cluster and positively correlated with the distance value between the cluster and other clusters.
[0058] According to the number of data points in the cluster in the clustering result and the distance between the cluster and other clusters, the abnormality of each cluster is calculated, including:
[0059] Calculate the abnormality of the i-th cluster in the K-Shape clustering result , the calculation formula is:
[0060] .
[0061] In the formula, For the The number of data points in a cluster, is the number of clusters in the clustering result, Indicates the current Clusters and clustering results The distance between clusters, () represents the normalization function, is a preset parameter. Among them, B (in this embodiment, B=50, which is related to the number of data points collected and the number of clusters) is to prevent the number of data points from being too many, which will reduce the influence of the number of data points as a measure of abnormality. This method takes into account the situation of abnormal data in practice, so that the result of calculating the abnormality of each cluster is more accurate.
[0062] Step S106: Determine abnormal data according to the degree of abnormality.
[0063] In one embodiment, the abnormality level of each cluster is compared with a preset threshold. If the abnormality level of the cluster is greater than or equal to the preset threshold, the cluster is determined to be abnormal data and an alarm is performed.
[0064] For example, the clustering results yield four clusters, and the abnormality levels of the four clusters are Y1, Y2, Y3, and Y4, respectively, and Y1 Y2 Y3 Y4. When the preset threshold is X, X is less than Y2 and greater than Y3, Y1 is obtained Y2 X, then the data in the clusters corresponding to Y1 and Y2 are regarded as abnormal data, and the vehicle driver or work is prompted to handle it in time through Internet technology, thereby reducing safety hazards.
[0065] In another embodiment, the abnormality levels of the clusters may be sorted from large to small, and the top three largest ones are selected as abnormal data.
[0066] According to the above steps, the noise performance degree of the current data points can be calculated according to the changing characteristics of the vehicle current data sequence (the speed, intensity and uniformity of the fluctuation amplitude of the current data). The similarity measurement in the K-Shape algorithm can be corrected by the noise performance degree of each current data point, which can more accurately reflect the true similarity between sequences and more accurately identify those truly abnormal data, thereby improving the accuracy of detection.
[0067] The present invention also provides a vehicle detection system based on the Internet. Figure 2 As shown, the system includes a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, an Internet-based vehicle detection method according to the first aspect of the present invention is implemented.
[0068] In one embodiment, the present invention provides a computer device whose internal structure can be as follows: Figure 2 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities, and various varieties such as CPU, single-chip microcomputer, DSP or FPGA can be selected. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. When the computer program is executed, the steps described in the above method embodiment can be completed, such as S101-step S106. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a vehicle detection method based on the Internet is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0069] Those skilled in the art will understand that Figure 2 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present invention, and does not constitute a limitation on the computer device of the present invention. The specific computer device may include more or less components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0070] The system also includes other components familiar to those skilled in the art, such as a communication bus and a communication interface, whose configuration and functions are known in the art and thus will not be described in detail here.
[0071] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in the present invention may be implemented using computer-readable / executable instructions that may be stored or otherwise maintained by such a computer-readable medium.
[0072] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.
[0073] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0074] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent application. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A vehicle detection method based on the Internet, characterized in that: include: Collect the vehicle's current data and obtain the current data sequence ; The modified K-Shape algorithm is used to normalize the current data series. Perform clustering to obtain a clustering result, wherein the clustering result is a plurality of clusters, and calculate the difference value between each cluster to determine abnormal data so as to detect the vehicle; The modified K-Shape algorithm includes: calculating the vector The sequence and vector The similarity between the sequences ,include: ; In the formula, Indicates the first The value of the data point, Indicates the first The value of the data point, Indicates the first The noise performance degree corresponding to the data point is Indicates the first The noise performance degree corresponding to the data point is Indicates the length of the repeated sequence of vector A and vector B; The noise performance reflects the current data sequence The speed of the fluctuation frequency and the unevenness of the fluctuation amplitude of the current data; calculate the current data points The noise performance ,in, Represented as a current data sequence Middle data points, the calculation formula is: ; In the formula, Represents current data points The number of data points in the local range, where the local range is expressed in The length of W data points is centered. Represents current data points The number of extreme points of the fitting curve in the local range, Represents current data points The fitting curve in the local range, The current data point In local area data points and The integral between the data points, , Represents the current data points In local area data points and The current data value of each data point is () is the normalization function.
2. The Internet-based vehicle detection method according to claim 1, characterized in that: And calculate the difference values between clusters, including: The average value of the distance between any cluster and other clusters in the clustering result is calculated, wherein the average value is the difference value, and the value after the difference value is normalized is used as the abnormality degree of each cluster.
3. The vehicle detection method based on the Internet according to claim 1, characterized in that: And calculate the difference between each cluster, including: The difference value is obtained according to the product of the number of data points in any cluster in the clustering results and the average value of the distance between the cluster and other clusters, and the normalized value of the difference value is used as the abnormality degree of each cluster, wherein the abnormality degree is negatively correlated with the number of data points in the cluster and positively correlated with the distance value between the cluster and other clusters.
4. The Internet-based vehicle detection method according to claim 3, characterized in that: The difference value is obtained by multiplying the number of data points in any cluster in the clustering result by the average value of the distance between the cluster and other clusters, and the normalized value of the difference value is used as the abnormality degree of each cluster, including: Calculate the clustering results of the modified K-Shape algorithm The abnormality of the cluster , the calculation formula is: ; In the formula, For the The number of data points in a cluster, is the number of clusters in the clustering result, Indicates the current Clusters and clustering results The distance between clusters, () represents the normalization function, are preset parameters.
5. The Internet-based vehicle detection method according to claim 3, characterized in that: Calculate the difference between clusters to determine abnormal data to detect vehicles, including: In response to the abnormality degree of the cluster being greater than or equal to a preset threshold, the cluster is determined as abnormal data to detect the vehicle.
6. The vehicle detection method based on the Internet according to claim 1, characterized in that: The fitting curve is methods, including: The current data points are then fitted using the least squares method. The data points in the local range are fitted to obtain the fitting curve: .
7. The Internet-based vehicle detection method according to any one of claims 1 to 6, characterized in that: The modified K-Shape algorithm is used to normalize the current data series. Perform clustering and obtain clustering results, including: The standardized current data series , cluster number k, sliding window length z, and sliding step size d are input into the K-Shape clustering algorithm, and k points are selected as initial clustering centers for K-Shape clustering to obtain clustering results; among which, the values of k, z, and d are all preset values.
8. The Internet-based vehicle detection method according to any one of claims 1 to 3, characterized in that: Collect the vehicle's current data and obtain the current data sequence ,include: The current sensor is used to collect the current data of the vehicle during normal operation within a preset time at a preset frequency to obtain the vehicle current data sequence. .
9. An Internet-based vehicle detection system, comprising a processor and a memory, wherein the memory stores a computer program, characterized in that: The processor executes the computer program to implement the Internet-based vehicle detection method as described in any one of claims 1-8.
Citation Information
Patent Citations
Cross-domain analysis and fusion methods for big data in the Internet of Vehicles
CN110533112B
Data processing method and system based on PCI bus
CN117349220A
Transformer operation monitoring system based on Internet of Things
CN117371339A
Method and system for analyzing state of driving motor of large-diameter electric half-ball valve
CN118013323A
Production intelligent monitoring method, system and device based on industrial internet
CN118094449A
