Industrial Internet data processing method and device based on big data cloud service

By deploying edge computing devices on industrial equipment, processing and encrypting data and then transmitting it to the cloud platform, it solves the real-time, cost and security issues in industrial Internet data processing and achieves efficient and secure data processing and analysis.

CN118568312BActive Publication Date: 2024-10-11贵州万德科技有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411061420.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-11
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

Existing industrial Internet data processing methods have shortcomings in real-time performance, cost and security, especially the problems of high data transmission delay, high cost and security threats.

Method used

Using a method based on big data cloud services, by deploying edge computing devices on industrial equipment, photoelectric, vibration, and temperature data are acquired and processed in real time, using NumPy and SciPy to calculate statistical features, constructing sequence linked lists, performing hash encryption, and passing MQTT The protocol transmits data to the cloud platform.

Benefits of technology

Real-time monitoring and adjustment of data is achieved, transmission delays and costs are reduced, data security and integrity are improved, and in-depth equipment operation analysis is supported.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568312B_ABST
    Figure CN118568312B_ABST
Patent Text Reader

Abstract

The present application discloses an industrial Internet data processing method and device based on big data cloud service. The present application method includes: the edge computing device obtains photoelectric data, vibration data and temperature data through the sensor module arranged on the target industrial equipment, and constructs the original data sequence; divides it into multiple subsequences according to the preset time window; extracts the characteristic values ​​of each subsequence, and combines the characteristic values ​​of each subsequence to obtain the corresponding characteristic vector; constructs a sequence linked list; packages the original data sequence and the sequence linked list into a first data set; concatenates the unique code to the head of the corresponding subsequence, and packages all concatenated fields into a second data set; performs hash calculations to obtain the corresponding first hash value and second hash value, and performs field concatenation; packages the concatenated first data set and second data set into a third data set, and sends the third data set to the industrial Internet cloud platform for analysis based on the MQTT protocol.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing technology, and in particular to an industrial Internet data processing method and device based on big data cloud services. Background Art

[0002] With the development of the industrial Internet, more and more companies are beginning to apply IoT technology to monitor and manage industrial equipment. The operating data of industrial equipment is collected in real time by sensors and transmitted to the data processing system for analysis and decision-making to improve production efficiency and equipment reliability. However, traditional industrial Internet data processing methods have some shortcomings, especially in real-time data processing and analysis.

[0003] Existing industrial Internet data processing methods mainly rely on uploading large amounts of device data to the cloud for centralized processing and analysis. This method has the following major problems:

[0004] Lack of real-time performance: A large amount of data is transmitted to the cloud for processing. Due to the limitations of network bandwidth and latency, it is difficult to achieve real-time monitoring and adjustment of the equipment's operating status.

[0005] High data transmission cost: The amount of data generated by industrial equipment is huge, and frequent data transmission leads to high network bandwidth and data storage costs.

[0006] Security issues: Data may encounter security threats during transmission, and sensitive industrial data can be easily stolen or tampered with.

[0007] In order to solve the above problems, edge computing technology has gradually been introduced into the field of industrial Internet data processing. Edge computing is to process and analyze data close to the data source, reducing the delay and cost of data transmission and improving the real-time performance and reliability of the system. However, existing edge computing technology still faces many challenges in terms of collaboration with cloud platforms, data synchronization and management, and long-term analysis of big data. Summary of the invention

[0008] In order to solve the above technical problems, the present application provides an industrial Internet data processing method and device based on big data cloud services.

[0009] The technical solution provided in this application is described below:

[0010] The first aspect of the present application provides an industrial Internet data processing method based on big data cloud services, comprising:

[0011] The edge computing device acquires photoelectric data, vibration data, and temperature data through the sensor modules arranged on the target industrial equipment, and constructs a raw data sequence, wherein the raw data sequence includes a moving speed sequence, a coordinate sequence, a displacement distance sequence, a vibration amplitude sequence, and a temperature sequence;

[0012] According to a preset time window, the moving speed sequence, the coordinate sequence, the displacement distance sequence, the vibration amplitude sequence and the temperature sequence are respectively divided into a plurality of subsequences, each of which contains a certain number of observation values;

[0013] The statistical features of each subsequence are calculated by using the functions of NumPy and SciPy, the eigenvalues ​​of each subsequence are extracted, and the eigenvalues ​​of each subsequence are combined to obtain the corresponding eigenvector;

[0014] Constructing a sequence linked list based on the original data sequence, each subsequence and the feature vector corresponding to each subsequence, wherein the sequence linked list records the mapping relationship between the feature vector and each sequence, and the unique code of each subsequence;

[0015] Packing the original data sequence and the sequence linked list into a first data set;

[0016] Concatenate the unique code to the head of the corresponding subsequence to form a concatenated field, and pack all the concatenated fields into a second data set;

[0017] Perform hash encryption on the first data set and the second data set respectively to obtain corresponding first hash values ​​and second hash values, and concatenate the first hash value to the end of the first data set, and concatenate the second hash value to the end of the second data set;

[0018] The concatenated first data set and the second data set are packaged into a third data set, and the third data set is sent to the industrial Internet cloud platform for analysis based on the MQTT protocol.

[0019] Optionally, before the edge computing device acquires photoelectric data, vibration data, and temperature data through a sensor module arranged on the target industrial equipment, the method further includes:

[0020] Deploy an edge computing device and a sensor module on the target industrial equipment, and connect the sensor module to the edge computing device using a UART interface, wherein the sensor module includes at least a photoelectric sensor, a vibration sensor, and a temperature sensor;

[0021] The target industrial equipment is monitored in real time by the sensor module, and the collected real-time information of the equipment is sent to the edge computing device, where the real-time information of the equipment includes photoelectric data, vibration data and temperature data.

[0022] Optionally, after sending the collected real-time device information to the edge computing device, the method further includes:

[0023] The edge computing device detects and removes abnormal values ​​in the real-time information of the device by executing a standard deviation algorithm;

[0024] The edge computing device executes a Z-score algorithm on the real-time information of the device.

[0025] Optionally, also include:

[0026] After parsing and verifying the third data set, the industrial Internet cloud platform analyzes it through the Apache Spark component.

[0027] Optionally, the time window is segmented using the as_strided method in NumPy.

[0028] Optionally, the calculating statistical features of each subsequence by using functions of NumPy and SciPy respectively, extracting eigenvalues ​​of each subsequence, and combining the eigenvalues ​​of each subsequence to obtain a corresponding eigenvector comprises:

[0029] Define a split_into_subsequences function, and divide the original data sequence into multiple subsequences according to the size of the time window;

[0030] Define the calculate_features function and use NumPy and SciPy to calculate the statistical features of each subsequence;

[0031] Define the extract_feature_vectors function and extract the feature vector of each subsequence;

[0032] The statistical characteristics include mean, standard deviation, minimum, maximum, skewness and kurtosis.

[0033] Optionally, after the industrial Internet cloud platform parses and verifies the third data set, the analysis through the Apache Spark component includes:

[0034] reading the third data set from a storage location;

[0035] Use the json library to parse the third data set into JSON data;

[0036] Calculating a hash value for the JSON data, and performing a hash check based on the first hash value and the second hash value;

[0037] Save the parsed data to HDFS;

[0038] Read data stored in HDFS;

[0039] Use Spark's DataFrame API and SQL for data analysis.

[0040] Optionally, the constructing of a sequence linked list based on the original data sequence, each subsequence and the feature vector corresponding to each subsequence, wherein the sequence linked list records the mapping relationship between the feature vector and each sequence, and the unique code of each subsequence includes:

[0041] Generate a corresponding unique code for each subsequence based on the UUID library;

[0042] Create a dictionary data structure to store the mapping between the original data sequence, subsequences and their feature vectors, and unique codes.

[0043] The second aspect of the present application provides an industrial Internet data processing device based on big data cloud service, the device comprising:

[0044] A data acquisition unit, used to acquire photoelectric data, vibration data and temperature data through a sensor module arranged on the target industrial equipment, and construct an original data sequence, wherein the original data sequence includes a moving speed sequence, a coordinate sequence, a displacement distance sequence, a vibration amplitude sequence and a temperature sequence;

[0045] A subsequence division unit is used to divide the moving speed sequence, coordinate sequence, displacement distance sequence, vibration amplitude sequence and temperature sequence into a plurality of subsequences according to a preset time window, each of which contains a certain number of observation values;

[0046] A feature extraction unit is used to calculate the statistical features of each subsequence through the functions of NumPy and SciPy, extract the feature value of each subsequence, and combine the feature values ​​of each subsequence to obtain the corresponding feature vector;

[0047] A linked list construction unit, used to construct a sequence linked list based on the original data sequence, each subsequence and the feature vector corresponding to each subsequence, wherein the sequence linked list records the mapping relationship between the feature vector and each sequence, and the unique code of each subsequence;

[0048] A first data packaging unit, used for packaging the original data sequence and the sequence linked list into a first data set;

[0049] A second data packaging unit, configured to concatenate the unique code to a header of a corresponding subsequence to form a concatenated field, and to package all the concatenated fields into a second data set;

[0050] a data concatenation unit, configured to perform hash encryption on the first data set and the second data set respectively to obtain a corresponding first hash value and a second hash value, and concatenate the first hash value to the end of the first data set, and concatenate the second hash value to the end of the second data set;

[0051] The third data packaging unit is used to package the concatenated first data set and the second data set into a third data set, and send the third data set to the industrial Internet cloud platform for analysis based on the MQTT protocol.

[0052] The third aspect of the present application provides an industrial Internet data processing device based on big data cloud services, the device comprising:

[0053] Processor, memory, input-output unit, and bus;

[0054] The processor is connected to the memory, the input and output unit, and the bus;

[0055] The memory stores a program, and the processor calls the program to execute the first aspect and any optional method in the first aspect.

[0056] It can be seen from the above technical solutions that this application has the following advantages:

[0057] 1. Deploy edge computing devices near the equipment to acquire and process photoelectric data, vibration data, and temperature data in real time. Through edge computing, data transmission delays can be reduced and real-time monitoring and adjustment of equipment status can be achieved.

[0058] 2. Extract features from raw data on edge computing devices to ensure data accuracy and consistency. By dividing time windows and calculating statistical features, noise and outliers can be removed to improve data quality.

[0059] 3. Use the MQTT protocol to transmit data. MQTT is a lightweight message transmission protocol suitable for low-bandwidth and unreliable network scenarios in the IoT environment. By packaging data into first, second, and third data sets and performing hash encryption, the security and integrity of data during transmission are ensured.

[0060] 4. Hash the data set before data transmission, generate a hash value and append it to the end of the data set to ensure that the data is not tampered with during transmission, thereby ensuring the security and integrity of the data.

[0061] 5. Synchronize the pre-processed data to the Industrial Internet cloud platform, and use big data analysis tools such as Apache Spark to conduct in-depth analysis of long-term data, explore equipment operation patterns and trends, and provide data support for periodic maintenance and business decisions.

[0062] 6. Construct a sequence list containing the original data sequence, subsequences and their feature vectors, record the mapping relationship between the feature vectors and each sequence, and the unique code of each subsequence. This data structure facilitates data management and tracking, ensuring the transparency and traceability of data processing.

[0063] 7. Through feature extraction and sequence linked list construction, make full use of the collected raw data, extract useful statistical features and feature vectors, improve data utilization, and provide a higher quality data foundation for subsequent big data analysis.

[0064] 8. The sensor module supports multiple data types such as photoelectric, vibration, temperature, etc. It can comprehensively monitor the operating status of industrial equipment and provide multi-dimensional data support. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0066] Figure 1 A schematic flow chart of an embodiment of an industrial Internet data processing method based on big data cloud service provided in this application;

[0067] Figure 2 This is a flow chart of another embodiment of the industrial Internet data processing method based on big data cloud service provided in this application;

[0068] Figure 3 This is a schematic diagram of the structure of an embodiment of an industrial Internet data processing device based on big data cloud service provided in this application;

[0069] Figure 4 This is a schematic structural diagram of an embodiment of another industrial Internet data processing device based on big data cloud service provided in this application. DETAILED DESCRIPTION

[0070] It should be noted that the method provided in this application can be applied to a terminal, a system, or a server. For example, the terminal can be a smart phone or a computer, a tablet computer, a smart TV, a smart watch, a portable computer terminal, or a fixed terminal such as a desktop computer. For the convenience of explanation, this application uses the terminal as an example for explanation.

[0071] See also Figure 1 The present application first provides an embodiment of the method, which comprises:

[0072] S101, the edge computing device obtains photoelectric data, vibration data, and temperature data through the sensor modules arranged on the target industrial equipment, and constructs a raw data sequence;

[0073] In this embodiment, the original data sequence includes a moving speed sequence, a coordinate sequence, a displacement distance sequence, a vibration amplitude sequence and a temperature sequence;

[0074] Sensor modules are deployed on target industrial equipment, including photoelectric sensors, vibration sensors, and temperature sensors. The sensor modules collect photoelectric data, vibration data, and temperature data of the equipment in real time.

[0075] Here is an example of data collection:

[0076] Assume that each sensor collects data once per second

[0077] num_samples=1000

[0078] speed_data=np.random.rand(num_samples)#moving speed data

[0079] coord_data=np.random.rand(num_samples,3)#coord data

[0080] displacement_data=np.random.rand(num_samples)#displacement distance data

[0081] vibration_data=np.random.rand(num_samples)#vibration amplitude data

[0082] temperature_data=np.random.rand(num_samples)#temperature data

[0083] S102, according to a preset time window, dividing the moving speed sequence, the coordinate sequence, the displacement distance sequence, the vibration amplitude sequence and the temperature sequence into a plurality of subsequences, each of which contains a certain number of observation values;

[0084] In this embodiment, each original data sequence is divided into a plurality of subsequences according to a preset time window, and each subsequence contains a certain number of observation values.

[0085] First, you need to determine an appropriate time window size. The size of the time window refers to the number of observations contained in each subsequence. The selection of the time window size usually depends on the application scenario and specific requirements. For example, if the data is collected once a second, and you want each subsequence to cover a period of 1 minute, then the time window size should be set to 60.

[0086] For each original data sequence, the data is divided into multiple continuous subsequences according to the time window size. The specific process is as follows:

[0087] Step a: Initialization

[0088] Starting from the starting position of the original data sequence, the subsequences are divided according to the time window size.

[0089] Step b: Divide into subsequences

[0090] The continuous observations in the original data sequence are divided into subsequences according to the time window size. The number of observations contained in each subsequence is equal to the time window size.

[0091] Step c: Repeat the process

[0092] Repeat step b until all observations in the original data sequence are processed. If the remaining observations are less than the size of a time window, they can be discarded or processed as an independent subsequence as needed.

[0093] Here is an example

[0094] Assuming the time window size is 5, and the original data sequence is: [1,2,3,4,5,6,7,8,9,10,11,12], the partitioning process is as follows:

[0095] Original data sequence: [1,2,3,4,5,6,7,8,9,10,11,12]

[0096] Time window size: 5

[0097] The division results are:

[0098] Subsequence 1: [1,2,3,4,5]

[0099] Subsequence 2: [6,7,8,9,10]

[0100] Subsequence 3: [11, 12] (the remaining observations are less than a window size and can be processed as needed)

[0101] In this way, the original data sequence can be divided into multiple subsequences that are easy to process and analyze. Each subsequence covers a preset time window, which is helpful for subsequent statistical feature extraction and pattern recognition.

[0102] You can use the as_strided method in the NumPy function to divide it. Here are the detailed steps:

[0103] First, determine a suitable time window size. For example, assume the time window size is window_size.

[0104] Determine the step size, which defines the distance between the start of each new subsequence and the start of the previous subsequence. Typically, the step size is the same as the time window size.

[0105] Use the as_strided method to split the data series. The as_strided method can split the data series by adjusting the shape and step size of the data view.

[0106] To describe the solution more clearly, here is a code example to demonstrate the above process:

[0107] #Define data partitioning function

[0108] defsplit_into_subsequences(data,window_size):

[0109] num_windows=len(data) / / window_size

[0110] subsequences=[data[i*window_size:(i+1)*window_size]for i in range(num_windows)]

[0111] # Process the remaining observations

[0112] if len(data) % window_size != 0:

[0113] subsequences.append(data[num_windows*window_size:])

[0114] returnsubsequences

[0115] #Sample data

[0116] data_sequence=[1,2,3,4,5,6,7,8,9,10,11,12]

[0117] window_size=5

[0118] # Divide the data sequence

[0119] subsequences=split_into_subsequences(data_sequence,window_size)

[0120] print(subsequences)

[0121] S103, respectively calculating the statistical features of each subsequence by using the functions of NumPy and SciPy, extracting the eigenvalues ​​of each subsequence, and combining the eigenvalues ​​of each subsequence to obtain a corresponding eigenvector;

[0122] In this step, the statistical characteristics of each subsequence are calculated using NumPy and SciPy functions, including mean, standard deviation, minimum, maximum, kurtosis, and skewness. The eigenvalues ​​of each subsequence are combined into a eigenvector.

[0123] In this embodiment, the statistical features of each subsequence, including mean, standard deviation, minimum, maximum, kurtosis and skewness, are calculated using NumPy and SciPy functions, and the eigenvalues ​​of each subsequence are combined into a eigenvector. The following are the specific implementation steps:

[0124] The original data sequence is divided into multiple subsequences according to the preset time window size and step size. This step has been implemented by NumPy's as_strided method.

[0125] For each subsequence, the following statistical features are calculated using NumPy and SciPy functions:

[0126] Mean: represents the average value of the data.

[0127] Standard deviation: indicates the degree of dispersion of data.

[0128] Minimum value: Indicates the minimum value of the data.

[0129] Maximum value: indicates the maximum value of the data.

[0130] Kurtosis: It indicates the peak characteristic of data distribution.

[0131] Skewness: It indicates the symmetry of the data distribution.

[0132] The eigenvalues ​​of each subsequence are combined into a eigenvector for subsequent analysis and modeling.

[0133] The details are as follows

[0134] Assume that the data sequence has been divided into multiple subsequences using the as_strided method, resulting in a two-dimensional array subsequences.

[0135] For each subsequence, statistical features are calculated using NumPy and SciPy functions.

[0136] Combine the eigenvalues ​​of each subsequence into a single eigenvector.

[0137] Here is a code example for extracting feature vectors:

[0138] #Define feature calculation function

[0139] def calculate_features(subsequences):

[0140] features=[]

[0141] for subsequence in subsequences:

[0142] mean = np.mean(subsequence)

[0143] std = np.std(subsequence)

[0144] min_val = np.min(subsequence)

[0145] max_val = np.max(subsequence)

[0146] kurt=kurtosis(subsequence)

[0147] skewness=skew(subsequence)

[0148] #Combined feature vectors

[0149] feature_vector=[mean,std,min_val,max_val,kurt,skewness]

[0150] features.append(feature_vector)

[0151] S104: construct a sequence linked list based on the original data sequence, each subsequence and the feature vector corresponding to each subsequence, wherein the sequence linked list records the mapping relationship between the feature vector and each sequence, and the unique code of each subsequence;

[0152] In this step, for each subsequence, the corresponding feature vector has been calculated through the previous steps. Now it is necessary to establish a mapping relationship to associate the feature vector of each subsequence with its original data sequence or other identifier.

[0153] You can use a dictionary or similar data structure, with each subsequence's unique identity (perhaps an index number or other unique identifier) ​​as the key and its feature vector as the value.

[0154] For each subsequence, a unique code or identifier is generated to distinguish different subsequences in the sequence list. The code can be a number, a string, or other format, as long as each subsequence has a unique identifier.

[0155] Assuming that we already have the calculated feature vector list feature_vectors and the unique identifier of each subsequence subsequence_ids, we can implement the above steps as follows:

[0156] #Assume feature_vectors is a list, each element is a feature vector array

[0157] #Assume that subsequence_ids is a list, each element is a unique identifier of a subsequence

[0158] #Build a dictionary of mapping relationships

[0159] sequence_map={}

[0160] for idx, sub_id in enumerate(subsequence_ids):

[0161] # Associate feature vectors with subsequence identifiers

[0162] sequence_map[sub_id] = feature_vectors[idx]

[0163] # Output mapping relationship

[0164] for sub_id, feature_vector in sequence_map.items():

[0165] print(f"Feature vector of subsequence {sub_id}: {feature_vector}")

[0166] Assuming subsequence_ids contains [1,2,3], and feature_vectors is the corresponding feature vector list, the output can be as follows:

[0167] Feature vector of subsequence 1: [3.0, 1.41421356, 1.0, 5.0, -1.3, 0.0]

[0168] Feature vector of subsequence 2: [8.0, 1.41421356, 6.0, 10.0, -1.3, 0.0]

[0169] Eigenvectors for subsequence 3: [...]

[0170] In this way, a mapping relationship between feature vectors and subsequences is established, and a unique identification code is generated for each subsequence, which facilitates further processing and analysis in the sequence list.

[0171] S105, packaging the original data sequence and the sequence linked list into a first data set;

[0172] S106, concatenating the unique code to the head of the corresponding subsequence to form a concatenated field, and packaging all the concatenated fields into a second data set;

[0173] In this step, the original data sequence and the sequence list need to be packaged into two data sets respectively:

[0174] For raw data sequences, each raw data sequence can be organized in a predetermined format, which can be an array, list or other data structure, ensuring that each sequence maintains its original data form and order.

[0175] For the sequence linked list, the sequence linked list records the mapping relationship between the feature vector and each subsequence and the unique code of the subsequence. Each entry can contain a feature vector, a unique code and possible other metadata.

[0176] For the second data set, it is necessary to add a unique code to the header of each subsequence, which can ensure that each subsequence can be correctly identified and distinguished during data transmission and processing.

[0177] Add the unique code of each subsequence to the beginning of its corresponding data or other specified positions to form concatenated fields. These fields will be used to identify and index the dataset. Combine all concatenated subsequence fields into the format of the second dataset. Ensure that each subsequence and its unique code are organized and packaged according to the set format.

[0178] Here is a specific example to illustrate:

[0179] Assume the following sample data:

[0180] Original data sequence:

[0181] raw_data_sequences=[sequence1,sequence2,sequence3,...]

[0182] Sequence linked list:

[0183] sequence_list=[{subsequence_id:1,feature_vector:[1.0,2.0,...]},{subsequence_id:2,feature_vector:[3.0,4.0,...]},...]

[0184] The packaging process can be achieved as follows:

[0185] #Assume that raw_data_sequences and sequence_list have been defined

[0186] #First dataset packaging

[0187] first_dataset=raw_data_sequences

[0188] #Second data set packaging

[0189] second_dataset=[]

[0190] for item in sequence_list:

[0191] subsequence_id=item['subsequence_id']

[0192] feature_vector=item['feature_vector']

[0193] #Concatenate the unique code to the head of the subsequence

[0194] concatenated_data=[subsequence_id]+feature_vector

[0195] #Add to the second dataset

[0196] second_dataset.append(concatenated_data)

[0197] # Output sample dataset

[0198] print("First data set:",first_dataset)

[0199] print("Second data set:",second_dataset)

[0200] Assuming raw_data_sequences contains the raw data sequences and sequence_list contains the sequence list entries, the output is as follows:

[0201] First data set: [sequence1, sequence2, sequence3, ...]

[0202] Second data set: [[1,1.0,2.0,...],[2,3.0,4.0,...],...]

[0203] This completes the packaging process of the first data set and the second data set, and prepares the data structure for subsequent hash encryption and transmission.

[0204] S107, performing hash encryption on the first data set and the second data set respectively to obtain corresponding first hash value and second hash value, and concatenating the first hash value to the end of the first data set, and concatenating the second hash value to the end of the second data set;

[0205] In this step, the first data set and the second data set need to be hashed and encrypted, and the generated hash values ​​are concatenated to the end of the data sets.

[0206] First, select a suitable hash algorithm, such as the commonly used SHA-256, to calculate the hash value of the data set. In Python, you can use the hashlib library to implement hash functions.

[0207] Convert the first data set (i.e. the original data sequence) into a bytestream.

[0208] Computes the hash value of the byte stream using the selected hash algorithm.

[0209] Convert the calculated hash value into hexadecimal or other suitable format for subsequent concatenation and transmission.

[0210] Concatenate the first data set with its corresponding hash value (usually a hexadecimal string), ensuring that the hash value is closely associated with the data set.

[0211] Convert the second data set (i.e., the subsequence data with the unique encoding) into a byte stream.

[0212] Calculate the hash value of the byte stream using the same hashing algorithm.

[0213] Convert the calculated hash value into the appropriate format.

[0214] Concatenate the second data set with its corresponding hash value, ensuring that a hash value is associated with each subsequence of the data set.

[0215] Here is a specific example to illustrate:

[0216] #Assuming that there is an existing dataset

[0217] first_dataset=[sequence1,sequence2,sequence3,...]

[0218] second_dataset=[[1,1.0,2.0,...],[2,3.0,4.0,...],...]

[0219] #Hash encryption function

[0220] def hash_data(data):

[0221] hash_object = hashlib.sha256()

[0222] hash_object.update(str(data).encode('utf-8'))#Convert data into byte stream and calculate hash value

[0223] returnhash_object.hexdigest()#Returns the hash value in hexadecimal format

[0224] #Calculate the hash value of the first data set and concatenate

[0225] first_dataset_hash=hash_data(first_dataset)

[0226] first_dataset_with_hash=first_dataset+[first_dataset_hash]

[0227] #Calculate the hash value of the second data set and concatenate

[0228] second_dataset_hash=hash_data(second_dataset)

[0229] second_dataset_with_hash=[item+[second_dataset_hash]foriteminsecond_dataset]

[0230] # Output sample dataset

[0231] print("First dataset (with hash value):",first_dataset_with_hash)

[0232] print("Second dataset (with hash value):",second_dataset_with_hash)

[0233] Assuming that first_dataset contains the original data sequence and second_dataset contains subsequence data with unique encodings, the output is as follows:

[0234] First data set (with hash value): [[sequence1],[sequence2],[sequence3],...,'hash_value']

[0235] Second dataset (with hash values): [[1,1.0,2.0,...,'hash_value'],[2,3.0,4.0,...,'hash_value'],...]

[0236] In this way, the hash encryption of the first data set and the second data set is completed, and the corresponding hash value is added to the end of each data set, preparing to package the data sets into a third data set for transmission.

[0237] S108. Pack the concatenated first data set and second data set into a third data set, and send the third data set to the industrial Internet cloud platform for analysis based on the MQTT protocol.

[0238] In this step, the first data set and the second data set need to be packaged into a third data set, and the third data set needs to be sent to the industrial Internet cloud platform for analysis based on the MQTT protocol.

[0239] The first and second data sets have been hashed and contain hash values. These data sets now need to be merged into an overall data structure, namely the third data set.

[0240] Combine the first and second data sets into a single data structure. This can be represented as a list or a dictionary, depending on how the data is organized and how it needs to be transferred.

[0241] Package the merged data structure into a format that can be transmitted over the network. In Python, the data structure can be converted to JSON format or other suitable serialization format.

[0242] Use a client library that supports the MQTT protocol, such as the Eclipse Paho MQTT client, to implement MQTT communication in Python.

[0243] Use the MQTT proxy address, port number, and authentication information (such as user name and password) provided by the cloud platform to establish an MQTT connection.

[0244] Publish the packaged third data set as a message to the MQTT topic specified by the cloud platform.

[0245] Ensure that the message is sent successfully and handle possible error conditions, such as network connectivity issues or authentication failures.

[0246] The following is a Python example that shows how to package data and send it to the cloud platform via the MQTT protocol:

[0247] #Assume that there are already the first and second data sets

[0248] first_dataset=[[1,2,3],[4,5,6],[7,8,9],'hash_value1']

[0249] second_dataset=[['A','B'],['C','D'],['E','F'],'hash_value2']

[0250] #Merge into the third data set

[0251] third_dataset={

[0252] "first_dataset":first_dataset,

[0253] "second_dataset":second_dataset

[0254] }

[0255] #Convert the third data set to JSON format

[0256] json_data=json.dumps(third_dataset)

[0257] #MQTT server information

[0258] mqtt_broker="mqtt.example.com"

[0259] mqtt_port=1883

[0260] mqtt_username="your_username"

[0261] mqtt_password="your_password"

[0262] #MQTT Publish Topic

[0263] mqtt_topic="industrial / data / analysis"

[0264] #MQTT client callback function

[0265] defon_publish(client,userdata,result):

[0266] print("The data set was successfully published to the MQTT topic")

[0267] #Create an MQTT client

[0268] client = mqtt.Client()

[0269] client.username_pw_set(username=mqtt_username,password=mqtt_password)

[0270] # Bind release success callback function

[0271] client.on_publish = on_publish

[0272] #Connect to MQTT proxy server

[0273] client.connect(mqtt_broker,mqtt_port)

[0274] #Publish the dataset to the MQTT topic

[0275] client.publish(mqtt_topic,json_data)

[0276] #Loop monitoring messages

[0277] client.loop_forever()

[0278] This example shows how to use Python's PahoMQTT client library to publish the packaged third dataset in JSON format to the specified MQTT topic. Make sure to replace the MQTT server information, authentication credentials, and topic name in the example with the actual values ​​used.

[0279] Through these steps, the first data set and the second data set can be packaged into a third data set, and sent to the industrial Internet cloud platform through the MQTT protocol for subsequent data analysis and processing.

[0280] The present application also provides another embodiment of an industrial Internet data processing method based on big data cloud services, which includes:

[0281] S201, deploying an edge computing device and a sensor module on a target industrial device, and connecting the sensor module to the edge computing device using a UART interface, wherein the sensor module includes at least a photoelectric sensor, a vibration sensor, and a temperature sensor;

[0282] In this embodiment, edge computing devices suitable for industrial environments are first determined. These devices need to have sufficient computing power and stability. Various sensor modules including photoelectric sensors, vibration sensors, and temperature sensors are selected to ensure that they can cover various types of data that need to be monitored.

[0283] Install sensor modules such as photoelectric sensors, vibration sensors and temperature sensors at appropriate locations on the target industrial equipment. These locations are determined based on monitoring requirements and the structural characteristics of the equipment.

[0284] Use the UART interface or other adapter to connect the sensor module to the edge computing device. The UART interface is used for serial communication and can stably transmit the data collected by the sensor module to the edge computing device. After the connection is completed, perform connection verification and data transmission tests to ensure that the sensor module can send real-time data to the edge computing device normally. Ensure that the data format of the sensor module matches the receiving capability of the edge computing device to ensure the integrity and accuracy of the data. After the connection verification is passed, the edge computing device needs to be properly configured to ensure that it can receive, process and store data from the sensor module. The configuration process may include setting up functions such as communication protocols, data formatting, data storage and real-time monitoring.

[0285] S202, monitoring the target industrial equipment in real time through the sensor module, and sending the collected real-time information of the equipment to the edge computing device, wherein the real-time information of the equipment includes photoelectric data, vibration data and temperature data;

[0286] The specific process of implementing step S202 can be divided into the following key steps:

[0287] The sensor module monitors the target industrial equipment in real time and collects data from sensors such as photoelectric sensors, vibration sensors, and temperature sensors. Photoelectric sensors are responsible for collecting photoelectric data, vibration sensors are responsible for collecting vibration data, and temperature sensors are responsible for collecting temperature data. The sensor module transmits the collected photoelectric data, vibration data, and temperature data to the edge computing device through a pre-configured UART interface or other appropriate communication interface. The edge computing device processes the received data in real time, such as performing data preprocessing, anomaly detection, or other real-time analysis tasks. The edge computing device can choose to store the processed data in local storage or provide real-time feedback to the control system or operator of the industrial equipment. Data storage usually includes archiving the raw data for future analysis or reporting.

[0288] S203, the edge computing device detects and removes abnormal values ​​in the real-time information of the device by executing a standard deviation algorithm;

[0289] The edge computing device receives real-time device information transmitted from the sensor module, including photoelectric data, vibration data, and temperature data. For each type of data (photoelectric data, vibration data, temperature data), the edge computing device calculates its standard deviation (Standard Deviation). Standard deviation is a statistic that measures the degree of data dispersion. In this embodiment, it is used to determine whether there are outliers in the data set. A higher standard deviation usually indicates that the data fluctuates greatly and may contain outliers. The edge computing device sets a threshold or uses a dynamic threshold to determine whether the data is abnormal based on the calculated standard deviation. Data points that exceed the threshold can be considered outliers. When a data point is detected to be marked as an outlier, the edge computing device can take one of the following actions:

[0290] Directly remove outliers: Remove outliers from the data set to ensure the accuracy of subsequent analysis.

[0291] Mark outliers: Mark outliers in the data for subsequent processing (such as special treatment or reporting).

[0292] After removing outliers, edge computing devices may perform further data processing, such as data normalization and feature extraction, to prepare for subsequent data analysis and applications.

[0293] S204, the edge computing device executes a Z-score algorithm on the real-time information of the device;

[0294] In this step, the edge computing device has removed the outliers in the device real-time information through step S203. Z-score is a statistical method used to evaluate the degree of deviation between a data point and its mean. It calculates the difference between the standard deviation of a data point and the mean of the data set to determine the position of the data point relative to the overall data set. For each data point x_i, the calculation of its Z-score can be achieved by the following formula:

[0295] Zi = (xi − μ) / σ;

[0296] Where xi represents a specific data point in the data set. μ represents the mean of the data set, which is the average of all data points. σ represents the standard deviation of the data set, which is used to measure the dispersion of data points.

[0297] The calculation process is as follows:

[0298] xi−μ: Calculates the difference between the data point xi and the mean μ of the entire data set. xi−μ represents the offset of the data point from the mean.

[0299] xi−μ / σ: Normalize the offset and divide it by the standard deviation σ of the data set. The result is a standardized score called the Z-score.

[0300] Zi can be positive or negative, depending on whether the data point xi is above or below the mean μ. If xi is within one standard deviation σ from μ, then the value of Zi is positive or negative 1.

[0301] The main purpose of the Z-score is to help understand the location and distribution of data points in the overall data set. Generally, a Z-score with a large absolute value indicates a large deviation from the mean and may require further attention or processing.

[0302] S205. The edge computing device constructs a raw data sequence based on the processed real-time information of the device, where the raw data sequence includes a moving speed sequence, a coordinate sequence, a displacement distance sequence, a vibration amplitude sequence, and a temperature sequence;

[0303] S206, dividing the moving speed sequence, coordinate sequence, displacement distance sequence, vibration amplitude sequence and temperature sequence into a plurality of subsequences according to a preset time window, each subsequence containing a certain number of observation values;

[0304] S207, respectively calculating the statistical features of each subsequence by using the functions of NumPy and SciPy, extracting the eigenvalues ​​of each subsequence, and combining the eigenvalues ​​of each subsequence to obtain a corresponding eigenvector;

[0305] S208, constructing a sequence linked list based on the original data sequence, each subsequence and the feature vector corresponding to each subsequence, wherein the sequence linked list records the mapping relationship between the feature vector and each sequence, and the unique code of each subsequence;

[0306] S209, packaging the original data sequence and the sequence linked list into a first data set;

[0307] S210, concatenating the unique code to the head of the corresponding subsequence to form a concatenated field, and packaging all the concatenated fields into a second data set;

[0308] S211, performing hash encryption on the first data set and the second data set respectively to obtain corresponding first hash value and second hash value, and concatenating the first hash value to the end of the first data set, and concatenating the second hash value to the end of the second data set;

[0309] S212: Pack the concatenated first data set and the second data set into a third data set, and send the third data set to the industrial Internet cloud platform for analysis based on the MQTT protocol.

[0310] Steps S205 to S212 in this embodiment are similar to the description of the relevant steps in the aforementioned embodiment and are not repeated here.

[0311] S213. After parsing and verifying the third data set, the industrial Internet cloud platform analyzes it through the Apache Spark component.

[0312] In this step, the industrial Internet cloud platform first needs to parse the received third data set, which requires receiving data from the MQTT protocol and parsing it according to a predetermined format to obtain information such as the original data sequence and sequence linked list.

[0313] The parsed data needs to be verified to ensure the integrity, correctness and security of the data. This includes checking the format of the data, whether there are missing data points, whether there are abnormal data, etc.

[0314] Once the data has passed the validation, the platform will use the Apache Spark component to analyze the data. Specific analysis may include:

[0315] Use Spark's data processing capabilities such as DataFrame and Dataset APIs to clean, transform, and prepare data.

[0316] Use Spark’s machine learning libraries, such as MLlib, to perform data mining and find patterns and trends in the data.

[0317] Spark supports real-time stream processing (such as Spark Streaming) and batch processing (such as Spark SQL), and can process real-time data streams or historical data from industrial equipment.

[0318] After the analysis is completed, Spark can generate various analysis reports, data visualization results, or trigger subsequent automated processes and decisions.

[0319] The present application provides a specific embodiment, which includes:

[0320] reading the third data set from a storage location;

[0321] Use the json library to parse the third data set into JSON data;

[0322] Calculating a hash value for the JSON data, and performing a hash check based on the first hash value and the second hash value;

[0323] Save the parsed data to HDFS;

[0324] Read data stored in HDFS;

[0325] Use Spark's DataFrame API and SQL for data analysis.

[0326] In this embodiment, first, the third data set is read from a specified storage location (such as a local file system or a cloud storage service), which can be implemented through Python file operations or directly from the API of the cloud storage service.

[0327] Using a JSON library in Python, such as the json module, you can convert raw data read from a data store into JSON format. This requires parsing the data from a string or byte stream into a data structure in Python, such as a dictionary or list.

[0328] For example:

[0329] import json

[0330] # Assume that data is the original data read from storage

[0331] json_data = json.loads(data)

[0332] The parsed JSON data is hashed and a hash algorithm (such as SHA-256) may be used to generate a hash value of the data, which is then compared with the pre-stored first and second hash values ​​to verify the integrity of the data.

[0333] An example is as follows:

[0334] import hashlib

[0335] # Calculate the hash value of the data

[0336] hash_value = hashlib.sha256(json.dumps(json_data).encode()).hexdigest()

[0337] # Compare hash values

[0338] if hash_value == first_hash or hash_value == second_hash:

[0339] # Data verification passed

[0340] pass

[0341] else:

[0342] # Data verification failed

[0343] raise ValueError("Data verification failed")

[0344] Use Hadoop's HDFS command-line tool or Python library (such as hdfs library) to store the verified data in HDFS. Then use Apache Spark's DataFrame API to easily read data from HDFS. Spark supports loading data directly from HDFS paths. Use Spark's DataFrame API and SQL statements to perform various operations and analyses on the data. For example, you can perform operations such as data filtering, aggregation, and connection to extract the required information from the data.

[0345] An example is as follows:

[0346] # Using DataFrame API for data manipulation

[0347] df_filtered = df.filter(df['column']>10)

[0348] # Use SQL statements to analyze data

[0349] df.createOrReplaceTempView("data")

[0350] result = spark.sql("SELECT * FROM data WHERE column>10")

[0351] The above embodiments have described the method in the present application in detail. The following describes the device embodiments in the present application.

[0352] See also Figure 3 , the present application provides an embodiment of an industrial Internet data processing device based on big data cloud service, the embodiment comprising:

[0353] The data acquisition unit 301 is used to acquire photoelectric data, vibration data and temperature data through the sensor module arranged on the target industrial equipment, and construct an original data sequence, wherein the original data sequence includes a moving speed sequence, a coordinate sequence, a displacement distance sequence, a vibration amplitude sequence and a temperature sequence;

[0354] A subsequence division unit 302 is used to divide the moving speed sequence, the coordinate sequence, the displacement distance sequence, the vibration amplitude sequence and the temperature sequence into a plurality of subsequences according to a preset time window, each of which contains a certain number of observation values;

[0355] A feature extraction unit 303 is used to calculate the statistical features of each subsequence through the functions of NumPy and SciPy, extract the feature value of each subsequence, and combine the feature values ​​of each subsequence to obtain a corresponding feature vector;

[0356] A linked list construction unit 304 is used to construct a sequence linked list based on the original data sequence, each subsequence and the feature vector corresponding to each subsequence, wherein the sequence linked list records the mapping relationship between the feature vector and each sequence, and the unique code of each subsequence;

[0357] A first data packaging unit 305, used to package the original data sequence and the sequence linked list into a first data set;

[0358] A second data packing unit 306 is used to concatenate the unique code to the head of the corresponding subsequence to form a concatenated field, and pack all the concatenated fields into a second data set;

[0359] A data concatenation unit 307 is used to perform hash encryption on the first data set and the second data set respectively to obtain a corresponding first hash value and a second hash value, and concatenate the first hash value to the end of the first data set, and concatenate the second hash value to the end of the second data set;

[0360] The third data packaging unit 308 is used to package the concatenated first data set and the second data set into a third data set, and send the third data set to the industrial Internet cloud platform for analysis based on the MQTT protocol.

[0361] Optionally, also include:

[0362] The sensor deployment unit 309 is used to:

[0363] Deploy an edge computing device and a sensor module on the target industrial equipment, and connect the sensor module to the edge computing device using a UART interface, wherein the sensor module includes at least a photoelectric sensor, a vibration sensor, and a temperature sensor;

[0364] The monitoring unit 310 is used to: monitor the target industrial equipment in real time through the sensor module, and send the collected real-time information of the equipment to the edge computing device, where the real-time information of the equipment includes photoelectric data, vibration data and temperature data.

[0365] Optionally, a pre-processing unit 311 is further included, which is used to:

[0366] The edge computing device detects and removes abnormal values ​​in the real-time information of the device by executing a standard deviation algorithm;

[0367] The edge computing device executes a Z-score algorithm on the real-time information of the device.

[0368] Optionally, an analysis unit 312 is further included, configured to:

[0369] After parsing and verifying the third data set, analysis is performed using the Apache Spark component.

[0370] Optionally, the feature extraction unit 303 is specifically used for:

[0371] Define a split_into_subsequences function, and divide the original data sequence into multiple subsequences according to the size of the time window;

[0372] Define the calculate_features function and use NumPy and SciPy to calculate the statistical features of each subsequence;

[0373] Define the extract_feature_vectors function and extract the feature vector of each subsequence;

[0374] The statistical characteristics include mean, standard deviation, minimum, maximum, skewness and kurtosis.

[0375] Optionally, the analysis unit 312 is specifically configured to:

[0376] reading the third data set from a storage location;

[0377] Use the json library to parse the third data set into JSON data;

[0378] Calculating a hash value for the JSON data, and performing a hash check based on the first hash value and the second hash value;

[0379] Save the parsed data to HDFS;

[0380] Read data stored in HDFS;

[0381] Use Spark's DataFrame API and SQL for data analysis.

[0382] Optionally, the linked list construction unit 304 is specifically used for:

[0383] Generate a corresponding unique code for each subsequence based on the UUID library;

[0384] Create a dictionary data structure to store the mapping between the original data sequence, subsequences and their feature vectors, and unique codes.

[0385] See also Figure 4 , the present application also provides an industrial Internet data processing device based on big data cloud service, including:

[0386] Processor 401, memory 402, input and output unit 403, bus 404;

[0387] The processor 401 is connected to the memory 402, the input and output unit 403 and the bus 404;

[0388] The memory 402 stores a program, and the processor 401 calls the program to execute any of the above methods.

[0389] The present application also relates to a computer-readable storage medium on which a program is stored, wherein when the program is run on a computer, the computer is caused to execute any of the above methods.

[0390] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

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

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

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

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

Claims

1. An industrial Internet data processing method based on big data cloud service, characterized in that: The method comprises: The edge computing device acquires photoelectric data, vibration data, and temperature data through the sensor modules arranged on the target industrial equipment, and constructs a raw data sequence, wherein the raw data sequence includes a moving speed sequence, a coordinate sequence, a displacement distance sequence, a vibration amplitude sequence, and a temperature sequence; According to a preset time window, the moving speed sequence, the coordinate sequence, the displacement distance sequence, the vibration amplitude sequence and the temperature sequence are respectively divided into a plurality of subsequences, each of which contains a certain number of observation values; The statistical features of each subsequence are calculated by using the functions of NumPy and SciPy, the eigenvalues ​​of each subsequence are extracted, and the eigenvalues ​​of each subsequence are combined to obtain the corresponding eigenvector; Constructing a sequence linked list based on the original data sequence, each subsequence and the feature vector corresponding to each subsequence, wherein the sequence linked list records the mapping relationship between the feature vector and each sequence, and the unique code of each subsequence; Packing the original data sequence and the sequence linked list into a first data set; Concatenate the unique code to the head of the corresponding subsequence to form a concatenated field, and pack all the concatenated fields into a second data set; Perform hash encryption on the first data set and the second data set respectively to obtain corresponding first hash values ​​and second hash values, and concatenate the first hash value to the end of the first data set, and concatenate the second hash value to the end of the second data set; The concatenated first data set and the second data set are packaged into a third data set, and the third data set is sent to the industrial Internet cloud platform for analysis based on the MQTT protocol.

2. The industrial Internet data processing method based on big data cloud service according to claim 1 is characterized in that: Before the edge computing device acquires photoelectric data, vibration data, and temperature data through a sensor module arranged on the target industrial equipment, the method further includes: Deploy an edge computing device and a sensor module on the target industrial equipment, and connect the sensor module to the edge computing device using a UART interface, wherein the sensor module includes at least a photoelectric sensor, a vibration sensor, and a temperature sensor; The target industrial equipment is monitored in real time by the sensor module, and the collected real-time information of the equipment is sent to the edge computing device, where the real-time information of the equipment includes photoelectric data, vibration data and temperature data.

3. The industrial Internet data processing method based on big data cloud service according to claim 2 is characterized in that: After sending the collected real-time device information to the edge computing device, the method further includes: The edge computing device detects and removes abnormal values ​​in the real-time information of the device by executing a standard deviation algorithm; The edge computing device executes a Z-score algorithm on the real-time information of the device.

4. The industrial Internet data processing method based on big data cloud service according to claim 1 is characterized in that: Also includes: After parsing and verifying the third data set, the industrial Internet cloud platform analyzes it through the Apache Spark component.

5. The industrial Internet data processing method based on big data cloud service according to claim 1 is characterized in that: The time windows are divided by using the as_strided method in NumPy function.

6. The industrial Internet data processing method based on big data cloud service according to claim 1 is characterized in that: The statistical features of each subsequence are calculated by using the functions of NumPy and SciPy respectively, the eigenvalues ​​of each subsequence are extracted, and the eigenvalues ​​of each subsequence are combined to obtain the corresponding eigenvectors, including: Define a split_into_subsequences function, and divide the original data sequence into multiple subsequences according to the size of the time window; Define the calculate_features function and use NumPy and SciPy to calculate the statistical features of each subsequence; Define the extract_feature_vectors function and extract the feature vector of each subsequence; The statistical characteristics include mean, standard deviation, minimum, maximum, skewness and kurtosis.

7. The industrial Internet data processing method based on big data cloud service according to claim 4 is characterized in that: After the industrial Internet cloud platform parses and verifies the third data set, the analysis through the Apache Spark component includes: reading the third data set from a storage location; Use the json library to parse the third data set into JSON data; Calculating a hash value for the JSON data, and performing a hash check based on the first hash value and the second hash value; Save the parsed data to HDFS; Read data stored in HDFS; Use Spark's DataFrame API and SQL for data analysis.

8. The industrial Internet data processing method based on big data cloud service according to claim 1 is characterized in that: The sequence linked list is constructed based on the original data sequence, each subsequence and the feature vector corresponding to each subsequence. The sequence linked list records the mapping relationship between the feature vector and each sequence, and the unique code of each subsequence includes: Generate a corresponding unique code for each subsequence based on the UUID library; Create a dictionary data structure to store the mapping between the original data sequence, subsequences and their feature vectors, and unique codes.

9. An industrial Internet data processing device based on big data cloud service, characterized in that: The device comprises: A data acquisition unit, used to acquire photoelectric data, vibration data and temperature data through a sensor module arranged on the target industrial equipment, and construct an original data sequence, wherein the original data sequence includes a moving speed sequence, a coordinate sequence, a displacement distance sequence, a vibration amplitude sequence and a temperature sequence; A subsequence division unit is used to divide the moving speed sequence, coordinate sequence, displacement distance sequence, vibration amplitude sequence and temperature sequence into a plurality of subsequences according to a preset time window, each of which contains a certain number of observation values; A feature extraction unit is used to calculate the statistical features of each subsequence through the functions of NumPy and SciPy, extract the feature value of each subsequence, and combine the feature values ​​of each subsequence to obtain the corresponding feature vector; A linked list construction unit, used to construct a sequence linked list based on the original data sequence, each subsequence and the feature vector corresponding to each subsequence, wherein the sequence linked list records the mapping relationship between the feature vector and each sequence, and the unique code of each subsequence; A first data packaging unit, used for packaging the original data sequence and the sequence linked list into a first data set; A second data packaging unit, configured to concatenate the unique code to a header of a corresponding subsequence to form a concatenated field, and to package all the concatenated fields into a second data set; a data concatenation unit, configured to perform hash encryption on the first data set and the second data set respectively to obtain a corresponding first hash value and a second hash value, and concatenate the first hash value to the end of the first data set, and concatenate the second hash value to the end of the second data set; The third data packaging unit is used to package the concatenated first data set and the second data set into a third data set, and send the third data set to the industrial Internet cloud platform for analysis based on the MQTT protocol.

10. An industrial Internet data processing device based on big data cloud service, characterized in that: The device comprises: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 8.