A data acquisition and analysis method and system based on fusion base station

By using homomorphic encryption and signature technology in data collection and analysis based on converged base stations, the confidentiality and integrity of data during transmission are ensured, the problem of insufficient data security is solved, and efficient and secure data analysis and Protect user privacy.

CN118138229BActive Publication Date: 2024-10-29浙江国友工程技术有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410255064.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-06
Publication Date
2024-10-29
Estimated Expiration
2044-03-06

AI Technical Summary

Technical Problem

In the data collection and analysis based on converged base stations, data security is insufficient, especially the authenticity, integrity and credibility of the data, and user privacy protection is difficult to effectively solve.

Method used

A trusted server is used to generate system public parameters and keys. The access device performs local model training and performs homomorphic encryption and signatures. The converged base station performs aggregate signature verification and ciphertext generation to ensure the confidentiality and integrity of data during transmission. performance, and perform decryption and model updates in the data analysis center.

Benefits of technology

It achieves effective protection of user data privacy, reduces the risk of data leakage, improves the accuracy and security of data analysis, avoids model performance degradation, and enhances the efficiency and security of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118138229B_ABST
    Figure CN118138229B_ABST
Patent Text Reader

Abstract

The present invention discloses a data collection and analysis method and system based on a fusion base station, the method comprising: a trusted server performs system and parameter settings, creates a system and generates required system public parameters, system master keys, initial global models and local models; the trusted server allocates corresponding public and private key pairs to access devices according to their unique identity identifiers; the access devices collect data, train local models, generate local gradient vectors, and homomorphically encrypt and sign the vectors, and then send the signed and encrypted data to the fusion base station; the fusion base station collects data sent by each access device, performs aggregate signature verification and generates aggregate homomorphic ciphertext; the data analysis center verifies the aggregate signature, decrypts the aggregate ciphertext, updates the global model using aggregate parameter information, and generates a global model for data analysis. Through the application of parameter authentication mechanism and fusion base station, efficient and secure data collection and analysis are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing and communication technology, and in particular to a data collection and analysis method and system based on a fusion base station. Background Art

[0002] With the rapid development of Internet of Things technology, data collection based on fusion base stations has become a key means of obtaining massive information. These data come from different sources and formats, providing rich information resources for all walks of life. However, traditional data analysis methods are unable to cope with massive, multi-dimensional, and heterogeneous data, especially when facing dynamic changes in data, they lack adaptability.

[0003] In recent years, the rise of artificial intelligence technology has brought new hope to data analysis. Through machine learning, deep learning and other algorithms, artificial intelligence can automatically and accurately extract valuable information and patterns from massive data. This method not only has strong processing capabilities and can handle various types of data, including structured data, semi-structured data and unstructured data, but also can perform adaptive learning based on dynamic changes in data to improve the accuracy and efficiency of analysis.

[0004] However, in the data collection and analysis based on fusion base stations and artificial intelligence, issues such as data security, authentication, user privacy, and data availability and invisibility have gradually become prominent. Ensuring the authenticity, integrity, and credibility of data, protecting user privacy, and providing valuable information without exposing the original data are all important issues that need to be addressed. Summary of the invention

[0005] In view of this, the present invention proposes a data collection and analysis method and system based on a fusion base station to solve the problem of insufficient data security in the prior art.

[0006] The specific technical solutions of the present invention are as follows:

[0007] In a first aspect, the present invention proposes a data collection and analysis method based on a fusion base station, the method comprising the following steps:

[0008] Step 1: The trusted server performs system and parameter settings, creates the system and generates the required system public parameters, system master key, initial global model and local model;

[0009] Step 2: The trusted server assigns a corresponding public and private key pair to the access device based on its unique identity.

[0010] Step 3: The access device collects data, trains the local model, generates a local gradient vector, homomorphically encrypts and signs the vector, and then sends the signed and encrypted data to the fusion base station;

[0011] Step 4: The fusion base station collects data sent by each access device, performs aggregation signature verification and generates aggregation homomorphic ciphertext;

[0012] Step 5: The data analysis center verifies the aggregate signature, decrypts the aggregate ciphertext, and uses the aggregate parameter information to update the global model to generate a global model for data analysis.

[0013] Step 6: If the aggregate signature verification fails, the fusion base station performs a single data authentication to specifically check the data signature that fails the verification.

[0014] Furthermore, in step 1, when the trusted server creates the system, the hash functions defined include: these four hash functions are respectively used to map bit strings of arbitrary lengths to elements in the group.

[0015] Furthermore, in step 2, when the trusted server allocates a public-private key pair to the access device, it calculates a partial key component by extracting a random number, and generates a corresponding public key and private key based on the unique identity of the device.

[0016] Furthermore, in step three, after training the local model and generating the local gradient vector, the access device uses the Paillier addition homomorphic encryption algorithm to encrypt the gradient vector to generate a homomorphic ciphertext.

[0017] Furthermore, when the access device generates a signature, it extracts a random number to calculate a signature component, and generates two hash values ​​based on the signature component for verifying the legitimacy of the signature.

[0018] Furthermore, in step 4, after the fusion base station collects data, it calculates the aggregate signature middleware and the aggregate homomorphic ciphertext for subsequent data verification and model updating.

[0019] Furthermore, in step five, when the data analysis center performs aggregate signature verification, it determines the validity of the signature by calculating the verification middleware and checking whether the equation holds.

[0020] Furthermore, in step six, if the aggregate signature verification fails, when the fusion base station performs single data authentication, the validity of the data is determined by calculating the restored hash value and the verification equation, and the invalid data is discarded.

[0021] Furthermore, in step five, after the data analysis center updates the global model using the aggregated parameter information, it uses the updated global model to analyze the input data and generate analysis results.

[0022] In a second aspect, the present invention proposes a data collection and analysis system based on a fusion base station, the system comprising:

[0023] A parameter setting module, which is used for executing system and parameter settings by a trusted server, creating a system and generating the required system public parameters, system master key, initial global model and local model;

[0024] A public and private key distribution module, used for the trusted server to distribute the corresponding public and private key pairs to the access device according to its unique identity;

[0025] The data collection and encryption module is used to access the device to collect data, train the local model, generate the local gradient vector, and homomorphically encrypt and sign the vector;

[0026] A data transmission module, used to send the signed and encrypted data from the data acquisition and encryption module to the fusion base station;

[0027] The data aggregation and verification module is used to integrate the data sent by each access device collected by the base station, perform aggregation signature verification and generate aggregation homomorphic ciphertext;

[0028] The data decryption and analysis module is used by the data analysis center to verify the aggregate signature, decrypt the aggregate ciphertext, update the global model using the aggregate parameter information, and generate a global model for data analysis;

[0029] The single data authentication module is used to perform single data authentication by the fusion base station when the aggregate signature verification fails, and specifically to check the data signature that fails the verification.

[0030] The beneficial effects of the present invention are:

[0031] (1) Different devices connected to the joint base station do not need to send raw data to the central data analysis center, but only need to send local model parameters. The implementation of this design idea enables the construction of the global model and data analysis to be completed locally, effectively protecting the user's data privacy and reducing the risk of data leakage.

[0032] (2) Aiming at the data analysis problem of the fusion base station, the present invention designs an efficient parameter authentication mechanism. The core of this mechanism is that when collecting local gradient vectors for global model training and analysis, the integrity of the local gradient vectors can be judged, which ensures the quality of model generation and the effect of data analysis, and avoids the degradation of model performance due to incomplete or damaged data.

[0033] In addition, the mechanism also uses Paillier homomorphic encryption technology to encrypt and protect parameters during transmission. This encryption method allows encrypted data to be calculated without decryption, thereby ensuring confidentiality during parameter transmission and effectively preventing the risk of data being stolen or tampered with. This parameter authentication mechanism not only improves data security, but also enhances the accuracy and reliability of data analysis.

[0034] (3) The present invention uses the fusion base station as the intermediate link of data processing, effectively avoiding the data analysis center directly knowing the specific parameter ciphertext of each access device. This design idea further enhances the security of data and reduces the risk of data leakage;

[0035] At the same time, the application of fusion base stations also improves the efficiency of data processing. Since the fusion base station can pre-process and filter the received parameters, unnecessary data transmission is reduced and communication costs are reduced. In addition, the fusion base station can also aggregate and integrate parameters to provide more comprehensive and accurate data support for the construction of the global model. Therefore, the present invention realizes more efficient and safer data collection and analysis through the application of fusion base stations. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1 A network topology diagram of the data collection and analysis method of the present invention;

[0038] Figure 2 Schematic diagram of the process of data collection and analysis method of the present invention. DETAILED DESCRIPTION

[0039] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention 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 invention and are not intended to limit the present invention.

[0040] The present invention proposes a data collection and analysis method based on a fusion base station, which realizes efficient, safe and authentic data collection and analysis in a fusion base station scenario. The present invention involves four entities: a trusted server, an access device, a fusion base station and a data analysis center. The specific steps of the present invention are as follows:

[0041] Step 1: System and parameter settings: The trusted institution creates the system, generates public parameters and initial models. This step is performed by the trusted server to create the system and generate the system public parameters and system master key required for subsequent execution, as well as the initial global model and local model required for data analysis.

[0042] Step 1.1: Setup is a prime p-factorial cyclic group, and we define For its generator.

[0043] In this step, the trusted server selects a prime number p-order multiplicative cyclic group As the basis for subsequent encryption and signing operations. is a set closed under multiplication, where each element can be obtained by raising the generator P to a power. The prime order of the cyclic group and the generator is chosen to ensure the security and efficiency of the encryption and signature algorithms.

[0044] Step 1.2: Define four hash functions They represent mapping a bit string of arbitrary length to a group The elements in .

[0045] A hash function is a function that maps data of any length to a fixed-length output, and is usually used for fast data retrieval and verification. In this step, the trusted server defines four different hash functions H1, H2, H3, and H4. Each hash function is responsible for mapping the input data to a specific group element for subsequent digital signature and verification processes.

[0046] Step 1.3: Draw a random number And on this basis, the system common parameter component X=xP is calculated.

[0047] In this step, the trusted server extracts a random number x as part of the system master key. This random number x will be used to generate the system's public parameter components. The system's public parameter components are calculated based on the random number x, and they will be used for subsequent data encryption, decryption, signing, and verification operations.

[0048] Step 1.4: Call the Paillier additive homomorphic encryption algorithm, define its encryption algorithm as PEnc, decryption algorithm as PDec, and generate its public key as PPK and private key PSK.

[0049] The Paillier additive homomorphic encryption algorithm is a special encryption algorithm that allows data to be added in an encrypted state without first decrypting it. This feature enables the Paillier algorithm to perform efficient data processing and analysis while protecting data privacy. In this step, the trusted server calls the Paillier algorithm to generate public and private keys. The public key is used for encryption and verification of data, and the private key is used for decryption and signing of data. The generation of these keys ensures the security and privacy of subsequent data processing.

[0050] Step 1.5: Publicly export system public parameters In addition, the Paillier algorithm private key PSK is secretly sent to the data analysis center, and the system master key MSK=x is secretly saved.

[0051] System public parameters are information that all participating entities need to know to ensure data consistency and security. In this step, the trusted server publicly outputs the system public parameters for use by all entities. At the same time, in order to ensure the security and privacy of the data, the trusted server secretly sends the private key of the Paillier algorithm to the data analysis center. The sending of the private key ensures that the data analysis center can perform data decryption and verification operations. The system master key, as the basis for generating other keys, needs to be kept secret to prevent leakage and abuse.

[0052] Step 1.6: Build an initial global model and its corresponding initial gradient vector And send them to the data analysis center; at the same time, for each access device S i Assign an initial local model and its corresponding initial gradient vector

[0053] In this step, the trusted server creates an initial global model and the corresponding gradient vectors. This global model will serve as the basis for subsequent data analysis and processing. At the same time, in order to support distributed data collection and analysis, the trusted server also assigns an initial local model and its gradient vectors to each access device. These local models will be used for preliminary data processing and analysis at the access device end. By sending the initial global model and local models to the data analysis center and assigning them to the access devices, the trusted server provides a complete and consistent model foundation for the entire data collection and analysis method.

[0054] In this way, through the system and parameter settings in step one, the trusted server lays a solid foundation for the entire data collection and analysis process, ensuring the security, efficiency and accuracy of subsequent operations.

[0055] Step 2: Generate access device keys: The trusted institution assigns a corresponding public and private key pair to each access device based on its unique identity. This step is performed interactively between the trusted server and the access device. The access device S i ID i , as well as the system public parameter MPK and the system master key MSK, which are used to access the device S i Generate a public-private key pair. The entire process ensures the security and privacy of each device during data collection, transmission, and analysis.

[0056] Step 2.1: Draw random numbers Calculate the partial key component Y i =y i P; calculate the hash value h i =H1(ID i ,Y i ,X), and calculate the partial key component d i =y i +h i x; build partial key D based on this i =(Y i ,d i ) and sends it to the corresponding access device S i .

[0057] * Extract random number: First, the trusted server extracts a random number based on the system master key and system public parameters. This random number is the basis for generating some key components.

[0058] * Calculate partial key components: Based on the extracted random number, the server uses a specific algorithm to calculate partial key components. This partial key component is the key part of the subsequent generation of the device public key and private key.

[0059] * Calculate hash value: To increase the security of the key, the trusted server will calculate the hash value of some key components. This hash value is used to verify the integrity and legitimacy of some keys.

[0060] *Building partial keys: Combining the calculated hash value and partial key components, the trusted server builds a complete partial key.

[0061] *Send to the corresponding access device: Finally, the trusted server sends the constructed partial key to the corresponding access device. This step ensures that each access device can obtain its own unique partial key for the subsequent key generation process.

[0062] Step 2.2: Access the device by checking equation d i P=Y i +h i Whether X is true or not is used to judge the partial key D i If the validity of the key is not established, it is rejected. Otherwise, the partial key D is accepted. i , extract random numbers And calculate the corresponding public key component V i =v i P. Finally, generate the device private key SK i =(v i ,d i ) and the corresponding device public key PK i =(V i ,Y i ).

[0063] * Check if the equation is true: When the access device receives a partial key from a trusted server, it checks if a specific equation is true based on the system public parameters and the system master key. This equation is used to verify whether the received partial key is legal and valid.

[0064] *Reject illegal partial keys: If the equation does not hold, it means that the received partial key is illegal or invalid. The access device will reject this partial key and request regeneration.

[0065] *Accept legal partial key: If the equation is true, it means that the received partial key is legal and valid, and the access device will accept this partial key.

[0066] * Extract random number and calculate public key component: After receiving the legal partial key, the access device will extract its own random number and calculate the public key component based on this random number and the received partial key. This public key component is part of the device's public key and is used for subsequent data encryption and verification.

[0067] *Generate device public and private key pair: Combining the partial key received previously with the public key component generated now, the access device finally generates its own public and private key pair. This key pair is the key used by the device for encryption, decryption, signing and verification during data collection, transmission and analysis.

[0068] Through this process, each access device has its own unique public and private key pair, ensuring security and privacy during data collection and analysis. At the same time, through the use of verification equations and hash functions, this process also increases the protection of key integrity and legitimacy.

[0069] Step 3: Data encapsulation: The access device trains the local model, obtains the updated parameters, signs them, and encrypts them. This step is performed by the access device, inputting the system public parameter MPK, the public-private key pair PK of the access device i and SK i , and local data M i , then perform the following steps:

[0070] Step 3.1: Connect device S i Collected data M i Then run the local model Get the local gradient vector at time slice π

[0071] *The access device first collects local data from its sensors or data sources. This data may include various sensor readings such as temperature, humidity, pressure, etc.

[0072] *The access device then processes the data using its local model. This local model may be a machine learning model, such as a neural network or a decision tree. The model extracts and calculates features from the data to obtain a local gradient vector for the time slice. This gradient vector is the amount of change in the model parameters within the current time slice, which is very important information for distributed machine learning.

[0073] Step 3.2: Local gradient vector Call the Paillier homomorphic encryption algorithm to obtain the homomorphic ciphertext

[0074] *After obtaining the local gradient vector, the access device will encrypt it using the Paillier homomorphic encryption algorithm. The Paillier algorithm is an additive homomorphic encryption algorithm, which means that in the encrypted state, the ciphertext can be added and the correct result can be obtained without decryption.

[0075] * Through Paillier algorithm encryption, the local gradient vector is converted into homomorphic ciphertext. In this way, even if the data is intercepted during transmission, the attacker cannot directly obtain the original gradient information, thus protecting the privacy of the data.

[0076] Step 3.3: Draw random numbers And calculate the signature component T i =t i P, and based on this, calculate two hash values ​​k i =H2(T i ,ID i ,PK i ,X),l i =H3(C',T i ,ID i ,PK i ,X).

[0077] *After encrypting the local gradient vector, the access device will extract a random number. This random number is used to generate the uniqueness and unpredictability of the signature.

[0078] *The access device then calculates the signature component based on the extracted random number and the local gradient vector. The signature component is a key part of generating a digital signature, which is used to verify the integrity and source of the data.

[0079] *While calculating the signature component, the access device also calculates two hash values. These two hash values ​​are the hash calculation results of the local gradient vector and the signature component. The hash function can map data of any length to a hash value of fixed length and has collision resistance, that is, it is almost impossible for different input data to get the same hash value. By calculating the hash value, the integrity of the data can be ensured and it has not been tampered with.

[0080] Step 3.4: Calculate the signature component τ i =t i +l i (k i v i +d i ), and output the signature σ i =(T i ,τ i ).

[0081] *After completing the calculation of the signature components and hash values, the access device will combine these values ​​to calculate the final signature. The signature calculation process may involve a series of encryption algorithms and mathematical operations to ensure the security and reliability of the signature.

[0082] *Finally, the access device will output this signature. The signature is an encrypted message associated with the original data, which is used to verify the integrity and source of the data. Only the entity holding the corresponding private key can generate a valid signature, and others cannot forge or tamper with it.

[0083] Step 3.5: Finally, the signature σ i Homomorphic ciphertext Sent to the fusion base station together.

[0084] *After obtaining the signature and homomorphic ciphertext, the access device will send them together to the fusion base station. The fusion base station is the central server in the distributed machine learning system, responsible for collecting and analyzing data from various access devices.

[0085] *By sending the signature and homomorphic ciphertext together, the privacy and integrity of the data during transmission can be ensured. After receiving the data, the fusion base station can use the corresponding public key to verify the validity of the signature and use the decryption function of the Paillier algorithm to obtain the original local gradient vector information. In this way, the fusion base station can use these encrypted and signed data for further analysis and training of machine learning models.

[0086] Step 4: Security data collection: The fusion base station collects the parameter signatures and encryption parameters of each access device and aggregates them. This step is performed by the fusion base station, and the input data tuple is Homomorphic ciphertext And the verification mark V of the fusion base station E , then perform the following steps:

[0087] Step 4.1: Calculate the hash value c = H4(τ1V E ||τ2V E ||...||τ n V E ), calculate the aggregate signature middleware On this basis, we set the aggregate signature σ=(τ,T1,...,T n ,c).

[0088] * Calculate hash value: The fusion base station first calculates the hash value for the signature data tuple sent by each access device. The hash function ensures that the data has not been tampered with during transmission, and the hash value is unique and can represent the content of the original data.

[0089] *Calculate the aggregate signature middleware: Then, the fusion base station will use the signatures of each access device and the system public parameters received to calculate the aggregate signature middleware. This process involves complex cryptographic calculations to generate a single signature that can represent the validity of multiple signatures.

[0090] *Setting the aggregate signature: After completing the calculation of the aggregate signature middleware, the fusion base station will use its own verification identifier and system public parameters to set the final aggregate signature. This aggregate signature can verify the validity of the data tuples and signatures sent by all access devices, and ensure that only the fusion base station can generate and verify this signature.

[0091] Step 4.2: Calculate the aggregate homomorphic ciphertext

[0092] * Aggregate homomorphic ciphertext calculation: After collecting the homomorphic ciphertexts of all access devices, the fusion base station will calculate the aggregate homomorphic ciphertext. Due to the homomorphic nature of the Paillier algorithm, the fusion base station can perform addition operations on multiple homomorphic ciphertexts without decryption to obtain the aggregate homomorphic ciphertext. This process ensures the privacy of the original data because only the fusion base station has the private key required to decrypt the homomorphic ciphertext.

[0093] By executing the above steps, the fusion base station can securely collect and aggregate encrypted data and signatures from multiple access devices. The aggregated signature ensures the integrity of the data and the reliability of the source, while the aggregated homomorphic ciphertext ensures the privacy of the original data during the aggregation process. In this way, the fusion base station can use this securely collected data for further analysis and processing, such as training and optimizing distributed machine learning models.

[0094] Step 5, secure data analysis: the data analysis center verifies, decrypts, and updates the model. The data analysis center performs aggregate verification of the signature and decrypts the aggregate ciphertext, and uses the aggregate parameter information in the aggregate ciphertext to update the global model and generate a global model for data analysis. This step is performed by the data analysis center. After receiving the aggregate signature σ and aggregate homomorphic ciphertext C sent by the fusion base station, the data analysis center verifies the aggregate signature σ and aggregate homomorphic ciphertext C sent by the fusion base station. π After that, the data analysis center performs the following operations:

[0095] Step 5.1: Calculate and recover the hash value h i =H1(ID i ,T i ,X),k i =H2(T i ,ID i ,PK i ,X),l i =H3(M i ,T i ,ID i ,PK i ,X), and on this basis calculate the verification middleware c i =T i +l i (k i V i +Y i +h i X).

[0096] *Calculate and restore the hash value: The data analysis center will first recalculate the hash value for each received data tuple using the same hash function. This hash value is used to verify the integrity of the data and that it has not been tampered with.

[0097] * Verify the signature middleware: Next, the data analysis center will use the system public parameters and the received aggregate signature to verify the validity of the signature middleware. The verification of the signature middleware ensures the authenticity of the signature and the reliability of the source.

[0098] *Calculation and verification middleware: Based on the verification signature middleware, the data analysis center will further calculate the verification middleware. This verification middleware is a key component for the subsequent verification process.

[0099] Step 5.2: Check whether the following two equations hold: and c=H4(τ1V E ||τ2V E ||...||τ n V E ), if all are true, all signatures are verified, that is, all data are accepted. Otherwise, it means that the verification fails, and the data analysis center reports the abnormality to the fusion base station.

[0100] *Equation verification: The data analysis center will check whether two equations are true. These two equations involve the received aggregate signature, the calculated verification middleware, and other related parameters. If both equations are true, it means that all signatures have been verified, that is, all data is accepted.

[0101] * Abnormal report: If the equation verification fails, it means that the signature verification failed, and there may be data tampering or forgery. At this time, the data analysis center will report the abnormality to the fusion base station so that the problem can be handled and solved in time.

[0102] Step 5.3: If the verification of the aggregate signature in step 5.2 is successful, decrypt the aggregate ciphertext to obtain the global gradient vector The global gradient vector Input the global model and get the global model at time slice π

[0103] *Decrypting the aggregated ciphertext: After the signature verification is passed, the data analysis center will use its own private key to decrypt the received aggregated homomorphic ciphertext to obtain the global gradient vector Due to the use of homomorphic encryption algorithm, this process can be completed without decrypting each individual ciphertext, protecting the privacy of the original data.

[0104] *Update the global model: After obtaining the global gradient vector, the data analysis center will input it into the global model to update the model. This update process may involve optimization algorithms such as gradient descent and stochastic gradient descent, aiming to improve the accuracy and performance of the model. After the update, the global model of the time slice is obtained.

[0105] Step 5.4: Using the Model Analyze the input data to obtain analysis results.

[0106] *Model analysis: After the global model is updated, the data analysis center can use this latest global model to analyze new input data. This process may involve steps such as data preprocessing, feature extraction, and model reasoning, aiming to extract useful information and knowledge from the data.

[0107] * Get analysis results: Finally, the data analysis center will output the analysis results. This analysis result may be a classification result, a prediction result, a decision suggestion, etc., depending on the application field and needs. Through the analysis results, the data analysis center can provide users with valuable information and decision support.

[0108] Step 6, single data authentication: verify specific data. When the signature verification in step 5 fails, the fusion base station can perform this step to specifically check the data signature that failed the verification. This step aims to verify the signature of each data tuple one by one to determine which data is valid and which data is invalid. The following is the detailed process of this step:

[0109] First calculate and restore the hash value h i =H1(ID i ,Y i ,X),k i =H2(T i ,ID i ,PK i ,X),l i =H3(M i ,T i ,ID i ,PK i ,X), verify the equation τ i P=T i +l i (k i V i +Y i +h i X) is true. If true, the data is valid, otherwise the data is invalid and the homomorphic ciphertext is discarded

[0110] Step 6.1: Calculate and restore the hash value. Calculate and restore the hash value h i =H1(ID i ,Y i ,X),k i =H2(T i ,ID i ,PK i ,X),l i =H3(M i ,T i ,ID i ,PK i ,X).

[0111] *Fusion base station operation: The fusion base station will recalculate the hash value for each data tuple that fails verification. This process uses the same hash function and parameters as in step 5 to ensure data integrity and consistency.

[0112] *The role of hash value: The hash value is a unique identifier of the data content. If the data is tampered with during transmission, the recalculated hash value will not match the original hash value.

[0113] Step 6.2: Verify the equation. Verify the equation τ iP=T i +l i (k i V i +Y i +h i X) is true.

[0114] *Equation content: The Fusion Base Station verifies that a specific equation is true. This equation may involve the calculated hash value, the received signature, and other relevant parameters. This equation is designed to detect whether the data has been tampered with or forged.

[0115] *Importance of equation verification: Equality verification is the core step of single data authentication, which ensures the authenticity and integrity of each data tuple. If the equation does not hold, the fusion base station can determine that the data tuple is invalid.

[0116] Step 6.3: Data validity judgment and processing. If the verification equation is established, the data is valid, otherwise the data is considered invalid and the homomorphic ciphertext is discarded.

[0117] *Data validity judgment: If the equation verification passes, that is, the calculated hash value matches the expected value, then the fusion base station will determine that the data tuple is valid data. If the equation verification fails, that is, the hash value does not match, then the fusion base station will determine that the data tuple is invalid data.

[0118] *Data processing: For data tuples that are determined to be valid, the fusion base station will retain their corresponding homomorphic ciphertexts for subsequent data aggregation and analysis. For data tuples that are determined to be invalid, the fusion base station will discard their corresponding homomorphic ciphertexts because these data may have been tampered with or damaged and are no longer suitable for subsequent analysis.

[0119] By performing single data authentication in step six, the fusion base station can accurately identify which data tuples are valid and which are invalid, thereby ensuring the accuracy and reliability of subsequent data aggregation and analysis. This is crucial to ensuring the effectiveness of machine learning model training and optimization.

[0120] The present invention also proposes a data acquisition and analysis system based on a fusion base station, and the system includes: a parameter setting module, which is used by a trusted server to execute system and parameter settings, create a system and generate required system public parameters, system master keys, initial global models and local models; a public-private key allocation module, which is used by a trusted server to allocate corresponding public-private key pairs to access devices according to their unique identity identifiers; a data acquisition and encryption module, which is used by access devices to collect data, train local models, generate local gradient vectors, and homomorphically encrypt and sign the vectors; a data transmission module, which is used to send the signed and encrypted data from the data acquisition and encryption module to the fusion base station; a data aggregation and verification module, which is used by the fusion base station to collect data sent by each access device, perform aggregate signature verification and generate aggregate homomorphic ciphertext; a data decryption and analysis module, which is used by a data analysis center to verify the aggregate signature, decrypt the aggregate ciphertext, update the global model using the aggregate parameter information, and generate a global model for data analysis; a single data authentication module, which is used by the fusion base station to perform single data authentication when the aggregate signature verification fails, and specifically to check the data signature that fails the verification.

[0121] The present invention relates to the field of data processing and communication technology, and particularly focuses on user data privacy protection and efficient and secure data processing procedures. For data collection and analysis of fusion base stations, the present invention achieves significant beneficial effects through unique joint modeling, parameter authentication mechanism and homomorphic encryption technology.

[0122] 1. Joint Modeling Method and Its Beneficial Effects

[0123] The present invention designs a joint modeling method for fusion base station data analysis. The core of this method is that different devices connected to the joint base station do not need to send raw data to the central data analysis center, but only need to send local model parameters. The implementation of this design idea enables the construction of the global model and data analysis to be completed locally, effectively protecting the user's data privacy and reducing the risk of data leakage.

[0124] Specifically, through the joint modeling method, each device performs model training locally and uploads the trained model parameters to the fusion base station. The fusion base station aggregates these parameters to build a global model for data analysis. This method not only reduces the amount of data transmission and communication costs, but also improves the efficiency of data processing, making data analysis more convenient and efficient.

[0125] 2. Parameter Authentication Mechanism and Its Beneficial Effects

[0126] Aiming at the data analysis problem of the fusion base station, the present invention designs an efficient parameter authentication mechanism. The core of this mechanism is that when collecting local gradient vectors for global model training and analysis, the integrity of local gradient vectors can be judged. This ensures the quality of model generation and the effect of data analysis, and avoids the degradation of model performance due to incomplete or damaged data.

[0127] In addition, the mechanism also uses Paillier homomorphic encryption technology to encrypt and protect parameters during transmission. This encryption method allows encrypted data to be calculated without decryption, thereby ensuring confidentiality during parameter transmission and effectively preventing the risk of data being stolen or tampered with. This parameter authentication mechanism not only improves data security, but also enhances the accuracy and reliability of data analysis.

[0128] 3. Application and beneficial effects of fusion base stations

[0129] The present invention uses the fusion base station as the intermediate link of data processing, effectively avoiding the data analysis center directly knowing the specific parameter ciphertext of each access device. This design idea further enhances the security of data and reduces the risk of data leakage.

[0130] At the same time, the application of fusion base stations also improves the efficiency of data processing. Since the fusion base station can pre-process and filter the received parameters, unnecessary data transmission is reduced and communication costs are reduced. In addition, the fusion base station can also aggregate and integrate parameters to provide more comprehensive and accurate data support for the construction of the global model. Therefore, the present invention realizes more efficient and safer data collection and analysis through the application of fusion base stations.

[0131] In summary, the present invention realizes efficient and secure data collection and analysis through the application of joint modeling method, parameter authentication mechanism and fusion base station. These beneficial effects not only improve the efficiency and accuracy of data processing, but also enhance the security of data, and provide a strong guarantee for the data privacy protection of users. Therefore, the present invention has important application value and development prospects in the field of data processing and communication technology.

[0132] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A data collection and analysis method based on a fusion base station, characterized in that: The method comprises the following steps: Step 1, initializing a trusted server, comprising: Assume a prime number p-factorial cyclic group and its generator P; Define four hash functions H1, H2, H3, H4; Extract a random number x and calculate the system public parameter component X=xP; Call the Paillier homomorphic encryption algorithm to generate the public key PPK and private key PSK; Public system parameters are disclosed, the Paillier private key PSK is secretly sent to the data analysis center, and the system master key MSK=x is secretly saved; Construct an initial global model and its gradient vector, send it to the data analysis center, and generate a gradient vector for each access device S i Assign an initial local model and its gradient vector; Step 2: Access device key distribution, including: The trusted server is based on the access device S i ID i , extract a random number y i , calculate the partial key component Y i =y i P and hash value h i =H1(ID i ,Y i ,X); Calculate the partial key component d i =y i +h i x, construct partial key D i =(Y i ,d i ) and sent to access device S i ; Access device S i Verify equation d i P=Y i +h i X, if established, accept partial key D i , and draw a random number v i Calculate the public key component V i =v i P, generate device private key SK i =(v i ,d i ) and public key PK i =(V i ,Y i ); Step 3: Access device data processing, including: Access device S i Collect dataM i , run the local model to get the local gradient vector at time slice π; Use the Paillier homomorphic encryption algorithm to encrypt the local gradient vector and obtain the homomorphic ciphertext; Draw a random number t i Calculate the signature component T i =t i P, and calculate the hash value k i =H2(T i ,ID i ,PK i ,X) and l i =H3(C',T i ,ID i ,PK i ,X); Calculate the signature component τ i =t i +l i (k i v i +d i ), output signature σ i =(T i ,τ i ); The signature σ i It is sent together with the homomorphic ciphertext to the fusion base station; Step 4: converge base station aggregation, including: Collect the signatures and homomorphic ciphertexts of each access device and input them into the verification representation V of the fusion base station E ; Calculate the hash value c = H4(τ1V E ||τ2V E ||...||τ n V E ), set the aggregate signature σ=(τ,T1,...,T n ,c); Use the Paillier homomorphic encryption algorithm to calculate the aggregate homomorphic ciphertext; Step 5: Data Analysis Center Verification and Update, including: Calculate and restore the hash value to verify the validity of the signature middleware; Check whether the equations hold. If they hold, accept all data. Otherwise, report the exception to the fusion base station. If the signature verification is successful, the aggregate homomorphic ciphertext is decrypted to obtain the global gradient vector, the global model is updated, and the model is used to analyze the input data to obtain the analysis result; Step 6: Specific data verification. When the signature verification fails, the fusion base station calculates and recovers the hash value and verifies the equation τ i P=T i +l i (k i V i +Y i +h i X) is true, if so, the data is valid, otherwise the data is considered invalid and the homomorphic ciphertext is discarded.

2. The data collection and analysis method according to claim 1, characterized in that: In the step 1, the trusted server further performs the following steps during the initialization process: Set a time interval T, and at the end of each time interval T, update the system public parameter MPK, including resetting the prime number p factorial cyclic group and its generator P, regenerating hash functions H1, H2, H3, H4, and re-drawing random numbers x to calculate new system public parameter components X = xP, and at the same time update the public key PPK and private key PSK of the Paillier homomorphic encryption algorithm; The new system public parameters MPK and Paillier private key PSK are secretly sent to the data analysis center and all access devices, and they are notified to update the system public parameters and keys stored locally; A new initial global model and its gradient vector are constructed and sent to the data analysis center. At the same time, a new initial local model and its gradient vector are assigned to each access device Si to ensure that all models and data remain consistent and secure over time.

3. The data collection and analysis method according to claim 1, characterized in that: The access device key distribution process in step 2 further includes the following steps: After receiving the partial key Di = (Yi, di), the access device Si, in addition to verifying the equation diP = Yi + hiX, also verifies whether Yi is within the expected public key range and whether the value of di is within a reasonable random number range to avoid potential key forgery attacks; If the verification is successful, the access device Si generates the device private key SKi=(vi,di) and the public key PKi=(Vi,Yi), then uses its private key SKi to sign the public key PKi, and sends the signed public key to the trusted server for verification to ensure the legitimacy and integrity of the public key.

4. The data collection and analysis method according to claim 1, characterized in that: In step five, the data analysis center further includes: when the global model is updated, the data analysis center resends the updated global model and its gradient vector to the trusted server, and the trusted server distributes the updated global model and gradient vector to all access devices Si, so that each access device can perform the next round of data collection and analysis based on the latest global model.

5. The data collection and analysis method according to claim 4, characterized in that: In step five, the data analysis center further includes: when the data analysis center verifies the aggregate signature, if it is found that the signature verification of a certain access device fails, the data analysis center will send an exception report to the trusted server. The trusted server will regenerate a partial key Di for the access device based on the access device IDi in the exception report, and re-perform the key distribution process to ensure the security of the system and the reliability of the data.

6. The data collection and analysis method according to claim 1, characterized in that: In step six, the specific data verification also includes: when the fusion base station finds that the signature verification of the specific data fails, it also records the device IDi and timestamp information of the specific data, and sends this information to the data analysis center so that the data analysis center can conduct further tracking and analysis to determine the specific reasons why the data is invalid.

7. The data collection and analysis method according to claim 6, characterized in that: In step six, the specific data verification also includes: the data analysis center conducts in-depth analysis of abnormal data based on the device IDi and timestamp information sent by the fusion base station, combined with system logs and data analysis results, and generates an analysis report to provide a basis for subsequent optimization and improvement of the system.

8. The data collection and analysis method according to claim 1, characterized in that: The specific data verification of step six further includes the following steps: When the data analysis center reports that the signature verification fails, the fusion base station receives the abnormality report from the data analysis center and extracts all suspicious data tuples indicated in the report; For each suspicious data tuple, the fusion base station calculates the hash values ​​hi=H1(IDi,Ti,X), ki=H2(Ti,IDi,PKi,X), li=H3(C',Ti,IDi,PKi,X), and recovers the public key component Vi and the partial key component Yi; Based on the above calculation results, the fusion base station verifies whether the equation τiP=Ti+li(kiVi+Yi+hiX) holds true; If the verification equation holds, the data tuple is considered valid and retained for subsequent data analysis or model update; if the verification equation does not hold, the data tuple is considered invalid and its corresponding homomorphic ciphertext C' is removed from the aggregated data set, and the data tuple is recorded as invalid data; After completing the verification of all suspicious data tuples, the fusion base station resends the remaining valid data tuples and their corresponding homomorphic ciphertexts to the data analysis center, and notifies the data analysis center to re-execute the decryption and model update operations in step five.

9. A data collection and analysis system based on a fusion base station, using the data collection and analysis method based on a fusion base station as claimed in claim 1, characterized in that: The system comprises: A parameter setting module, which is used for executing system and parameter settings by a trusted server, creating a system and generating the required system public parameters, system master key, initial global model and local model; A public and private key distribution module, used for the trusted server to distribute the corresponding public and private key pairs to the access device according to its unique identity; The data collection and encryption module is used to access the device to collect data, train the local model, generate the local gradient vector, and homomorphically encrypt and sign the vector; A data transmission module, used to send the signed and encrypted data from the data acquisition and encryption module to the fusion base station; The data aggregation and verification module is used to integrate the data sent by each access device collected by the base station, perform aggregation signature verification and generate aggregation homomorphic ciphertext; The data decryption and analysis module is used by the data analysis center to verify the aggregate signature, decrypt the aggregate ciphertext, update the global model using the aggregate parameter information, and generate a global model for data analysis; The single data authentication module is used to perform single data authentication by the fusion base station when the aggregate signature verification fails, and specifically to check the data signature that fails the verification.

Citation Information

Patent Citations

  • Verifiable lightweight privacy protection federated learning system and method

    CN114785510A