Flink-based open pit coal mine vehicle data real-time stream processing method and system

Through the combination of Flink stream processing system and HBase database, the real-time and computational complexity problems in open-pit coal mine vehicle data processing are solved, rapid real-time monitoring and analysis of vehicle data is achieved, and the efficiency and visualization capabilities of safety management are improved.

CN118733634APending Publication Date: 2024-10-01EAST CHINA NORMAL UNIV
View PDF 0 Cites 2 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing technology has low real-time performance and high computational complexity in open-pit coal mine vehicle data processing, and cannot meet the real-time needs of mine safety supervision and data analysis.

Method used

A distributed stream processing system based on Flink is used to receive and transmit vehicle data through the Apache Kafka cluster, perform data cleaning, aggregation and filtering, use the HBase database for columnar storage and fast query, and combine Vue and echarts to implement a visual monitoring interface.

Benefits of technology

It achieves rapid real-time processing and monitoring of open-pit coal mine vehicle data, improves identification accuracy and response speed, meets the real-time data analysis needs of mine safety management, and reduces operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733634A_ABST
    Figure CN118733634A_ABST
Patent Text Reader

Abstract

The invention discloses an Flink-based open pit coal mine vehicle data real-time stream processing method, which comprises the following steps of: 1, deploying and configuring an Apache Kafka cluster in a distributed environment, and receiving a data source; 2, in a distributed environment, an Apache Flink stream processing platform is deployed and configured, Kafka cluster data is consumed, and data streams are cleaned, aggregated, filtered and processed; 3, deploying an HBase database, and performing determinant storage on the processed data; 4, the front end displays the processed statistical data, and the vehicle state of the whole open pit coal mine is monitored in real time. The invention further discloses a stream processing system for implementing the method, and the stream processing system has extremely high practicability and commercial value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information technology, and specifically relates to big data processing and real-time stream processing technology, as well as applications in vehicle monitoring and management in coal mine areas. Background Art

[0002] With the continuous development of distributed computing and database technology, the increasing number of technologies and equipment such as the Internet of Things and sensors, the amount of data in various fields is also increasing. Data is undoubtedly the "oil" of contemporary society. Many data today are large-scale and real-time. After a period of time, the data may become invalid and have little use value. As a kind of low-density value data, big data is very important to mine the information hidden behind it, which can better help us understand the value contained in the data. Since the development of the big data era, the amount of data has grown exponentially, and the use of mining data has gradually gained attention.

[0003] The data in the mine has the following characteristics: the frequency of data generated by the machine is high, the amount of sensor data is large, and the data collection speed is extremely fast. At present, the attention paid to mine data tends to be more on small data sets and batch processing, that is, batch analysis and statistics of data from the past period of time cannot achieve the effect of real-time processing, and less attention is paid to the continuous real-time data stream and real-time stream processing. At present, with the gradual development of stream processing, the analysis of offline data has gradually failed to meet the actual needs, and the real-time requirements of data analysis are getting higher and higher. How to quickly and in real time process vehicle terminal data and extract useful information has become an urgent need.

[0004] As an important part of the entire mine safety, mine vehicle terminal data monitors the every move of all vehicles, deeply explores the data patterns behind the sensors, and performs abnormal detection and statistical analysis on the real-time status of vehicles. This helps the management to control vehicles more accurately and in real time, make more reasonable decisions, and reduce the occurrence of safety incidents. It is an important way to ensure safety.

[0005] In summary, the use of real-time big data stream processing can effectively supervise the operation of vehicles in mining areas and reduce the operating costs of coal mining enterprises. Therefore, it is necessary to propose new technical solutions to realize real-time stream processing of open-pit coal mine vehicle data. Summary of the invention

[0006] The purpose of the present invention is to overcome the problems of low real-time performance and high computational complexity in the prior art, and propose a real-time stream processing method and system for open-pit coal mine vehicle data based on Flink, focusing on analyzing and processing massive and real-time vehicle data in the coal mine area to solve the above problems.

[0007] The present invention comprises the following steps:

[0008] Step 1: Deploy and configure the Apache Kafka cluster in a distributed environment to receive data sources;

[0009] Step 2: In a distributed environment, deploy and configure the Apache Flink stream processing platform, consume Kafka cluster data, and clean, aggregate, filter, and process the data stream;

[0010] Step 3: Deploy the HBase database to store the processed data in column format.

[0011] Step 4: The front end displays the processed statistical data and monitors the vehicle status of the entire open-pit coal mine in real time.

[0012] The specific configuration information of Apache Kafka in step 1 of the present invention includes:

[0013] 1) Deploy and configure an Apache Kafka cluster for messaging in a distributed environment;

[0014] 2) In the Apache Kafka cluster, define and create message topics for data exchange;

[0015] 3) Configure the message producer to send the data source to the corresponding message topic;

[0016] 4) Configure message consumers to receive and process data from corresponding message topics.

[0017] In step one of the present invention, the data input end is Kafka; the Kafka cluster is used to receive and transmit real-time data from open-pit coal mine vehicles; the Kafka cluster includes multiple distributed nodes for improving the reliability and scalability of data transmission, and the system can receive and consume vehicle data streams through Kafka; the vehicle data mainly includes the vehicle's terminal number, longitude and latitude coordinates, vehicle type, vehicle status, vehicle driver, company, current speed, and current time.

[0018] In step 2 of the present invention, the Apache Flink stream processing platform performs data cleaning, filtering, aggregation and complex event processing on the vehicle data received from the Apache Kafka cluster; wherein,

[0019] The data cleaning and filtering method includes filtering data whose vehicle status is disabled or damaged and whose generation time is more than 30 seconds from the current system time.

[0020] In step 2 of the present invention, Apache Flink processes the calculation logic of different statistical data events as follows:

[0021] 1) Event of the number of vehicle types in the mining area: based on the received mining area vehicle data, the total number of vehicles and type counters are updated;

[0022] 2) Travel distance update event: obtain the location information of each vehicle in two adjacent time periods, calculate the travel distance based on the location coordinates, use the Haversine formula to calculate the distance between the two geographic coordinates, and accumulate the distances in all time periods. When this event is triggered, save this record to the HBase database;

[0023] 3) Data frequency update event: Count the number of data sent by each vehicle in a given time period and calculate the data collection frequency (number of data / time). When this event is triggered, save this record to the HBase database;

[0024] 4) Time interval update event: Calculate the time interval between two adjacent data of each vehicle and find the maximum and minimum time intervals. Calculate the difference between adjacent timestamps by traversing the timestamps in the data stream. When this event data is updated, save this record to the HBase database;

[0025] 5) Continuous speeding record event: monitor vehicle speed data and detect continuous speeding events. Set the speeding threshold to 45km / h, and record 30 seconds of continuous speeding as an event. When this event is triggered, save this record to the HBase database;

[0026] 6) Abnormal direction angle change event: monitor the vehicle direction angle data, detect whether the direction angle change exceeds the set threshold, calculate the direction angle difference between two adjacent data, and determine whether it exceeds the threshold of 90°. When this event is triggered, save this record to the HBase database;

[0027] 7) Vehicle counting events in different mining areas: Calculate the total number of vehicles in each mining area in real time. If the total number of vehicles exceeds the alarm threshold configured for the current mining area, an event is triggered. When this event is triggered, this record is saved in the HBase database;

[0028] 8) Vehicle transport count event: read the area where the vehicle was last located and calculate the area where the local data is located, and calculate the total number of vehicle transport times.

[0029] In step three of the present invention, the HBase database is used to efficiently store and quickly query the processed vehicle data, and the HBase database is configured to support columnar storage and fast read and write operations of large-scale data.

[0030] The specific configuration information of HBase in step 3 of the present invention includes:

[0031] Since data sources are continuously arriving and vehicle trajectories need to be queried later, in order to avoid hotspot access to a certain Region server, a label is set in the high-order field and a data time is set in the low-order field. In order to facilitate the recent data to be placed in the front, the timestamp is reversed and 10000000000000L-TimeStamp is used. Therefore, the row key design of this table satisfies the form of "vehicle terminal number_timestamp reverse".

[0032] In the structure of Hbase tables, each table has one or more column clusters. The design of column clusters can also have a great impact on the database. The number of column clusters needs to be designed according to actual needs. Considering that the demand for writing to this table is greater than the demand for reading queries, only one column cluster is designed.

[0033] After the original collected data is analyzed and processed by Flink, it needs to be saved in the statistical analysis table. This table needs to store the vehicle driving distance, vehicle speeding, vehicle data frequency, and vehicle real-time location obtained by Flink analysis. There are multiple events, so in order to reduce the number of tables, the events need to be combined into RowKey, and the data of the same event is hashed to different servers. The event name is placed in the highest position, and the data in different event areas are sorted by the latest time. Therefore, the design of RowKey is "Event Name_Reverse Timestamp_Terminal Number", C is the count event representing the number of transportations; transportation from the mining site to the slag site is counted once. DIR is the direction event indicating the vehicle steering angle is too large, DIS is the distance event indicating the total distance traveled by the current terminal number vehicle; F is the frequency event representing the frequency of data transmission; L is the location event representing the location data of the current terminal number, and S is the speed event representing the occurrence of speeding.

[0034] In step 4 of the present invention, the front end requests the processed data in the HBase database through the Restful API interface exposed by the back end, and displays the real-time status and historical status of the vehicle in the form of a chart or dashboard, which is used to display the operating status and historical data analysis of the open-pit coal mine vehicle in real time.

[0035] In step 4 of the present invention, the front end displays the statistical information of the vehicle data, including:

[0036] 1) Total number and types of vehicles: Displays the total number and types of vehicles in each mining area.

[0037] 2) Vehicle transport times section: displays the total number of transport times of all vehicles on that day.

[0038] 3) Vehicle travel distance section: displays the current time, terminal number, and the mileage the vehicle has traveled that day.

[0039] 4) Vehicle data frequency section: displays the frequency, maximum and minimum time intervals for each vehicle to send data.

[0040] 5) Vehicle speeding information section: displays data on when the vehicle continuously exceeds the speed limit for a certain period of time.

[0041] 6) Vehicle Angle Exceeding Limit Section: Displays the time point at which the vehicle's angle of steering exceeds a certain limit, and records the size of the two turning angles.

[0042] Based on the above method, the present invention also proposes a real-time stream processing system for open-pit coal mine vehicle data based on Flink, the system comprising:

[0043] Vehicle terminal, used to record and upload vehicle-related data, including: vehicle terminal number, latitude and longitude coordinates, vehicle type, vehicle status, vehicle driver, company, current speed, and current time;

[0044] Distributed message transmission module, which is used to deploy and configure Apache Kafka clusters in a distributed environment, transmit data from data sources, form data streams, and facilitate cluster expansion;

[0045] A real-time data processing and integration module, which is used to deploy and configure the Apache Flink stream processing platform in a distributed environment, perform streaming processing on the data stream, monitor the vehicle status in the open-pit mine area, and report abnormal events in a timely manner, including speeding and turning at an excessive angle;

[0046] Distributed database module, which is used to deploy and configure the HBase database system in a distributed environment, to store the stream-processed data in column format, and to efficiently store and quickly query the processed vehicle data;

[0047] The front-end display module is used to display the vehicle statistics in the entire mining area, including: creating a large visual screen based on Vue and echarts to display the current location of all vehicles in the mining area, the distribution of vehicle types and quantities, and statistical information; real-time acquisition of abnormal events generated by vehicles in the mining area and generating alarm information, including speeding, turning too far, and downtime.

[0048] The beneficial effects of the present invention include: high recognition accuracy, fast response speed and comprehensive visualization.

[0049] In order to improve the processing efficiency of the system, the message middleware Kafka cluster is added, and the data is buffered by the message queue to ensure the availability and replayability of the system. At the same time, in order to speed up the consumption of data streams, Flink is used to consume KafkaTopic, which speeds up the response speed of data. At the same time, in order to adapt to the growing data load requirements, the HBase distributed column database is used to store the processed data, and the key of the table is cleverly designed to facilitate the uniform hashing of data into different library tables. In addition, the present invention uses Web technology to develop a visual monitoring interface, which displays the statistical event results in real time through charts, curves, etc., which is convenient for users to observe intuitively, thereby solving the problem of not being able to fully visualize. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0051] Figure 1 It is a system framework diagram of the present invention.

[0052] Figure 2 This is the process of counting vehicle travel distance.

[0053] Figure 3 Counting process for vehicles.

[0054] Figure 4 This is the process for judging whether the vehicle turns over limit.

[0055] Figure 5 Count the number of vehicles transported. DETAILED DESCRIPTION

[0056] The present invention is further described in detail with reference to the following specific examples and drawings. The process, conditions, experimental methods, etc. for implementing the present invention, except for the contents specifically mentioned below, are all common knowledge and common common sense in the art and are not particularly limited by the present invention.

[0057] The present invention discloses a real-time stream processing method and system for open-pit coal mine vehicle data based on Flink, which is intended to more quickly and accurately monitor the driving status of vehicles in the mining area in real time, and identify and warn of abnormal events such as travel distance update, data frequency update, time interval update, continuous speeding, abnormal direction angle change, mining area vehicle count, and mining area vehicle transportation frequency update. The basic process is that the vehicle first transmits data to the corresponding Topic in the Kafka cluster through the network, and then Flink filters the vehicle data by consuming the corresponding Topic data stream of Kafka, determines whether the corresponding event is triggered, and saves the triggered event, and finally displays and alarms on the front-end page, which can monitor the vehicle data and status in the mining area in real time, and improve the early warning and response capabilities of problem accidents.

[0058] The present invention provides a real-time stream processing method for open-pit coal mine vehicle data based on Flink, focusing on analyzing and processing massive and real-time vehicle data. The steps are as follows:

[0059] Step 1: Deploy and configure the Apache Kafka cluster in a distributed environment to receive data from the data source. The data information includes the vehicle’s terminal number, latitude and longitude coordinates, vehicle type, vehicle status, vehicle driver, company, current speed, and current time.

[0060] Step 2: In a distributed environment, deploy and configure the Apache Flink stream processing platform to consume Kafka cluster data, clean, aggregate, filter and process the data stream. The event information processed mainly includes travel distance update, data frequency update, time interval update, continuous speeding, abnormal direction angle change, mining area vehicle count, and mining area vehicle transportation frequency update;

[0061] Step 3: Deploy the HBase database to store the stream processed data in column format.

[0062] Step 4: The front-end requests processed data to conduct real-time monitoring of the vehicle status of the entire open-pit coal mine.

[0063] Example 1

[0064] To count the distance traveled by the vehicle, the distance between every two GPS data points of the vehicle is accumulated. Figure 2 As shown, the steps are as follows:

[0065] Step 1: First, use the addSource function to obtain a continuous stream of vehicle information stream data DataStream from the Kafka message queue;

[0066] Step 2: Use the assignTimestampsAndWatermarks function to assign a watermark to the stream data and set the delay to 5 seconds to ensure the positive order of the subsequent window processing data. Extract the terminal number, the time when this data was generated, the longitude, and the latitude from the vehicle information stream and convert them into a Tuple.

[0067] Step 3: Perform a diversion operation on the terminal number and send different vehicle information to different servers for processing. Perform a window operation on the information of each vehicle, and open a 20-second sliding time window here. In the window processing operator, register the distance status of the current vehicle and the latitude and longitude status of the previous moment;

[0068] Step 4: When the water level reaches the end time of the window, in the window processing function, first sort the data by time, use the iterator to traverse each data in the window, and for each data, first obtain the position status and total distance status of the previous data, and use the distance formula Calculate the distance between two GPS coordinate points. Lat1 represents the latitude of point A, Lung1 represents the longitude of point A, Lat2 represents the latitude of point B, and Lung2 represents the longitude of point B; a = Lat1-Lat2 is the difference in latitude between the two points, b = Lung1-Lung2 is the difference in longitude between the two points; 6378.137 is the radius of the earth, in kilometers;

[0069] Step 5: When the distance between the coordinate points is calculated, the total distance status in the operator is updated, and the terminal number, time, and total distance data are sent to the next stage. In the Sink stage, the results of the data stream in the previous stage are saved in the HBase database.

[0070] Example 2

[0071] When counting the number of vehicles in the mine area, refer to Figure 3 As shown, the steps are as follows:

[0072] Step 1: First, consume the real-time data stream from Kafka and assign a watermark, extract the terminal number and time in the vehicle information, add a constant "1" field, and convert it into a Tuple array;

[0073] Step 2: Divide by the last field, aggregate all data into one operator task, open a 2-minute sliding time window for the operator, with a sliding step of 30 seconds, and set the window aggregation function. Create a Set collection in the aggregation function. For each incoming data, determine whether the current data is in the collection. If not, add the terminal number to the collection and increase the total number of vehicles by one. The purpose of using the aggregation function is to reduce data caching and improve machine execution efficiency.

[0074] Step 3: Use the context content in the aggregated windowFunction to obtain the aggregation result, output the sum of all vehicles in the current window, and store it in the HBase database.

[0075] Example 3

[0076] When counting continuous speeding events, if the speed exceeds 45 (km / h) for 30 consecutive seconds, the event is stored in the table of the HBase database. The steps for determining continuous speeding events are as follows:

[0077] Step 1: Set the watermark. Due to the instability of the network and device status, the arrival time of data may be out of order, so it is necessary to set the watermark time, extract the maximum timestamp from the incoming data as the current watermark time, and set the extension time to 5 seconds;

[0078] Step 2: Conversion operation. Use the map function to extract the terminal number, time, and speed in the object into a triple;

[0079] Step 3: Divide by terminal number. Since the incoming data is data of multiple vehicles, in order to facilitate the judgment of each vehicle, the data needs to be grouped. Each terminal number is divided into a group, corresponding to a KeyedStream, and then statistical analysis is performed on the data in each KeyedStream;

[0080] Step 4: Start the sliding time window. The window time length is 40 seconds, and the window sliding distance is 5 seconds. When an event arrives, the event will be sent to the window until the watermark is greater than or equal to the window end time, triggering the window calculation;

[0081] Step 5: Speeding judgment. The window calculation function is processFunction. All data in this window are reordered by time. When encountering data with a speed exceeding 45 (km / h), determine whether there is a timer. If not, establish a 30s timer and write the time of this timer into the key value state. If there is a timer, skip it. In the subsequent 30s, if the speed drops below the speeding standard, delete the established timer and clear the timer time in the state. If the speed is all overspeeding within 30s, the timer rule is triggered when the timer expiration time is reached, and the rule is also cleared to send the current vehicle terminal number and timer time to the subsequent data stream.

[0082] Example 4

[0083] When counting the vehicle direction angle change exceeding the limit event, the vehicle direction angle change exceeding a certain range is detected. If the two adjacent turning angles are too large and the time interval does not exceed 10s, they are stored in the HBase database. Figure 4 As shown, the steps are as follows:

[0084] Step 1: Extract the waterline time from the incoming data, and use the map operator to extract the terminal number, time, and steering angle in the object as a triplet;

[0085] Step 2: Use Keyby to shunt data by terminal number, start a 20s sliding time window, and the sliding time interval is 10s;

[0086] Step 3: When the window ends, first sort all the data in the window by time, loop through each data, and check whether there is the status of the previous data in the current KeyedStream. If there is and the time difference between the two data is less than 10s, then output this terminal number, time, and the angle of the two turns to the database, otherwise directly record the information of the current data into the status.

[0087] Example 5

[0088] When counting vehicle transport times, refer to Figure 5 As shown, the steps are as follows:

[0089] First, determine whether the previous data location is in the mining field. If not, it means it is in the slag field, and update the state to the current data location. If it is in the mining field, it is necessary to determine the current location state. If the current location is the slag field, the number of transportations is increased by one, and the state is updated. If the current location is in other states, the local state in the update operator is the state of the current data location.

[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by software, and of course, by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product.

Claims

1. A real-time stream processing method for open-pit coal mine vehicle data based on Flink, characterized in that: The following steps are involved: Step 1: Deploy and configure the Apache Kafka cluster in a distributed environment to receive data sources; Step 2: Deploy and configure the Apache Flink stream processing platform in a distributed environment, consume Kafka cluster data, and clean, filter, aggregate, and process the data stream; Step 3: Deploy the HBase database to store the stream processed data in column format; Step 4: The front end displays the processed statistical data and monitors the vehicle status of the entire open-pit coal mine in real time.

2. The method for real-time stream processing of open-pit coal mine vehicle data according to claim 1 is characterized in that: In step 1, the specific configuration information of Apache Kafka includes: 1) Deploy and configure an Apache Kafka cluster for messaging in a distributed environment; 2) In the Apache Kafka cluster, define and create message topics for data exchange; 3) Configure the message producer to send the data source to the corresponding message topic; 4) Configure message consumers to receive and process data from corresponding message topics.

3. The method for real-time stream processing of open-pit coal mine vehicle data according to claim 1, characterized in that: In step one, the data input end is Kafka; the Kafka cluster is used to receive and transmit real-time data from open-pit coal mine vehicles; the Kafka cluster includes multiple distributed nodes to improve the reliability and scalability of data transmission, and the system receives and consumes vehicle data streams through Kafka; vehicle data includes the vehicle's terminal number, longitude and latitude coordinates, vehicle type, vehicle status, vehicle driver, company, current speed, and current time.

4. The method for real-time stream processing of open-pit coal mine vehicle data according to claim 1, characterized in that: In step 2, the Apache Flink stream processing platform performs data cleaning, filtering, aggregation, and complex event processing on the vehicle data received from the Kafka cluster.

5. The method for real-time stream processing of open-pit coal mine vehicle data according to claim 4 is characterized in that: The data cleaning and filtering method includes filtering data whose vehicle status is disabled or damaged and whose generation time is more than 30 seconds from the current system time.

6. The method for real-time stream processing of open-pit coal mine vehicle data according to claim 1, characterized in that: In step 2, the calculation logic of different events is as follows: 1) Event of the number of vehicle types in the mining area: based on the received mining area vehicle data, the total number of vehicles and type counters are updated; 2) Travel distance event: obtain the location information of each vehicle in two adjacent time periods, calculate the travel distance based on the location coordinates, use the Haversine formula to calculate the distance between the two geographic coordinates, and accumulate the distances in all time periods. When this event is triggered, save this record to the HBase database; 3) Data frequency event: Count the number of data sent by each vehicle in a given time period and calculate the data collection frequency. When the event data is updated, save this record to the HBase database; 4) Time interval event: Calculate the time interval between two adjacent data of each vehicle and find the maximum and minimum time intervals. Calculate the difference between adjacent timestamps by traversing the timestamps in the data stream. When this event data is updated, save this record to the HBase database; 5) Continuous speeding record event: monitor vehicle speed data and detect continuous speeding events. Set the speeding threshold to 45km / h, and record 30 seconds of continuous speeding as an event. When this event is triggered, save this record to the HBase database; 6) Abnormal direction angle change event: monitor the vehicle direction angle data, detect whether the direction angle change exceeds the set threshold, calculate the direction angle difference between two adjacent data, and determine whether it exceeds the threshold of 90°. When this event is triggered, save this record to the HBase database; 7) Vehicle counting events in different mining areas: Calculate the total number of vehicles in each mining area in real time. If the total number of vehicles exceeds the alarm threshold configured for the current mining area, an event is triggered. When this event is triggered, this record is saved in the HBase database; 8) Vehicle transport frequency statistics event: read the area where the vehicle was last located and calculate the area where the local data is located, and calculate the total number of vehicle transports. When this event data is updated, this record is saved in the HBase database.

7. The method for real-time stream processing of open-pit coal mine vehicle data according to claim 1, characterized in that: In step 3, the HBase database is used to efficiently store and quickly query the processed vehicle data. The HBase database is configured to support columnar storage and fast read and write operations for large-scale data. and / or, In step 3, the specific configuration information of HBase includes: Set the label in the high-order field and the data time in the low-order field; the most recently arrived data is placed in the front, and the timestamp is reversed; In the Hbase table structure, each table has only one column cluster; The original collected data is analyzed and processed by Apache Flink and saved in the statistical analysis table. Events are combined into RowKey, and data of the same event is hashed to different servers. The event name is placed in the highest position, and data in different event areas are sorted by the most recent time.

8. The method for real-time stream processing of open-pit coal mine vehicle data according to claim 1, characterized in that: In step 4, the front end requests the processed data in the HBase database through the Restful API interface exposed by the back end, and displays the real-time and historical status of the vehicle in the form of charts or dashboards, which are used to display the operating status and historical data analysis of open-pit coal mine vehicles in real time.

9. The method for real-time stream processing of open-pit coal mine vehicle data according to claim 8, characterized in that: The information displayed includes: 1) Total number and types of vehicles: displays the total number and types of vehicles in each mining area; 2) Vehicle transportation times section: displays the total number of transportation times of all vehicles on the day; 3) Vehicle travel distance section: displays the current time, terminal number, and the mileage that the vehicle has traveled that day; 4) Vehicle data frequency section: displays the frequency, maximum and minimum time intervals of each vehicle sending data; 5) Vehicle speeding information section: displays the data of when the vehicle continuously exceeded the speed limit for a certain period of time; 6) Vehicle Angle Exceeding Limit Section: Displays the time point at which the vehicle's angle of steering exceeds a certain limit, and records the size of the two turning angles.

10. A real-time stream processing system for open-pit coal mine vehicle data based on Flink, characterized in that: The system adopts the method according to any one of claims 1 to 9, and the system comprises: Vehicle terminal, used to record and upload vehicle-related data, including: vehicle terminal number, latitude and longitude coordinates, vehicle type, vehicle status, vehicle driver, company, current speed, and current time; Distributed message transmission module, which is used to deploy and configure Apache Kafka clusters in a distributed environment, transmit data from data sources, form data streams, and facilitate cluster expansion; A real-time data processing and integration module, which is used to deploy and configure the Apache Flink stream processing platform in a distributed environment, perform streaming processing on the data stream, monitor the vehicle status in the open-pit mine area, and report abnormal events in a timely manner, including speeding and turning at an excessive angle; Distributed database module, which is used to deploy and configure the HBase database system in a distributed environment, to store the stream-processed data in column format, and to efficiently store and quickly query the processed vehicle data; The front-end display module is used to display the vehicle statistics in the entire mining area, including: creating a large visual screen based on Vue and echarts to display the current location of all vehicles in the mining area, the distribution of vehicle types and quantities, and statistical information; real-time acquisition of abnormal events generated by vehicles in the mining area and generating alarm information, including speeding, turning too far, and downtime.

Citation Information

Cited By

  • Out-of-order data stream aggregation rate limiting method based on Apache Flink

    CN119473604A

  • An out-of-order data stream aggregation rate limiting method based on Apache Flink

    CN119473604B