A distributed electromagnetic big data processing system and method
Through the distributed electromagnetic big data processing system, combined with the stream-batch integrated computing model and the time series database, the problem of complexity and maintenance difficulty of electromagnetic big data processing is solved, real-time analysis and in-depth mining are realized, and it is suitable for massive data and vehicle-mounted equipment.
Patent Information
- Application Number
- CN202410712166.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-04
AI Technical Summary
Existing electromagnetic big data processing methods have problems such as high maintenance costs, complex operations, and high complexity of system deployment. It is especially difficult to deploy and maintain in independent small-scale environments, such as vehicle-mounted equipment.
Provide a distributed electromagnetic big data processing system, including distributed acquisition module, time series data storage module, streaming-batch integrated computing module, intelligent data mining module and comprehensive monitoring module, using lightweight and stable module design, combined with streaming-batch integration The computing model and time series database optimize the overall architecture, reduce the difficulty of deployment and maintenance, and support real-time processing and in-depth analysis of massive data.
It realizes real-time analysis and in-depth mining of electromagnetic big data, reduces system complexity and storage requirements, simplifies data collection and storage methods, is suitable for cluster deployment and vehicle-mounted equipment, and improves the flexibility and scalability of the system.
Smart Images

Figure CN118277625B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electromagnetic big data processing, and in particular to a distributed electromagnetic big data processing system and method. Background Art
[0002] With the continuous development of communication technology, radar, communication, navigation and other frequency-using equipment have been used on a large scale. At the same time, radio, television, base stations and other equipment have also been fully covered, further promoting the explosive growth of electromagnetic signals. As the electromagnetic environment becomes more and more complex, the acquired electromagnetic data presents significant characteristics of big data. For example, the explosive growth of electromagnetic data makes the big data larger in scale; the wide range of data sources makes the big data diverse, etc.
[0003] At present, when processing electromagnetic big data, it is usually based on open source big data processing architecture, such as lambda architecture, Apache Hadoop architecture, etc. However, the existing processing methods have problems such as high maintenance cost, complex operation, and high system deployment complexity.
[0004] To this end, the present invention provides a distributed electromagnetic big data processing system and method. Summary of the invention
[0005] Based on this, it is necessary to provide a distributed electromagnetic big data processing system and method to address the above technical problems.
[0006] According to a first aspect of the present invention, a distributed electromagnetic big data processing system is provided, which includes a distributed acquisition module, a time series data storage module, a stream-batch integrated computing module, an intelligent data mining module and a comprehensive monitoring module, wherein: the distributed acquisition module is used to collect raw electromagnetic data from multiple front-end data acquisition points, and send the raw electromagnetic data to the time series data storage module and / or the stream-batch integrated computing module; the time series data storage module is used to receive and store the raw electromagnetic data sent by the distributed acquisition module, send the received raw electromagnetic data to the stream-batch integrated computing module for processing, and receive and store the processing results sent by the stream-batch integrated computing module; The processing result is sent to the intelligent data mining module for mining and analysis; the stream-batch integrated computing module is used to receive and process the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module by using stream processing or batch processing, generate processing results, and send the processing results to the time series data storage module; the intelligent data mining module is used to receive the processing results sent by the time series data storage module, and mine and analyze the received processing results to generate mining and analysis results; the comprehensive monitoring module is used to monitor the relevant information of the original electromagnetic data and the relevant information of the electromagnetic big data processing system, and generate monitoring information.
[0007] In a possible implementation, the distributed acquisition module is also used to send the original electromagnetic data to the time series data storage module and / or the stream-batch integrated computing module according to preset data sending rules; the preset data sending rules are determined based on current business scenario information.
[0008] In a possible implementation, the time series data storage module is also used to store the original electromagnetic data sent by the distributed acquisition module according to multiple field information in a preset table structure through a preset data insertion interface; the field information includes a timestamp, parameter information, spatial information and attribute information corresponding to the original electromagnetic data.
[0009] In a possible implementation, the stream processing method or batch processing method is used to receive and process the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module to generate a processing result, which specifically includes: the stream-batch integrated computing module uses the stream processing method or batch processing method to group the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module to generate multiple grouped data; for each grouped data, the grouped data within a preset time window is aggregated and filtered to generate intermediate data; the intermediate data is subjected to time-frequency conversion processing to generate a processing result, and the processing result is a frequency domain analysis result.
[0010] In a possible implementation, the processing results sent by the receiving time series data storage module are mined and analyzed to generate mining analysis results, specifically including: the intelligent data mining module mines and analyzes the processing results according to preset data mining operators to generate mining analysis results; the preset data mining operators include data cleaning and preprocessing operators, feature extraction operators, data dimensionality reduction operators, data clustering operators, data classification prediction operators, association rule mining operators and time series analysis operators.
[0011] In a possible implementation, the relevant information of the original electromagnetic data includes data flow information and data quality information of the original electromagnetic data, and the relevant information of the electromagnetic big data processing system includes performance status information and task execution status information of the electromagnetic big data processing system.
[0012] The comprehensive monitoring module is also used to display the monitoring information on a preset display interface.
[0013] According to a second aspect of the present invention, a distributed electromagnetic big data processing method is provided, which is applied to the above-mentioned distributed electromagnetic big data processing system, and the method comprises: collecting raw electromagnetic data from multiple front-end data collection points through a distributed acquisition module, and sending the raw electromagnetic data to a time series data storage module and / or a stream-batch integrated computing module; receiving and storing the raw electromagnetic data sent by the distributed acquisition module through the time series data storage module, sending the received raw electromagnetic data to the stream-batch integrated computing module for processing, receiving and storing the processing results sent by the stream-batch integrated computing module, and sending the received processing results to an intelligent data mining module for mining and analysis; receiving and processing the raw electromagnetic data sent by the distributed acquisition module or the raw electromagnetic data sent by the time series data storage module by the stream-batch integrated computing module using a stream processing method or a batch processing method, generating a processing result, and sending the processing result to the time series data storage module; receiving the processing result sent by the time series data storage module through the intelligent data mining module, and mining and analyzing the received processing result; monitoring the relevant information of the raw electromagnetic data and the relevant information of the electromagnetic big data processing system through the comprehensive monitoring module to generate monitoring information.
[0014] According to a third aspect of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method when executing the computer program.
[0015] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the steps of the method when executed by a processor.
[0016] The advantages and beneficial effects of the present invention are as follows: the present invention provides a distributed electromagnetic big data processing system and method, the electromagnetic big data processing system includes a distributed acquisition module, a time series data storage module, a stream-batch integrated computing module, an intelligent data mining module and a comprehensive monitoring module, wherein the distributed acquisition module is used to collect raw electromagnetic data from multiple front-end data acquisition points, and send the raw electromagnetic data to the time series data storage module and / or the stream-batch integrated computing module; the time series data storage module is used to receive and store the raw electromagnetic data sent by the distributed acquisition module, send the received raw electromagnetic data to the stream-batch integrated computing module for processing, and receive and store the raw electromagnetic data sent by the stream-batch integrated computing module. The processing results sent by the distributed acquisition module are sent, and the received processing results are sent to the intelligent data mining module for mining and analysis; the stream-batch integrated computing module is used to adopt stream processing or batch processing to receive and process the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module, generate processing results, and send the processing results to the time series data storage module; the intelligent data mining module is used to receive the processing results sent by the time series data storage module, and mine and analyze the received processing results to generate mining and analysis results; the comprehensive monitoring module is used to monitor the relevant information of the original electromagnetic data and the relevant information of the electromagnetic big data processing system, and generate monitoring information. The present invention can collect raw electromagnetic data from distributed data sources, and realize real-time analysis of raw electromagnetic data through multiple modules such as time series storage, stream-batch integrated processing, and data mining. In addition, the electromagnetic big data processing system uses modules that are as streamlined and stable as possible, and has the characteristics of light weight, stability, easy maintenance, and convenient deployment. At the same time, by combining the characteristics of electromagnetic big data itself and the business characteristics of users, it adopts a lighter and more scalable data collection and storage method around the stream-batch integrated computing mode, optimizes the overall architecture, merges components with similar functions, and removes redundant components to reduce the deployment, maintenance, and operation difficulty of the electromagnetic big data processing system. Moreover, the integration of stream-batch integrated technology and time series database can greatly reduce the complexity of the electromagnetic big data processing system and the storage requirements while ensuring that massive data can be processed in real time and deeply analyzed. It can be deployed as a cluster to process massive data, and can also be independently deployed on vehicle-mounted equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 4 is a structural block diagram of a distributed electromagnetic big data processing system in an embodiment of the present invention.
[0018] Figure 2 Flow chart of the distributed electromagnetic big data processing method in an embodiment of the present invention.
[0019] Figure 3 Schematic diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0021] At present, when processing electromagnetic big data, it is usually based on open source big data processing architectures, such as the lambda architecture, Apache Hadoop architecture, etc. Specifically, the lambda architecture processes real-time streaming data and batch computing separately, which can not only realize real-time processing of streaming data, but also simultaneously complete complex batch analysis and calculation. However, this requires the deployment and maintenance of two sets of technical architectures at the same time, which has high maintenance costs and high technical difficulties, and the same data source is processed and stored twice, resulting in a large amount of data redundancy and repeated operations. In addition, for the Apache Hadoop architecture, it is more suitable for large-scale deployment scenarios, and its focus is on the large-scale scalability of the entire complex system, which leads to high complexity in system deployment and is difficult to apply in independent small-scale environments, such as deployment in vehicle-mounted equipment.
[0022] Therefore, in the field of electromagnetic analysis, it is a huge technical challenge to ensure that the system under the same technical architecture has both large-scale horizontal expansion and deployment capabilities and the ability to operate normally in special scenarios with extremely limited resources. It is necessary to select system components to ensure that all components have sufficient scalability and expansion capabilities. At the same time, improvements need to be made in data processing and interaction.
[0023] In view of this, the present invention proposes a distributed electromagnetic big data processing system and method. Through the provided distributed electromagnetic big data processing system, it is possible to solve complex electromagnetic big data real-time calculation and deep mining problems with a flexible and scalable architecture, while ensuring the convenience of deployment and maintenance of the entire system.
[0024] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "multiple" means two or more. In addition, the use of "based on" or "according to" means openness and inclusiveness, because the process, steps, calculations or other actions "based on" or "according to" one or more of the conditions or values may be based on additional conditions or values beyond the described values in practice.
[0025] Embodiment 1
[0026] In the first aspect, the present invention proposes a distributed electromagnetic big data processing system, see Figure 1 The electromagnetic big data processing system includes a distributed acquisition module, a time series data storage module, a stream-batch integrated computing module, an intelligent data mining module and a comprehensive monitoring module.
[0027] In this embodiment, the distributed acquisition module is used to collect raw electromagnetic data from multiple front-end data acquisition points and send the raw electromagnetic data to the time series data storage module and / or the stream-batch integrated computing module.
[0028] Among them, Flume can be deployed at the front-end data collection point to collect raw electromagnetic data from multiple front-end data collection points through Flume. Flume is a highly available, highly reliable, distributed system for massive log collection, aggregation and transmission. Flume supports the customization of various data senders in the log system for data collection; at the same time, Flume provides simple data processing and has the ability to write to various data recipients.
[0029] In addition, the raw electromagnetic data collected in this application mainly includes various streaming log files. Through Flume's reliable data transmission and fault-tolerant mechanism, it supports batch transmission and transaction processing of data to ensure the reliability and integrity of the data. Taking advantage of the relatively simple configuration of Flume, use its management tools and interfaces to quickly get started and deploy. The specific configuration method is as follows: Create a Flume configuration file. Specifically, you can create a Flume configuration file to define the source, channel, and destination of data collection. Optionally, the configuration file can use the properties file format and can be edited using any text editor.
[0030] Configure the data source. Specifically, you can select the appropriate data source type according to the actual situation and configure the corresponding properties. Optionally, you can use Flume's Spooling Directory Source to monitor the electromagnetic data files in the specified directory and send them to the Flume channel.
[0031] Configure the channel. Specifically, you can select the appropriate channel type and configure the channel properties. Optionally, you can use Flume's Memory Channel or File Channel, depending on the data volume and reliability requirements.
[0032] Configure the destination. Specifically, you can select the appropriate destination type and configure the properties of the destination. Optionally, you can send the electromagnetic data to destinations such as Kafka, HDFS, HBase, etc. for further processing and storage.
[0033] Start the Flume agent. Specifically, you can start the Flume agent on each data collection node and configure it according to the configuration file. Alternatively, you can use the Flume command line tool or startup script to start the Flume agent.
[0034] Data collection and transmission, specifically, the Flume agent reads raw electromagnetic data from the data source according to the definition of the configuration file and transmits it to the configured destination. Optionally, data conversion, filtering or other data preprocessing operations can be performed as needed.
[0035] In this embodiment, the distributed acquisition module can also send the original electromagnetic data to the time series data storage module and / or the stream-batch integrated computing module according to preset data sending rules.
[0036] The preset data sending rules are determined based on the current business scenario information, which may include specific business requirements, system resources, data delays, etc. For example, when real-time data analysis is required, the original electromagnetic data can be sent to the batch-stream integrated computing module first; if the amount of data is very large, the original electromagnetic data can be sent to the time series data storage module first, or a parallel processing method can be used, that is, the original electromagnetic data can be sent to the time series data storage module and the batch-stream integrated computing module at the same time.
[0037] Optionally, the raw electromagnetic data can be sent to the stream-batch integrated computing module first. In this configuration, the raw electromagnetic data is first received and processed by the stream-batch integrated computing module. The processing process may include operations such as data cleaning, data conversion, and data aggregation. After the processing is completed, the processed data is written to the time series data storage module. The advantage of this method is that data can be processed and analyzed in real time, but it may require more computing resources.
[0038] Optionally, the original electromagnetic data can be sent to the time series data storage module first. In this configuration, the original electromagnetic data is first written to the time series data storage module. Then, the stream-batch integrated computing module processes the original electromagnetic data sent by the time series data storage module. The advantage of this method is that it can reduce the pressure on the stream processing system, but it may increase the delay of the data.
[0039] Optionally, parallel processing is possible, that is, in this configuration, the raw electromagnetic data is simultaneously written to the time series data storage module and the stream-batch integrated computing module. The advantage of this approach is that both real-time processing and long-term storage can be achieved, but it may require a more complex system architecture and more resources.
[0040] In addition, you can also use the monitoring tools and management interface provided by Flume to monitor the status and performance of raw electromagnetic data collection in real time. Optionally, you can monitor file changes at the data source, channel accumulation, and data writing speed at the destination.
[0041] In this embodiment, the time series data storage module is used to receive and store the original electromagnetic data sent by the distributed acquisition module, send the received original electromagnetic data to the stream-batch integrated computing module for processing, receive and store the processing results sent by the stream-batch integrated computing module, and send the received processing results to the intelligent data mining module for mining and analysis. Optionally, the time series data storage module can also store the received original electromagnetic data through TimescaleDB.
[0042] Among them, the time series data storage module can store and store the received raw electromagnetic data, and the data content includes timestamp, parameter information, spatial information and attribute information.
[0043] In order to ensure efficient storage of massive electromagnetic data and to ensure the usability and reliability of the system, the time series database selection uses scalable open source components and is customized for the characteristics of electromagnetic data. Optionally, the time series database selection can use TimescaleDB, which is a time series database developed based on the PostgreSQL database. It is packaged and provided in the form of a plug-in and is upgraded with the version upgrade of PostgreSQL without causing trouble due to the establishment of a separate branch. Its main features include scalability, data consistency, SQL compatibility, and flexible time partitioning.
[0044] Among them, the scalability is reflected in the fact that TimescaleDB is based on PostgreSQL, and uses PostgreSQL's scalability and complex query functions, which is suitable for large-scale data storage and complex analysis. Data consistency is reflected in the fact that TimescaleDB adopts a distributed architecture and data sharding technology, which can provide strong data consistency and high availability. SQL compatibility is reflected in the fact that TimescaleDB supports standard SQL query language, and users can use familiar SQL syntax for data query and analysis. Flexible time partitioning is reflected in the fact that TimescaleDB supports data partitioning by time, and can perform flexible data partitioning and management according to needs.
[0045] In addition, the main configuration content of the time series database may include: creating a database and table structure. Specifically, a database may be created in the time series database, and a table structure may be created based on the data content. The table structure should include fields such as timestamp, parameter information, spatial information, and attribute information. In addition, database management tools or command line tools may be used to create databases and tables, and table structures may be designed based on the requirements of the data content. For raw electromagnetic data, a typical definition may include the following fields.
[0046] The time field is used to store timestamps and uses the TIMESTAMPTZ type, which represents a timestamp with a time zone.
[0047] The parameter field is used to store parameter information. It uses the VARCHAR type and sets the length based on actual needs.
[0048] The location field is used to store spatial information and is of type GEOGRAPHY(Point), indicating a geographic coordinate point.
[0049] The value field is used to store attribute information and uses the DOUBLE PRECISION type to represent floating-point values.
[0050] Data insertion mode design, specifically, the collected streaming time series data can be inserted into the time series database through the concurrently usable API provided by the time series database, ensuring that each data contains the values of fields such as timestamp, parameter information, spatial information, and attribute information.
[0051] Data retention policy design: Specifically, you can formulate a data retention policy based on storage requirements and resource constraints. Optionally, you can define a time range or data volume limit for data retention and regularly clean up expired data to maintain database performance and availability.
[0052] Data backup and recovery strategy design, specifically, you can regularly back up the data in the time series database to prevent data loss or damage. Optionally, you can use the database backup and recovery tool to back up the data to a reliable storage medium and restore it when needed.
[0053] Performance optimization strategy, specifically, can optimize the performance of the time series database according to the actual situation. Optionally, the database configuration parameters, index design and query optimization can be adjusted to improve the query and write performance.
[0054] Based on this, the time series data storage module is also used to store the received original electromagnetic data according to multiple field information in a preset table structure through a preset data insertion interface, wherein the multiple field information at least includes a timestamp, parameter information, spatial information and attribute information corresponding to the original electromagnetic data.
[0055] In this embodiment, the stream-batch integrated computing module is used to adopt a stream processing method or a batch processing method to receive and process the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module, generate processing results, and send the processing results to the time series data storage module.
[0056] Among them, the stream-batch integrated computing module supports both stream processing and batch processing in the same system. In addition, various data processing tasks can be processed based on Flink, including real-time analysis, historical data analysis, event-driven applications, etc. Flink is a distributed processing engine and framework for state calculation of bounded and unbounded data streams. In layman's terms, Flink is a stream computing framework that is mainly used to process streaming data.
[0057] Specifically, streaming time series data can be used as input, and Flink's DataStream API or TableAPI can be used to customize the streaming data for high-speed processing and conversion of data. In addition, window operations such as sliding windows and rolling windows can be used to group and aggregate data for frequency domain analysis. You can also use libraries or custom functions supported by Flink to convert time domain data into frequency domain data. Common frequency domain analysis algorithms include but are not limited to fast Fourier transform (FFT) and wavelet transform (Wavelet Transform). Finally, the results of the frequency domain analysis can also be output to the target system, such as a database, file, message queue, etc.
[0058] The specific configuration of Flink includes the following:
[0059] A. Data collection and transmission.
[0060] 1. Configure the data source. Specifically, you can configure the data source according to the actual situation, such as specific sensors and devices, to ensure that data can be collected into the Flink cluster in real time. Optionally, you can use the connectors provided by Flink, such as Kafka, MQTT, etc., or customize the data source.
[0061] 2. Set up data transmission. Specifically, you can choose a suitable data transmission mechanism. For example, you can use Kafka as the data transmission middleware to ensure that data can be reliably transmitted to the Flink cluster. Optionally, you can use Flink's Kafka connector to achieve this.
[0062] B. Custom handler based on Flink API.
[0063] 1. Define the data stream. Specifically, you can use the API provided by Flink to define the input data stream and the output data stream. Optionally, you can define the data model and processing logic based on the characteristics of real-time streaming electromagnetic wave data.
[0064] Optionally, an ElectromagneticWaveData class may be defined to define the data model of electromagnetic wave data.
[0065] For example, a class named ElectromagneticWaveData is first created to represent raw electromagnetic data. In addition, three properties are defined in the ElectromagneticWaveData class, namely sensorId, amplitude, and timestamp. Among them, sensorId represents the unique identifier of the sensor, which is used to distinguish different sensors. Amplitude represents the amplitude of the electromagnetic wave, which is used to measure the intensity or energy of the electromagnetic wave. Timestamp represents the timestamp of the data record, which is used to identify the moment of the data.
[0066] At the same time, in order to facilitate the operation and processing of data, some methods are also defined, including getSensorId, getAmplitude, getTimestamp and toString. Among them, getSensorId is used to obtain the sensor ID. getAmplitude is used to obtain the amplitude of the electromagnetic wave. getTimestamp is used to obtain the timestamp of the data record. toString is used to convert the ElectromagneticWaveData object into a string format for easy output and display.
[0067] By converting each record in the input data stream into an ElectromagneticWaveData object, it is easier to process and manipulate the data. In addition, by defining the ElectromagneticWaveData class, the different properties of the original electromagnetic data are encapsulated in one object, making the data more structured and readable. In this way, in the subsequent data processing, it is easier to access and manipulate the different properties of each data, for example, grouping according to the sensor ID, calculating the average amplitude, etc.
[0068] 2. Set data partitions and parallelism. Specifically, you can set appropriate data partitions and parallelism according to the characteristics of the original electromagnetic data and processing requirements to improve computing efficiency and parallelism. Optionally, you can use Flink's keyBy method to partition data.
[0069] 3. Implement data processing logic. Specifically, data processing logic can be provided, such as real-time calculation, aggregation, filtering, etc. Optionally, operators and functions provided by Flink can be used to implement it. The specific process of data processing logic includes the following steps.
[0070] First, implement data grouping. Specifically, you can group the data so that the data of each group can be processed separately. For example, grouping by sensor ID. Optionally, you can use the keyBy function to achieve this, using the sensorId property of the ElectromagneticWaveData object as the key for grouping.
[0071] Secondly, implement window operations. Specifically, you can define a time window so that data calculations can be performed within each window. Optionally, you can define a rolling window that is calculated every minute. You can use the window function to achieve this. In addition, you can set the length of the window to one minute to monitor the intensity of electromagnetic waves in real time.
[0072] Thirdly, data aggregation is implemented. Specifically, the data in each window can be aggregated to calculate the average amplitude per minute. The aggregate function can be used to achieve this. For example, an aggregate function is created that receives an ElectromagneticWaveData object and returns a new ElectromagneticWaveData object whose amplitude is the average amplitude of all data in the window.
[0073] Finally, implement data filtering. Specifically, you can filter the data as needed so that only data that meets certain conditions is retained. Among them, you can filter according to the amplitude, and you can use the filter function to achieve this. For example, you can create a filter function that receives an ElectromagneticWaveData object and returns true if its characteristics (such as amplitude) exceed a certain threshold, otherwise it returns false.
[0074] Based on this, the stream-batch integrated computing module adopts stream processing or batch processing to group the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module to generate multiple grouped data; for each grouped data, the grouped data within the preset time window is aggregated and filtered to generate intermediate data; the intermediate data is subjected to time-frequency conversion to generate a processing result, which is a frequency domain analysis result.
[0075] C. Set up high availability and fault tolerance mechanisms.
[0076] 1. Configure high availability mode. You can configure Flink's high availability mode according to actual conditions and configure the task manager and job manager to fault tolerance mode. For example, use Apache ZooKeeper to achieve fault tolerance and high availability.
[0077] 2. Set the state backend. You can choose a suitable state backend, such as Memory, RocksDB, etc., to store and manage the state. In addition, you can also use Flink's StateBackend to set the state backend.
[0078] D. Monitoring and tuning.
[0079] 1. Configure the monitoring system. You can use the monitoring tools provided by Flink, such as Flink Web Dashboard, Metrics, etc., to monitor the running status and performance indicators of the Flink cluster. In addition, you can also configure appropriate monitoring parameters and indicators.
[0080] 2. Tuning based on monitoring data: You can analyze and tune the performance of Flink applications based on monitoring data, for example, adjust the operator's parallelism and memory allocation to improve real-time computing speed and system stability.
[0081] In this embodiment, the intelligent data mining module is used to receive the processing results sent by the time series data storage module, and perform mining analysis on the received processing results to generate mining analysis results.
[0082] The intelligent data mining module mines and analyzes the processing results according to the preset data mining operators to generate mining analysis results; the preset data mining operators include data cleaning and preprocessing operators, feature extraction operators, data dimension reduction operators, data clustering operators, data classification prediction operators, association rule mining operators and time series analysis operators. Users can mine and analyze the data stored in the time series database by combining these operators.
[0083] Furthermore, data cleaning and preprocessing operators are used to clean and process data, which may include noise removal, missing value processing, outlier detection and processing, etc.
[0084] Furthermore, feature extraction operators are used to extract meaningful features from data for subsequent modeling and analysis. Feature extraction operators may include Fourier transform, wavelet transform, time-frequency analysis, etc.
[0085] Furthermore, data dimension reduction operators are used to reduce high-dimensional electromagnetic data to lower dimensions to reduce data complexity and computational cost. Data dimension reduction operators may include principal component analysis (PCA), linear discriminant analysis (LDA), etc.
[0086] Furthermore, data clustering operators are used to cluster similar electromagnetic data points to discover patterns and groups in the data. Data clustering operators may include K-means clustering, hierarchical clustering, density-based spatial clustering of applications with noise (DBSCAN), etc.
[0087] Furthermore, data classification and prediction operators are used to classify and predict electromagnetic data to identify and predict different electromagnetic events and behaviors. Data classification and prediction operators may include decision trees, support vector machines, neural networks, and the like.
[0088] Furthermore, association rule mining operators are used to discover association rules and frequent itemsets in electromagnetic data to reveal the correlation and dependency between different electromagnetic events.
[0089] Furthermore, time series analysis operators are used to model and analyze time series in electromagnetic data to predict future trends and behaviors. Time series analysis operators may include autoregressive integrated moving average model (ARIMA), exponential smoothing, etc.
[0090] In this embodiment, the comprehensive monitoring module is used to monitor the relevant information of the original electromagnetic data and the relevant information of the electromagnetic big data processing system to generate monitoring information.
[0091] Among them, the relevant information of the original electromagnetic data may include data flow information and data quality information of the original electromagnetic data, and the relevant information of the electromagnetic big data processing system may include performance status information and task execution status information of the electromagnetic big data processing system.
[0092] The comprehensive monitoring module can provide alarm information on data flow conditions, indicator alarms, and the system's own operating status. Therefore, the electromagnetic big data processing system can provide the following monitoring functions.
[0093] Data stream monitoring function: Raw electromagnetic data usually exists in the form of continuous data streams, and key indicators such as data stream speed, size, and latency need to be monitored in real time. This can be achieved by embedding monitoring code in the data stream processing process. For example, a small monitoring agent is installed on each data processing node to regularly collect and report data stream status information. In addition, open source monitoring tools such as Prometheus and Grafana can be used to collect and display these indicators.
[0094] Data quality monitoring function: The quality of raw electromagnetic data directly affects the subsequent data processing and analysis results, so data quality needs to be monitored in real time. Data quality can include aspects such as data integrity, accuracy, consistency, and timeliness. Data integrity can be verified by checking data quality, and data timeliness can be checked by comparing data timestamps. If data quality problems are found, an alarm is immediately issued, and the problem can be repaired through pre-defined processing logic.
[0095] The system performance monitoring function can monitor key indicators such as the system's CPU usage, memory usage, disk space, network bandwidth, etc. to understand the system's operating status. Optionally, you can use some professional system monitoring tools, such as Nagios or Zabbix, for in-depth performance monitoring and analysis.
[0096] The task execution monitoring function can monitor the execution status of each data processing task, including the task start time, end time, execution time, number of errors, etc. Optionally, this can be achieved by recording log information during task execution, and using log analysis tools such as ELK Stack or Splunk to collect and analyze the log information.
[0097] Optionally, the comprehensive monitoring module can also perform indicator alarms. Specifically, thresholds for key indicators can be set based on the data accessed by the system, which may include data flow speed, data quality, system load, etc. When these indicators exceed the threshold, the system automatically sends an alarm message.
[0098] Optionally, the integrated monitoring module can also perform data backup and recovery. Specifically, it can regularly back up important data and configuration information and provide a data recovery mechanism so that data can be quickly restored when data is lost or damaged.
[0099] In this embodiment, the comprehensive monitoring module may also provide a preset display interface to display the monitoring information on the preset display interface.
[0100] Among them, the integrated monitoring module can provide a user-friendly interface, allowing users to easily view and operate the monitoring system. In addition, the interface can display real-time monitoring information. At the same time, it can also provide operational functions, such as viewing historical data, setting alarm thresholds, starting and stopping services, etc.
[0101] The distributed electromagnetic big data processing system provided in this embodiment includes a distributed acquisition module, a time series data storage module, a stream-batch integrated computing module, an intelligent data mining module and a comprehensive monitoring module, wherein the distributed acquisition module is used to collect raw electromagnetic data from multiple front-end data acquisition points, and send the raw electromagnetic data to the time series data storage module and / or the stream-batch integrated computing module; the time series data storage module is used to receive and store the raw electromagnetic data sent by the distributed acquisition module, send the received raw electromagnetic data to the stream-batch integrated computing module for processing, and receive and store the processing results sent by the stream-batch integrated computing module, and The received processing results are sent to the intelligent data mining module for mining and analysis; the stream-batch integrated computing module is used to receive and process the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module using stream processing or batch processing, generate processing results, and send the processing results to the time series data storage module; the intelligent data mining module is used to receive the processing results sent by the time series data storage module, and mine and analyze the received processing results to generate mining and analysis results; the comprehensive monitoring module is used to monitor the relevant information of the original electromagnetic data and the relevant information of the electromagnetic big data processing system, and generate monitoring information. The present invention can collect raw electromagnetic data from distributed data sources, and realize real-time analysis of raw electromagnetic data through multiple modules such as time series storage, stream-batch integrated processing, and data mining. In addition, the electromagnetic big data processing system uses modules that are as streamlined and stable as possible, and has the characteristics of light weight, stability, easy maintenance, and convenient deployment. At the same time, by combining the characteristics of electromagnetic big data itself and the business characteristics of users, it adopts a lighter and more scalable data collection and storage method around the stream-batch integrated computing mode, optimizes the overall architecture, merges components with similar functions, and removes redundant components to reduce the deployment, maintenance, and operation difficulty of the electromagnetic big data processing system. Moreover, the integration of stream-batch integrated technology and time series database can greatly reduce the complexity of the electromagnetic big data processing system and the storage requirements while ensuring that massive data can be processed in real time and deeply analyzed. It can be deployed as a cluster to process massive data, and can also be independently deployed on vehicle-mounted equipment.
[0102] Embodiment 2
[0103] This embodiment provides a distributed electromagnetic big data processing method based on the above embodiment 1. Figure 2 , applied to the distributed electromagnetic big data processing system described in the first embodiment, the method comprises the following steps:
[0104] S1. Collect raw electromagnetic data from multiple front-end data collection points through a distributed acquisition module, and send the raw electromagnetic data to a time series data storage module and / or a stream-batch integrated computing module.
[0105] S2. Receive and store the original electromagnetic data sent by the distributed acquisition module through the time series data storage module, send the received original electromagnetic data to the stream-batch integrated computing module for processing, receive and store the processing results sent by the stream-batch integrated computing module, and send the received processing results to the intelligent data mining module for mining and analysis.
[0106] S3. Using the stream-batch integrated computing module, a stream processing method or a batch processing method is adopted to receive and process the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module, generate processing results, and send the processing results to the time series data storage module.
[0107] S4. Receive the processing results sent by the time series data storage module through the intelligent data mining module, and perform mining and analysis on the received processing results.
[0108] S5. Monitor the relevant information of the original electromagnetic data and the relevant information of the electromagnetic big data processing system through the comprehensive monitoring module to generate monitoring information.
[0109] Regarding the method in the above embodiment, the specific implementation method and beneficial effects can be referred to the detailed description of the above system embodiment, which will not be repeated here.
[0110] Embodiment 3
[0111] This embodiment further provides an electronic device based on the above-mentioned embodiment 2. Figure 3 , Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0112] like Figure 3 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 to a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0113] Typically, the following devices may be connected to the I / O interface 305: an input device 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, etc., an output device 307 including, for example, a liquid crystal display (LCD), a speaker, etc., a storage device 308 including, for example, a magnetic tape, a hard disk, etc., and a communication device 309. The communication device 309 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Figure 3 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0114] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0115] Embodiment 4
[0116] Based on the above-mentioned embodiment 2, this embodiment further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned method are implemented.
[0117] It should be noted that the computer-readable medium mentioned above in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0118] In this embodiment, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperTextTransferProtocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0119] The computer-readable medium may be included in the device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains training data, converts the training data into initial data; determines an initial rule base based on the initial data, and optimizes the parameters of the initial rule base to obtain a target rule base; calculates the rules in the target rule base according to a preset activation weight calculation formula to obtain activation weights; determines abnormal information according to the test data and the activation weights.
[0120] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0121] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0122] The units described in some embodiments of the present disclosure may be implemented by software or hardware. The units described may also be provided in a processor, for example, may be described as: a processor including a data acquisition unit, a rule determination unit, a weight calculation unit, and an anomaly determination unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the data acquisition unit may also be described as a "unit for acquiring training data".
[0123] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that may be used include, without limitation, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc.
[0124] Obviously, it should be understood by those skilled in the art that the above-mentioned various steps of the present invention can be performed in a manner different from the present invention, and the simulation method and experimental equipment include but are not limited to the above description. The above-mentioned various steps of the present invention can be performed in an order different from that here in some cases, and the steps shown or described above can be performed separately. Therefore, the present invention is not limited to any specific combination of hardware and software.
[0125] The above contents are further detailed descriptions of the present invention in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the scope of protection of the present invention.
Claims
1. A distributed electromagnetic big data processing system, characterized in that: The electromagnetic big data processing system includes a distributed acquisition module, a time series data storage module, a stream-batch integrated computing module, an intelligent data mining module, and a comprehensive monitoring module, among which: The distributed acquisition module is used to collect raw electromagnetic data from multiple front-end data acquisition points and send the raw electromagnetic data to the time series data storage module and / or the stream-batch integrated computing module; The time series data storage module is used to receive and store the original electromagnetic data sent by the distributed acquisition module, send the received original electromagnetic data to the stream-batch integrated computing module for processing, receive and store the processing results sent by the stream-batch integrated computing module, and send the received processing results to the intelligent data mining module for mining and analysis; The stream-batch integrated computing module is used to receive and process the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module in a stream processing manner or a batch processing manner, generate processing results, and send the processing results to the time series data storage module; The intelligent data mining module is used to receive the processing results sent by the time series data storage module, and perform mining analysis on the received processing results to generate mining analysis results; The integrated monitoring module is used to monitor the relevant information of the original electromagnetic data and the relevant information of the electromagnetic big data processing system to generate monitoring information; The distributed acquisition module is further used to send the original electromagnetic data to the time series data storage module and / or the stream-batch integrated computing module according to a preset data sending rule; the preset data sending rule is determined based on the current business scenario information; The time series data storage module is further used to store the original electromagnetic data sent by the distributed acquisition module according to multiple field information in a preset table structure through a preset data insertion interface; the field information includes a timestamp, parameter information, spatial information and attribute information corresponding to the original electromagnetic data; The stream-batch integrated computing module is based on Flink and processes the raw electromagnetic data sent by the distributed acquisition module or the raw electromagnetic data sent by the time series data storage module. The processing process includes: Step 1: Define the data flow. Use the API provided by Flink to define the input data flow and output data flow. Step 2: Set data partitions and parallelism. According to the characteristics of the original electromagnetic data and processing requirements, set matching data partitions and parallelism. Use Flink's keyBy method to distinguish the original electromagnetic data. Step 3: Use Flink operators and functions to run data processing logic; In step 1, define the data flow and use the API provided by Flink to define the input data flow and output data flow, including: Use Flink's API to define the data model and data processing logic based on the characteristics of the original electromagnetic data. Use the ElectromagneticWaveData class to define the data model of the original electromagnetic data. By defining the ElectromagneticWaveData class, encapsulate the different attributes of the original electromagnetic data in one object to form an ElectromagneticWaveData object. The process of defining the data model includes: Create an ElectromagneticWaveData class to represent raw electromagnetic data. In the ElectromagneticWaveData class, define the sensorId property, amplitude property, timestamp property, getSensorId method, getAmplitude method, getTimestamp method, and toString method. The sensorId property is used to represent the unique identifier of the sensor, the amplitude property is used to represent the amplitude of the electromagnetic wave, the timestamp property is used to represent the timestamp of the data record, the getSensorId method is used to obtain the sensor ID, the getAmplitude method is used to obtain the amplitude of the electromagnetic wave, the getTimestamp method is used to obtain the timestamp of the data record, and the toString method is used to convert the ElectromagneticWaveData object to a string format. In step 3, the data processing logic process includes: Step 301: group data by using Flink's keyBy function and taking the sensorId attribute of the ElectromagneticWaveData object as the key for grouping. Step 302: Window operation, using Flink's window function to define a time window for performing data calculation on the original electromagnetic data within the time window; Step 303: data aggregation, using Flink's aggregate function to aggregate the raw electromagnetic data in each time window and calculate the average amplitude per minute; The data aggregation process includes: creating an aggregation function, using the aggregation function to receive an ElectromagneticWaveData object, and returning a new ElectromagneticWaveData object, the amplitude of the new ElectromagneticWaveData object is the average amplitude of all original electromagnetic data in the time window; Step 304: data filtering, using Flink's filter function to filter the original electromagnetic data according to filtering requirements; The data filtering process includes: creating a filter function, using the filter function to receive an ElectromagneticWaveData object, if the amplitude feature of the ElectromagneticWaveData object exceeds the threshold, then return true, otherwise return false; The method adopts a stream processing method or a batch processing method to receive and process the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module, and generates a processing result, specifically including: The stream-batch integrated computing module uses a stream processing method or a batch processing method to group the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module to generate multiple grouped data; For each group of data, aggregate and filter the grouped data within a preset time window to generate intermediate data; Perform time-frequency conversion processing on the intermediate data to generate a processing result, which is a frequency domain analysis result.
2. The distributed electromagnetic big data processing system according to claim 1, characterized in that: The receiving processing result sent by the time series data storage module and performing mining analysis on the received processing result to generate the mining analysis result specifically includes: The intelligent data mining module mines and analyzes the processing results according to the preset data mining operators to generate mining analysis results; the preset data mining operators include data cleaning and preprocessing operators, feature extraction operators, data dimensionality reduction operators, data clustering operators, data classification prediction operators, association rule mining operators and time series analysis operators.
3. The distributed electromagnetic big data processing system according to claim 1, characterized in that: The relevant information of the original electromagnetic data includes data flow information and data quality information of the original electromagnetic data, and the relevant information of the electromagnetic big data processing system includes performance status information and task execution status information of the electromagnetic big data processing system.
4. The distributed electromagnetic big data processing system according to claim 1, characterized in that: The comprehensive monitoring module is also used to display the monitoring information on a preset display interface.
5. A distributed electromagnetic big data processing method, applied to the distributed electromagnetic big data processing system according to any one of claims 1 to 4, characterized in that: The method includes: Collecting raw electromagnetic data from multiple front-end data collection points through a distributed acquisition module, and sending the raw electromagnetic data to a time series data storage module and / or a stream-batch integrated computing module; Receive and store the original electromagnetic data sent by the distributed acquisition module through the time series data storage module, send the received original electromagnetic data to the stream-batch integrated computing module for processing, receive and store the processing results sent by the stream-batch integrated computing module, and send the received processing results to the intelligent data mining module for mining and analysis; The stream-batch integrated computing module adopts a stream processing method or a batch processing method to receive and process the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module, generate processing results, and send the processing results to the time series data storage module; The intelligent data mining module receives the processing results sent by the time series data storage module, and performs mining and analysis on the received processing results; The relevant information of the original electromagnetic data and the relevant information of the electromagnetic big data processing system are monitored through the comprehensive monitoring module to generate monitoring information; The distributed acquisition module is further used to send the original electromagnetic data to the time series data storage module and / or the stream-batch integrated computing module according to a preset data sending rule; the preset data sending rule is determined based on the current business scenario information; The time series data storage module is further used to store the original electromagnetic data sent by the distributed acquisition module according to multiple field information in a preset table structure through a preset data insertion interface; the field information includes a timestamp, parameter information, spatial information and attribute information corresponding to the original electromagnetic data; The stream-batch integrated computing module is based on Flink and processes the raw electromagnetic data sent by the distributed acquisition module or the raw electromagnetic data sent by the time series data storage module. The processing process includes: Step 1: Define the data flow. Use the API provided by Flink to define the input data flow and output data flow. Step 2: Set data partitions and parallelism. According to the characteristics of the original electromagnetic data and processing requirements, set matching data partitions and parallelism. Use Flink's keyBy method to distinguish the original electromagnetic data. Step 3: Use Flink operators and functions to run data processing logic; In step 1, define the data flow and use the API provided by Flink to define the input data flow and output data flow, including: Use Flink's API to define the data model and data processing logic based on the characteristics of the original electromagnetic data. Use the ElectromagneticWaveData class to define the data model of the original electromagnetic data. By defining the ElectromagneticWaveData class, encapsulate the different attributes of the original electromagnetic data in one object to form an ElectromagneticWaveData object. The process of defining the data model includes: Create an ElectromagneticWaveData class to represent raw electromagnetic data. In the ElectromagneticWaveData class, define the sensorId property, amplitude property, timestamp property, getSensorId method, getAmplitude method, getTimestamp method, and toString method. The sensorId property is used to represent the unique identifier of the sensor, the amplitude property is used to represent the amplitude of the electromagnetic wave, the timestamp property is used to represent the timestamp of the data record, the getSensorId method is used to obtain the sensor ID, the getAmplitude method is used to obtain the amplitude of the electromagnetic wave, the getTimestamp method is used to obtain the timestamp of the data record, and the toString method is used to convert the ElectromagneticWaveData object to a string format. In step 3, the data processing logic process includes: Step 301: group data by using Flink's keyBy function and taking the sensorId attribute of the ElectromagneticWaveData object as the key for grouping. Step 302: Window operation, using Flink's window function to define a time window for performing data calculation on the original electromagnetic data within the time window; Step 303: data aggregation, using Flink's aggregate function to aggregate the raw electromagnetic data in each time window and calculate the average amplitude per minute; The data aggregation process includes: creating an aggregation function, using the aggregation function to receive an ElectromagneticWaveData object, and returning a new ElectromagneticWaveData object, the amplitude of the new ElectromagneticWaveData object is the average amplitude of all original electromagnetic data in the time window; Step 304: data filtering, using Flink's filter function to filter the original electromagnetic data according to filtering requirements; The data filtering process includes: creating a filter function, using the filter function to receive an ElectromagneticWaveData object, and returning true if the feature of the ElectromagneticWaveData object exceeds the threshold, otherwise returning false; The method adopts a stream processing method or a batch processing method to receive and process the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module, and generates a processing result, specifically including: The stream-batch integrated computing module uses a stream processing method or a batch processing method to group the original electromagnetic data sent by the distributed acquisition module or the original electromagnetic data sent by the time series data storage module to generate multiple grouped data; For each group of data, aggregate and filter the grouped data within a preset time window to generate intermediate data; Perform time-frequency conversion processing on the intermediate data to generate a processing result, which is a frequency domain analysis result.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to claim 5 are implemented.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 5 are implemented.
