Internet of Things data processing system and method, computer equipment, readable storage medium and program product

Through the data collection, abnormal evaluation, blockchain quality assessment and trust evaluation module of the IoT data processing system, the problems of IoT data source reliability verification and blockchain data quality assessment are solved, and the Internet of Things data and zones are realized Comprehensive reliability and security assessment of blockchain data.

CN119011116APending Publication Date: 2024-11-22CHINA SOUTHERN POWER GRID INTERNET SERVICE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411107094.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-22

Smart Images

  • Figure CN119011116A_ABST
    Figure CN119011116A_ABST
Patent Text Reader

Abstract

The invention relates to an Internet of Things data processing system and method, computer equipment, a computer readable storage medium and a computer program product. The system comprises a data collection module which is used for collecting operation state information and environment state information of Internet of Things equipment and obtaining Internet of Things state data according to the operation state information and the environment state information; the anomaly evaluation module is used for identifying the anomaly condition of the Internet of Things state data, calculating an anomaly index and obtaining a data anomaly index according to the anomaly index and the environment state information; the block processing module is used for packaging the Internet of Things state data into block data and performing quality evaluation on the block chain according to block information of each piece of block data in the block chain to obtain a quality evaluation index; and the trust evaluation module is used for determining trust nodes in the block chain network, setting trust chains according to trust levels of the trust nodes, and calculating trust scoring indexes of the trust chains. By adopting the system, the reliability of the Internet of Things data in the block chain can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to an Internet of Things data processing system, method, computer device, computer-readable storage medium and computer program product. Background Art

[0002] Blockchain technology is widely used in finance, logistics, medical care, the Internet of Things and other fields due to its distributed, decentralized and tamper-proof characteristics. Among them, by applying blockchain technology in the field of the Internet of Things, data security can be effectively guaranteed, and the flow and use of data can be monitored and audited in real time, which can prevent the leakage and abuse of IoT data. However, although blockchain can ensure the security and reliability of IoT data on the chain, it is difficult to verify the reliability of IoT data at the source. Summary of the invention

[0003] Based on this, it is necessary to provide an Internet of Things data processing system, method, computer device, computer readable storage medium and computer program product to address the above technical problems.

[0004] In a first aspect, the present application provides an Internet of Things data processing system, including: a data collection module, an anomaly assessment module, a block processing module and a trust assessment module;

[0005] The data collection module is used to collect the operation status information and environmental status information of the Internet of Things devices, and obtain the Internet of Things status data according to the operation status information and the environmental status information;

[0006] The abnormality assessment module is used to identify abnormal conditions of the IoT state data and calculate an abnormality index, and obtain a data abnormality index of the IoT state data according to the abnormality index and the environmental state information;

[0007] The block processing module is used to package the IoT state data into block data, and perform quality assessment on the blockchain according to the block information of each block data in the blockchain to obtain a quality assessment index of the blockchain;

[0008] The trust evaluation module is used to determine the trust nodes in the blockchain network, set up the trust chain according to the trust level of each trust node, and calculate the trust score index of each trust chain.

[0009] In one embodiment, the data collection module includes: a monitoring unit, a data transmission unit, and a data processing unit; the monitoring unit is used to monitor the operating status information and the environmental status information of the Internet of Things device; the data transmission unit is used to transmit the operating status information and the environmental status information to the data processing unit; the data processing unit is used to receive the operating status information and the environmental status information, and perform information digitalization processing on the operating status information and the environmental status information to obtain the Internet of Things status data.

[0010] In one of the embodiments, the anomaly assessment module is further used to: use a preset smart contract to count the outlier data points in the Internet of Things status data to obtain a data outlier value, and calculate a data outlier index based on the data outlier value and a preset data outlier threshold and a data outlier average value; analyze the data transmission loss of the Internet of Things status data to obtain a data loss value, and calculate a data loss index based on the data loss value and a preset data loss threshold and a data loss average value; compare the hash values ​​of each data point in the Internet of Things status data to obtain a data duplication value, and calculate a data duplication index based on the data duplication value and a preset data duplication threshold and a data duplication average value; and obtain the anomaly index of the Internet of Things status data based on the data outlier index, the data loss index, and the data duplication index.

[0011] In one of the embodiments, the block information includes the transaction creation time, block timestamp and transaction information of the block data; the block processing module is further used to: obtain the transaction delay parameter of each block data according to the transaction creation time and the block timestamp of each block data; analyze the transaction information of each block data to obtain the number of transaction types and the transaction data size of each block data; obtain the quality assessment index of the blockchain according to the transaction delay parameter, the number of transaction types and the transaction data size of each block data.

[0012] In one of the embodiments, the trust assessment module is further used to: analyze the configuration information of each blockchain node in the blockchain network, and use the blockchain node whose configuration information meets the preset configuration conditions as the trust node; obtain the trust level of each trust node according to the online time, transaction verification accuracy and historical tampering record of each trust node; and set up the trust chain between the trust nodes corresponding to the same trust level.

[0013] In one of the embodiments, the trust assessment module is further used to: calculate the trust score indicator of the trust chain based on the node online rate, transaction verification accuracy rate, and data anomaly index of the Internet of Things status data of each trust node in the trust chain; wherein the trust score indicator is positively correlated with the node online rate and the transaction verification accuracy rate, and the trust score indicator is negatively correlated with the data anomaly index.

[0014] In a second aspect, the present application also provides an Internet of Things data processing method, including:

[0015] Collecting the operation status information and the environmental status information of the IoT device, and obtaining the IoT status data according to the operation status information and the environmental status information;

[0016] Identify the abnormal situation of the Internet of Things status data and calculate the abnormal index, and obtain the data abnormality index of the Internet of Things status data according to the abnormal index and the environmental status information;

[0017] Packing the IoT state data into block data, and performing a quality assessment on the blockchain according to the block information of each block data in the blockchain to obtain a quality assessment index of the blockchain;

[0018] Determine the trust nodes in the blockchain network, set up a trust chain according to the trust level of each trust node, and calculate the trust score index of each trust chain.

[0019] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0020] Collecting the operation status information and the environmental status information of the IoT device, and obtaining the IoT status data according to the operation status information and the environmental status information;

[0021] Identify the abnormal situation of the Internet of Things status data and calculate the abnormal index, and obtain the data abnormality index of the Internet of Things status data according to the abnormal index and the environmental status information;

[0022] Packing the IoT state data into block data, and performing a quality assessment on the blockchain according to the block information of each block data in the blockchain to obtain a quality assessment index of the blockchain;

[0023] Determine the trust nodes in the blockchain network, set up a trust chain according to the trust level of each trust node, and calculate the trust score index of each trust chain.

[0024] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0025] Collecting the operation status information and the environmental status information of the IoT device, and obtaining the IoT status data according to the operation status information and the environmental status information;

[0026] Identify the abnormal situation of the Internet of Things status data and calculate the abnormal index, and obtain the data abnormality index of the Internet of Things status data according to the abnormal index and the environmental status information;

[0027] Packing the IoT state data into block data, and performing a quality assessment on the blockchain according to the block information of each block data in the blockchain to obtain a quality assessment index of the blockchain;

[0028] Determine the trust nodes in the blockchain network, set up a trust chain according to the trust level of each trust node, and calculate the trust score index of each trust chain.

[0029] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0030] Collecting the operation status information and the environmental status information of the IoT device, and obtaining the IoT status data according to the operation status information and the environmental status information;

[0031] Identify the abnormal situation of the Internet of Things status data and calculate the abnormal index, and obtain the data abnormality index of the Internet of Things status data according to the abnormal index and the environmental status information;

[0032] Packing the IoT state data into block data, and performing a quality assessment on the blockchain according to the block information of each block data in the blockchain to obtain a quality assessment index of the blockchain;

[0033] Determine the trust nodes in the blockchain network, set up a trust chain according to the trust level of each trust node, and calculate the trust score index of each trust chain.

[0034] The above-mentioned Internet of Things data processing system, method, computer device, computer-readable storage medium and computer program product collect the operating status information and environmental status information of the Internet of Things device through the data collection module, and obtain the Internet of Things status data according to the operating status information and the environmental status information, identify the abnormal situation of the Internet of Things status data and calculate the abnormal index through the abnormal evaluation module, and obtain the data abnormality index of the Internet of Things status data according to the abnormal index and the environmental status information, package the Internet of Things status data into block data through the block processing module, and perform quality evaluation on the blockchain according to the block information of each block data in the blockchain to obtain the quality evaluation index of the blockchain, and determine the trust node in the blockchain network through the trust evaluation module, and then set the trust chain according to the trust level of each trust node, and calculate the trust score index of each trust chain.

[0035] This scheme obtains IoT status data by collecting the operation status information and environmental status information of IoT devices during operation, and performs abnormal analysis on the IoT status data to obtain data abnormality indicators. Therefore, by using the data abnormality indicators, the authenticity and reliability of the source data can be effectively verified before the IoT data is uploaded to the chain. Moreover, after packaging the IoT status data, the scheme also performs a quality assessment on the overall data of the blockchain to obtain a quality assessment index, so as to achieve a comprehensive grasp of the overall quality level of each block data in the blockchain. In addition, the method also sets up trust nodes in the blockchain and sets up trust chains according to the trust level of each trust node, and calculates the trust scoring indicators of each trust chain. It can ensure the credibility of the transmitted data through the trust chain, and use the trust scoring indicators to comprehensively evaluate the trust relationship between the trust nodes in the trust chain, which is conducive to improving the security of the trust chain. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions 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 related drawings can be obtained based on these drawings without paying creative work.

[0037] FIG1 is a diagram of an application environment of an Internet of Things data processing system in one embodiment;

[0038] FIG2 is a schematic diagram of the structure of an Internet of Things data processing system in one embodiment;

[0039] FIG3 is a schematic diagram of the structure of a data collection module in one embodiment;

[0040] FIG4 is a schematic diagram of a process for calculating an abnormality index in one embodiment;

[0041] FIG5 is a schematic diagram of a process for calculating a quality assessment index in one embodiment;

[0042] FIG6 is a schematic diagram showing the relationship between the quality assessment index and the total block data size weight and the block transaction delay weight in one embodiment;

[0043] FIG7 is a schematic diagram of a process of setting a trust chain in one embodiment;

[0044] FIG8 is a schematic diagram of a flow chart of a method for processing IoT data in one embodiment;

[0045] FIG. 9 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0047] The Internet of Things data processing system provided in the embodiment of the present application can be applied in the application environment shown in Figure 1. Among them, the application environment may include multiple blockchain nodes and Internet of Things devices of the blockchain network. Among them, in the application environment shown in Figure 1, the Internet of Things device can be a smart speaker, a smart TV, a smart air conditioner, a smart car device, etc. The blockchain node of the blockchain network can be a server, which can be implemented by an independent server or a server cluster composed of multiple servers.

[0048] Among them, the IoT devices can be integrated with the blockchain network. For example, they can connect to the blockchain nodes in the blockchain network and send data such as operating status information and environmental status information to the blockchain nodes; they can also directly participate in the maintenance and data recording of the blockchain as blockchain nodes of the blockchain network.

[0049] Among them, the blockchain network can be a distributed system, and all blockchain nodes can jointly participate in the maintenance and data recording of the network. There is no centralized control organization or data storage method in the network, and all blockchain nodes in the network can verify and store data. In addition, the blockchain can effectively prevent data from being tampered with through security technologies such as cryptographic mechanisms, and any modification of data requires the consensus of the vast majority of nodes in the network. At the same time, the blockchain can also use public key encryption and private key decryption technology to enable transaction participants to conduct anonymous transactions in the blockchain network. In addition, different blockchains can also be interconnected through cross-chain technology.

[0050] In an exemplary embodiment, as shown in FIG2 , an Internet of Things data processing system is provided, which may include: a data collection module, an anomaly assessment module, a block processing module, and a trust assessment module.

[0051] Specifically, the system in this embodiment can be applied to the blockchain node shown in Figure 1. In some embodiments, the blockchain node can be a device such as a server connected to one or more IoT devices, which can receive and process the operating status information and environmental status information from the IoT devices. In other embodiments, the blockchain node may not be directly connected to the IoT device, but collect and process the operating status information and environmental status information of the IoT device forwarded by other blockchain nodes. In other embodiments, the blockchain node can also be an IoT device, which can directly obtain the operating status information and environmental status information during its own operation and perform subsequent processing on it.

[0052] Among them, the data collection module can be used to collect the operating status information and environmental status information of the Internet of Things devices, and obtain the Internet of Things status data based on the operating status information and environmental status information.

[0053] Exemplarily, the data collection module can collect the operating status information and environmental status information of the IoT device during operation in real time.

[0054] The operating status information may include data related to the performance and functions of the IoT device, which may reflect the operating status of the device, such as the health status, resource consumption, and function execution status. The environmental status information may include data such as the ambient temperature and humidity values ​​collected during the operation of the IoT device, which may reflect the environmental status of the device.

[0055] Based on the collected operation status information and environmental status information, the data collection module can analyze and process the information in real time to obtain IoT status data, wherein the IoT status data can be data that can quantify the operation status information and environmental status information of IoT devices over a period of time.

[0056] Among them, the anomaly assessment module can be used to identify abnormal situations of IoT status data and calculate the anomaly index, and obtain the data anomaly index of IoT status data based on the anomaly index and environmental status information.

[0057] Exemplarily, the abnormal conditions of the IoT state data may include one or more of data outliers, data loss, data duplication, etc. Among them, the abnormality assessment module can use the preset smart contract of the blockchain to identify one or more abnormal conditions that may exist in the IoT state data, and calculate the abnormality index of the IoT state data according to the identification result. Among them, the abnormality index can be used to measure the degree of influence of the abnormal conditions existing in the IoT state data on the IoT state data.

[0058] Exemplarily, the anomaly assessment module may further combine the anomaly index and the environmental status information contained in the IoT state data to calculate a data anomaly index of the IoT state data. The data anomaly index may be positively correlated with the anomaly index and negatively correlated with the environmental status information, which may be used to indicate the degree of anomaly of the IoT state data.

[0059] Among them, the block processing module can be used to package the IoT status data into block data, and perform quality assessment on the blockchain according to the block information of each block data in the blockchain to obtain the quality assessment index of the blockchain.

[0060] Exemplarily, the block processing module can package the IoT state data into block data in the blockchain based on the established blockchain. The IoT state data can be first packaged into transactions, each transaction usually contains information such as the sender, the receiver, the data content and the timestamp, and then the nodes in the blockchain network can verify the transaction, and finally multiple verified transactions can be packaged into a block data, wherein each block data can contain the hash value of the previous block, the timestamp and other information and multiple transaction data.

[0061] Optionally, the process of establishing the blockchain can be to first create a pre-parameter operation directory and configure the pre-parameters of the blockchain network, then set up the blockchain network by analyzing the pre-parameters and integrate the IoT device with the blockchain network. At the same time, the blockchain code can be set in the blockchain, and the blockchain code can be used to process the IoT status data uploaded to the blockchain, etc.

[0062] Exemplarily, the blockchain nodes in the blockchain network can store the block data on the blockchain in the block database, and perform a quality assessment on the blockchain according to the block information of each block data. Optionally, the block information of the blockchain data can include the transaction creation time, block timestamp, transaction information, etc. of the block data. Based on the block information, the block processing module can perform statistical analysis on the transaction delay, data volume, etc. of each block data in the blockchain, so as to calculate the overall quality assessment index of the block. Exemplarily, the quality assessment index can be negatively correlated with the transaction delay of the blockchain, and positively correlated with the data volume of the blockchain.

[0063] Among them, the trust assessment module can be used to determine the trust nodes in the blockchain network, set up the trust chain according to the trust level of each trust node, and calculate the trust score index of each trust chain.

[0064] Exemplarily, the trust evaluation module can analyze each blockchain node in the blockchain network, evaluate its stability based on information such as the hardware configuration of the blockchain node, and select nodes with higher stability from each blockchain node as trust nodes. Then, the trust level of the trust node can be evaluated according to a preset trust scoring mechanism in combination with one or more of the indicators of the trust node, such as data quality, transmission stability, response speed, data processing capability, and service quality. Among them, the trust level of the trust node can be used to evaluate the trust relationship between nodes, which can be updated in real time to reflect the latest performance of the trust node. Among them, in order to maintain the fairness of the trust level evaluation, the preset trust scoring mechanism can be open and transparent.

[0065] Exemplarily, a trust chain can be set up between trust nodes according to the trust level of each trust node. Optionally, there can be multiple trust chains in the blockchain network, and the trust nodes on each trust chain can have the same or similar trust level. In the process of data sharing, the credibility of the data can be transferred through the trust chain, and when the data is transmitted from one trust node to another, its credibility will be maintained or enhanced.

[0066] Exemplarily, after setting up the trust chain, the trust evaluation module can also evaluate the ability of each trust chain to establish a trust relationship, and obtain the trust score index corresponding to each trust chain. Optionally, the calculation of the trust score index can be realized by combining quantitative data that can reflect the activity of each trust node on the trust chain in the blockchain network and the reliability of the logistics status data in the blockchain network.

[0067] The IoT data processing system in this embodiment obtains IoT status data by collecting the operating status information and environmental status information of IoT devices during operation, and performs abnormal analysis on the IoT status data to obtain data abnormality indicators. Thus, by using the data abnormality indicators, the authenticity and reliability of the source data can be effectively verified before the IoT data is uploaded to the chain. Moreover, after packaging the IoT status data, the scheme also performs a quality assessment on the overall data of the blockchain to obtain a quality assessment index, so as to achieve a comprehensive grasp of the overall quality level of each block data in the blockchain. In addition, the method also sets a trust node in the blockchain and sets a trust chain according to the trust level of each trust node, and calculates the trust score index of each trust chain, which can ensure the credibility of the transmitted data through the trust chain, and use the trust score index to comprehensively evaluate the trust relationship between the trust nodes in the trust chain, which is conducive to improving the security of the trust chain.

[0068] In an exemplary embodiment, as shown in FIG3 , the data collection module may include: a monitoring unit, a data transmission unit, and a data processing unit.

[0069] Among them, the monitoring unit can be used to monitor the operating status information and environmental status information of the Internet of Things devices.

[0070] Exemplarily, the monitoring unit may collect data generated during the operation of the IoT device to obtain the operating status information and environmental status information of the IoT device.

[0071] Optionally, the operating status information includes data related to the performance and functions of the IoT device, which may reflect the operating status of the device, such as the health status, resource consumption, and function execution status.

[0072] Optionally, the environmental status information can be obtained by sensors that sense the ambient temperature, ambient humidity, etc. during the operation of the IoT device, and convert the sensed physical quantities into electrical signals to obtain the environmental status information. Among them, sensors usually have the characteristics of high precision, low power consumption and fast response, which can effectively meet the application requirements of IoT devices.

[0073] The data transmission unit may be used to transmit the operation status information and the environment status information to the data processing unit.

[0074] Exemplarily, the data transmission unit can transmit the operating status information and environmental status information obtained by the monitoring unit to the data processing unit. Optionally, the data transmission unit can transmit data via Ethernet. Optionally, the data transmission unit can also use encryption technology, data verification and retransmission mechanism, etc. to ensure the reliability, security and real-time performance of data transmission, and can use low-power transmission technology to adapt to the long-term operation characteristics of IoT devices.

[0075] Among them, the data processing unit can be used to receive the operation status information and the environmental status information, and perform digital information processing on the operation status information and the environmental status information to obtain the Internet of Things status data.

[0076] Exemplarily, after receiving the operating status information and the environmental status information, the data processing unit may perform digital information processing on the information to quantify the operating status information and the environmental status information, thereby obtaining Internet of Things status data.

[0077] Optionally, after obtaining the IoT status data, the data processing unit may also perform data preprocessing including but not limited to filtering, denoising, compensation, etc. to improve data quality.

[0078] In an exemplary embodiment, as shown in FIG4 , the process of the abnormal assessment module identifying abnormal conditions of IoT status data and calculating an abnormality index may include:

[0079] Step S401, using a preset smart contract to count outlier data points in the IoT state data to obtain data outlier values, and calculating a data outlier index based on the data outlier values ​​and a preset data outlier threshold and data outlier average.

[0080] The preset smart contract can be a pre-written code that can be pre-added to the blockchain network for deployment. During the deployment process, the code can be compiled by a compiler and tested before formal deployment. Optionally, the preset smart contract can also be regularly monitored and maintained after deployment to ensure its continued effectiveness.

[0081] Exemplarily, in this step, the preset smart contract can be used to analyze the IoT state data, and the outlier data points therein can be counted to obtain the data outlier value. Optionally, the outlier data point can be a data point in the IoT state data that deviates from the data center point, and the data outlier value can correspond to the number of outlier data points in the IoT state data. The data outlier value can be used to describe the data outlier situation of the IoT state data.

[0082] Exemplarily, in this step, a preset data outlier threshold and a data outlier average value can also be obtained from the database using a preset smart contract, and the data outlier value, the data outlier threshold and the data outlier average value are combined to calculate the data outlier index of the IoT state data. The data outlier index can be used to measure the degree of abnormal impact of the data outlier value on the IoT state data. Optionally, the data outlier index can be calculated by the following formula:

[0083]

[0084] in, is the data outlier index, is the data outlier, is the data outlier threshold, is the mean value of the data outliers.

[0085] Optionally, the data outlier mean value may be calculated based on the total number of IoT state data in the blockchain and the data outlier value corresponding to each IoT state data. Optionally, the data outlier threshold value may be a threshold value set based on the standard deviation between the data outlier value corresponding to each IoT state data and the data outlier mean value.

[0086] Step S402: Analyze the data transmission loss of the IoT status data to obtain a data loss value, and calculate a data loss index according to the data loss value and a preset data loss threshold and a data loss average value.

[0087] The loss of IoT state data during transmission can be analyzed by a network packet capture tool to obtain a data loss value. Optionally, the data loss value can be a packet loss rate during IoT state data transmission. The data loss value can be used to describe the data loss of IoT state data.

[0088] Exemplarily, in this step, a preset data loss threshold and a data loss average value may also be obtained from the database, and the data loss index of the IoT state data may be calculated by combining the data loss value, the data loss threshold and the data loss average value. The data loss index may be used to measure the degree of abnormal impact of the data loss value on the IoT state data. Optionally, the data loss index may be calculated by the following formula:

[0089]

[0090] in, is the data loss index, is the data loss value, is the data loss threshold, is the mean value of missing data.

[0091] Optionally, the average data loss value may be calculated based on the total number of IoT state data in the blockchain and the data loss value corresponding to each IoT state data. Optionally, the data loss threshold may be a threshold set based on the standard deviation between the data loss value corresponding to each IoT state data and the average data loss value.

[0092] Step S403, compare the hash values ​​of the data points in the IoT status data to obtain a data repetition value, and calculate a data repetition index according to the data repetition value and a preset data repetition threshold and a data repetition average value.

[0093] For each data point in the IoT state data, a hash function can be used to calculate its corresponding fixed-length hash value. Then, by comparing the hash values ​​of each data point, it is possible to identify whether there are repeated data points in the IoT state data, thereby obtaining a data repetition value of the IoT state data. Optionally, the data repetition value may be the number of data points in the IoT state data where data repetition occurs. The data repetition value may be used to describe the data repetition situation of the IoT state data.

[0094] Exemplarily, in this step, a preset data duplication threshold and a data duplication average value may also be obtained from the database, and the data duplication index of the IoT state data may be calculated by combining the data duplication value, the data duplication threshold and the data duplication average value. The data duplication index may be used to measure the degree of abnormal influence of the data duplication value on the IoT state data. Optionally, the data duplication index may be calculated by the following formula:

[0095]

[0096] in, is the data repetition index, is the data repetition value, is the data duplication threshold, Average the data replicates.

[0097] Optionally, the data repetition average value may be calculated based on the total number of IoT state data in the blockchain and the data repetition value corresponding to each IoT state data. Optionally, the data repetition threshold may be a threshold set based on the standard deviation between the data repetition value corresponding to each IoT state data and the data repetition average value.

[0098] Step S404, obtaining an abnormality index of the IoT status data according to the data outlier index, the data loss index, and the data duplication index.

[0099] In this step, an abnormality index including the data outlier index, data loss index, and data duplication index obtained previously can be obtained.

[0100] Optionally, based on the anomaly index obtained in this embodiment, the data anomaly index of the Internet of Things state data can be calculated by the following formula in combination with the environmental state information contained in the Internet of Things state data:

[0101]

[0102] in, is the data anomaly indicator, is a natural constant, is the normalized ambient temperature value, is the normalized ambient humidity value, is the data outlier index, is the data loss index, is the data repetition index. The ambient temperature value and the ambient humidity value can be obtained from the ambient state information. For example, the ambient temperature value and the ambient humidity value used in the above formula can be the average values ​​of the ambient temperature and the ambient humidity of the period corresponding to the IoT state data.

[0103] In this embodiment, various abnormal situations that may exist in the Internet of Things status data are identified and corresponding abnormal indexes are calculated respectively, so that the degree to which the Internet of Things status data is affected by various abnormal situations can be quantified. Based on the abnormal index obtained in this embodiment, a data abnormality index that can more comprehensively reflect the abnormality degree of the Internet of Things status data can be calculated, which is conducive to improving the accuracy of the reliability assessment of the Internet of Things status data.

[0104] In an exemplary embodiment, the block information may include the transaction creation time, block timestamp and transaction information of the block data. As shown in FIG5 , the block processing module is used to evaluate the quality of the blockchain according to the block information of each block data in the blockchain, and the process of obtaining the quality evaluation index of the blockchain may include:

[0105] Step S501, obtaining the transaction delay parameter of each block data according to the transaction creation time and block timestamp of each block data.

[0106] Optionally, there may be multiple block data in the blockchain, each of which may correspond to IoT status data of a period of time. The block information of each block data may include the transaction creation time, block timestamp, and transaction information of the block data.

[0107] The transaction creation time of the block data may be the time when the IoT state data is packaged into a transaction, and the block timestamp may be the time when the transaction is packaged into the block data. Based on this, in this step, the transaction delay parameter of each block data can be obtained by analyzing the difference between the transaction creation time and the block timestamp corresponding to each block data.

[0108] Step S502, analyzing the transaction information of each block data to obtain the transaction type quantity and transaction data size of each block data.

[0109] Optionally, the transaction information of the block data may include information such as the transaction type and data volume of each transaction in the block. Based on this, by analyzing the transaction information of each block data, the number of transaction types and transaction data size of each block data can be obtained. Among them, the number of transaction types can be the number of different transaction types corresponding to the exchanges included in the block data, and the transaction data size can be the sum of the data volumes of all transactions in the block data.

[0110] Step S503, obtaining a quality assessment index of the blockchain according to the transaction delay parameters, the number of transaction types and the transaction data size of each block data.

[0111] Exemplarily, in this step, the transaction delay parameters, transaction type number, and transaction data size of each block data may be normalized respectively, and then the quality evaluation index of the blockchain may be calculated using the following formula:

[0112]

[0113] in, is the quality assessment index, is the number of the block data, , is the total number of block data, After normalization The transaction delay parameter for each block of data, After normalization The number of transaction types in a block of data, After normalization The transaction data size of each block of data.

[0114] For example, to facilitate analysis, we can define is the total size weight of the block data, defined as is the block transaction delay weight, then the quality evaluation index is calculated as: Among them, the relationship between the quality assessment index and the total block data size weight and the block transaction delay weight can be shown in Figure 6, where the quality assessment index is positively correlated with the total block data size weight and negatively correlated with the block transaction delay weight. It can be seen that the quality assessment index is positively correlated with the number of transaction types and transaction data size of the block data, and negatively correlated with the transaction delay parameter of the block data.

[0115] In this embodiment, the quality of the blockchain is evaluated based on the block information of each block data in the blockchain, which can achieve a comprehensive evaluation of the blockchain and is conducive to the subsequent optimization and improvement of the blockchain performance.

[0116] In an exemplary embodiment, as shown in FIG7 , the trust evaluation module is used to determine the trust nodes in the blockchain network, and the process of setting the trust chain according to the trust level of each trust node may include:

[0117] Step S701, analyze the configuration information of each blockchain node in the blockchain network, and use the blockchain nodes whose configuration information meets the preset configuration conditions as trusted nodes.

[0118] Exemplarily, the configuration information of the blockchain node may include the hardware configuration information, network configuration information, etc. of the node. By analyzing the configuration information of each blockchain node, the data processing capability, transmission stability, response speed and other indicators of each node can be determined, so that the stability and security of the blockchain node can be evaluated.

[0119] The preset configuration condition may be set according to the stability and security that the trust node needs to meet. Based on this, the preset configuration condition may be used to select a blockchain node whose configuration information meets the preset configuration condition from the blockchain nodes and use it as a trust node.

[0120] Step S702, obtaining the trust level of each trust node according to the online time, transaction verification accuracy and historical tampering record of each trust node.

[0121] Among them, the online time of the trusted node can be its online time in the blockchain network; the transaction verification accuracy can be the proportion of the number of transactions that pass the verification when the node verifies the received transactions to the total number of transactions; the historical tampering record can be the record information of data tampering events related to the node that occurred in the blockchain network, such as the number of data tampering events that occurred.

[0122] For example, in this step, the trust level score of each trust node can be calculated according to the online time, transaction verification accuracy and historical tampering record of each trust node. Then, the trust level corresponding to each trust node can be determined according to the trust level score of each trust node using a preset membership function.

[0123] Step S703: Setting a trust chain between trust nodes corresponding to the same trust level.

[0124] Exemplarily, in this step, the trust nodes may be classified according to the trust level, and a trust chain may be set between the trust nodes with the same trust level. Exemplarily, each trust chain may correspond to a trust level.

[0125] In this embodiment, by selecting trust nodes in the blockchain network, calculating the trust level of each trust node, and setting up a trust chain according to the trust level, the constructed trust chain can be used to improve the credibility of the data in the blockchain.

[0126] In an exemplary embodiment, the process of the trust assessment module for calculating the trust score index of each trust chain may include: calculating the trust score index of the trust chain according to the node online rate, transaction verification accuracy rate, and data anomaly index of the Internet of Things status data of each trust node in the trust chain; wherein the trust score index is positively correlated with the node online rate and the transaction verification accuracy rate, and the trust score index is negatively correlated with the data anomaly index.

[0127] Exemplarily, the trust assessment module may first use the node online rate of each trust node, the transaction verification accuracy, and the data anomaly index of the IoT status data to calculate the trust score index of each trust node in the trust chain, and then perform comprehensive statistics to obtain the trust score index of the trust chain as a whole.

[0128] Optionally, the node online rate can be the proportion of the node's online time to the total time. The node online rate can be obtained by real-time monitoring of the online status of the preset main line and the preset backup line of the blockchain network, which can be used to quantify the activity of the blockchain network. Optionally, the node online rate of each node can be calculated by collecting and integrating the connection status, data transmission speed, delay and other indicator data of the blockchain line, and based on the preset online status definition. In some embodiments, in order to respond to potential problems in a timely manner, an online rate threshold can also be set. Once the node online rate is lower than this threshold, an alarm mechanism can be automatically triggered to notify relevant personnel to handle it, thereby improving the reliability of the blockchain network.

[0129] Optionally, the transaction verification accuracy rate may be the ratio of the number of transactions that pass verification to the total number of transactions when the node verifies the received transactions.

[0130] Optionally, in this embodiment, the box plot method can also be used to calculate the quartiles and quartile differences of the data anomaly index of the Internet of Things status data, and then obtain the data anomaly threshold.

[0131] Exemplarily, the trust evaluation module can combine the state data abnormality threshold, use the node online rate, transaction verification accuracy, and the data abnormality index of the IoT state data, and use the following formula to calculate the trust score index of each node:

[0132]

[0133] in, Represents the trust score indicator of the node, represents a natural constant, Indicates the node online rate, Indicates the transaction verification accuracy rate, Indicates data anomaly indicators, Indicates the data anomaly threshold.

[0134] Optionally, to facilitate analysis, you can define For online trading index, define is the state abnormality index, then the calculation formula of the trust score index is Among them, only consider In the case of , the change statistics of the trust score index can be shown in Table 1:

[0135] Table 1 Statistics of changes in trust score indicators

[0136]

[0137] From the above table, we can see that the trust score index of the node is positively correlated with the online transaction index and negatively correlated with the status anomaly index. It can be inferred that the trust score index of the trust chain as a whole is positively correlated with the node online rate and transaction verification accuracy, and negatively correlated with the data anomaly index.

[0138] In this embodiment, by calculating the trust score index of the trust chain, the trust relationship between the nodes in the trust chain can be comprehensively evaluated, effectively solving the problem of low security between the trust nodes.

[0139] Each module in the above-mentioned IoT data processing system can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0140] Based on the same inventive concept, the embodiment of the present application also provides an Internet of Things data processing method for implementing the Internet of Things data processing system involved above. The implementation solution provided by the method for solving the problem is similar to the implementation solution recorded in the above system, so the specific limitations in one or more Internet of Things data processing method embodiments provided below can refer to the limitations on the Internet of Things data processing system above, and will not be repeated here.

[0141] In an exemplary embodiment, as shown in FIG8 , a method for processing IoT data is provided, which is described by taking the method applied to the blockchain node in FIG1 as an example, including:

[0142] Step S801, collect the operation status information and environmental status information of the Internet of Things devices, and obtain the Internet of Things status data according to the operation status information and environmental status information.

[0143] Step S802, identifying abnormal conditions of the IoT state data and calculating an abnormality index, and obtaining a data abnormality index of the IoT state data according to the abnormality index and environmental state information.

[0144] Step S803: Pack the IoT status data into block data, perform quality assessment on the blockchain according to the block information of each block data in the blockchain, and obtain a quality assessment index of the blockchain.

[0145] Step S804, determine the trust nodes in the blockchain network, set up trust chains according to the trust level of each trust node, and calculate the trust score index of each trust chain.

[0146] In an exemplary embodiment, collecting the operation status information and the environment status information of the IoT device, and obtaining the IoT status data according to the operation status information and the environment status information, may include: monitoring the operation status information and the environment status information of the IoT device through a monitoring unit. Transmitting the operation status information and the environment status information to a data processing unit through a data transmission unit. Receiving the operation status information and the environment status information through the data processing unit, and performing information digitization processing on the operation status information and the environment status information, to obtain the IoT status data.

[0147] In an exemplary embodiment, identifying abnormal conditions of IoT status data and calculating an abnormality index may include: using a preset smart contract to count outlier data points in IoT status data to obtain data outlier values, and calculating a data outlier index based on the data outlier values ​​and a preset data outlier threshold and a data outlier average value; analyzing data transmission loss conditions of IoT status data to obtain a data loss value, and calculating a data loss index based on the data loss value and a preset data loss threshold and a data loss average value; comparing hash values ​​of data points in IoT status data to obtain a data duplication value, and calculating a data duplication index based on the data duplication value and a preset data duplication threshold and a data duplication average value; and obtaining an abnormality index of IoT status data based on the data outlier index, the data loss index, and the data duplication index.

[0148] In an exemplary embodiment, the block information may include the transaction creation time, block timestamp and transaction information of the block data. Performing a quality assessment on the blockchain according to the block information of each block data in the blockchain to obtain a quality assessment index of the blockchain may include: obtaining a transaction delay parameter of each block data according to the transaction creation time and block timestamp of each block data; analyzing the transaction information of each block data to obtain the number of transaction types and transaction data size of each block data; obtaining a quality assessment index of the blockchain according to the transaction delay parameter, number of transaction types and transaction data size of each block data.

[0149] In an exemplary embodiment, determining trust nodes in a blockchain network and setting a trust chain according to the trust level of each trust node may include: analyzing configuration information of each blockchain node in the blockchain network, and using blockchain nodes whose configuration information meets preset configuration conditions as trust nodes; obtaining the trust level of each trust node according to the online time, transaction verification accuracy and historical tampering records of each trust node; and setting a trust chain between trust nodes corresponding to the same trust level.

[0150] In an exemplary embodiment, calculating the trust score indicator of each trust chain may include: calculating the trust score indicator of the trust chain according to the node online rate, transaction verification accuracy rate, and data anomaly index of the IoT status data of each trust node in the trust chain; wherein the trust score indicator is positively correlated with the node online rate and the transaction verification accuracy rate, and the trust score indicator is negatively correlated with the data anomaly index.

[0151] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0152] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG9. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as operating status information and environmental status information. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for processing Internet of Things data is implemented.

[0153] Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0154] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0155] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0156] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0157] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0158] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0159] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0160] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An Internet of Things data processing system, characterized in that: The system comprises: a data collection module, an anomaly assessment module, a block processing module and a trust assessment module; The data collection module is used to collect the operation status information and environmental status information of the Internet of Things devices, and obtain the Internet of Things status data according to the operation status information and the environmental status information; The abnormality assessment module is used to identify abnormal conditions of the IoT state data and calculate an abnormality index, and obtain a data abnormality index of the IoT state data according to the abnormality index and the environmental state information; The block processing module is used to package the IoT state data into block data, and perform quality assessment on the blockchain according to the block information of each block data in the blockchain to obtain a quality assessment index of the blockchain; The trust evaluation module is used to determine the trust nodes in the blockchain network, set up the trust chain according to the trust level of each trust node, and calculate the trust score index of each trust chain.

2. The system according to claim 1, characterized in that The data collection module includes: a monitoring unit, a data transmission unit, and a data processing unit; The monitoring unit is used to monitor the operating status information and the environmental status information of the Internet of Things device; The data transmission unit is used to transmit the operating status information and the environmental status information to the data processing unit; The data processing unit is used to receive the operating status information and the environmental status information, and perform digital information processing on the operating status information and the environmental status information to obtain the Internet of Things status data.

3. The system according to claim 1, characterized in that The abnormality assessment module is further used to: Using a preset smart contract to count outlier data points in the IoT state data to obtain a data outlier value, and calculating a data outlier index according to the data outlier value and a preset data outlier threshold and a data outlier average value; Analyze the data transmission loss of the IoT status data to obtain a data loss value, and calculate a data loss index according to the data loss value and a preset data loss threshold and a data loss average value; Compare the hash values ​​of the data points in the IoT status data to obtain a data duplication value, and calculate a data duplication index according to the data duplication value and a preset data duplication threshold and a data duplication average value; The abnormality index of the Internet of Things status data is obtained according to the data outlier index, the data loss index, and the data duplication index.

4. The system according to claim 1, characterized in that The block information includes the transaction creation time, block timestamp and transaction information of the block data; The block processing module is further used for: Obtaining a transaction delay parameter of each block data according to the transaction creation time and the block timestamp of each block data; Analyze the transaction information of each block of data to obtain the number of transaction types and transaction data size of each block of data; The quality assessment index of the blockchain is obtained according to the transaction delay parameter of each block data, the number of transaction types and the transaction data size.

5. The system according to claim 1, characterized in that The trust assessment module is further used for: Analyze the configuration information of each blockchain node in the blockchain network, and use the blockchain node whose configuration information meets the preset configuration conditions as the trusted node; Obtaining the trust level of each of the trust nodes according to the online time, transaction verification accuracy and historical tampering records of each of the trust nodes; The trust chain is set up between the trust nodes corresponding to the same trust level.

6. The system according to claim 1, characterized in that The trust assessment module is further used for: The trust score index of the trust chain is calculated according to the node online rate, the transaction verification accuracy rate of each trust node in the trust chain, and the data anomaly index of the Internet of Things status data; wherein the trust score index is positively correlated with the node online rate and the transaction verification accuracy rate, and the trust score index is negatively correlated with the data anomaly index.

7. A method for processing Internet of Things data, characterized in that: The method comprises: Collecting the operation status information and the environmental status information of the IoT device, and obtaining the IoT status data according to the operation status information and the environmental status information; Identify the abnormal situation of the Internet of Things status data and calculate the abnormal index, and obtain the data abnormality index of the Internet of Things status data according to the abnormal index and the environmental status information; Packing the IoT state data into block data, and performing a quality assessment on the blockchain according to the block information of each block data in the blockchain to obtain a quality assessment index of the blockchain; Determine the trust nodes in the blockchain network, set up a trust chain according to the trust level of each trust node, and calculate the trust score index of each trust chain.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to claim 7 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 7 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to claim 7 are implemented.