Data processing method, device, electronic device and storage medium

By identifying and deleting the driving data of overpass vehicles and updating the vehicle speed characteristic value, the problem that overpass vehicle speed affects the ground vehicle speed is solved, and the accurate acquisition of ground vehicle speed is achieved.

CN119559802BActive Publication Date: 2025-05-23ZHEJIANG YUNTONG SHUDA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510105343.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-23
Publication Date
2025-05-23
Estimated Expiration
2045-01-23

AI Technical Summary

Technical Problem

When it is necessary to know the average vehicle speed of the ground section, the vehicle speed on the viaduct will affect the ground vehicle speed, and it is difficult for the prior art to effectively eliminate the vehicle speed on the viaduct.

Method used

By obtaining the driving data of all vehicles passing through the set road section in the current time window, identifying and deleting abnormal data (i.e., the driving data of vehicles passing through the viaduct), and determining the ground speed threshold based on the updated vehicle speed characteristic value, and gradually filtering out the ground speed.

Benefits of technology

Effectively eliminate the speed of the viaduct, and accurately obtain the average ground speed of the road with the viaduct.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119559802B_ABST
    Figure CN119559802B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data processing, and in particular to a data processing method, device, electronic device and storage medium, comprising: obtaining abnormal data from a current data set to be processed and deleting the obtained abnormal data from the current data set to be processed to obtain a current intermediate data set; based on the current vehicle speed characteristic value determination method, updating the current ground vehicle speed threshold and adding it to the current vehicle speed threshold concentration; if there is a vehicle speed threshold that meets the preset conditions in the current vehicle speed threshold concentration, using the current ground vehicle speed threshold as the current candidate ground vehicle speed threshold; based on the current candidate ground vehicle speed threshold, obtaining the number of first-category vehicles and the number of second-category vehicles corresponding to each time window, if the two numbers meet the preset requirements, using the current candidate ground vehicle speed threshold as the target ground vehicle speed threshold; based on the target ground vehicle speed threshold, obtaining the ground average vehicle speed corresponding to the set road section. The present invention can quickly and accurately obtain the ground vehicle speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a data processing method, device, electronic equipment and storage medium. Background Art

[0002] In some application scenarios, it is necessary to know the average speed of vehicles on a certain ground road section in order to better guide traffic. However, there will be viaducts built on the ground road section, and the speed of vehicles on the viaducts will affect the speed of vehicles on the ground, so the speed of vehicles on the viaducts needs to be eliminated. Summary of the invention

[0003] In view of the above technical problems, the technical solution adopted by the present invention is:

[0004] According to a first aspect of the present invention, there is provided a data processing method, the method comprising the following steps:

[0005] S100, obtaining driving data of all vehicles passing through a set road section within a current time window as a current data set to be processed; an elevated bridge is arranged on the set road section.

[0006] S200, obtaining abnormal data from the current data set to be processed and deleting the obtained abnormal data from the current data set to be processed, so as to obtain the data set to be processed with the abnormal data deleted as the current intermediate data set; the abnormal data is driving data corresponding to the first type of vehicle, and the first type of vehicle is a vehicle passing through an elevated bridge.

[0007] S300, based on the current vehicle speed characteristic value determination method, obtain the vehicle speed characteristic value corresponding to the vehicle speed information in the current intermediate data set to update the current ground vehicle speed threshold, obtain the updated current ground vehicle speed threshold and use it as the current ground vehicle speed threshold, and add it to the current vehicle speed threshold set;

[0008] S400: If the current vehicle speed threshold set includes the current ground vehicle speed threshold and the deviations corresponding to the m consecutive vehicle speed thresholds are less than a second set deviation, the current ground vehicle speed threshold is used as the current candidate ground vehicle speed threshold.

[0009] S500, based on the current candidate ground vehicle speed threshold, the driving data of all vehicles passing through the set road section in at least one time window after the current time window are obtained, and based on the driving data of all vehicles passing through the set road section in at least one time window after the current time window, the number N1 of first-category vehicles and the number N2 of second-category vehicles corresponding to each time window after the current time window are obtained. If the difference between N1 corresponding to any time window and the first reference number N10 is less than or equal to the set value, and the difference between the corresponding N2 and the second reference number N20 is less than or equal to the set value, the current candidate ground vehicle speed threshold is used as the target ground vehicle speed threshold, N10 is the reference number of all vehicles that pass through the set road section in any time window within at least one time window after the current time window, and N20 is the reference number of all vehicles that pass through the set road section in any time window within at least one time window after the current time window, and the second-category vehicles are vehicles that only travel on the ground.

[0010] S600: Based on the target ground vehicle speed threshold and the driving data of all vehicles passing through the set road section in the current time window, obtain the ground average vehicle speed corresponding to the set road section.

[0011] Furthermore, S500 also includes:

[0012] If the difference between N1 and N10 is greater than the set value, or if the difference between N2 and N20 is greater than the set value, the current ground vehicle speed threshold is set to the initial value and the current vehicle speed characteristic value determination method is updated, and S100 is executed.

[0013] Furthermore, the updated current ground vehicle speed threshold and the vehicle speed information in the current intermediate data set satisfy the following conditions: y=f(x), y is the updated current ground vehicle speed threshold, x is the vehicle speed in the vehicle speed information in the current intermediate data set, and f() is the set function expression.

[0014] Furthermore, S200 specifically includes:

[0015] S201, traversing the current data set to be processed, if the vehicle speed deviation corresponding to a certain driving data in the current data set to be processed is greater than a first set deviation, adding the driving data to the current first intermediate data set.

[0016] S202, traverse the current first intermediate data set, if the vehicle speed information corresponding to a certain driving data in the current first intermediate data set meets the preset conditions, delete the driving data from the current first intermediate data set as abnormal data, and obtain the current first intermediate data set with the abnormal data deleted as the current second intermediate data set.

[0017] S203: taking a union of the data sets in the current data set to be processed except the current first intermediate data set and the current second intermediate data set as the current intermediate data set.

[0018] Further, S202 specifically includes:

[0019] S2021, set variable e=1.

[0020] S2022, if e≤n1, execute S2023; otherwise, execute S2028; n1 is the number of driving data in the current first intermediate data set.

[0021] S2023, set variable g=1.

[0022] S2024, if g≤m1, execute S2025; otherwise, execute S2027; m1 is the number of data in a piece of driving data in the current first intermediate data set.

[0023] S2025, if the g-th position L in the e-th driving data in the current first intermediate data set g The entrance section of the viaduct is L g The corresponding vehicle speed is added to the first speed set corresponding to the e-th driving data. If L g At the exit section of the viaduct, change L g The corresponding vehicle speed is added to the second speed set corresponding to the e-th driving data; the initial values ​​of the first speed set and the second speed set are empty.

[0024] S2026, set g=g+1, and execute S2024.

[0025] S2027: If the first speed set corresponding to the e-th driving data is not empty, and the second speed set corresponding to the e-th driving data is not empty, and the average vehicle speed V1 corresponding to the first speed set corresponding to the e-th driving data is e <V0 e , the average vehicle speed V2 corresponding to the second speed set corresponding to the e-th driving data e <V0 e And the average vehicle speed V3 corresponding to the third speed set corresponding to the e-th driving data e If the difference between the current speed threshold and the e-th driving data is greater than the set difference, the e-th driving data is regarded as abnormal data; eIt is the average vehicle speed of a unit driving section before the first vehicle speed in the first speed set in the driving data corresponding to the e-th driving data, or it is the average vehicle speed of a unit driving section after the last vehicle speed in the second speed set in the driving data corresponding to the e-th driving data. The third speed set corresponding to the e-th driving data is a data set formed by all vehicle speeds before the last vehicle speed in the first speed set and the first vehicle speed in the second speed set in the driving data corresponding to the e-th driving data.

[0026] S2028: Delete the abnormal data in the current first intermediate data set to obtain the current first intermediate data set with the abnormal data deleted, as the current second intermediate data set.

[0027] Furthermore, S500 also includes:

[0028] If the difference between N1 and N10 is greater than the set value, or if the difference between N2 and N20 is greater than the set value, the current ground speed threshold is set to the set speed threshold.

[0029] According to a second aspect of the present invention, there is provided a data processing device, the device comprising:

[0030] The acquisition module is used to acquire the driving data of all vehicles passing through a set road section within a current time window as the current data set to be processed; an elevated bridge is set on the set road section.

[0031] A processing module is used to obtain abnormal data from a current data set to be processed and delete the obtained abnormal data from the current data set to be processed, so as to obtain the data set to be processed with the abnormal data deleted as the current intermediate data set; the abnormal data is driving data corresponding to a first type of vehicle, and the first type of vehicle is a vehicle passing through an elevated bridge.

[0032] The updating module is used to obtain the vehicle speed characteristic value corresponding to the vehicle speed information in the current intermediate data set based on the current vehicle speed characteristic value determination method to update the current ground vehicle speed threshold, obtain the updated current ground vehicle speed threshold and use it as the current ground vehicle speed threshold, and add it to the current vehicle speed threshold set.

[0033] The first determination module is used to use the current ground vehicle speed threshold as a candidate ground vehicle speed threshold when it is determined that the current vehicle speed threshold set includes the current ground vehicle speed threshold and the deviations corresponding to m consecutive vehicle speed thresholds are less than a second set deviation.

[0034] The second determination module is used to obtain the driving data of all vehicles passing through the set road section in at least one time window after the current time window based on the current candidate ground vehicle speed threshold, and obtain the number N1 of first-category vehicles and the number N2 of second-category vehicles corresponding to each time window based on the obtained driving data. If the difference between N1 corresponding to any time window and the first reference number N10 is less than or equal to the set value, and the difference between N2 corresponding to any time window and the second reference number N20 is less than or equal to the set value, the current candidate ground vehicle speed threshold is used as the target ground vehicle speed threshold, N10 is the reference number of all vehicles passing through the set road section in any time window within at least one time window after the current time window, and N20 is the reference number of all vehicles belonging to the second category among all vehicles passing through the set road section in any time window, and the second category vehicles are vehicles that only travel on the ground.

[0035] The vehicle speed determination module is used to obtain the ground average vehicle speed corresponding to the set road section based on the target ground vehicle speed threshold and the driving data of all vehicles passing through the set road section in the current time window.

[0036] Furthermore, the second determining module is further used for:

[0037] If the difference between N1 and N10 is greater than the set value, or if the difference between N2 and N20 is greater than the set value, the current ground vehicle speed threshold is set to the initial value and the current vehicle speed characteristic value determination method is updated.

[0038] According to a third aspect of the present invention, there is provided an electronic device comprising a processor and a memory; the processor is used to execute the steps of the method described in the first aspect of the present invention by calling a program or instruction stored in the memory.

[0039] According to a fourth aspect of the present invention, there is provided a non-transitory computer-readable storage medium storing a program or instructions, wherein the program or instructions enable a computer to execute the steps of the method described in the first aspect of the present invention.

[0040] The present invention has at least the following beneficial effects:

[0041] The data processing method provided by the embodiment of the present invention first obtains abnormal data from the driving data of all vehicles passing through the set road section within the current time window and deletes the abnormal data as the current intermediate data set. Then, based on the current vehicle speed characteristic value determination method, the vehicle speed characteristic value corresponding to the vehicle speed information in the current intermediate data set is obtained to update the current ground vehicle speed threshold, and the updated current ground vehicle speed threshold is obtained and used as the current ground vehicle speed threshold, and is added to the current vehicle speed threshold set. If the current vehicle speed threshold set includes the current ground vehicle speed threshold and the deviation corresponding to m consecutive vehicle speed thresholds is less than the second set deviation, the current ground vehicle speed threshold is used as the candidate ground vehicle speed threshold. Then, based on the current candidate The ground speed threshold obtains the driving data of all vehicles passing through the set section in at least one time window after the current time window, and obtains the number N1 of the first type of vehicles and the number N2 of the second type of vehicles corresponding to each time window based on the obtained driving data. If the difference between N1 corresponding to any time window and the first reference number N10 is less than or equal to the set value, and the difference between N2 corresponding to any time window and the second reference number N20 is less than or equal to the set value, the current candidate ground speed threshold is used as the target ground speed threshold. Finally, based on the target ground speed threshold and the driving data of all vehicles passing through the set section in the current time window, the ground average speed corresponding to the set section is obtained. Since the speed on the viaduct is eliminated, the present invention can accurately obtain the ground speed of the road with the viaduct.

[0042] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 A flowchart of a data processing method provided by an embodiment of the present invention;

[0045] Figure 2 A structural block diagram of a data processing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] 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 only 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.

[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0048] It should be noted that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0049] The embodiment of the present invention provides a data processing method, such as Figure 1 As shown, the method may include the following steps:

[0050] S100, obtaining driving data of all vehicles passing through a set road section within a current time window as a current data set to be processed; an elevated bridge is arranged on the set road section.

[0051] In the embodiment of the present invention, the set section can be any designated section with an elevated bridge in the target area. The starting point and the end point of the set section can be locations designated by the user.

[0052] In the embodiment of the present invention, the duration of the time window can be set based on actual needs, for example, it can be determined based on the historical duration data required by the set road section, for example, the historical duration data includes Q duration data, the i-th duration data t i The time required for a vehicle to pass through a set road section is 1 to Q. Thus, the time window duration Δt can be determined based on these Q time duration data. In an exemplary embodiment, Δt=(t 1 +t 2 +……+t i +……+t Q ) / Q. In another exemplary embodiment, Δt=max(t 1 , t 2,……,t i ,……,t Q ), max() means taking the maximum value.

[0053] In the embodiment of the present invention, the driving data may include the vehicle ID, the vehicle speed, the position and time corresponding to the vehicle speed. Taking any driving data r as an example, the driving data may be specifically expressed as (U r , V r , L r , T r ), r ranges from 1 to N, where N is the number of driving data. r is the vehicle ID corresponding to the driving data r, V r The vehicle speed information corresponding to the driving data r, L r is the location information corresponding to the driving data r, T r is the time information corresponding to the driving data r. r ={T r1 , T r2 , ..., T rh , ..., T rp}, T rh T r The hth collection moment in V, where h ranges from 1 to p, and p is the number of collection moments corresponding to the current time window. r ={V r1 , V r2 , ..., V rh , ..., V rp},V rh T rh The corresponding vehicle speed, L r ={L r1 , L r2 , ..., L rh , ..., L rp}, L rh V rh The corresponding position.

[0054] In the embodiment of the present invention, each vehicle reports driving data at relatively stable time intervals.

[0055] Those skilled in the art know that the location information of the vehicle can be obtained based on a corresponding GPS device.

[0056] S200, obtaining abnormal data from the current data set to be processed and deleting the obtained abnormal data from the current data set to be processed, so as to obtain the data set to be processed with the abnormal data deleted as the current intermediate data set; the abnormal data is driving data corresponding to the first type of vehicle, and the first type of vehicle is a vehicle passing through an elevated bridge.

[0057] Furthermore, in the embodiment of the present invention, S200 may specifically include:

[0058] S201, traversing the current data set to be processed, if the vehicle speed deviation corresponding to a certain driving data in the current data set to be processed is less than or equal to a first set deviation, adding the data to the current first intermediate data set.

[0059] In an embodiment of the present invention, the initial value of the current ground vehicle speed threshold may be a set initial vehicle speed. The set initial vehicle speed may be obtained based on historical vehicle speed data, and the historical vehicle speed data may be vehicle speed data of a vehicle traveling on a ground road of a set road section monitored by a monitoring device within a set time period. In an illustrative embodiment, the set vehicle speed may be equal to the average value of all vehicle speeds in the historical vehicle speed data.

[0060] In the embodiment of the present invention, the first set deviation may be an empirical value. The initial value of the current first intermediate data set is a null value.

[0061] In the embodiment of the present invention, the vehicle speed deviation f may satisfy the following condition: f=(∑ n u=1 (V u -AvgV) 2 ) / n,V u is the u-th vehicle speed in the data to be processed, u ranges from 1 to n, n is the number of vehicle speeds in the data to be processed, AvgV is the average vehicle speed in the data to be processed, AvgV=(∑ n u=1 V u ) / n.

[0062] In an embodiment of the present invention, if the vehicle speed deviation corresponding to a certain data is less than or equal to a first set deviation, it means that the vehicle speed stability in the data is good, and it is very likely that the vehicle is driving on an elevated bridge. If it is greater than the first set deviation, it means that the vehicle speed stability in the data is poor, and it is possible that the vehicle is driving on a ground road.

[0063] S202, traverse the current first intermediate data set, if the vehicle speed information corresponding to a certain driving data in the current first intermediate data set meets the preset conditions, delete the driving data from the current first intermediate data set as abnormal data; obtain the current first intermediate data set with the abnormal data deleted as the current second intermediate data set.

[0064] In the embodiment of the present invention, the preset condition is:

[0065] The vehicle speeds corresponding to the entrance section and the exit section of the viaduct are both less than the current ground vehicle speed threshold, and the difference between the vehicle speed between the entrance section and the exit section and the current ground vehicle speed threshold is greater than the set difference.

[0066] In the embodiment of the present invention, the set difference value may be set based on actual needs. In an exemplary embodiment, the set difference value may be w times the current ground vehicle speed threshold value, 0<w<1. Preferably, 0.2≤w≤0.5.

[0067] In an embodiment of the present invention,

[0068] Further, S202 specifically includes:

[0069] S2021, set variable e=1;

[0070] S2022, if e≤n1, execute S2023; otherwise, execute S2028; n1 is the number of driving data in the current first intermediate data set;

[0071] S2023, set variable g=1;

[0072] S2024, if g≤m1, execute S2025; otherwise, execute S2027; m1 is the number of data in a piece of driving data in the current first intermediate data set;

[0073] S2025, if the g-th position L in the e-th driving data in the current first intermediate data set g The entrance section of the viaduct is L g The corresponding vehicle speed is added to the first speed set corresponding to the e-th driving data. If L g At the exit section of the viaduct, change L g The corresponding vehicle speed is added to the second speed set corresponding to the e-th driving data; the initial values ​​of the first speed set and the second speed set are empty;

[0074] S2026, set g=g+1, and execute S2024;

[0075] S2027: If the first speed set corresponding to the e-th driving data is not empty, and the second speed set corresponding to the e-th driving data is not empty, and the average vehicle speed V1 corresponding to the first speed set corresponding to the e-th driving data is less than V0 e , the average vehicle speed V2 corresponding to the second speed set corresponding to the e-th driving data e <V0 e And the average vehicle speed V3 corresponding to the third speed set corresponding to the e-th driving data e If the difference between the current speed threshold and the e-th driving data is greater than the set difference, the e-th driving data is regarded as abnormal data; eIt is the average vehicle speed of a unit driving section before the first vehicle speed in the first speed set in the driving data corresponding to the e-th driving data, or it is the average vehicle speed of a unit driving section after the last vehicle speed in the second speed set in the driving data corresponding to the e-th driving data. The third speed set corresponding to the e-th driving data is a data set formed by all vehicle speeds before the last vehicle speed in the first speed set and the first vehicle speed in the second speed set in the driving data corresponding to the e-th driving data.

[0076] In the embodiment of the present invention, a unit driving section refers to the section between two adjacent traffic lights on the set section. In the embodiment of the present invention, the average vehicle speed of a unit driving section before the entrance section or a unit driving section after the exit section is used as V0 e This can avoid the situation where the average speed calculated using all road sections is too low due to traffic congestion or traffic control parking, which makes it impossible to see the speed comparison.

[0077] Since the ground is generally unstable, S2027 can filter out the speed of vehicles passing the viaduct as accurately as possible, avoiding classifying vehicles traveling at a constant speed on the ground road as vehicles passing the viaduct, i.e., eliminating vehicles traveling at a constant speed on the ground road.

[0078] S2028: Delete the abnormal data in the current first intermediate data set to obtain the current first intermediate data set with the abnormal data deleted, as the current second intermediate data set.

[0079] S203: taking the union of the data sets except the current first intermediate data set in the current data set to be processed and the current second intermediate data set as the current intermediate data set, that is, obtaining the driving data on the ground road.

[0080] S300, based on the current vehicle speed characteristic value determination method, obtain the vehicle speed characteristic value corresponding to the vehicle speed information in the current intermediate data set to update the current ground vehicle speed threshold, obtain the updated current ground vehicle speed threshold and use it as the current ground vehicle speed threshold, and add it to the current vehicle speed threshold set.

[0081] In an embodiment of the present invention, the updated current ground vehicle speed threshold and the vehicle speed information in the current intermediate data set satisfy the following condition: y=f(x), y is the updated current ground vehicle speed threshold, and f(x) is the vehicle speed characteristic value corresponding to the vehicle speed x in the vehicle speed information in the current intermediate data set.

[0082] In the embodiment of the present invention, the vehicle speed characteristic value may be set based on actual needs. In an exemplary embodiment, the vehicle speed characteristic value may at least include an average vehicle speed, three-quarter vehicle speed, maximum vehicle speed, minimum vehicle speed, vehicle speed mode, etc. Correspondingly, the vehicle speed characteristic value determination method at least includes determining the vehicle speed characteristic value according to the average vehicle speed, three-quarter vehicle speed, maximum vehicle speed, minimum vehicle speed, vehicle speed mode, etc.

[0083] In an embodiment of the present invention, each time the ground vehicle speed threshold is iterated, the corresponding vehicle speed characteristic value is different, that is, the vehicle speed characteristic value corresponding to the current time window is different from the vehicle speed characteristic value corresponding to the previous time window. For example, the last time was three-quarters of the average vehicle speed, and this time it may be the average vehicle speed, etc.

[0084] S400: If the current vehicle speed threshold set includes the current ground vehicle speed threshold and the deviations corresponding to the m consecutive vehicle speed thresholds are less than a second set deviation, the current ground vehicle speed threshold is used as the current candidate ground vehicle speed threshold.

[0085] In the embodiment of the present invention, the second set deviation can be set based on actual needs and can be an empirical value. If the current vehicle speed threshold includes the current ground vehicle speed threshold and the deviations corresponding to the m consecutive vehicle speed thresholds are less than the second set deviation, it means that the current ground vehicle speed threshold tends to be stable.

[0086] In the embodiment of the present invention, m≥2, and the specific value can be set based on actual needs.

[0087] In the embodiment of the present invention, the deviation corresponding to the m vehicle speed thresholds may satisfy the following condition: dv=(∑ n2 u1=1 (V u1 -AvgV1) 2 ) / n2,V u1 is the u1th speed threshold among the m speed thresholds, the value of u1 ranges from 1 to n2, n2 is the number of speed thresholds among the m speed thresholds, AvgV1 is the average speed threshold among the m speed thresholds, AvgV1=(∑ n2 u1=1 V u1 ) / n2.

[0088] S500, based on the current candidate ground speed threshold, obtain the driving data of all vehicles passing through the set road section in at least one time window after the current time window, and obtain the number N1 of first-category vehicles and the number N2 of second-category vehicles corresponding to each time window after the current time window based on the driving data of all vehicles passing through the set road section in at least one time window after the current time window, if the difference between N1 corresponding to any time window and the first reference number N10 is less than or equal to the set value d, and the difference between the corresponding N2 and the second reference number N20 is less than or equal to the set value d, that is, if N1 and N2 corresponding to any time window satisfy: |N1-N10|≤d, and |N2-N20|≤d, the current candidate ground speed threshold is used as the target ground speed threshold, N10 is the reference number of all vehicles belonging to the first category passing through the set road section in any time window within at least one time window after the current time window, N20 is the reference number of all vehicles belonging to the second category passing through the set road section in any time window within at least one time window after the current time window, d is a set value, and the second category vehicles are vehicles that only travel on the ground.

[0089] In the embodiment of the present invention, the number of parameters of the first category of vehicles and the second category of vehicles can be obtained based on the data monitored by the monitoring device.

[0090] In the embodiment of the present invention, d can be set based on actual needs. If the difference between N1 corresponding to any time window and the first reference number N10 is less than or equal to the set value d, and the difference between N2 corresponding to any time window and the second reference number N20 is less than or equal to the set value d, it means that the number of the first category of vehicles and the second category of vehicles obtained according to the current candidate ground speed threshold is not much different from the corresponding parameter number, which means that the current candidate ground speed threshold is reasonable.

[0091] In the embodiment of the present invention, the subsequent at least one time window may include 3 to 5 time windows.

[0092] S600: Based on the target ground vehicle speed threshold and the driving data of all vehicles passing through the set road section in the current time window, obtain the ground average vehicle speed corresponding to the set road section.

[0093] Those skilled in the art know that the current time window in S600 is a time window after the time window corresponding to the target ground vehicle speed threshold is determined.

[0094] Furthermore, in an embodiment of the present invention, the ground average vehicle speed is the average vehicle speed corresponding to the current candidate data set obtained based on the acquisition method specified in S200, wherein the target ground vehicle speed threshold is used as a ground vehicle speed threshold for comparison with the vehicle speeds of the entrance section and exit section of the viaduct.

[0095] S600 may specifically include:

[0096] S601, traversing the driving data of all vehicles passing through the set road section in the current time window, if the speed deviation corresponding to a certain data in the driving data of all vehicles passing through the set road section in the current time window is less than or equal to a first set deviation, adding the data to the current first candidate data set;

[0097] S602, set variable e1=1;

[0098] S603, if e1≤z1, execute S604; otherwise, execute S609; z1 is the number of driving data in the current first candidate data set;

[0099] S604, set variable g1=1;

[0100] S605, if g1≤z2, execute S606; otherwise, execute S608; z2 is the number of data in a piece of driving data in the current first candidate data set;

[0101] S606: If the g1th position L in the e1th driving data in the current first candidate data set g1 For the entrance section of the viaduct, L g1 The corresponding vehicle speed is added to the first speed set corresponding to the e1th driving data. If L g1 At the exit section of the viaduct, change L g1 The corresponding vehicle speed is added to the second speed set corresponding to the e1th driving data; the initial values ​​of the first speed set and the second speed set are empty;

[0102] S607, set g1=g1+1, and execute S605;

[0103] S608: If the first speed set corresponding to the e1th driving data is not empty, and the second speed set corresponding to the e1th driving data is not empty, and the average vehicle speed V1 corresponding to the first speed set corresponding to the e1th driving data is e1 <V0 e1 , the average vehicle speed V2 corresponding to the second speed set corresponding to the e1th driving data e1 <V0 e1 , and the average vehicle speed V3 corresponding to the third speed set corresponding to the e1th driving data e1 The difference between the speed threshold and the target ground speed threshold is greater than the set difference, and the e1th driving data is regarded as abnormal data; wherein, V0 e1It is the average vehicle speed of a unit driving section before the first vehicle speed in the first speed set in the driving data corresponding to the e1-th driving data, or it is the average vehicle speed of a unit driving section after the last vehicle speed in the second speed set in the driving data corresponding to the e1-th driving data. The third speed set corresponding to the e1-th driving data is a data set formed by all vehicle speeds before the last vehicle speed in the first speed set and the first vehicle speed in the second speed set in the driving data corresponding to the e1-th driving data.

[0104] S609: Delete the abnormal data in the current first subsequent data set to obtain the current first subsequent data set with the data set deleted, as the current second subsequent data set.

[0105] S610, taking the union of the data sets other than the current first candidate data set and the current second candidate data set in the driving data of all vehicles passing through the set road section within the current time window as the current candidate data set, and obtaining the average vehicle speed corresponding to the current candidate data set as the ground average vehicle speed corresponding to the set road section.

[0106] Furthermore, in the embodiment of the present invention, S500 further includes:

[0107] If the difference between N1 and N10 is greater than the set value, or if the difference between N2 and N20 is greater than the set value, that is, if |N1-N10|>d, or, |N2-N20|>d, set the current ground vehicle speed threshold to the initial value and update the current vehicle speed characteristic value determination method, execute S100 to continue updating the current ground vehicle speed threshold.

[0108] Furthermore, in another embodiment of the present invention, S500 further includes:

[0109] If the difference between N1 and N10 is greater than the set value, or if the difference between N2 and N20 is greater than the set value, the current ground speed threshold is set to the set speed threshold.

[0110] In the embodiment of the present invention, the set vehicle speed threshold may be a vehicle speed threshold specified by a user, for example, may be a mode of historical vehicle speed thresholds.

[0111] Based on the same inventive concept, an embodiment of the present invention further provides a data processing device, such as Figure 2 As shown, the device includes an acquisition module 1, a processing module 2, an update module 3, a first determination module 4, a second determination module 5 and a vehicle speed determination module 6. Among them:

[0112] The acquisition module 1 is used to acquire the driving data of all vehicles passing through a set road section within a current time window as the current data set to be processed; an elevated bridge is set on the set road section.

[0113] Processing module 2 is used to obtain abnormal data from the current data set to be processed and delete the acquired abnormal data from the current data set to be processed, so as to obtain the data set to be processed with the abnormal data deleted as the current intermediate data set; the abnormal data is the driving data corresponding to the first type of vehicle, and the first type of vehicle is the vehicle passing through the viaduct.

[0114] The updating module 3 is used to obtain the vehicle speed characteristic value corresponding to the vehicle speed information in the current intermediate data set based on the current vehicle speed characteristic value determination method to update the current ground vehicle speed threshold, obtain the updated current ground vehicle speed threshold and use it as the current ground vehicle speed threshold, and add it to the current vehicle speed threshold set.

[0115] A first determination module 4 is used to use the current ground vehicle speed threshold as a candidate current ground vehicle speed threshold when it is determined that the current vehicle speed threshold set includes the current ground vehicle speed threshold and the deviations corresponding to the m consecutive vehicle speed thresholds are less than a second set deviation;

[0116] The second determination module 5 is used to obtain the driving data of all vehicles passing through the set road section in at least one time window after the current time window based on the current candidate ground vehicle speed threshold, and obtain the number N1 of first-category vehicles and the number N2 of second-category vehicles corresponding to each time window after the current time window based on the driving data of all vehicles passing through the set road section in at least one time window after the current time window. If the difference between N1 corresponding to any time window and the first reference number N10 is less than or equal to the set value, and the difference between the corresponding N2 and the second reference number N20 is less than or equal to the set value, the current candidate ground vehicle speed threshold is used as the target ground vehicle speed threshold, N10 is the reference number of all vehicles belonging to the first category passing through the set road section in any time window within at least one time window after the current time window, and N20 is the reference number of all vehicles belonging to the second category passing through the set road section in any time window within at least one time window after the current time window, and the second category vehicles are vehicles that only travel on the ground.

[0117] The vehicle speed determination module 6 is used to obtain the ground average vehicle speed corresponding to the set road section based on the target ground vehicle speed threshold and the driving data of all vehicles passing through the set road section in the current time window.

[0118] Furthermore, the second determining module is further used for:

[0119] If the difference between N1 and N10 is greater than the set value, or if the difference between N2 and N20 is greater than the set value, that is, if |N1-N10|>d, or if |N2-N20|>d, set the current ground vehicle speed threshold to the initial value and update the current vehicle speed characteristic value determination method.

[0120] Furthermore, the updated current ground vehicle speed threshold and the vehicle speed information in the current intermediate data set satisfy the following conditions: y=f(x), y is the updated current ground vehicle speed threshold, x is the vehicle speed in the vehicle speed information in the current intermediate data set, and f() is the set function expression.

[0121] Furthermore, the processing module is specifically used for:

[0122] S21, traversing the current data set to be processed, if the vehicle speed deviation corresponding to a certain driving data in the current data set to be processed is greater than a first set deviation, adding the driving data to the current first intermediate data set.

[0123] S22, traverse the current first intermediate data set, if the vehicle speed information corresponding to a certain driving data in the current first intermediate data set meets the preset conditions, delete the driving data from the current first intermediate data set as abnormal data; obtain the current first intermediate data set with the abnormality deleted as the current second intermediate data set.

[0124] S23: taking a union of the data sets in the current data set to be processed except the current first intermediate data set and the current second intermediate data set as the current intermediate data set.

[0125] Furthermore, S22 specifically includes:

[0126] S221, set variable e=1;

[0127] S222, if e≤n1, execute S223; otherwise, execute S228; n1 is the number of driving data in the current first intermediate data set;

[0128] S223, set variable g=1;

[0129] S224, if g≤m1, execute S225; otherwise, execute S227; m1 is the number of data in a piece of driving data in the current first intermediate data set;

[0130] S225, if the g-th position L in the e-th driving data in the current first intermediate data set g For the entrance section of the viaduct, L g The corresponding vehicle speed is added to the first speed set corresponding to the e-th driving data. If L g At the exit section of the viaduct, change L g The corresponding vehicle speed is added to the second speed set corresponding to the e-th driving data; the initial values ​​of the first speed set and the second speed set are empty;

[0131] S226, set g=g+1, and execute S224;

[0132] S227, if the first speed set corresponding to the e-th driving data is not empty, and the second speed set corresponding to the e-th driving data is not empty, and the average vehicle speed V1 corresponding to the first speed set corresponding to the e-th driving data is less than V0, the average vehicle speed V2 corresponding to the second speed set corresponding to the e-th driving data is less than V0, and the difference between the average vehicle speed V3 corresponding to the third speed set corresponding to the e-th driving data and the current vehicle speed threshold is greater than the set difference, the e-th driving data is taken as abnormal data; wherein V0 is the average vehicle speed of a unit driving section before the first vehicle speed in the first speed set in the driving data corresponding to the e-th driving data or the average vehicle speed of a unit driving section after the last vehicle speed in the second speed set in the driving data corresponding to the e-th driving data, and the third speed set corresponding to the e-th driving data is a data set formed by all vehicle speeds in the driving data corresponding to the e-th driving data that are between the last vehicle speed in the first speed set and the first vehicle speed in the second speed set;

[0133] S228, deleting the abnormal data in the current first intermediate data set to obtain the current first intermediate data set with the abnormal data deleted, as the current second intermediate data set.

[0134] Furthermore, in an embodiment of the present invention, the current time window used by the vehicle speed determination module is a time window after the time window corresponding to the target ground vehicle speed threshold is determined; the ground average vehicle speed is the average vehicle speed corresponding to the current candidate data set obtained based on the acquisition method defined by the first determination module, wherein the target ground vehicle speed threshold is used as a ground vehicle speed threshold for comparison with the vehicle speeds of the entrance and exit sections of the viaduct.

[0135] Furthermore, the second determining module is further used for:

[0136] If the difference between N1 and N10 is greater than the set value, or if the difference between N2 and N20 is greater than the set value, the current ground speed threshold is set to the set speed threshold.

[0137] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are configured to execute the method described in the embodiment of the present invention.

[0138] The embodiment of the present invention further provides a non-transitory computer-readable storage medium storing computer-executable instructions, wherein the computer instructions are used to execute the method described in the embodiment of the present invention.

[0139] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document does not limit this.

[0140] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A data processing method, characterized in that: The method comprises the following steps: S100, obtaining the driving data of all vehicles passing through a set road section within a current time window as a current data set to be processed; the set road section is provided with an elevated bridge; S200, acquiring abnormal data from the current data set to be processed and deleting the acquired abnormal data from the current data set to be processed, so as to obtain the data set to be processed from which the abnormal data is deleted as the current intermediate data set; the abnormal data is driving data corresponding to the first type of vehicle, and the first type of vehicle is a vehicle passing through an elevated bridge; S300, based on the current vehicle speed characteristic value determination method, obtain the vehicle speed characteristic value corresponding to the vehicle speed information in the current intermediate data set to update the current ground vehicle speed threshold, obtain the updated current ground vehicle speed threshold and use it as the current ground vehicle speed threshold, and add it to the current vehicle speed threshold set; S400, if the current vehicle speed threshold set includes the current ground vehicle speed threshold and the deviations corresponding to the m consecutive vehicle speed thresholds are less than the second set deviation, the current ground vehicle speed threshold is used as the current candidate ground vehicle speed threshold; S500, based on the current candidate ground vehicle speed threshold, the driving data of all vehicles passing through the set road section in at least one time window after the current time window are obtained, and based on the driving data of all vehicles passing through the set road section in at least one time window after the current time window, the number N1 of first-category vehicles and the number N2 of second-category vehicles corresponding to each time window after the current time window are obtained, if the difference between N1 corresponding to any time window and the first reference number N10 is less than or equal to the set value, and the difference between the corresponding N2 and the second reference number N20 is less than or equal to the set value, the current candidate ground vehicle speed threshold is used as the target ground vehicle speed threshold, N10 is the reference number of all vehicles that pass through the set road section in any time window within at least one time window after the current time window, and N20 is the reference number of all vehicles that pass through the set road section in any time window within at least one time window after the current time window, and the second-category vehicles are vehicles that only travel on the ground; S600, obtaining a ground average vehicle speed corresponding to the set road section based on the target ground vehicle speed threshold and the driving data of all vehicles passing through the set road section in the current time window; S200 specifically includes: S201, traversing the current data set to be processed, if the vehicle speed deviation corresponding to a certain driving data in the current data set to be processed is less than or equal to a first set deviation, adding the driving data to the current first intermediate data set; S202, traversing the current first intermediate data set, if the vehicle speed information corresponding to a certain driving data in the current first intermediate data set meets the preset condition, deleting the driving data from the current first intermediate data set as abnormal data, and obtaining the current first intermediate data set with the abnormal data deleted as the current second intermediate data set; wherein the preset condition is: the vehicle speeds corresponding to the entrance section and the exit section of the viaduct are both less than the current ground vehicle speed threshold, and the difference between the vehicle speed between the entrance section and the exit section and the current ground vehicle speed threshold is greater than the set difference; S203, taking a union of the data sets in the current data set to be processed except the current first intermediate data set and the current second intermediate data set as the current intermediate data set; Among them, the current time window in S600 is the time window after the time window corresponding to the target ground speed threshold is determined; the ground average speed is the average speed corresponding to the current candidate data set obtained based on the acquisition method defined in S200, wherein the target ground speed threshold is used as the ground speed threshold for comparison with the speed of the entrance section and exit section of the viaduct.

2. The data processing method according to claim 1, characterized in that: The S500 also includes: If the difference between N1 and N10 is greater than the set value, or if the difference between N2 and N20 is greater than the set value, the current ground vehicle speed threshold is set to the initial value and the current vehicle speed characteristic value determination method is updated, and S100 is executed.

3. The data processing method according to claim 1 or 2, characterized in that: The updated current ground vehicle speed threshold and the vehicle speed information in the current intermediate data set satisfy the following conditions: y=f(x), y is the updated current ground vehicle speed threshold, x is the vehicle speed in the vehicle speed information in the current intermediate data set, and f() is the set function expression.

4. The data processing method according to claim 1, characterized in that: S202 specifically includes: S2021, set variable e=1; S2022, if e≤n1, execute S2023; otherwise, execute S2028; n1 is the number of driving data in the current first intermediate data set; S2023, set variable g=1; S2024, if g≤m1, execute S2025; otherwise, execute S2027; m1 is the number of data in a piece of driving data in the current first intermediate data set; S2025, if the g-th position L in the e-th driving data in the current first intermediate data set g The entrance section of the viaduct is L g The corresponding vehicle speed is added to the first speed set corresponding to the e-th driving data. If L g At the exit section of the viaduct, change L g The corresponding vehicle speed is added to the second speed set corresponding to the e-th driving data; the initial values ​​of the first speed set and the second speed set are empty; S2026, set g=g+1, and execute S2024; S2027: If the first speed set corresponding to the e-th driving data is not empty, and the second speed set corresponding to the e-th driving data is not empty, and the average vehicle speed V1 corresponding to the first speed set corresponding to the e-th driving data is e <V0 e , the average vehicle speed V2 corresponding to the second speed set corresponding to the e-th driving data e <V0 e And the average vehicle speed V3 corresponding to the third speed set corresponding to the e-th driving data e If the difference between the current speed threshold and the e-th driving data is greater than the set difference, the e-th driving data is regarded as abnormal data; e is the average vehicle speed of a unit driving section before the first vehicle speed in the first speed set in the driving data corresponding to the e-th driving data, or is the average vehicle speed of a unit driving section after the last vehicle speed in the second speed set in the driving data corresponding to the e-th driving data; the third speed set corresponding to the e-th driving data is a data set formed by all vehicle speeds in the driving data corresponding to the e-th driving data that are located in the first speed set and before the last vehicle speed in the second speed set; S2028: Delete the abnormal data in the current first intermediate data set to obtain the current first intermediate data set with the abnormal data deleted, as the current second intermediate data set.

5. The data processing method according to claim 1, characterized in that: The S500 also includes: If the difference between N1 and N10 is greater than the set value, or if the difference between N2 and N20 is greater than the set value, the current ground speed threshold is set to the set speed threshold.

6. A data processing device, characterized in that: The device comprises: An acquisition module is used to acquire the driving data of all vehicles passing through a set road section within a current time window as a current data set to be processed; an elevated bridge is set on the set road section; A processing module is used to obtain abnormal data from the current data set to be processed and delete the obtained abnormal data from the current data set to be processed, so as to obtain the data set to be processed from which the abnormal data is deleted as the current intermediate data set; the abnormal data is the driving data corresponding to the first type of vehicle, and the first type of vehicle is a vehicle passing through an elevated bridge; An updating module is used to obtain the vehicle speed characteristic value corresponding to the vehicle speed information in the current intermediate data set based on the current vehicle speed characteristic value determination method to update the current ground vehicle speed threshold, obtain the updated current ground vehicle speed threshold and use it as the current ground vehicle speed threshold, and add it to the current vehicle speed threshold set; A first determination module is used to use the current ground vehicle speed threshold as the current candidate ground vehicle speed threshold when it is determined that the current vehicle speed threshold set includes the current ground vehicle speed threshold and the deviations corresponding to the m consecutive vehicle speed thresholds are less than a second set deviation; A second determination module is used to obtain the driving data of all vehicles passing through the set road section in at least one time window after the current time window based on the current candidate ground vehicle speed threshold, and obtain the number N1 of first-category vehicles and the number N2 of second-category vehicles corresponding to each time window after the current time window based on the obtained driving data of all vehicles passing through the set road section in at least one time window after the current time window, if the difference between N1 corresponding to any time window and the first reference number N10 is less than or equal to the set value, and the difference between the corresponding N2 and the second reference number N20 is less than or equal to the set value, the current candidate ground vehicle speed threshold is used as the target ground vehicle speed threshold, N10 is the reference number of all vehicles belonging to the first category passing through the set road section in any time window within at least one time window after the current time window, and N20 is the reference number of all vehicles belonging to the second category passing through the set road section in any time window within at least one time window after the current time window, and the second category vehicles are vehicles that only travel on the ground; A vehicle speed determination module, configured to obtain a ground average vehicle speed corresponding to the set road section based on the target ground vehicle speed threshold and the driving data of all vehicles passing through the set road section within a current time window; The processing module is specifically used for: S21, traversing the current data set to be processed, if the vehicle speed deviation corresponding to a certain driving data in the current data set to be processed is less than or equal to a first set deviation, adding the driving data to the current first intermediate data set; S22, traversing the current first intermediate data set, if the vehicle speed information corresponding to a certain driving data in the current first intermediate data set meets the preset condition, deleting the driving data from the current first intermediate data set as abnormal data; obtaining the current first intermediate data set with the abnormality deleted as the current second intermediate data set; wherein the preset condition is: the vehicle speeds corresponding to the entrance section and the exit section of the viaduct are both less than the current ground vehicle speed threshold, and the difference between the vehicle speed between the entrance section and the exit section and the current ground vehicle speed threshold is greater than the set difference; S23, taking a union of the data sets in the current data set to be processed except the current first intermediate data set and the current second intermediate data set as the current intermediate data set; Among them, the current time window used by the vehicle speed determination module is the time window after the time window corresponding to the target ground vehicle speed threshold is determined; the ground average vehicle speed is the average vehicle speed corresponding to the current candidate data set obtained based on the acquisition method defined by the first determination module, wherein the target ground vehicle speed threshold is used as the ground vehicle speed threshold for comparison with the vehicle speeds of the entrance and exit sections of the viaduct.

7. The data processing device according to claim 6, characterized in that: The second determining module is further used for: If the difference between N1 and N10 is greater than the set value, or if the difference between N2 and N20 is greater than the set value, the current ground vehicle speed threshold is set to the initial value and the current vehicle speed characteristic value determination method is updated.

8. An electronic device, characterized in that: including a processor and a memory; The processor is used to execute the steps of the method according to any one of claims 1 to 5 by calling the program or instruction stored in the memory.

9. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium is used to store a program or instruction, and the program or instruction enables a computer to execute the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Traffic jam state identification method, device and apparatus

    CN112053558A

  • Data processing system for determining abnormal road section

    CN116052434A