Traffic big data processing method, electronic equipment and storage medium

By adopting the cleaning method of multi-source data collector and data agent sub-node in the urban transportation system, the problem of data quality is solved, the accuracy and consistency of the data are improved, and an efficient data foundation is provided for the intelligent transportation system to support more Safe and environmentally friendly traffic management.

CN118733576APending Publication Date: 2024-10-01HUBEI UNIV OF TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410816922.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing traffic data collection and transmission systems often encounter data quality problems when faced with large-scale and complex urban traffic networks, such as sensor failures, communication interruptions and storage system errors, leading to the generation of 'dirty data' and affecting intelligence. The quality of decision-making in the transportation system may even lead to increased traffic congestion and accident risks.

Method used

An urban traffic big data processing method based on multi-source data collectors is used to perform preliminary cleaning through data agent sub-nodes and secondary cleaning of data center nodes, data repair is performed based on time and space dimensions, and message queues are used to ensure data accuracy. and consistency, using multi-Agent stream data collection and stream data processing engines for real-time integration and cleaning.

Benefits of technology

It significantly improves the quality and availability of urban traffic data, provides a solid data foundation for intelligent transportation systems, and supports the realization of more efficient, safe and environmentally friendly urban traffic management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733576A_ABST
    Figure CN118733576A_ABST
Patent Text Reader

Abstract

The invention discloses a traffic big data processing method, which comprises the following steps that: data acquired by a multi-source data acquisition unit is sent to a data agent sub-node, and the data agent sub-node performs primary preliminary cleaning on the acquired multi-source data and then gathers the data to a data center node; the data center node performs secondary cleaning on the received data subjected to primary preliminary cleaning, and sends the data to a message queue after cleaning is completed; and the message queue restores the data subjected to secondary cleaning according to time and space dimensions to obtain clean data. According to the invention, the quality and availability of urban traffic data are improved, so that a solid data basis is provided for an intelligent traffic system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the acceleration of urbanization, urban transportation systems are facing increasing pressure, and intelligent transportation systems (ITS) have become an indispensable part of urban traffic management and control systems. The efficient operation of ITS depends on the accuracy, completeness and reliability of the basic database of traffic flow, which together constitute the cornerstone of intelligent decision-making and traffic optimization. However, in reality, the existing traffic data collection and transmission systems often encounter various challenges when facing large-scale and complex urban transportation networks, resulting in frequent data quality problems.

[0003] Traffic data may encounter a variety of problems during the collection, transmission and storage process, such as sensor failure, communication interruption, storage system error, etc. These problems may lead to the generation of so-called "dirty data". Dirty data refers to inaccurate, incomplete or inconsistent data. Their existence will seriously affect the decision-making quality of intelligent transportation systems and may even lead to wrong traffic management decisions, resulting in serious consequences such as traffic congestion and increased accident risks.

[0004] In order to ensure the data quality of the basic traffic database, these basic data must be thoroughly cleaned before being put into use. The traditional data cleaning process includes analysis of data attributes, formulation of cleaning strategies, verification of cleaning results, processing of dirty data, and data updates. This process often requires taking corresponding processing measures for different types of data problems, such as data errors, data missing, and data inconsistencies, making the entire cleaning work complicated and time-consuming.

[0005] In addition, existing data cleaning technologies have also shown certain limitations when dealing with challenges in practical applications. Some methods may work well when dealing with simple data problems, but lack accuracy; while other methods, although they can theoretically provide higher accuracy, are too complex to be applied in real-time or near-real-time traffic systems. Summary of the invention

[0006] The purpose of the embodiments of the present invention is to address the above-mentioned problems. The present invention proposes a method for processing urban traffic big data based on a multi-source data collector, an electronic device and a storage medium, aiming to improve the quality and availability of urban traffic data, thereby providing a solid data foundation for the intelligent transportation system and supporting more efficient, safe and environmentally friendly urban traffic management.

[0007] In the first aspect, in order to solve the above technical problems, an embodiment of the present invention provides a method for real-time processing of traffic big data, the method comprising:

[0008] The data collected by the multi-source data collector is sent to the data proxy sub-node, and the data proxy sub-node performs a preliminary cleaning on the collected multi-source data and then aggregates it to the data center node;

[0009] The data center node performs secondary cleaning on the received data after the primary cleaning, and sends the data to the message queue after the cleaning is completed;

[0010] The message queue repairs the data after secondary cleaning according to the time and space dimensions to obtain clean data.

[0011] Preferably, the data proxy sub-node performs a preliminary cleaning on the collected multi-source data and then aggregates them to the data center node, specifically including:

[0012] A first static interceptor is set in the data proxy subnode, and the first static interceptor extracts multiple fixed valid fields from each piece of original collected data and splices them into new data, wherein the fixed valid fields include collection time, collector type, collector location, vehicle flow, passing vehicle type, and vehicle speed;

[0013] Different preliminary cleaning rules are set for multi-source collected data to filter out abnormal data and missing data, and mark them as abnormal data and missing data respectively. Data without missing data and abnormal data are marked as normal data.

[0014] Preferably, the data center node performs secondary cleaning on the received data after the primary cleaning, specifically including:

[0015] A second static interceptor is set at the data center node to sort the data marked as normal data according to the timestamp, and to identify isolated points of the data within a certain time interval according to different collector types;

[0016] If the independent point judgment determines that a data mutation occurs at a certain time node, the data with the data mutation is marked as drift data.

[0017] Furthermore, the method further comprises:

[0018] Set traffic indicators for each fixed valid field;

[0019] Fields that express the same traffic indicator meaning are marked with the same traffic indicator.

[0020] Preferably, the method of setting different preliminary cleaning rules for multi-source collected data to filter out abnormal data and missing data specifically includes:

[0021] If there are missing fields in the data, the missing fields are marked and the data are marked as missing data; if the data exceeds the traffic threshold, the data are marked as abnormal data.

[0022] Preferably, the message queue repairs the data after the second cleaning according to time and space maintenance, and the clean data obtained specifically includes:

[0023] Process the missing fields of missing data, and determine whether there are fields with the same traffic indicator mark in the data from other sources based on the fields marked with the same traffic indicator mark;

[0024] If it exists, confirm the collector type of the data containing this field according to the traffic indicator mark, query the normal data for data with a similar collection time, collector type and location as the missing data, and fill in and repair the missing data according to the queried data;

[0025] If it does not exist, historical time data is retrieved from the database and filled in based on the data from the previous day or days.

[0026] Furthermore, the method further comprises:

[0027] The data from different data collectors are spliced ​​to obtain the time series data corresponding to each time interval;

[0028] The time series data are supplemented by the Lagrangian method to obtain time-space dimension data with consistent acquisition density of time series data from different sources;

[0029] The traffic data within the same time node is repaired using the spatiotemporal dimension data.

[0030] In a second aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method as described above.

[0031] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method as described above.

[0032] The embodiment of the present invention is a real-time processing method based on multi-source urban traffic big data, which pays special attention to the diversity and complexity of urban traffic data. It uses multi-agent streaming data collection to stream and access the massive data from various traffic information systems including but not limited to checkpoints, electronic police, geomagnetism, coils, floating vehicles, etc., and inputs the data into the streaming data processing engine through the message queue to perform massive data calculation, so as to realize the real-time integration and cleaning of multi-source urban traffic big data, thereby effectively collecting and cleaning and verifying the multi-source traffic data in real time to ensure the accuracy and consistency of the data. Through the real-time processing method of the present invention, the quality and availability of urban traffic data can be significantly improved, thereby providing a solid data foundation for the intelligent transportation system and supporting the realization of more efficient, safe and environmentally friendly urban traffic management. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The preferred implementation modes will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of the present invention.

[0034] Figure 1 This is a flow chart of a method for processing traffic big data according to an embodiment of the present invention;

[0035] Figure 2 It is a schematic diagram of a model for realizing preliminary cleaning of traffic big data aggregation according to another embodiment of the present invention;

[0036] Figure 3 It is a schematic diagram of an implementation method of a traffic big data processing method according to another embodiment of the present invention;

[0037] Figure 4 It is a flow chart of a method for processing traffic big data according to another embodiment of the present invention;

[0038] Figure 5 It is a schematic diagram of an electronic device to which a high-speed big data cleaning method is applied according to an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0040] In order to simplify the drawings, only the parts related to the invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".

[0041] The following mainly takes some specific embodiments as examples to describe in detail the implementation of the technical solution of the present invention.

[0042] like Figure 1 As shown, an embodiment of the present invention provides a method for processing traffic big data, the method comprising:

[0043] S1. Send the data collected by the multi-source data collector to the data proxy subnode, and the data proxy subnode performs a preliminary cleaning on the collected multi-source data and then aggregates it to the data center node;

[0044] S2, the data center node performs a secondary cleaning on the received data after the primary cleaning, and sends the data to the message queue after the cleaning is completed;

[0045] S3. The message queue repairs the data after the second cleaning according to the time and space dimensions to obtain clean data.

[0046] Specifically, the data collected by the multi-source data collector is sent to the data proxy sub-node, and the data proxy sub-node aggregates the data to the data center node;

[0047] The embodiment of the present invention adopts a data flow model that converges multiple agent sub-nodes (Agents), and its basic working unit is a data agent sub-node Agent. In the multi-agent model, the data collected by Agent1, Agent2, and Agent3 located on different servers are converged to a central node Agent4, and then Agent4 counts and transmits the data to the next section.

[0048] In the data agent sub-Agent node, the workflow includes the following:

[0049] 1. Set the Source layer to obtain the streaming data to be cleaned collected by the multi-source data collector in real time and encapsulate it in Event format

[0050] The first static interceptor is set in the Source layer and the Channel layer to extract multiple fixed valid fields of the data collector that can reflect the traffic information from an original collected data, and splice them into a new data, which includes the collection time, collector type, collector location, traffic flow, passing vehicle type, and vehicle speed.

[0051] Then, according to the principles of traffic engineering, different preliminary cleaning rules are set for the collected data from different sources to screen out obvious abnormal data and missing data, and mark them as abnormal data and missing data respectively. If there are missing fields in the data, the missing fields are marked and marked as missing data; if the data exceeds the traffic threshold, the data is marked as abnormal data.

[0052] Data without missing or abnormal data are marked as normal data.

[0053] 2. Set up the Channel layer to cache the data after preliminary cleaning of multi-source collected data;

[0054] 3. Set at the Sink layer to output the data cached at the Channel layer;

[0055] In the central Agent node, the workflow includes:

[0056] Set the Source layer to obtain preliminary cleansing data output by multiple data proxy sub-nodes in real time;

[0057] A second static interceptor is set in the Source layer and Channel layer of the central node to perform secondary cleaning on the data marked as normal data, including:

[0058] Sort the normal data according to the timestamp, set a certain time interval, and identify the isolated points of the normal data generated during this period according to their sources;

[0059] Since traffic flow data changes have a certain trend and generally do not mutate, if a mutation occurs at a certain time node, it may be that data drift has occurred. In this case, the data with data mutation is marked as drift data, and this type of data drift is also marked as abnormal data.

[0060] Set up the Channel layer to cache multi-source data after secondary cleaning;

[0061] Set at the Sink layer to output the data cached at the Channel layer to the message queue.

[0062] In actual implementation, faced with complex urban traffic conditions, multiple types of intelligent data collectors are often installed on urban traffic roads. Because traffic collectors are dynamically affected by natural weather, environmental changes and other factors, the collected data often have a series of problems such as data loss and data drift. The collected data from a single source often cannot fully reflect the urban traffic conditions.

[0063] In the embodiment of the present invention, these data collectors include fixed card access devices, geomagnetism, coils, electronic police and floating public transportation vehicles. Some of the data collected by such devices are structured data, while others are unstructured or semi-structured data.

[0064] like Figure 2 The figure shows a model diagram of multi-agent data flow convergence, which uses multi-agent data flow collection to collect traffic data collected by different data collectors.

[0065] Construct multiple Agent sub-nodes to collect traffic data from different sources. Each Agent sub-node includes: Source layer for accessing data to Agent, Channel layer for caching data, and Sink layer for continuously polling events in Channel and removing them in batches.

[0066] The first static interceptor is set in the Source layer and Channel layer of the child node. For a piece of original collected data, different labels are set for different source data, and multiple valid fields that can reflect traffic conditions and collector locations are retained. Then, a new piece of data is generated, which contains valid fields such as collection time, collector type, collector location, traffic flow, passing vehicle type, and vehicle speed, and the field data type is converted into a pre-set numerical type.

[0067] For each piece of data collected by different data collectors, each piece of data contains multiple valid fixed fields, each fixed valid field records different traffic indicators, and heterogeneous data collected from different data collectors may have repeated traffic indicators. For example, the checkpoint device and the coil device may collect traffic indicators such as the type and number of vehicles passing. The fields in the data that express the same meaning of traffic indicators are marked with the same mark to facilitate the subsequent repair of the data through heterogeneous data.

[0068] In this way, different cleaning rules are set for data from different sources according to the principles of traffic engineering, and obviously abnormal data and missing data are screened out, and the abnormal data and missing data are marked as dirty data.

[0069] The definition of abnormal data in the embodiment of the present invention is combined with the control of traffic flow, and the upper limit of the flow is corrected with reference to the road capacity, that is, the traffic threshold is set.

[0070] According to the relevant experience of traffic engineering, the saturation flow of a single lane is 1800 vehicles / hour. Therefore, in the embodiment of the present invention, the sampling interval is set to 1 minute, and the saturation flow of a single lane is 75 vehicles / hour. According to actual experience, f is set c is the damping coefficient. Generally, the empirical damping coefficient is 1.3-1.5. In the embodiment of the present invention, f is set to c =1.5.

[0071] For the three parameters of flow, speed and occupancy, the commonly used judgment criteria are as follows.

[0072] (1) Flow threshold The flow threshold is used to determine the rationality of the detector's traffic flow per unit time q: Where C represents the road capacity (veh / h), T represents the data time interval, and f c is the error correction coefficient.

[0073] (2) The speed threshold is used to determine the rationality of the detector's average speed per unit time v: 0 ≤ v ≤ f v ·v p , where v p is the speed limit of the road section (km / h), f v is the error correction coefficient.

[0074] When setting a threshold for traffic flow speed, the upper limit of the speed is set according to the speed limit of the road, and the lower limit is 0. The speed limit of most urban expressways is 80 km / h. Therefore, according to the threshold method, the embodiment of the present invention defines a reasonable range of speed as: 0≤v≤90.

[0075] (3) The occupancy rate threshold is used to determine whether the average occupancy rate o of the vehicles passing by the collector per unit time is reasonable: 0≤o≤100%.

[0076] If the data exceeds the traffic threshold, the data will be marked as abnormal data.

[0077] If there are missing fields in the data, the missing fields are marked and marked as missing data;

[0078] Based on the basic relationship of traffic flow and relevant experience in traffic engineering, certain rules for eliminating abnormal data are formulated:

[0079] (1) If the flow rate is 0 and the speed is 0, but the occupancy rate is not 0, it is determined to be abnormal data and the data is eliminated.

[0080] (2) If the flow rate is 0 but the speed is not 0, it is considered as abnormal data and is eliminated.

[0081] (3) If the flow rate is greater than 0, but the speed and occupancy are both 0, it is considered abnormal data and is eliminated.

[0082] (4) If the speed is 0, but the flow rate and occupancy rate are both greater than 0, it is considered abnormal data and is eliminated.

[0083] The data collected by multiple sub-Agent nodes are input into the next central node Agent, and the normal data is cleaned twice.

[0084] like Figure 3 , 4 , input the cleaned abnormal data and normal data into the next central Agent node, set the second static interceptor in the Source layer and Channel layer of the central node, perform secondary cleaning on the normal data, sort the acquired data according to the timestamp, set a certain time interval, and identify the isolated points of the normal data generated during this period according to the different sources. Since the traffic flow data has a certain trend and generally does not mutate, a mutation at a certain time node may be due to data drift. Therefore, this type of data is also marked as abnormal data, that is, dirty data.

[0085] Assume that X is the time series determined by the real-time outlier identification algorithm, where n is the time point that needs to be identified, and each time point has m traffic flow attributes, we can get:

[0086]

[0087] By normalizing the m-dimensional traffic flow data, we can get the normalized matrix X. We can calculate the distance between the normalized traffic flow objects in the time periods 1 to n-1 and n respectively, and get the distance vector:

[0088]

[0089] The distance calculation method used is the Euclidean distance metric:

[0090]

[0091] If the number of data with a distance greater than the threshold is greater than k, it is determined to be an outlier. An outlier is data with a large deviation from data in other time periods. The data determined to be an outlier is marked as abnormal data.

[0092] like Figure 3 , 4After the second cleaning, the data is accessed through the Kafka message queue so that the data can be filled and repaired in the time and space dimensions. The clean data after repair is input into the database HDFS, which is convenient for the subsequent efficient call of a large amount of traffic data for traffic information mining, and provides historical data for the data filling module.

[0093] The embodiment of the present invention uses a message queue to access the real-time traffic data collected by various data collectors, thereby preventing the problem of data loss or data accumulation when the data collection speed is greater than the data processing speed.

[0094] The embodiment of the present invention adopts a message queue, connects the data that has been secondary cleaned at the central node to the message queue, and transmits the screened abnormal data to the stream data processing engine through the message queue. The stream data processing engine can be Spark streaming or Structured Streaming, which is used to fill and repair the abnormal data and store the normal data directly in HDFS or Hbase.

[0095] Furthermore, the method further comprises:

[0096] Set traffic indicators for each fixed valid field;

[0097] Fields that express the same traffic indicator meaning are marked with the same traffic indicator.

[0098] Preferably, the method of setting different preliminary cleaning rules for multi-source collected data to filter out abnormal data and missing data specifically includes:

[0099] If there are missing fields in the data, the missing fields are marked and the data are marked as missing data; if the data exceeds the traffic threshold, the data are marked as abnormal data.

[0100] Preferably, the message queue repairs the data after the second cleaning according to time and space maintenance, and the clean data obtained specifically includes:

[0101] Process the missing fields of missing data, and determine whether there are fields with the same traffic indicator mark in the data from other sources based on the fields marked with the same traffic indicator mark;

[0102] If it exists, confirm the collector type of the data containing this field according to the traffic indicator mark, query the normal data for data with a similar collection time, collector type and location as the missing data, and fill in and repair the missing data according to the queried data;

[0103] If it does not exist, historical time data is retrieved from the database and filled in based on the data from the previous day or days.

[0104] In the stream data processing engine, when the received data is determined to be dirty data, the dirty data is divided into missing data and abnormal data, and the dirty data is repaired, including:

[0105] Process the missing fields of missing data, and determine whether there are fields with the same traffic indicator mark in the data from other sources based on the fields marked with the same traffic indicator mark;

[0106] If it exists, confirm the collector type of the data containing this field according to the traffic indicator mark, query the normal data for data with a similar collection time, collector type and location as the missing data, and fill in and repair the missing data according to the queried data;

[0107] If it does not exist, historical time data is retrieved from the database and filled in based on the data from the previous day or days.

[0108] There is a certain similarity in the traffic flow data between different lanes in the same section. The proportional relationship is used to measure the flow relationship between different lanes in the same section. The adjacent lane repair uses the lane weight model, which can be expressed as:

[0109]

[0110] Among them, y k (t) refers to the calculated value of the traffic flow parameter of lane k, W j is the weight of the jth lane in the current section, y j (t) is the measured value of the traffic flow parameter of the jth lane, and n is the total number of lanes in the section.

[0111] For example, the data collected by the checkpoints include the number of passing vehicles, and the data collected by floating public transportation also includes the number of surrounding vehicles. The fields that express common traffic meanings in the two source data are marked.

[0112] If the field of the number of vehicles passing through is missing in the data collected at the checkpoint, the mark indicates that there is a field recording this indicator in the floating public transportation data. Then, the floating public transportation data with a similar collection time and collector location as the data will be queried from the normal data. The field of the number of vehicles passing through the data collected at the checkpoint will be filled in according to the number of vehicles recorded in the floating public transportation data.

[0113] If the data collected at the checkpoint lacks the vehicle speed field, the mark will be displayed as a field where this indicator is not recorded in other heterogeneous data.

[0114] Then retrieve the historical data of the time period one day ago and several days ago from the normal data to calculate the average value for filling.

[0115] To process abnormal data, since it is difficult to accurately determine the specific abnormal fields of the abnormal data, historical normal data in HDFS / Hbase is directly retrieved and repaired based on historical time data.

[0116] In addition, during the research process of the present invention, the inventors found that since multi-source data comes from different collectors, the time series data density is inconsistent. In order to align the time series data density, the embodiment of the present invention uses the Lagrangian method to fill in the time series data so that the time series data collection density from different sources is consistent.

[0117] like Figure 4 As shown, the method also includes:

[0118] The data from different data collectors are spliced ​​to obtain the time series data corresponding to each time interval;

[0119] The time series data are supplemented by the Lagrangian method to obtain time-space dimension data with consistent acquisition density of time series data from different sources;

[0120] The traffic data within the same time node is repaired using the spatiotemporal dimension data.

[0121] At set time intervals, multi-source data that has been cleaned twice is continuously obtained from the Kafka distributed message queue, and is differentiated according to the collector type (flowing or fixed). The extracted data is input into the Spark Executor, and the data from different sources is spliced ​​to obtain the time series data corresponding to each time interval.

[0122] Specifically, in order to keep the data density consistent and complete the time series data, the Lagrange interpolation method is used to fill the time series of the device, which specifically includes:

[0123] The Lagrange polynomial formula adopted is:

[0124]

[0125] where F scada (t) is the Lagrange interpolation function corresponding to the time series data, l i (t) is the interpolation basis function; t i is the time series data; t m is the collection time corresponding to the time series data m.

[0126] After filling the data, the density of data in different time series is made consistent, providing a good foundation for subsequent mining and analysis of traffic data.

[0127] The time series data contains multiple fields of information, and some fields may be missing, so the missing fields are filled. In addition, abnormal data is repaired based on historical data, that is, based on the spatial correlation of the same lane at different times or on similar equipment, based on multivariate linear regression. If there is no data of adjacent lanes at the same time, the average value of the historical time data is used as the repair data value to fill it.

[0128] In this way, missing data and abnormal data are repaired and filled in the time and space dimensions to obtain the repaired data of vehicle data within the same time node, fill the data anomalies at the time node, increase the smoothness of the data, and facilitate the subsequent in-depth mining and analysis of traffic data.

[0129] After the time series is filled, some data may exceed the statistical center. The aligned data will be screened again using statistical standards.

[0130] After the initial screening of traffic anomaly data using the threshold method, the screened data is secondarily tested using the standard deviation test method. After the traffic city time series data is completed and aligned, there is a high probability that there is data that exceeds the statistical center. The data that exceeds the threshold is again tested using the standard deviation method to avoid abnormal data generated by the matching calculation. The standard deviation of the data set is calculated and used to identify data points that deviate too much from the mean.

[0131] The embodiment of the present invention is a real-time processing method based on multi-source urban traffic big data, which pays special attention to the diversity and complexity of urban traffic data. It uses multi-agent streaming data collection to stream and access the massive data from various traffic information systems including but not limited to checkpoints, electronic police, geomagnetism, coils, floating vehicles, etc., and inputs the data into the streaming data processing engine through the message queue to perform massive data calculation, so as to realize the real-time integration and cleaning of multi-source urban traffic big data, thereby effectively collecting and cleaning and verifying the multi-source traffic data in real time to ensure the accuracy and consistency of the data. Through the real-time processing method of the present invention, the quality and availability of urban traffic data can be significantly improved, thereby providing a solid data foundation for the intelligent transportation system and supporting the realization of more efficient, safe and environmentally friendly urban traffic management.

[0132] See also Figure 5 , Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 5As shown, the electronic device 1000 includes a processor 1001 and a memory 1002, and the processor 1001 and the memory 1002 can be connected to each other via a communication bus 1003. The communication bus 1003 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 1003 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 The memory 1002 is used to store computer programs. The computer programs include program instructions. The processor 1001 is configured to call the program instructions. The program includes instructions for executing Figure 1 Some or all of the steps in the method included.

[0133] The processor 1001 may be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.

[0134] The memory 1002 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.

[0135] The electronic device 1000 may further include a communication module 1004 and a display 1005. The communication module 1004 may be connected to the optical tracking device for communication. The communication module 1004 may be a wireless communication module (eg, a WiFi module, a Bluetooth module, etc.) or a wired communication module.

[0136] In addition, the electronic device 1000 may also include common components such as a communication interface (eg, a USB interface, a microphone interface, etc.), an antenna, etc., which will not be described in detail here.

[0137] An embodiment of the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any high-speed big data cleaning method recorded in the above method embodiments.

[0138] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0139] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0140] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.

[0141] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0142] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.

[0143] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0144] A person skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable memory, which may include a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.

[0145] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

[0146] It should be noted that the above embodiments can be freely combined as needed. The above are only preferred embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention.

Claims

1. A method for real-time processing of traffic big data, characterized in that: The method comprises: The data collected by the multi-source data collector is sent to the data proxy sub-node, and the data proxy sub-node performs a preliminary cleaning on the collected multi-source data and then aggregates it to the data center node; The data center node performs secondary cleaning on the received data after the primary cleaning, and sends the data to the message queue after the cleaning is completed; The message queue repairs the data after secondary cleaning according to the time and space dimensions to obtain clean data.

2. The method for real-time processing of traffic big data according to claim 1, characterized in that: The data proxy sub-node performs a preliminary cleaning on the collected multi-source data and aggregates them to the data center node, specifically including: A first static interceptor is set in the data proxy subnode, and the first static interceptor extracts multiple fixed valid fields from each piece of original collected data and splices them into new data, wherein the fixed valid fields include collection time, collector type, collector location, vehicle flow, passing vehicle type, and vehicle speed; Different preliminary cleaning rules are set for multi-source collected data to filter out abnormal data and missing data, and mark them as abnormal data and missing data respectively. Data without missing data and abnormal data are marked as normal data.

3. The method for real-time processing of traffic big data according to claim 1, characterized in that: The data center node performs secondary cleaning on the received data after the primary cleaning, specifically including: A second static interceptor is set at the data center node to sort the data marked as normal data according to the timestamp, and to identify isolated points of the data within a certain time interval according to different collector types; If the independent point discrimination determines that a data mutation occurs at a certain time node, the data with the data mutation is marked as drift data.

4. The method for real-time processing of traffic big data according to claim 2, characterized in that: The method further comprises: Set traffic indicators for each fixed valid field; Fields that express the same traffic indicator meaning are marked with the same traffic indicator.

5. The method for real-time processing of traffic big data according to claim 2, characterized in that: The method of setting different preliminary cleaning rules for multi-source collected data to filter out abnormal data and missing data specifically includes: If there are missing fields in the data, the missing fields are marked and the data are marked as missing data; if the data exceeds the traffic threshold, the data are marked as abnormal data.

6. The method for real-time processing of traffic big data according to claim 4, characterized in that: The message queue repairs the data after the second cleaning according to time and space maintenance, and obtains clean data including: Process the missing fields of missing data, and determine whether there are fields with the same traffic indicator mark in data from other sources based on the fields marked with the same traffic indicator mark; If it exists, confirm the collector type of the data containing this field according to the traffic indicator mark, query the normal data for data with a similar collection time and collector type and location as the missing data, and fill in and repair the missing data according to the queried data; If it does not exist, historical time data is retrieved from the database and filled in based on the data from the previous day or days.

7. The method for real-time processing of traffic big data according to claim 1, characterized in that: The method further comprises: The data from different data collectors are spliced ​​to obtain the time series data corresponding to each time interval; The time series data are supplemented by the Lagrangian method to obtain time-space dimension data with consistent acquisition density of time series data from different sources; The traffic data within the same time node is repaired using the spatiotemporal dimension data.

8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is enabled to perform the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Spacecraft telemetry data cleaning method and device

    CN119884094A