Traffic data acquisition method and equipment based on intelligent traffic, and medium
By matching the data collection mode and engine, it solves the problem that the intelligent transportation data collection method cannot be applied to a variety of devices, achieves data standardization and efficient access, and improves data quality and access capabilities.
Patent Information
- Application Number
- CN202310166199.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
Existing intelligent transportation data collection methods cannot be applied to diverse collection devices at the same time, resulting in difficulty in data access and poor quality, and cannot meet the needs of intelligent transportation data.
By predetermining the device information to be collected for traffic data, matching the appropriate data collection mode and engine, establishing a connection with the collection device, performing data collection and processing, ensuring the matching of data interfaces and protocols, and achieving data standardization and classification.
It realizes automatic identification and matching of IoT devices, lowers the data access threshold, ensures data quality and consistency, and improves data access capabilities.
Smart Images

Figure CN118538019A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent transportation technology, and in particular to a method, device and medium for collecting traffic data based on intelligent transportation. Background Art
[0002] At present, with the strong support and promotion of policies, the development speed of intelligent transportation in various cities in China is getting faster and faster. The corresponding products and system functions such as electronic police, checkpoints, vehicle identification systems, traffic light control, GPS vehicle navigation systems, intelligent public transportation systems, parking management systems, driving recorders, traffic toll collection equipment, and traffic communication equipment are gradually improving, and the related equipment side equipment will generate massive amounts of data.
[0003] One of the characteristics of traffic data is that there are many heterogeneous sources and a large amount of data. The main function of the perception layer is information collection. The intelligent traffic big data Internet of Things data collection system is to access and store the data of the perception layer to the data layer. Before the data of the perception layer enters the data layer, the data of each Internet of Things device is diversified and differentiated, the data interface is diverse, and the data protocol is complex. To connect these Internet of Things devices, it is necessary to develop multiple system modules. If these data are not processed, after the data is connected to the data layer, the data interoperability between the devices will be poor, and the data quality will be incomplete. These will cause the application layer to display inaccurate data and incorrect analysis results. Therefore, due to the diversity of various equipment manufacturers on the device side, the lack of unified equipment interfaces, the lack of unified scripts, and the lack of a top-level design for overall planning, the data of various types of equipment cannot be uniformly accessed to the storage platform. In summary, due to the diversity of terminal collection devices on the device side, the information collection of the existing methods cannot be applied to various types of collection devices at the same time, and cannot meet the collection needs of intelligent traffic data. Summary of the invention
[0004] One or more embodiments of the present specification provide a traffic data collection method, device and medium based on intelligent transportation, which are used to solve the following technical problems: Due to the diversity of terminal collection devices on the device side, the information collection of the existing method cannot be applied to various types of collection devices at the same time, and cannot meet the collection needs of intelligent traffic data.
[0005] One or more embodiments of this specification adopt the following technical solutions:
[0006] One or more embodiments of the present specification provide a traffic data collection method based on intelligent transportation, characterized in that the method includes: pre-determining multiple traffic data to be collected required by the front-end intelligent transportation service to obtain device information on the collection device side corresponding to each of the traffic data to be collected, wherein the device information includes device attribute information and device real-time data; based on the device information on the collection device side corresponding to each of the traffic data to be collected, determining the operating status of the designated collection device; when the operating status of the designated collection device meets the preset conditions, determining the manufacturer information of the designated collection device in the device attribute information; matching the corresponding designated data collection mode according to the manufacturer information of each of the designated collection devices, so as to establish a connection with each of the designated collection devices through the designated data collection mode, and collect multiple collected traffic source data, wherein the data collection mode includes a data interface and a data transmission protocol; processing the multiple collected traffic source data to generate the traffic data to be collected.
[0007] Furthermore, according to the manufacturer information of each of the designated collection devices, the corresponding designated data collection mode is matched, specifically including: obtaining the manufacturer information in the device attribute information; determining the designated data interface and the designated data transmission protocol corresponding to the designated collection device based on the manufacturer information and a pre-constructed first mapping relationship table, wherein the first mapping relationship table includes multiple manufacturers and the data interface and data transmission protocol corresponding to each manufacturer; performing data collection mode matching according to the designated data interface and the designated data transmission protocol to determine the designated data collection mode corresponding to the designated collection device, wherein the data interface in the designated data collection mode is consistent with the designated data interface, and the data transmission protocol in the designated data collection mode is consistent with the designated data transmission protocol; according to the designated data collection mode, selecting a designated data collection engine from the pre-constructed collection engine library to collect the traffic data to be collected through the designated data collection engine.
[0008] Furthermore, based on the device information on the collection device side corresponding to each of the traffic data to be collected, the operating status of the designated collection device is determined, specifically including: determining the device data on the collection device side corresponding to the traffic data to be collected in the data attributes, wherein the device data includes device attribute information and device real-time data; generating standard operating parameters of the designated collection device according to the device type and device parameters in the device attribute information; determining the operating status of the designated collection device through the device real-time status data in the device real-time data and the standard operating parameters, wherein the operating status includes a normal operating status and an abnormal operating status.
[0009] Furthermore, the multiple collected traffic source data are processed to generate traffic data to be collected, specifically including: standardizing the multiple collected traffic source data to obtain multiple traffic data to be collected; performing dependency query and classification processing on the multiple traffic data to be collected to generate a traffic data set to be collected, so that the front-end intelligent traffic service can call the traffic data set to be collected.
[0010] Furthermore, dependency query and classification processing are performed on the multiple traffic data to be collected to generate a traffic data set to be collected, which specifically includes: determining the data type of the multiple traffic data to be collected, wherein the data type includes sensor data and image data; classifying the multiple traffic data to be collected according to the data type to obtain multiple traffic data groups, wherein each traffic data group includes multiple traffic data to be collected; in each traffic data group, dependency query is performed on the multiple traffic data to be collected to obtain a specified traffic data group arranged in a specified order; dependency query is performed on each specified traffic data group to establish an inter-group dependency relationship between the multiple specified traffic data groups; according to the inter-group dependency relationship, the multiple specified traffic data groups are arranged to generate the traffic data set to be collected.
[0011] Furthermore, in each traffic data group, a dependency query is performed on the multiple traffic data to be collected to obtain a specified traffic data group arranged in a specified order, specifically including: determining the business attributes of each traffic data to be collected, and establishing a dependency relationship between the multiple traffic data to be collected in each traffic data group according to the business attributes; based on the dependency relationship between the traffic data to be collected, the multiple traffic data to be collected in the traffic data group are sorted to obtain a specified traffic data group arranged in a specified order.
[0012] Furthermore, based on the dependency relationship between the traffic data to be collected, multiple traffic data to be collected in the traffic data group are sorted to obtain a specified traffic data group arranged in a specified order, specifically including: converting the dependency relationship between the traffic data to be collected into a dependency directed graph, wherein the dependency directed graph includes multiple data points, and each data point corresponds to each traffic data to be collected; in the dependency directed graph, determining the number of outbound directions and the number of inbound directions of each data point; using the traffic data to be collected corresponding to the specified data point as the first data point in the specified traffic data group, wherein the number of inbound directions of the specified data point is zero and the number of outbound directions is a non-zero value; using the traffic data to be collected corresponding to the preset data point as the last data point in the specified traffic data group, wherein the number of outbound directions of the preset data point is zero and the number of inbound directions is a non-zero value; based on the first data point, the last data point and the dependency directed graph, obtaining the specified traffic data group arranged in a specified order.
[0013] Furthermore, determining the manufacturer information of the designated acquisition device in the device attribute information specifically includes: identifying the designated acquisition device to determine the device type and device identification of the designated acquisition device; based on the device type, determining a designated device library corresponding to the device type in a plurality of pre-built device libraries, wherein the device library includes a plurality of devices belonging to the same device type, a plurality of manufacturer information, and a correspondence between the devices and the manufacturer information; searching in the designated device library according to the device identification of the designated acquisition device to determine the manufacturer information corresponding to the designated acquisition device.
[0014] One or more embodiments of this specification provide a traffic data collection device based on intelligent transportation, including:
[0015] at least one processor; and,
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0018] Predetermine multiple traffic data to be collected required by the front-end intelligent traffic service to obtain device information on the collection device side corresponding to each of the traffic data to be collected, wherein the device information includes device attribute information and device real-time data; determine the operating status of the designated collection device based on the device information on the collection device side corresponding to each of the traffic data to be collected; when the operating status of the designated collection device meets the preset conditions, determine the manufacturer information of the designated collection device in the device attribute information; match the corresponding designated data collection mode according to the manufacturer information of each of the designated collection devices, so as to establish a connection with each of the designated collection devices through the designated data collection mode, and collect multiple collected traffic source data, wherein the data collection mode includes a data interface and a data transmission protocol; process the multiple collected traffic source data to generate the traffic data to be collected.
[0019] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to:
[0020] Predetermine multiple traffic data to be collected required by the front-end intelligent traffic service to obtain device information on the collection device side corresponding to each of the traffic data to be collected, wherein the device information includes device attribute information and device real-time data; determine the operating status of the designated collection device based on the device information on the collection device side corresponding to each of the traffic data to be collected; when the operating status of the designated collection device meets the preset conditions, determine the manufacturer information of the designated collection device in the device attribute information; match the corresponding designated data collection mode according to the manufacturer information of each of the designated collection devices, so as to establish a connection with each of the designated collection devices through the designated data collection mode, and collect multiple collected traffic source data, wherein the data collection mode includes a data interface and a data transmission protocol; process the multiple collected traffic source data to generate the traffic data to be collected.
[0021] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects: through the above technical solution, the Internet of Things device is automatically identified and matched according to the device information corresponding to the traffic data, and data collection engines in different scenarios are provided for different Internet of Things device data access, thereby lowering the threshold for Internet of Things device data access to the system, so that the data access of Internet of Things devices can meet the data access of various types of Internet of Things devices under one platform, and different data interfaces and data protocols are matched for different device types. The data access method of diversified scenarios enables the data of Internet of Things devices to be quickly stored in the system; in addition, the data of the Internet of Things device is standardized before entering the data layer. After data standardization, it is convenient for the upper-layer application side to use the device data, solve the problem of disorganized data on the device side, and effectively improve the data access capability of the Internet of Things device. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0023] Figure 1 A flow chart of a traffic data collection method based on intelligent transportation provided in an embodiment of this specification;
[0024] Figure 2 A schematic diagram of the structure of a traffic data collection device based on intelligent transportation provided in an embodiment of this specification. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0026] At present, with the strong support and promotion of policies, the development speed of intelligent transportation in various cities in China is getting faster and faster. The corresponding products and system functions such as electronic police, checkpoints, vehicle identification systems, traffic light control, GPS vehicle navigation systems, intelligent public transportation systems, parking management systems, driving recorders, traffic toll collection equipment, and traffic communication equipment are gradually improving, and the related equipment side equipment will generate massive amounts of data.
[0027] One of the characteristics of traffic data is that there are many heterogeneous sources and a large amount of data. The main function of the perception layer is information collection. The intelligent traffic big data Internet of Things data collection system is to access and store the data of the perception layer to the data layer. Before the data of the perception layer enters the data layer, the data of each Internet of Things device is diversified and differentiated, the data interface is diverse, and the data protocol is complex. To connect these Internet of Things devices, it is necessary to develop multiple system modules. If these data are not processed, after the data is connected to the data layer, the data interoperability between the devices will be poor, and the data quality will be incomplete. These will cause the application layer to display inaccurate data and incorrect analysis results. Therefore, due to the diversity of various equipment manufacturers on the device side, the lack of unified equipment interfaces, the lack of unified scripts, and the lack of a top-level design for overall planning, the data of various types of equipment cannot be uniformly accessed to the storage platform. In summary, due to the diversity of terminal collection devices on the device side, the information collection of the existing methods cannot be applied to various types of collection devices at the same time, and cannot meet the collection needs of intelligent traffic data.
[0028] The embodiment of this specification provides a method for collecting traffic data based on intelligent transportation. It should be noted that the execution subject in the embodiment of this specification can be a server or any device with data processing capabilities. The embodiment of this specification can be applied to the Internet of Things data collection system of intelligent transportation big data. The Internet of Things data collection system includes a data collection engine, an Internet of Things device management module, a data verification module, a collection interface pattern matching module, etc., forming an overall solution for various types of data collection on the Internet of Things device side, so that the data on the Internet of Things device side can be uniformly accessed, standardized, and managed uniformly.
[0029] Among them, the IoT device management module is used to uniformly manage IoT devices. Through the visual interface, you can understand the operating status of the device, device abnormal information, online device upgrades, and device management. The data acquisition engine can provide different data acquisition engines for data access on different device sides, automatically identify the manufacturer of the device through the acquisition interface matching mode, and match the data interface and data protocol of the device. After collecting data from the device side, the data verification module standardizes the data and verifies the data according to the data standard to ensure the accuracy and standardization of the data. The acquisition interface pattern matching module is used to identify the data interface of the manufacturer of each device to solve the problem of data inaccessibility due to different interfaces of the device manufacturer. The IoT data acquisition system of intelligent transportation big data is used for data acquisition and device management of various IoT devices, standardizes the data accessed on the device side, and prepares a data base for upper-level applications.
[0030] Figure 1A flow chart of a traffic data collection method based on intelligent transportation provided in an embodiment of this specification is shown as follows: Figure 1 As shown, it mainly includes the following steps:
[0031] Step S101 , predetermine a plurality of traffic data to be collected required by the front-end intelligent traffic service, and obtain device information on the collection device side corresponding to each traffic data to be collected.
[0032] The device information includes device attribute information and device real-time data.
[0033] In one embodiment of the present specification, the Internet of Things data collection system can connect to a variety of front-end intelligent transportation services, and provide the required traffic data to be collected according to the business needs of the front-end intelligent transportation services. The front-end intelligent transportation service here can be a real-time monitoring service for vehicle flow, a real-time monitoring service for vehicle speed, or other intelligent transportation services such as traffic accident monitoring services. Different services require different traffic data, so it is necessary to determine the multiple traffic data to be collected corresponding to the service based on the front-end intelligent transportation service.
[0034] In one embodiment of the present specification, after determining a plurality of traffic data to be collected corresponding to the intelligent transportation service, the device information of the collection device side corresponding to each traffic data to be collected is obtained, that is, the device information of the designated collection device for collecting the data to be collected. The device information here includes device attribute information and device real-time data, and the device can be an Internet of Things collection device.
[0035] Step S102: determining the operating status of a designated collection device based on the device information on the collection device side corresponding to each traffic data to be collected.
[0036] Based on the device information on the collection device side corresponding to each of the traffic data to be collected, determining the operating status of the designated collection device specifically includes: determining the device data on the collection device side corresponding to the traffic data to be collected in the data attributes, wherein the device data includes device attribute information and device real-time data; generating standard operating parameters of the designated collection device according to the device type and device parameters in the device attribute information; determining the operating status of the designated collection device through the device real-time status data in the device real-time data and the standard operating parameters, wherein the operating status includes a normal operating status and an abnormal operating status.
[0037] In actual application scenarios, since various types of equipment on the device side are usually arranged in outdoor environments such as roads, it is not easy to detect equipment abnormalities in a timely manner. The accuracy of data collected by the equipment is affected by the operating status of the equipment. In order to ensure the accuracy of the source data collected by the device side, the embodiment of this specification determines the operating status of the specified collection device by collecting information of each device on the device side.
[0038] In one embodiment of the present specification, the device data on the collection device side corresponding to the traffic data to be collected in the data attribute is determined. The device data here can also be called device information, which mainly includes device attribute information and device real-time data. The device attribute information includes device type, device name, and various operating parameters of the device. Through the device type and various operating parameters in the device attribute information, the standard operating parameters of the device in normal operation can be obtained; when generating standard operating parameters, the operating parameters corresponding to the normal operation of the device in the historical state can be obtained from the historical device operating data, and the operating parameters are used as standard operating parameters. In addition, the device data includes device real-time data, that is, device real-time operating data, and the current operating state of the device can be remotely monitored through the device real-time operating data. By comparing the device real-time status data in the device real-time data with the standard operating parameters, if the difference between the two is within the allowable error range, the current operating state of the designated collection device is determined to be a normal operating state. If the difference between the two exceeds the allowable error range, the current operating state of the designated collection device is determined to be an abnormal operating state.
[0039] Step S103: when the operation status of the designated acquisition device meets the preset condition, determine the manufacturer information of the designated acquisition device in the device attribute information.
[0040] Determining the manufacturer information of the designated acquisition device in the device attribute information specifically includes: identifying the designated acquisition device to determine the device type and device identification of the designated acquisition device; based on the device type, determining a designated device library corresponding to the device type in multiple pre-built device libraries, wherein the device library includes multiple devices belonging to the same device type, multiple manufacturer information, and a correspondence between the device and the manufacturer information; searching in the designated device library according to the device identification of the designated acquisition device to determine the manufacturer information corresponding to the designated acquisition device.
[0041] In one embodiment of the present specification, when the operating state of the designated acquisition device is a normal operating state, the designated acquisition device is identified and the manufacturer information of the designated acquisition device is determined. First, the device type and device identification of the device are determined. It should be noted that when building an intelligent transportation system, the IoT acquisition device is registered, and a device library is established based on the device information at the time of registration. In order to facilitate the effective management of the devices in the device library, the devices are classified according to the device type, and devices of the same type are stored in a device library, and each device library includes the device identification of the IoT device and the manufacturer information of each IoT device. Therefore, in subsequent use, the designated device library corresponding to the device type is determined in multiple device libraries by the device type, and the manufacturer information is searched in the designated device library based on the device identification of the designated acquisition device to determine the manufacturer information corresponding to the designated acquisition device.
[0042] Step S104, matching the corresponding designated data collection mode according to the manufacturer information of each designated collection device, so as to establish a connection with each designated collection device through the designated data collection mode to collect a plurality of collected traffic source data.
[0043] Among them, the data acquisition mode includes data interface and data transmission protocol;
[0044] According to the manufacturer information of each designated collection device, the corresponding designated data collection mode is matched, specifically including: obtaining the manufacturer information in the device attribute information; determining the designated data interface and the designated data transmission protocol corresponding to the designated collection device based on the manufacturer information and a pre-constructed first mapping relationship table, wherein the first mapping relationship table includes multiple manufacturers and the data interface and data transmission protocol corresponding to each manufacturer; performing data collection mode matching according to the designated data interface and the designated data transmission protocol, and determining the designated data collection mode corresponding to the designated collection device, wherein the data interface in the designated data collection mode is consistent with the designated data interface, and the data transmission protocol in the designated data collection mode is consistent with the designated data transmission protocol; according to the designated data collection mode, selecting a designated data collection engine in the pre-constructed collection engine library, so as to collect the traffic data to be collected through the designated data collection engine.
[0045] In one embodiment of the present specification, after obtaining the manufacturer to which each designated collection device belongs, due to the different devices of different manufacturers, the corresponding data interfaces and data transmission protocols are different. In order to ensure that the devices of multiple manufacturers can be connected, the corresponding data collection engines are matched through the manufacturer information, and the data interface and data protocol of each data collection engine can be pre-configured. First, according to the manufacturer information and the pre-constructed first mapping relationship table, the designated data interface and the designated data transmission protocol corresponding to the designated collection device are determined. It should be noted that the first mapping relationship table is used to represent the interface and data transmission protocol corresponding to each manufacturer, including multiple manufacturers and the data interface and data transmission protocol corresponding to each manufacturer. According to the designated data interface and the designated data transmission protocol corresponding to the manufacturer, data collection mode matching is performed to determine the designated data collection mode that is the same as the designated data interface and the designated data transmission protocol, so as to select the designated data collection engine in the pre-constructed collection engine library according to the designated data collection mode, so as to collect the traffic data to be collected through the designated data collection engine. It should be noted that the data interface supported by the designated data collection engine is consistent with the designated data interface, and the data transmission protocol supported by the designated data collection engine is consistent with the designated data transmission protocol.
[0046] Step S105, processing a plurality of collected traffic source data to generate traffic data to be collected.
[0047] The multiple collected traffic source data are processed to generate traffic data to be collected, specifically including: standardizing the multiple collected traffic source data to obtain multiple traffic data to be collected; performing dependency query and classification processing on the multiple traffic data to be collected to generate a traffic data set to be collected, so that the front-end intelligent traffic service can call the traffic data set to be collected.
[0048] In one embodiment of the present specification, after obtaining the collected traffic source data by connecting to the designated data collection device through the corresponding data collection engine, since the quality of data collected by different devices cannot be guaranteed, the source data needs to be processed and then stored for use by the upper platform or front-end business.
[0049] In one embodiment of the present specification, first, a plurality of collected traffic source data are standardized, wherein the standardized processing includes removing redundant data, unifying the data format, and converting the collected traffic source data into standard traffic data to be collected. The collected traffic data may also be verified according to a preset data standard to ensure the accuracy and standardization of the data. Afterwards, in order to facilitate the front-end intelligent traffic service call, the collected traffic data is subjected to dependency query and classification processing to generate a traffic data set to be collected.
[0050] Performing dependency query and classification processing on the multiple traffic data to be collected to generate the traffic data set to be collected specifically includes: determining the data type of the multiple traffic data to be collected, wherein the data type includes sensor data and image data; classifying the multiple traffic data to be collected according to the data type to obtain multiple traffic data groups, wherein each traffic data group includes multiple traffic data to be collected; in each traffic data group, performing dependency query on the multiple traffic data to be collected to obtain a specified traffic data group arranged in a specified order; performing dependency query on each specified traffic data group to establish an inter-group dependency relationship between the multiple specified traffic data groups; and arranging the multiple specified traffic data groups according to the inter-group dependency relationship to generate the traffic data set to be collected.
[0051] In one embodiment of the present specification, when performing dependency query and classification processing on the traffic data to be collected, it is necessary to classify the multiple traffic data to be collected according to the data type, and store the traffic data belonging to the same category into a traffic data group. For example, the sensor data is classified into one category and a sensor traffic data group is set; the image data is classified into one group and an image traffic data group is set. In each traffic data group, a dependency query is performed on the multiple traffic data to be collected to obtain a specified traffic data group arranged in a specified order. A dependency query is performed on each specified traffic data group, and an inter-group dependency relationship between the multiple specified traffic data groups is established. According to the inter-group dependency relationship, the multiple specified traffic data groups are arranged to generate the traffic data set to be collected. According to the actual business scenario, assuming that there is a dependency relationship between the image data and the sensor data, the sensor traffic data group corresponding to the sensor data is set before the image traffic data group to generate the traffic data set to be collected.
[0052] In each traffic data group, a dependency query is performed on the multiple traffic data to be collected to obtain a specified traffic data group arranged in a specified order, specifically including: determining the business attribute of each traffic data to be collected, and establishing a dependency relationship between the multiple traffic data to be collected in each traffic data group according to the business attribute; based on the dependency relationship between the traffic data to be collected, the multiple traffic data to be collected in the traffic data group are sorted to obtain the specified traffic data group arranged in a specified order.
[0053] In one embodiment of the present specification, the dependency relationship between each data in each traffic data group needs to be determined according to the business scenario, so the business attribute of each traffic data to be collected is first determined, that is, the business scenario in which this data needs to be used. According to the business attribute, the dependency relationship between multiple traffic data to be collected in each traffic data group is established. Assuming that the business scenario is a traffic accident prediction business and a vehicle speed detection business, in the actual application scenario, the vehicle speed detection business can detect the running speed of the vehicle, and the vehicle running speed is too fast, which increases the possibility of traffic accidents. Therefore, when executing the traffic accident prediction business, it is necessary to specify the vehicle speed detection. It can be seen that the traffic accident prediction business depends on the vehicle speed detection business, that is, the traffic data used for the traffic accident prediction business depends on the traffic data used for the vehicle speed detection business. According to the dependency relationship between the traffic data to be collected, the multiple traffic data to be collected in the traffic data group are sorted to obtain a specified traffic data group arranged in a specified order.
[0054] Based on the dependency relationship between the traffic data to be collected, multiple traffic data to be collected in the traffic data group are sorted to obtain a specified traffic data group arranged in a specified order, specifically including: converting the dependency relationship between the traffic data to be collected into a dependency directed graph, wherein the dependency directed graph includes multiple data points, and each data point corresponds to each traffic data to be collected; in the dependency directed graph, determining the number of outgoing directions and the number of incoming directions of each data point; using the traffic data to be collected corresponding to the specified data point as the first data point in the specified traffic data group, wherein the number of incoming directions of the specified data point is zero and the number of outgoing directions is a non-zero value; using the traffic data to be collected corresponding to the preset data point as the last data point in the specified traffic data group, wherein the number of outgoing directions of the preset data point is zero and the number of incoming directions is a non-zero value; based on the first data point, the last data point and the dependency directed graph, obtaining the specified traffic data group arranged in a specified order.
[0055] In one embodiment of the present specification, when sorting multiple traffic data to be collected in a group according to the dependency relationship, the dependency relationship can be converted into the form of a dependency directed graph, in which each traffic data to be collected corresponds to a data point, and two traffic data to be collected with a dependency relationship are represented by directed arrows; in addition, each data point includes an outgoing direction attribute and an incoming direction attribute, wherein the outgoing direction attribute is the number of outgoing directions of another point specified by the point, and the incoming direction attribute is the number of incoming directions of other points pointing to the point. The traffic data to be collected corresponding to the data point whose incoming direction number is zero and the outgoing direction number is a non-zero value is taken as the first data point in the specified traffic data group; the traffic data to be collected corresponding to the preset data point whose outgoing direction number is zero and the incoming direction number is a non-zero value is taken as the last data point in the specified traffic data group; the first data point, the last data point, and the arrow direction between other points in the dependency directed graph are sorted in sequence to obtain a specified traffic data group arranged in a specified order. For example, point A depends on point B, and point B depends on point C. Then in the directed graph, point A points to point B, and point B points to point C. Similarly, the arrangement order is A, B, and C.
[0056] Through the above technical solution, IoT devices are automatically identified and matched according to the device information corresponding to the traffic data, and data collection engines in different scenarios are provided for different IoT device data access, thereby lowering the threshold for IoT device data access to the system, so that the data access of IoT devices can meet the data access of various IoT devices on one platform. Different data interfaces and data protocols are matched for different device types, and the data access method of diversified scenarios enables the data of IoT devices to be quickly stored in the system. In addition, the data of IoT devices is standardized before entering the data layer. After data standardization, it is convenient for the upper-level application side to use the device data, solve the problem of chaotic data on the device side, and effectively improve the data access capability of IoT devices.
[0057] The embodiment of this specification also provides a traffic data collection device based on intelligent transportation, such as Figure 2 As shown, the device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
[0058] Predetermine multiple traffic data to be collected required by the front-end intelligent traffic service to obtain device information on the collection device side corresponding to each of the traffic data to be collected, wherein the device information includes device attribute information and device real-time data; determine the operating status of the designated collection device based on the device information on the collection device side corresponding to each of the traffic data to be collected; when the operating status of the designated collection device meets the preset conditions, determine the manufacturer information of the designated collection device in the device attribute information; match the corresponding designated data collection mode according to the manufacturer information of each of the designated collection devices, so as to establish a connection with each of the designated collection devices through the designated data collection mode, and collect multiple collected traffic source data, wherein the data collection mode includes a data interface and a data transmission protocol; process the multiple collected traffic source data to generate the traffic data to be collected.
[0059] The embodiment of the present specification also provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0060] Predetermine multiple traffic data to be collected required by the front-end intelligent traffic service to obtain device information on the collection device side corresponding to each of the traffic data to be collected, wherein the device information includes device attribute information and device real-time data; determine the operating status of the designated collection device based on the device information on the collection device side corresponding to each of the traffic data to be collected; when the operating status of the designated collection device meets the preset conditions, determine the manufacturer information of the designated collection device in the device attribute information; match the corresponding designated data collection mode according to the manufacturer information of each of the designated collection devices, so as to establish a connection with each of the designated collection devices through the designated data collection mode, and collect multiple collected traffic source data, wherein the data collection mode includes a data interface and a data transmission protocol; process the multiple collected traffic source data to generate the traffic data to be collected.
[0061] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0062] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0063] The devices and media provided in the embodiments of this specification correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0064] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0065] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0066] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0067] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0068] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0069] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0070] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0071] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0072] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A traffic data collection method based on intelligent transportation, characterized in that: The method comprises: Predetermine a plurality of traffic data to be collected required by the front-end intelligent traffic service to obtain device information on the collection device side corresponding to each of the traffic data to be collected, wherein the device information includes device attribute information and device real-time data; Determine the operating status of the designated collection device based on the device information of the collection device corresponding to each of the traffic data to be collected; When the running state of the designated acquisition device meets the preset condition, determining the manufacturer information of the designated acquisition device in the device attribute information; According to the manufacturer information of each designated collection device, a corresponding designated data collection mode is matched, so as to establish a connection with each designated collection device through the designated data collection mode to collect a plurality of collected traffic source data, wherein the data collection mode includes a data interface and a data transmission protocol; The plurality of collected traffic source data are processed to generate traffic data to be collected.
2. The method for collecting traffic data based on intelligent transportation according to claim 1, characterized in that: According to the manufacturer information of each designated data collection device, matching the corresponding designated data collection mode specifically includes: Obtaining the manufacturer information in the device attribute information; Based on the manufacturer information and a pre-constructed first mapping relationship table, determining a designated data interface and a designated data transmission protocol corresponding to the designated acquisition device, wherein the first mapping relationship table includes multiple manufacturers and a data interface and a data transmission protocol corresponding to each manufacturer; According to the designated data interface and the designated data transmission protocol, data acquisition mode matching is performed to determine the designated data acquisition mode corresponding to the designated acquisition device, wherein the data interface in the designated data acquisition mode is consistent with the designated data interface, and the data transmission protocol in the designated data acquisition mode is consistent with the designated data transmission protocol; According to the designated data collection mode, a designated data collection engine is selected from a pre-built collection engine library, so as to collect the traffic data to be collected through the designated data collection engine.
3. The method for collecting traffic data based on intelligent transportation according to claim 1, characterized in that: Determining the operating state of the designated collection device based on the device information of each collection device corresponding to the traffic data to be collected specifically includes: Determine the device data on the collection device side corresponding to the traffic data to be collected in the data attributes, wherein the device data includes device attribute information and device real-time data; Generate standard operating parameters of the designated acquisition device according to the device type and device parameters in the device attribute information; The operating state of the designated acquisition device is determined by the device real-time status data in the device real-time data and the standard operating parameters, wherein the operating state includes a normal operating state and an abnormal operating state.
4. The method for collecting traffic data based on intelligent transportation according to claim 1, characterized in that: Processing the plurality of collected traffic source data to generate traffic data to be collected specifically includes: Performing standardization processing on the plurality of collected traffic source data to obtain a plurality of traffic data to be collected; Dependency query and classification processing are performed on the multiple traffic data to be collected to generate a traffic data set to be collected, so that the front-end intelligent traffic service can call the traffic data set to be collected.
5. The method for collecting traffic data based on intelligent transportation according to claim 4, characterized in that: Performing dependency query and classification processing on the plurality of traffic data to be collected to generate a traffic data set to be collected, specifically includes: Determining data types of the plurality of traffic data to be collected, wherein the data types include sensor data and image data; Classifying the plurality of traffic data to be collected according to the data type to obtain a plurality of traffic data groups, wherein each traffic data group includes a plurality of traffic data to be collected; In each traffic data group, performing dependency query on the plurality of traffic data to be collected to obtain a specified traffic data group arranged in a specified order; Perform dependency query on each specified traffic data group, and establish inter-group dependency relationships between multiple specified traffic data groups; The plurality of designated traffic data groups are arranged according to the inter-group dependencies to generate the traffic data set to be collected.
6. The method for collecting traffic data based on intelligent transportation according to claim 5, characterized in that: In each traffic data group, a dependency query is performed on the plurality of traffic data to be collected to obtain a specified traffic data group arranged in a specified order, specifically including: Determine the business attribute of each traffic data to be collected, and establish a dependency relationship between multiple traffic data to be collected in each traffic data group according to the business attribute; Based on the dependency relationship between the traffic data to be collected, the plurality of traffic data to be collected in the traffic data group are sorted to obtain a designated traffic data group arranged in a designated order.
7. The method for collecting traffic data based on intelligent transportation according to claim 6, characterized in that: Based on the dependency relationship between the traffic data to be collected, the plurality of traffic data to be collected in the traffic data group are sorted to obtain a specified traffic data group arranged in a specified order, specifically including: Converting the dependency relationship between the traffic data to be collected into a dependency directed graph, wherein the dependency directed graph includes a plurality of data points, and each data point corresponds to each of the traffic data to be collected; In the dependency directed graph, determining the number of outbound directions and the number of inbound directions of each data point; The traffic data to be collected corresponding to the designated data point is used as the first data point in the designated traffic data group, wherein the incoming direction quantity of the designated data point is zero and the outgoing direction quantity is a non-zero value; Using the to-be-collected traffic data corresponding to the preset data point as the last data point in the specified traffic data group, wherein the outbound quantity of the preset data point is zero and the inbound quantity is a non-zero value; Based on the first data point, the last data point and the dependency directed graph, a specified traffic data group arranged in a specified order is obtained.
8. The method for collecting traffic data based on intelligent transportation according to claim 1, characterized in that: Determining the manufacturer information of the specified acquisition device in the device attribute information specifically includes: Identify the designated acquisition device and determine the device type and device identifier of the designated acquisition device; Based on the device type, determining a designated device library corresponding to the device type from a plurality of pre-built device libraries, wherein the device library includes a plurality of devices belonging to the same device type, a plurality of manufacturer information, and a correspondence between the devices and the manufacturer information; According to the device identification of the designated acquisition device, a search is performed in the designated device library to determine the manufacturer information corresponding to the designated acquisition device.
9. A traffic data collection device based on intelligent transportation, characterized in that: The device comprises: 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, the instructions being executed by the at least one processor to enable the at least one processor to: Predetermine a plurality of traffic data to be collected required by the front-end intelligent traffic service to obtain device information on the collection device side corresponding to each of the traffic data to be collected, wherein the device information includes device attribute information and device real-time data; Determine the operating status of the designated collection device based on the device information of the collection device corresponding to each of the traffic data to be collected; When the running state of the designated acquisition device meets the preset condition, determining the manufacturer information of the designated acquisition device in the device attribute information; According to the manufacturer information of each designated collection device, a corresponding designated data collection mode is matched, so as to establish a connection with each designated collection device through the designated data collection mode to collect a plurality of collected traffic source data, wherein the data collection mode includes a data interface and a data transmission protocol; The plurality of collected traffic source data are processed to generate traffic data to be collected.
10. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Predetermine a plurality of traffic data to be collected required by the front-end intelligent traffic service to obtain device information on the collection device side corresponding to each of the traffic data to be collected, wherein the device information includes device attribute information and device real-time data; Determine the operating status of the designated collection device based on the device information of the collection device corresponding to each of the traffic data to be collected; When the running state of the designated acquisition device meets the preset condition, determining the manufacturer information of the designated acquisition device in the device attribute information; According to the manufacturer information of each designated collection device, a corresponding designated data collection mode is matched, so as to establish a connection with each designated collection device through the designated data collection mode to collect a plurality of collected traffic source data, wherein the data collection mode includes a data interface and a data transmission protocol; The plurality of collected traffic source data are processed to generate traffic data to be collected.
