Battery carbon footprint distributed computing method and system for protecting carbon data privacy
By collecting, fusing and embedding mapped carbon footprint text data in a distributed computing environment, and combining a priori guided representation vectors and text embedding mapped representation vectors to identify carbon footprint privacy text, the challenge of privacy protection of battery carbon footprint data is solved and achieved Efficient and accurate carbon footprint calculation.
Patent Information
- Application Number
- CN202410644862.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-05-23
AI Technical Summary
In a distributed computing environment, there are challenges in how to effectively protect the privacy of battery carbon footprint data while ensuring the accuracy and efficiency of calculations, especially when a large amount of private information is involved.
A method is adopted, including collecting carbon footprint text data associated with battery carbon footprint, performing fusion processing, embedding mapping, obtaining a priori guidance representation vector, integrating text embedding mapping representation vector and privacy text representation vector, and performing pattern recognition and detection. Private text information ensures the security of data in distributed storage systems.
While protecting the privacy of carbon data in a distributed computing environment, it ensures the accuracy and efficiency of calculations, reduces the risk of data leakage, and improves the performance and recognition accuracy of private text recognition neural networks.
Smart Images

Figure CN118228318B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a battery carbon footprint distributed computing method and system for protecting carbon data privacy. Background Art
[0002] With the increasing global awareness of environmental protection, carbon emissions and carbon footprints have become important indicators for measuring the environmental responsibility of enterprises, products and even individuals. As an indispensable energy storage and supply device in modern life, the calculation of the carbon footprint of batteries is crucial to assessing the overall environmental impact. However, when calculating the carbon footprint of batteries, the data involved often contains a large amount of privacy information, such as sensitive data such as production processes and raw material sources. Once these data are leaked, they may cause serious economic and legal consequences to enterprises and individuals. With the development of distributed computing technology, new possibilities are provided for the calculation of battery carbon footprint. Distributed computing allows data to be processed and stored on multiple nodes, thereby reducing the risk of data leakage. However, how to effectively protect the privacy of carbon data in a distributed computing environment while ensuring the accuracy and efficiency of calculations remains an urgent problem to be solved. In recent years, machine learning technology, especially neural networks, has made significant progress in the field of text recognition. These technologies can automatically extract useful features by learning a large amount of data, and accurately predict and classify unknown data. However, there are many challenges when applying machine learning technology to privacy text recognition in battery carbon footprint calculation. For example, how to build a neural network model that can effectively identify privacy information, how to balance the accuracy and complexity of the model during training, and how to reduce costs and increase efficiency are all technical issues that need to be considered. Summary of the invention
[0003] In view of this, the embodiments of the present application at least provide a battery carbon footprint distributed computing method and system for protecting carbon data privacy.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] On the one hand, an embodiment of the present application provides a battery carbon footprint distributed computing method for protecting carbon data privacy, the method comprising: collecting carbon footprint text data associated with the battery carbon footprint; fusing the collected carbon footprint text data to obtain a fused carbon footprint text; storing the fused carbon footprint text in a preset distributed storage system; wherein, when storing the fused carbon footprint text in the preset distributed storage system, it comprises: obtaining a carbon footprint text paragraph to be analyzed, and embedding and mapping the carbon footprint text paragraph to be analyzed to obtain a text embedding mapping representation vector; obtaining one or more prior guided representation vectors of the carbon footprint privacy text; the carbon footprint privacy The text is a private text associated with the information dimension corresponding to the carbon footprint text paragraph to be analyzed; the text embedding mapping representation vector and the prior guided representation vector of each carbon footprint private text are integrated according to the feature focus selection strategy to obtain a target representation vector, wherein the target representation vector includes information corresponding to the carbon footprint private text; pattern recognition is performed based on the target representation vector to obtain confidence distribution information of identification tokens; the identification tokens are text tokens that constitute the carbon footprint text paragraph to be analyzed; and private text detection associated with each carbon footprint private text is performed based on the confidence distribution information of the identification tokens to obtain a text privacy information detection result.
[0006] In some embodiments, the obtaining of the prior guided characterization vectors of one or more carbon footprint privacy texts includes: for any one of the carbon footprint privacy texts, determining a feature representation array for the carbon footprint privacy text; performing at least one round of environmental information feature extraction on the feature representation array for the carbon footprint privacy text to obtain a prior guided characterization vector for the carbon footprint privacy text.
[0007] In some embodiments, for any one of the carbon footprint privacy texts, determining the feature representation array for the carbon footprint privacy text includes: dividing each of the carbon footprint privacy texts according to a preset identification token to obtain a token string for each carbon footprint privacy text; for any one of the carbon footprint privacy texts, performing single activation embedding mapping on each token in the token string of the carbon footprint privacy text to obtain a single activation feature representation sequence for the carbon footprint privacy text; performing characterization information mapping on the single activation feature representation sequence of the carbon footprint privacy text to obtain a feature representation array for the carbon footprint privacy text; Performing at least one round of environmental information feature extraction on the feature representation array of the carbon footprint privacy text to obtain a priori guided representation vector for the carbon footprint privacy text, including: performing multiple rounds of environmental information feature extraction one by one according to the feature representation array of the carbon footprint privacy text; wherein the input of the first round of environmental information feature extraction is the feature representation array of the carbon footprint privacy text, and the input of other rounds of environmental information feature extraction outside the first round includes the latent feature chain output by the previous round of environmental information feature extraction; determining the priori guided representation vector for the carbon footprint privacy text through the latent feature chain obtained by the last round of environmental information feature extraction.
[0008] In some embodiments, the text embedding mapping representation vector and the prior guided representation vector of each of the carbon footprint privacy texts are integrated according to the feature focus selection strategy to obtain a target representation vector, including: constructing the prior guided representation vector of each of the carbon footprint privacy texts as a prior guided second-order tensor; performing at least one round of feature focus selection operations based on the text embedding mapping representation vector and the prior guided second-order tensor to obtain integrated representation information; and combining the text embedding mapping representation vector and the integrated representation information to obtain a target representation vector.
[0009] In some embodiments, at least one round of feature focus selection operation is performed based on the text embedding mapping representation vector and the prior guided second-order tensor to obtain integrated representation information, including: determining a retrieval vector based on the text embedding mapping representation vector after feature mapping, using the prior guided second-order tensor as an anchor vector and a response vector, thereby performing at least one round of feature focus selection operation to obtain integrated representation information; wherein the dimension of the text embedding mapping representation vector after feature mapping is consistent with the dimension of the prior guided second-order tensor.
[0010] In some embodiments, the process of each round of the feature focus selection operation includes: determining the commonality evaluation coefficient between the retrieval vector associated with the feature focus selection operation and each anchor vector; performing standardization operations on each of the commonality evaluation coefficients to obtain the eccentricity coefficient of each of the prior guided representation vectors; performing eccentricity calculations on the prior guided representation vectors according to each of the eccentricity coefficients and adding them to obtain the focus vector obtained after the feature focus selection operation; the focus vector obtained after the feature focus selection operation is used to determine the retrieval vector for the next round of feature focus selection operation; combining the text embedding mapping representation vector and the integrated representation information to obtain the target representation vector, including: performing feature mapping on the text embedding mapping representation vector to obtain the text embedding mapping representation vector after feature mapping; the text embedding mapping representation vector after feature mapping has the same dimension as the integrated representation information; performing standardization operations on the text embedding mapping representation vector after feature mapping and the integrated representation information respectively, and integrating the results after each standardization operation to obtain an integrated representation result; performing feature mapping on the integrated representation result to obtain the target representation vector of the carbon footprint text paragraph to be analyzed.
[0011] In some embodiments, the detection of private texts associated with each of the carbon footprint private texts is performed based on the confidence distribution information of the identification token to obtain a text privacy information detection result, including: obtaining an information restoration relationship network corresponding to each of the carbon footprint private texts, the information restoration relationship network is used to indicate the association relationship between the carbon footprint private text and the identification token; in combination with each of the information restoration relationship networks, the confidence distribution information of the identification token is used to detect private texts associated with each of the carbon footprint private texts to obtain a text privacy information detection result, the text privacy information detection result is used to reflect whether the carbon footprint text paragraph to be analyzed contains the carbon footprint private text.
[0012] In some embodiments, the method is performed by a privacy text recognition neural network, which includes an embedding mapping component, a prior guided representation vector extraction component, a feature integration component, a pattern recognition component and an information restoration component, wherein the embedding mapping component is used to embed and map the carbon footprint text paragraph to be analyzed, the prior guided representation vector extraction component is used to obtain the prior guided representation vector of each carbon footprint privacy text, the feature integration component is used to integrate the text embedding mapping representation vector and the prior guided representation vector of each carbon footprint privacy text, the pattern recognition component is used to perform pattern recognition based on the target representation vector, and the information restoration component is used to detect the privacy text associated with each carbon footprint privacy text according to the confidence distribution information of the recognition token to obtain a text privacy information detection result.
[0013] In some embodiments, the privacy text recognition neural network is debugged by the following operations: obtaining a carbon footprint text knowledge template set, the carbon footprint text knowledge template set includes no less than one carbon footprint text knowledge template, and each of the carbon footprint text knowledge templates corresponds to corresponding privacy tag information; performing multiple rounds of iterative debugging on the basic neural network to be debugged based on the carbon footprint text knowledge template set, and in each round of debugging, it includes: embedding and mapping the carbon footprint text knowledge template based on the basic neural network to be debugged to obtain a template text embedding mapping representation vector; obtaining a label prior guided representation vector of each of the privacy tag information; selecting a strategy based on a feature focus The template text embedding mapping representation vector and the mark prior guided representation vector of each of the privacy mark information are roughly integrated to obtain a template target representation vector; pattern recognition is performed on the template target representation vector to obtain template confidence distribution information of the recognition token, and the template target representation vector includes information corresponding to the privacy mark information; the error between the template confidence distribution information and the privacy mark information is determined, and a cost value is determined according to the error; network parameters are optimized according to the cost value to obtain a debugged basic neural network; when the privacy text recognition neural network after a round of iterative debugging meets a preset debugging cutoff condition, debugging is stopped to obtain the privacy text recognition neural network.
[0014] On the other hand, the present application provides a computer system, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the steps in the above method when executing the program.
[0015] The beneficial effects of the present application include at least: the battery carbon footprint distributed computing method and system for protecting carbon data privacy provided by the embodiment of the present application, in the network debugging link, based on the feature extraction of each privacy tag information, the corresponding tag prior guided representation vector is obtained, and then, the template text embedding mapping representation vector of the carbon footprint text knowledge template and each tag prior guided representation vector are integrated according to the feature focus selection strategy, so that each tag prior guided representation vector can be evenly integrated into the template text embedding mapping representation vector to obtain a reinforced template target representation vector for each privacy tag information, so that when performing pattern recognition on the template target representation vector, the template confidence distribution information of each privacy tag information can be made more average, so as to mitigate the error between the template confidence distribution information and the privacy tag information, and increase the tuning speed of network parameter optimization based on the cost value determined by the error, so as to obtain a high-performance privacy text recognition neural network with high efficiency and low cost.
[0016] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of the implementation flow of a battery carbon footprint distributed computing method for protecting carbon data privacy provided in an embodiment of the present application.
[0018] Figure 2 A hardware entity schematic diagram of a computer system provided for an embodiment of the present application. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application is further elaborated in detail below in conjunction with the accompanying drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the following description, "some embodiments" are involved, which describe a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict. The terms "first / second / third" involved are only used to distinguish similar objects and do not represent a specific order for objects. It can be understood that "first / second / third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of the present application. The terms used herein are only for the purpose of describing the present application and are not intended to limit the present application.
[0020] The present application embodiment provides a battery carbon footprint distributed computing method for protecting carbon data privacy, which can be executed by a processor of a computer system, wherein the computer system can refer to a device with data processing capabilities such as a server, a laptop, a tablet computer, and a desktop computer.
[0021] Figure 1 A schematic diagram of the implementation process of a battery carbon footprint distributed computing method for protecting carbon data privacy provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, including:
[0022] Step S10, collecting carbon footprint text data associated with the battery carbon footprint.
[0023] In step S10, text data related to the carbon footprint of the battery is collected from multiple dimensions, and the dimensions of these data include at least energy consumption data, raw material collection data, production process data, emission data, and cooperation data with manufacturers, supply chain partners and other relevant parties during battery production. These data not only cover the entire process of battery production, but also involve various links and participants related to battery production. For example, for a battery manufacturer, various data related to battery production are collected from the manufacturer's production system. These data may include energy consumption data of each process on the production line, transportation and emission data during the raw material procurement process, equipment use and data recording in the production process, etc. At the same time, the computer system also needs to obtain cooperation data from supply chain partners and other relevant parties, such as the source of raw material procurement, the carbon emissions of suppliers, etc. When collecting these data, the computer system may use various sensors, data recording systems, network communication technologies and other means. For example, by installing energy consumption sensors on the production line, the energy consumption of each process can be monitored and recorded in real time; by establishing a data sharing system with supply chain partners, the procurement and transportation data of raw materials can be obtained in real time.
[0024] Step S20, fusing the collected carbon footprint text data to obtain a fused carbon footprint text.
[0025] When executing step S20, the computer system needs to process carbon footprint text data from multiple data sources (such as battery manufacturers, supply chain partners, energy suppliers, etc.). These data may have different formats, structures, and semantics, so direct comparison or analysis may be difficult. To solve this problem, step S20 can use data fusion to integrate data from these different sources into a unified, complete, fused carbon footprint text. The process of data fusion can include multiple sub-steps such as data cleaning, conversion, alignment, and merging. First, the computer system cleans the original data to remove duplicate, erroneous, or irrelevant information to ensure the accuracy and consistency of the data. Then, through data conversion and alignment, the data from different sources are mapped into a unified representation space so that they can be effectively compared and analyzed. Finally, through the data merging operation, these processed data are integrated into a complete fused carbon footprint text.
[0026] For example, suppose a battery manufacturer provides a report on energy consumption and emissions during battery production, while a supply chain partner provides a report on carbon emissions during raw material collection and transportation. The data in these two reports may differ and overlap, so they need to be fused.
[0027] When executing step S20, the computer system first cleans and converts the data of the two reports, removes duplicate and erroneous data items, and converts them into a unified format and structure. Then, through the data alignment operation, the relevant data items in the two reports are matched and associated. For example, the energy consumption data in the battery manufacturer's report can be aligned with the raw material collection data in the supply chain partner's report to calculate the total carbon emissions of the entire production process. Finally, through the data merging operation, the two processed reports are integrated into a complete fused carbon footprint text. This text contains the carbon emission data of each link in the battery production process, as well as other information related to production (such as production time, location, process, etc.). This fused carbon footprint text can provide strong support for subsequent data analysis, comparison and privacy protection.
[0028] Step S30, storing the fused carbon footprint text in a preset distributed storage system.
[0029] When executing step S30, the computer system stores the carbon footprint text data after fusion processing in step S20 in a distributed storage system according to a specific data format and structure. A distributed storage system is a system that stores data in multiple independent nodes in a dispersed manner. It provides the characteristics of high availability, scalability, and fault tolerance, and can effectively manage and maintain a large amount of data. In order to ensure the consistency and integrity of the data, in a distributed storage environment, step S30 needs to adopt appropriate data replication, sharding, and redundancy strategies. Data replication can ensure that data is backed up on multiple nodes, thereby improving data availability and fault tolerance; data sharding can divide large data sets into small pieces and distribute them on different nodes to improve data access efficiency and parallel processing capabilities; and data redundancy can improve data reliability and fault tolerance by adding additional data copies.
[0030] When storing the fused carbon footprint text in a distributed storage system, step S30 may also involve data encryption and compression technologies to ensure data security and storage efficiency. Data encryption can encrypt data to prevent unauthorized access and tampering; data compression can reduce the space and network bandwidth required for data storage and improve data transmission and storage efficiency.
[0031] For example, assume that the carbon footprint text data after fusion processing in step S20 is a large data set containing multiple fields and attributes, including information such as the production date, manufacturer, source of raw materials, energy consumption, and emissions of the battery. When executing step S30, the computer system encodes and serializes these data in a specific format and structure, and then stores them on multiple nodes in the distributed storage system. During the storage process, the computer system can adopt an appropriate data sharding strategy to divide the large data set into multiple small blocks, each of which contains a part of the data, and distribute these small blocks on different nodes. At the same time, in order to ensure the security and reliability of the data, the computer system can also use data encryption technology to encrypt the data to prevent unauthorized access and tampering; use data redundancy strategies to store multiple copies of data on each node to improve the availability and fault tolerance of the data. In addition, in the distributed storage system, the computer system also needs to establish an effective index and query mechanism for subsequent data retrieval and analysis. The index can help the computer system quickly locate the data stored in the distributed storage system; the query mechanism allows users to retrieve and analyze data through specific query statements. These index and query mechanisms can be designed and optimized according to specific application scenarios and requirements.
[0032] When storing the integrated carbon footprint text into a preset distributed storage system, it includes:
[0033] Step S310, obtaining a carbon footprint text paragraph to be analyzed, and performing embedding mapping on the carbon footprint text paragraph to be analyzed to obtain a text embedding mapping representation vector.
[0034] In step S310, the computer system selects the text paragraphs to be analyzed from the fused carbon footprint text. These paragraphs can be part of the entire text or specific data fields or attributes. The selected text paragraphs should contain information related to the battery carbon footprint, such as the battery production process, raw material source, energy consumption, emissions and other key data. The purpose of this step is to focus the large-scale text data on the most relevant part of the analysis task, thereby improving the efficiency and accuracy of subsequent processing. For example, assume that the fused carbon footprint text contains information on multiple fields such as the production date, manufacturer, raw material source, energy consumption, and emissions of the battery. When performing step S310, the computer system may select the two fields of "energy consumption" and "emissions" as the text paragraphs to be analyzed, because they directly reflect the carbon footprint of the battery and are key indicators for subsequent analysis. Next, the computer system performs an embedding mapping operation on the selected text paragraphs. Embedding mapping is a technique for converting text data into numerical vectors. It can encode the semantic information in the text into numerical form, which is convenient for the computer to process and analyze. When performing embedding mapping, the computer system uses a pre-trained word embedding model or sentence embedding model to convert a text paragraph into a fixed-length vector representation.
[0035] Taking the word embedding model as an example, the computer system can use algorithms such as Word2Vec, GloVe or FastText to train the model. These algorithms learn the semantic representation of words by analyzing the co-occurrence relationship of words in a large amount of text data. In step S310, the computer system uses the trained word embedding model to map each word in the text paragraph to be analyzed into a vector representation, and then combines or averages these vectors to obtain the embedding mapping representation vector of the entire text paragraph.
[0036] For example, suppose the text paragraph to be analyzed is "The energy consumption during the production of the battery is 100 kWh and the emissions are 5 kg of carbon dioxide". When performing the embedding mapping, the computer system first splits the paragraph into individual words or phrases, such as "battery", "production process", "energy consumption", "100 kWh", "emissions", "5 kg of carbon dioxide", etc. Then, the word embedding model is used to map these words or phrases to corresponding vector representations. Finally, by combining or averaging these vector representations, the embedding mapping representation vector of the entire text paragraph is obtained. This vector will be used as one of the input features for subsequent analysis tasks.
[0037] Step S310 selects the text paragraphs to be analyzed from the fused carbon footprint text, and converts these paragraphs into numerical vector representations using the embedding mapping technology. Through this step of processing, large-scale text data can be focused on the most relevant parts of the analysis task, and the efficiency and accuracy of subsequent processing can be improved. At the same time, the embedding mapping technology can also encode the semantic information in the text into numerical form, providing strong support for subsequent machine learning and data analysis.
[0038] Step S320, obtaining a priori guided representation vectors of one or more carbon footprint privacy texts; the carbon footprint privacy text is the privacy text associated with the information dimension corresponding to the carbon footprint text paragraph to be analyzed.
[0039] In step S320, one or more prior guided representation vectors of carbon footprint privacy texts are obtained, which are also called bias vectors. The purpose of step S320 is to introduce privacy-related prior knowledge or bias information when processing and analyzing carbon footprint text data to protect sensitive data from being leaked. As can be seen from the foregoing content, the carbon footprint privacy text is a privacy text associated with the information dimension corresponding to the carbon footprint text paragraph to be analyzed. These privacy texts contain sensitive information related to the carbon footprint of the battery, such as specific process parameters in the production process, specific sources of raw materials, etc. In order to protect this sensitive information from being leaked, they need to be specially processed. When processing carbon footprint privacy texts, the computer system uses some pre-trained models or algorithms to convert these texts into numerical vector representations, namely, prior guided representation vectors or bias vectors. These vectors encode the semantic information and prior knowledge of the privacy texts, which can be used in subsequent data analysis and processing to guide the model to better understand and process carbon footprint text data while protecting sensitive information from being leaked.
[0040] For example, suppose that the carbon footprint text paragraph to be analyzed contains the specific manufacturer information of the battery, which is a privacy dimension. In order to protect this privacy dimension from being leaked, a carbon footprint privacy text associated with this privacy dimension can be obtained, such as "Battery manufacturer: XXX". Then, using a pre-trained model or algorithm, this privacy text is converted into a priori guided representation vector or bias vector. This vector will encode the semantic information and prior knowledge of the manufacturer, which can be used in subsequent data analysis and processing. In practical applications, computer systems can obtain the priori guided representation vector of carbon footprint privacy text in a variety of ways. A common method is to use a pre-trained word embedding model or sentence embedding model to convert the privacy text into a vector representation. Another method is to use an unsupervised learning algorithm, such as an autoencoder or a clustering algorithm, to learn prior knowledge from a large amount of privacy text and encode it into a vector representation. These methods can effectively convert the semantic information and prior knowledge of the privacy text into a numerical vector representation, providing strong support for subsequent data analysis and processing.
[0041] Step S320 obtains one or more carbon footprint privacy text prior guidance representation vectors or bias vectors. These vectors encode the semantic information and prior knowledge of the privacy text, which can be used in subsequent data analysis and processing to guide the model to better understand and process the carbon footprint text data while protecting the privacy information from being leaked. Through the processing of this step, the battery carbon footprint data can be analyzed and used more effectively under the premise of protecting privacy.
[0042] In an implementable design, step S320, obtaining a priori guided representation vectors of one or more carbon footprint privacy texts, may specifically include:
[0043] Step S321: for any carbon footprint privacy text, determine a feature representation array for the carbon footprint privacy text.
[0044] The goal of step S321 is to determine the feature representation array for each carbon footprint privacy text, or it can be understood as an embedding vector sequence. In this process, the computer system converts the text into a numerical form that can be processed by the machine learning model.
[0045] Specifically, the computer system first receives one or more carbon footprint privacy texts as input. These texts may contain detailed information about the carbon footprint of products or services, such as the source of raw materials, energy consumption in the production process, etc. In order to protect privacy, these texts usually need to be properly processed before they can be used for analysis.
[0046] In step S321, the computer system performs feature extraction on each input carbon footprint privacy text. This feature extraction process may include natural language processing techniques such as word segmentation, part-of-speech tagging, and named entity recognition to identify key information in the text. This information may be specific numerical values, descriptive words, or specific contextual information related to the carbon footprint. Next, the computer system converts the extracted features into embedding vectors. Embedding vectors are a technique for mapping discrete data (such as words or phrases in text) to continuous vector space. This mapping is usually achieved through pre-trained word embedding models (such as Word2Vec, GloVe, etc.) or context embedding models (such as BERT, RoBERTa, etc.). These models are able to map each feature to a vector of fixed length while retaining the semantic relationship between features.
[0047] For example, suppose there is a carbon footprint privacy text describing that the raw material source of a product is "renewable energy". In step S321, the computer system may first identify the key feature "renewable energy". Then, use the pre-trained word embedding model to convert this feature into an embedding vector, such as [0.4, 0.2, 0.1, ...]. This vector represents the representation of the feature "renewable energy" in the vector space. Finally, the computer system converts all the extracted features into embedding vectors and combines them into a feature representation array or embedding vector sequence in a certain order (such as the order in the text). This array or sequence will be used as input for the subsequent step S322 for further environmental information feature (also called context feature) extraction. Through the processing of step S321, the original carbon footprint privacy text is converted into a structured numerical representation, which makes it easier for the computer system to understand and analyze the information in the text. At the same time, this representation also provides rich feature input for subsequent machine learning models, which helps to improve the performance and accuracy of the model.
[0048] Step S322, performing at least one round of environmental information feature extraction on the feature representation array of the carbon footprint privacy text, to obtain a priori guided representation vector of the carbon footprint privacy text.
[0049] Specifically, when the computer system executes step S322, it uses a specific machine learning model or algorithm to process the feature representation array. These models or algorithms are usually designed to capture contextual dependencies in sequence data, such as variants of convolutional neural networks (CNNs), recurrent neural networks (RNNs), such as long short-term memory networks (LSTMs) or gated recurrent units (GRUs), and more advanced Transformer architectures. Taking the encoder part of the Transformer architecture as an example, it can capture contextual information in the text through a self-attention mechanism. In step S322, the computer system inputs the feature representation array of the carbon footprint privacy text into the encoder model. The encoder model calculates the attention weights between each feature vector and all other feature vectors, and then weighted sums the feature vectors according to these weights to obtain a new feature vector containing contextual information. This process can be repeated multiple times in the encoder model to form a multi-layer encoder stacking structure to further capture more complex contextual relationships. The output of each layer is used as the input of the next layer, and finally outputs a sequence of feature vectors containing rich contextual information. The computer system can use the last layer output of the encoder model or a combination of all layer outputs (such as average, concatenation, etc.) as a priori guided representation vector. This vector not only contains the semantic information of each feature in the text, but also incorporates the contextual relationship between them, providing a richer feature representation for subsequent tasks.
[0050] It should be noted that "not less than one round" in step S322 means that multiple rounds of environmental information feature extraction can be performed on the feature representation array. This can be achieved by stacking multiple encoder layers or using a more complex model structure to further capture the deep context information in the text.
[0051] In an implementable design, step S321, for any carbon footprint privacy text, determines a feature representation array for the carbon footprint privacy text, which may specifically include:
[0052] Step S3211, according to the preset identification token, each carbon footprint privacy text is divided respectively to obtain a token string of each carbon footprint privacy text.
[0053] Step S3211 involves converting the original text data into a format that the computer can understand and process. Specifically, this step is to divide the carbon footprint privacy text according to the preset identification tokens (i.e., text tokens) to obtain the token string (also known as the token sequence) of each text. In actual operation, the computer system first loads the preset identification token set. These identification tokens are pre-defined according to task requirements and text characteristics, and can include words, phrases, punctuation marks or other specific text fragments. For example, when processing English text, common identification tokens can be words; when processing Chinese text, they can be words or characters.
[0054] Next, the computer system traverses each carbon footprint privacy text input. During the traversal process, the computer divides the text into a series of tokens based on the preset identification tokens. This process is similar to splitting a sentence into individual words or characters. The result of the division is a token string, which is a sequence of tokens arranged in the order in which they appear in the text.
[0055] For example, suppose there is a carbon footprint privacy text called "Battery raw materials: cobalt, sourced from the Democratic Republic of the Congo". If the preset identification token is a word, then after processing in step S3211, the text may be divided into a token string, including tokens such as "battery", "raw materials", ":", "cobalt", ",", "sourced from", "Congo", "(", "Kinshasa" and ")". It should be noted that the method and granularity of dividing tokens can be adjusted according to specific tasks and data characteristics. Different division methods may affect the effects of subsequent feature extraction and representation. Therefore, in actual applications, it is necessary to select appropriate identification tokens and division strategies according to specific needs.
[0056] Step S3211 divides the carbon footprint privacy text according to the preset identification tokens to obtain the token string representation of each text, which provides a basis for subsequent feature extraction and representation, and helps to more accurately understand and utilize the information in the text.
[0057] Step S3212: for any carbon footprint privacy text, single activation embedding mapping is performed on each token in the token string of the carbon footprint privacy text to obtain a single activation feature representation sequence of the carbon footprint privacy text.
[0058] In step S3212, the computer system performs single-activation embedding mapping, also known as one-hot encoding, on each token in the token string generated in the previous step S3211. Single-activation embedding mapping is a method of converting categorical data into a numerical format that is easy for machine learning algorithms to use. For each token in the text, the single-activation embedding mapping creates a vector containing only one "1" and multiple "0s", where the position of "1" corresponds to the index of the token in the preset token set. This encoding method allows each token to be represented as a unique and sparse vector. For example, assume that the token set contains four tokens: "battery", "raw materials", "cobalt", and "derived from". For the token "battery", one-hot encoding may generate a vector such as [1, 0, 0, 0], where the first position is 1 and the rest of the positions are 0. Similarly, "raw materials" may be encoded as [0, 1, 0, 0], "cobalt" as [0, 0, 1, 0], and "derived from" as [0, 0, 0,1].
[0059] In step S3212, the computer system traverses each token in the token string and generates a corresponding one-hot encoding vector for each token. These vectors are then arranged in the order in which the tokens appear in the text to form a sequence of single-activated feature representations. This sequence converts the original text tokens into a numerical vector format that can be processed by the machine learning model.
[0060] Step S3213, performing characterization information mapping on the single activated feature representation sequence of the carbon footprint privacy text to obtain a feature representation array of the carbon footprint privacy text.
[0061] The purpose of step S3213 is to convert the relatively sparse and high-dimensional feature representation of one-hot encoding into a lower-dimensional, denser feature representation that can carry richer semantic information, which is usually called an embedding vector or feature embedding. Specifically, when the computer system executes step S3213, it uses a pre-trained feature embedding model (such as Word2Vec, GloVe, FastText, etc.) or an embedding layer learned directly in the task (such as an embedding layer in a deep learning model) to map the one-hot encoding of each token to a vector space of fixed dimension. Each point in this vector space corresponds to a unique embedding vector that encodes the semantic information of the token, so that tokens with similar semantics in the vector space are mapped to similar positions. For example, when using the Word2Vec model, each token is mapped to a vector space of, for example, 300 dimensions. These vectors are obtained through unsupervised learning on a large-scale corpus, and they capture the co-occurrence relationship and semantic similarity between tokens. Therefore, even if two tokens appear to be completely different on the surface (such as "battery" and "energy"), their embedding vectors may be very close due to their semantic similarity.
[0062] In step S3213, the computer system maps the unique hot encoding of each token in the entire token string through the feature embedding model or embedding layer in turn to obtain a series of embedding vectors. These embedding vectors are arranged in the order of the tokens in the text to form a feature representation array for the carbon footprint privacy text. This array is not only lower in dimension and easier to process, but also carries richer semantic information, providing more powerful support for subsequent natural language processing tasks (such as text classification, sentiment analysis, etc.).
[0063] Step S3213 converts the sparse one-hot encoding into a dense embedding vector representation through feature embedding technology, thereby achieving efficient and semantically rich feature extraction of carbon footprint privacy text.
[0064] In an implementable design, step S322, performing at least one round of environmental information feature extraction on the feature representation array of the carbon footprint privacy text to obtain a priori guided representation vector of the carbon footprint privacy text, may specifically include:
[0065] Step S3221, performing multiple rounds of environmental information feature extraction one by one according to the feature representation array of the carbon footprint privacy text; wherein, the input of the first round of environmental information feature extraction is the feature representation array of the carbon footprint privacy text, and the input of other rounds of environmental information feature extraction outside the first round includes the potential feature chain output by the previous round of environmental information feature extraction.
[0066] Step S3221 gradually refines and abstracts the deep features of the text so as to more accurately capture the semantics and contextual information of the text. When implementing this step, the computer system first receives a feature representation array for the carbon footprint privacy text as input. This feature representation array is obtained by processing the original text data in the previous step (such as step S321), and it has converted the text into a numerical format that the computer can understand and process. Next, the computer system performs the first round of environmental information feature extraction based on this feature representation array. This round of extraction usually uses a deep learning model, such as a convolutional neural network (CNN), a recurrent neural network (RNN) or its variants (such as LSTM, GRU), etc. The model generates a new potential feature chain (also known as a hidden layer representation sequence) by learning the associations and patterns between the features in the array. This potential feature chain is a higher-level abstraction of the input feature representation array, which encodes more information about the context and semantics of the text. After the first round of environmental information feature extraction, the computer system performs one or more additional rounds of feature extraction. Each round of extraction takes the potential feature chain output by the previous round as input, and generates a new potential feature chain through further learning and abstraction. This layer-by-layer abstraction allows the model to gradually capture more complex structures and patterns in the text. For example, if a recurrent neural network is used for feature extraction, the first round of extraction may learn word or phrase-level features in the text, while subsequent rounds may learn sentence or paragraph-level features. Each round of extraction outputs a new chain of latent features that is more abstract and advanced in semantics than the previous round.
[0067] It should be noted that each round of environmental information feature extraction can be implemented using different models or algorithms, and the specific choice depends on the task requirements and data characteristics. In addition, the number of extraction rounds is also a hyperparameter that needs to be adjusted according to actual conditions to optimize performance.
[0068] Through multiple rounds of environmental information feature extraction, the deep features in the feature representation array of carbon footprint privacy text are gradually refined and abstracted. This process helps to more accurately capture the semantic and contextual information of the text and provide stronger support for subsequent tasks.
[0069] Step S3222, determining the prior guided representation vector for the carbon footprint privacy text through the potential feature chain obtained through the last round of environmental information feature extraction.
[0070] Step S3222 is responsible for determining the final prior guided representation vector from the potential feature chain obtained from multiple rounds of environmental information feature extraction. This vector is a highly abstract and representation of the deep features of the text, which is crucial for subsequent natural language processing tasks. Specifically, when the computer system executes step S3222, it receives the potential feature chain output by the last round of environmental information feature extraction as input. This potential feature chain contains feature information of multiple abstract levels of the text from low to high, which is gradually refined by the model during multiple iterations and learning processes.
[0071] In order to determine the prior guided representation vector, the computer system may further process the latent feature chain outputted in the last round. For example, it may use methods such as average pooling, maximum pooling, or attention mechanism to aggregate the information in the feature chain and generate a vector representation of a fixed length. This vector is the prior guided representation vector for the carbon footprint privacy text, which encodes the most important and representative feature information in the text. Taking the attention mechanism as an example, the computer system can assign an attention weight to each feature in the latent feature chain, which reflects the importance of the feature in generating the prior guided representation vector. Then, the features are weighted and summed according to these weights to obtain a weighted feature vector. This weighted feature vector is the final prior guided representation vector, which will be used to guide subsequent natural language processing tasks.
[0072] It should be noted that the method for determining the prior guided representation vector can be selected and designed according to the specific task and data characteristics. Different methods may focus on different feature information, thereby generating a prior guided representation vector with different characteristics. Therefore, in practical applications, it is necessary to select and adjust the method according to specific needs.
[0073] By processing the latent feature chain output by the last round of environmental information feature extraction, the prior guided representation vector for carbon footprint privacy text is determined. This vector is a highly abstract and representation of the deep features of the text, providing strong support for subsequent natural language processing tasks.
[0074] Step S330, integrating the text embedding mapping representation vector and the prior guided representation vector of each carbon footprint privacy text according to the feature focus selection strategy to obtain a target representation vector, wherein the target representation vector includes information corresponding to the carbon footprint privacy text.
[0075] The target representation vector will contain information that matches the carbon footprint privacy text, providing a comprehensive and refined feature representation for subsequent tasks. When executing step S330, the computer system first receives two main inputs: a text embedding mapping representation vector and a priori guided representation vector. The text embedding mapping representation vector is obtained by converting the original text into a numerical vector form, which captures the semantic information of the text. The priori guided representation vector is obtained through multiple rounds of environmental information feature extraction in the previous step, which contains the deep structure and contextual information of the text.
[0076] In order to effectively integrate these two different types of feature information, computer systems use feature focus selection strategies, such as the attention mechanism. The attention mechanism is a technology that allows the model to automatically focus on the importance of different parts of the input data. In this scenario, the attention mechanism can help the model determine which parts of the text embedding mapping representation vector and the prior guided representation vector are most critical for generating the target representation vector.
[0077] Specifically, the computer system calculates an attention weight distribution that reflects the importance of different features in the process of generating the target representation vector. Then, according to these weights, the text embedding mapping representation vector and the prior guided representation vector are weighted combined to obtain an intermediate representation that combines the information of the two. This intermediate representation contains both the semantic information of the text and its deep structure and contextual information.
[0078] Finally, the computer system further processes this intermediate representation (such as nonlinear transformation or dimensionality reduction) to generate the final target representation vector. This target representation vector will serve as the input for subsequent tasks, such as classification, clustering or information retrieval of carbon footprint privacy text.
[0079] It should be noted that the feature focus selection strategy in step S330 is not limited to the attention mechanism. Depending on the specific tasks and data characteristics, other strategies such as feature splicing, feature fusion or feature selection can also be adopted. The selection and design of these strategies need to be adjusted and optimized according to actual conditions. By integrating the text embedding mapping representation vector and the prior guided representation vector of each carbon footprint privacy text, and with the help of the feature focus selection strategy, a target representation vector containing rich information is generated. This target representation vector provides a comprehensive and refined feature representation for subsequent tasks, which helps to improve the performance and accuracy of the entire system.
[0080] In an implementable design, step S330, according to the feature focus selection strategy, integrates the text embedding mapping representation vector and the prior guided representation vector of each carbon footprint privacy text to obtain the target representation vector, which may specifically include:
[0081] Step S331, constructing the prior guided representation vector of each carbon footprint privacy text into a prior guided second-order tensor.
[0082] Second-order tensors, which are usually understood as matrices in mathematics and physics, are an important tool for representing multidimensional data. In this step, the computer system organizes the received prior guided representation vectors into a matrix form for subsequent feature integration and selection operations. Specifically, the computer system uses the prior guided representation vector of each text as a row or column of the matrix according to the order of the carbon footprint privacy text or other predetermined rules. In this way, the prior guided representation vectors of all texts constitute a two-dimensional prior guided representation matrix. Each row or column in this matrix corresponds to the deep feature information of a specific text.
[0083] For example, suppose there are three carbon footprint privacy texts, represented by T1, T2 and T3 respectively. Each text has obtained a prior guided representation vector through the previous steps, represented by V1, V2 and V3 respectively. In step S331, the computer system constructs these three vectors into a 3xN prior guided representation matrix M, where N is the dimension of the vector. The first row of the matrix M is V1, the second row is V2, and the third row is V3. After being constructed into a prior guided second-order tensor, this matrix will be used as one of the inputs of subsequent feature focus selection operations (such as the attention mechanism in step S332). Through the feature focus selection operation, the model can automatically pay attention to the importance of different parts of the matrix, and integrate the information of the text embedding mapping representation vector and the prior guided representation vector to generate the final target representation vector.
[0084] It should be noted that the prior guided second-order tensor constructed in step S331 is not limited to the matrix form. Depending on the specific task and data characteristics, other forms of tensors can also be used to represent the set of prior guided representation vectors. For example, if more complex relationships or structural information between texts need to be considered, third-order or higher-order tensors can be used to represent them. These high-order tensors can capture feature information of more dimensions and further improve the performance of subsequent tasks.
[0085] By constructing a priori guided second-order tensor (i.e., matrix), it provides important input for subsequent feature integration and selection operations.
[0086] Step S332, performing at least one round of feature focus selection operation based on the text embedding mapping representation vector and the prior guided second-order tensor to obtain integrated representation information.
[0087] Step S332 is responsible for performing a feature focus selection operation based on the text embedding mapping representation vector and the prior guided second-order tensor to obtain integrated representation information. When executing step S332, the computer system receives two main inputs: the text embedding mapping representation vector and the prior guided second-order tensor (i.e., the prior guided representation matrix). The text embedding mapping representation vector is obtained by converting the original text into a numerical vector form, which captures the semantic information of the text. The prior guided second-order tensor is constructed in the previous step and contains the deep structure and contextual information of the text. The core of the feature focus selection operation is to enable the model to automatically pay attention to the importance of different parts of the input data. To achieve this, the computer system can adopt a variety of strategies, such as attention mechanisms, feature weighting or gating mechanisms. These strategies can help the model determine which parts of the text embedding mapping representation vector and the prior guided second-order tensor are most critical for generating integrated representation information.
[0088] Taking the attention mechanism as an example, a computer system can calculate an attention weight distribution that reflects the importance of different features in the text embedding mapping representation vector and the prior guided second-order tensor. Specifically, the model calculates a set of weights based on the input features, which are used to measure the contribution of each feature in generating integrated representation information. Then, the input features are weighted summed or weighted averaged according to these weights to obtain an intermediate representation that incorporates important features. This intermediate representation contains both the semantic information of the text and its deep structure and contextual information. Through multiple rounds of feature focus selection operations, the model can gradually extract the features most relevant to the carbon footprint privacy text, thereby generating more accurate and comprehensive integrated representation information.
[0089] Step S333, combining the text embedding mapping representation vector and the integrated representation information to obtain a target representation vector.
[0090] When executing step S333, the computer system receives two main inputs: a text embedding mapping representation vector and integrated representation information. The text embedding mapping representation vector is obtained by converting the original text into a numerical vector form, which captures the semantic information of the text. The integrated representation information is obtained by the feature focus selection operation in step S332, which integrates the key information of the text embedding mapping representation vector and the prior guided representation vector. In order to effectively combine the two types of information, the computer system can adopt a variety of strategies, such as weighted averaging, splicing or fusion. The specific strategy to be selected depends on the task requirements and data characteristics. For example, if the dimensions of the text embedding mapping representation vector and the integrated representation information are the same, the target representation vector can be directly obtained by weighted averaging; if the dimensions are different, the dimension reduction or dimension increase operation can be performed first, and then splicing or fusion can be performed. Taking weighted averaging as an example, the computer system performs weighted summation on the text embedding mapping representation vector and the integrated representation information according to a certain weight distribution strategy. This weight distribution strategy can be fixed or obtained through learning. The result of the weighted summation is a new vector that integrates the two types of information, namely the target representation vector.
[0091] It should be noted that the combination operation in step S333 is not limited to simple weighted averaging or concatenation. According to the specific task and data characteristics, more complex combination strategies can also be designed, such as weighted fusion based on attention mechanism, concatenation based on feature selection, etc. These strategies can help the model better capture the key information of the text and improve the quality of the target representation vector.
[0092] Step S333 generates the final target representation vector by combining the text embedding mapping representation vector and integrating the representation information. This vector is a comprehensive and concise representation of the text, providing strong support for subsequent tasks. In practical applications, it is necessary to select a suitable combination strategy based on specific tasks and data characteristics to maximize the performance of the target representation vector.
[0093] In an implementable design, step S332, based on the text embedding mapping representation vector and the prior guided second-order tensor, performs at least one round of feature focus selection operation to obtain integrated representation information, which can specifically include: determining the retrieval vector based on the text embedding mapping representation vector after feature mapping, using the prior guided second-order tensor as the anchor vector and the response vector, thereby performing at least one round of feature focus selection operation to obtain integrated representation information; wherein the dimension of the text embedding mapping representation vector after feature mapping is consistent with the dimension of the prior guided second-order tensor.
[0094] This scheme uses the text embedding mapping representation vector after feature mapping, the prior guided second-order tensor, and the feature focus selection operation to generate integrated representation information. First, the computer system performs feature mapping on the original text embedding mapping representation vector. The purpose of feature mapping is to convert the original vector into a vector with the same dimension as the prior guided second-order tensor, thereby ensuring the compatibility of subsequent operations. This process can be achieved through linear transformation, nonlinear activation function, or neural network layer. For example, if the original text embedding mapping representation vector is a 100-dimensional vector and the prior guided second-order tensor is a 20-dimensional × 20-dimensional matrix, then the goal of feature mapping is to convert the 100-dimensional vector into a 20-dimensional vector.
[0095] After feature mapping, the computer system uses the obtained vector to determine a retrieval vector (Query). The retrieval vector plays the role of a query in the feature focus selection operation, and is used to retrieve relevant information from the prior-guided second-order tensor. At the same time, the prior-guided second-order tensor is given a dual role in this scheme. It is both an anchor vector (Key), which is used to match the retrieval vector to determine which parts of the information are most relevant to the current query; and a response vector (Value), which is used to provide specific information that matches the retrieval vector. This approach of using the prior-guided second-order tensor as both an anchor vector and a response vector draws on the idea of Key-Value pairs in the self-attention mechanism, which helps the model to use prior information more effectively.
[0096] When performing the feature focus selection operation, the computer system performs at least one round of operations based on the retrieval vector and the prior guided second-order tensor (as the anchor vector and the response vector). These operations may include steps such as calculating attention weights and weighted summation, depending on the feature focus selection strategy adopted. For example, if the dot product attention mechanism is used, the computer calculates the dot product of the retrieval vector and each anchor vector, and then converts these dot product values into attention weights through the softmax function. Finally, these attention weights are used to perform weighted summation on the response vector to obtain the integrated representation information.
[0097] It should be noted that the feature focus selection operation in this derivative scheme is not limited to a single round. Depending on the specific task and data characteristics, multiple rounds of operations can be performed to gradually refine and integrate relevant information. The integrated representation information obtained after each round of operation can be used as input for the next round of operation or for other tasks.
[0098] Through the steps of feature mapping, determination of retrieval vectors, and feature focus selection based on prior-guided second-order tensors, the text embedding mapping representation vector and prior-guided information are effectively integrated. This provides a more comprehensive and refined feature representation for subsequent tasks, helping to improve the performance and accuracy of the entire system.
[0099] In one feasible design, the process of each round of feature focus selection operation includes:
[0100] Step S3321, determining the commonality evaluation coefficient between the retrieval vector associated with the feature focus selection operation and each anchor vector.
[0101] The feature focus selection operation is an iterative process, and each round involves evaluating the commonality between the retrieval vector and the anchor vector, and calculating the focus vector based on the weighted sum of these evaluations. In step S3321, the computer system calculates the commonality evaluation coefficient between the retrieval vector and each anchor vector. This coefficient reflects the similarity or correlation between the retrieval vector and the anchor vector in the feature space.
[0102] Specifically, the computer system uses a similarity measurement method, such as cosine similarity, dot product or Euclidean distance, to calculate the similarity between the retrieval vector and each anchor vector. These similarity measurement methods have clear mathematical definitions and calculation formulas.
[0103] Taking cosine similarity as an example, if the search vector is represented as Q and the anchor vector is represented as K_i, where i represents the index of the anchor vector, then the cosine similarity between them can be calculated by the following formula:
[0104]
[0105] Where, • represents the dot product of the vectors, and || represents the modulus of the vectors. The calculated cosine similarity value will be between -1 and 1. The closer the value is to 1, the more similar the two vectors are.
[0106] In actual operation, the computer will traverse all anchor vectors and calculate the cosine similarity with the search vector respectively, thus obtaining a set of commonality evaluation coefficients. These coefficients will be used for subsequent feature weighting and focus vector calculation.
[0107] It should be noted that the retrieval vector and anchor vector are both components of the text embedding mapping representation vector and the prior guided second-order tensor after feature mapping. Their position and distribution in the feature space reflect the semantic and structural characteristics of the original text and prior information.
[0108] Through the calculation in this step, the computer system can quantitatively evaluate the similarity or correlation between the retrieval vector and each anchor vector, providing an important basis for the subsequent feature weighting and focus vector calculation.
[0109] Step S3322, performing a standardization operation on each commonality evaluation coefficient to obtain an eccentricity coefficient of each prior guided characterization vector.
[0110] The commonality evaluation coefficients are calculated in step S3321, and they reflect the similarity or correlation between the search vector and each anchor vector. However, these original coefficients may have different dimensions and value ranges, and directly using them for subsequent calculations may cause some coefficients to have too large or too small an impact. Therefore, it is necessary to standardize these coefficients so that they have a unified dimension and are comparable.
[0111] The standardization operation usually involves converting the original commonality evaluation coefficients into a standard form so that the converted coefficients take values within a specific range (such as between 0 and 1) and the sum is 1. The advantage of this is that it is easy to compare the relative sizes of different coefficients and facilitate subsequent weighted summation operations.
[0112] Specifically, the standardization operation can adopt a variety of methods, such as maximum and minimum value standardization, Z-score standardization, etc. In the context of carbon footprint privacy text processing, a simple standardization method may be adopted, such as dividing each commonality evaluation coefficient by the sum of all coefficients to obtain the eccentricity coefficient (weight) of each prior guided representation vector.
[0113] Taking mathematical expressions as an example, suppose there are n commonality evaluation coefficients (c1, c2, ..., c n ), then the eccentricity coefficient (weight) w of each prior guided representation vector i It can be calculated by the following formula:
[0114]
[0115] in, Represents the sum of all commonality evaluation coefficients. This normalization method ensures that all eccentricity coefficients are between 0 and 1 and their sum is equal to 1.
[0116] It should be noted that in practical applications, appropriate normalization methods may be selected according to specific tasks and data characteristics. In addition, when calculating the eccentricity coefficient, numerical stability and accuracy issues need to be considered to avoid errors such as division by zero or numerical overflow.
[0117] In summary, step S3322 obtains the eccentricity coefficient (weight) of each prior guided characterization vector by standardizing the commonality evaluation coefficients, which play an important role in the subsequent feature weighting and focus vector calculation. The processing of this step ensures the comparability and numerical stability between different coefficients, and provides a guarantee for the accuracy and effectiveness of the entire feature focus selection operation.
[0118] Step S3323, based on each eccentricity coefficient, the prior guided characterization vector is calculated and added (i.e., weighted summation) to obtain a focus vector obtained after the targeted feature focus selection operation; the focus vector obtained after the targeted feature focus selection operation is used to determine the retrieval vector for the next round of feature focus selection operation.
[0119] Step S3323 applies the standardized eccentricity coefficient (weight) to the prior guided characterization vector, and obtains the focus vector by weighted summation. This focus vector is not only a summary of the feature focus selection operation of the current round, but also the starting point of the next round of operations. Specifically, the computer system will perform the following operations in this step: First, obtain the eccentricity coefficient of each prior guided characterization vector calculated in the previous step. These coefficients have been standardized and can be directly used for weighted calculations. Then, the computer will multiply each prior guided characterization vector with its corresponding eccentricity coefficient to obtain a weighted vector. This process can be regarded as scaling the original vector, where the eccentricity coefficient determines the degree and direction of scaling.
[0120] Next, the computer will add up all the weighted vectors to get a focus vector. This vector is the weighted average of all the prior guided representation vectors, reflecting the contribution of each prior guided representation vector to the final result in the current round of feature focus selection operation. It should be noted that the addition operation here is performed in the vector space, that is, the corresponding elements are added.
[0121] Taking mathematical expressions as an example, suppose there are n prior guided representation vectors (v1, v2, ..., v n ), their corresponding eccentricity coefficients are (w1, w2, ..., w n ) (and satisfy ), the focusing vector f can be calculated by the following formula:
[0122]
[0123] Among them, • represents the element-by-element multiplication operation of the vector, and ∑ represents the element-by-element addition operation of the vector.
[0124] In practical applications, the dimension of the focus vector is consistent with the dimension of the prior guided representation vector. The value in each dimension is the sum of all weighted vectors in the corresponding dimension, reflecting the comprehensive performance of all prior guided representation vectors in that dimension.
[0125] It should be emphasized that the focus vector is not the final result, but is used to determine the retrieval vector for the next round of feature focus selection operation. Specifically, the computer will use the focus vector as the retrieval vector for the next round of operation, and measure the similarity with the new anchor vector, thereby starting a new round of feature focus selection operation. This process will be iterative until a certain stop condition is met (such as reaching a preset number of iterations or the change in the focus vector is less than a certain threshold).
[0126] In summary, step S3323 combines the prior guided representation vector and the eccentricity coefficient by weighted summation to obtain a focus vector. This vector not only summarizes the results of the feature focus selection operation in the current round, but also provides a starting point and direction for the next round of operation. By iterating the feature focus selection operation, the computer system can gradually refine and integrate the key information in the text, providing a comprehensive and refined feature representation for subsequent tasks.
[0127] In an implementable design, step S333, combining the text embedding mapping representation vector and the integrated representation information to obtain the target representation vector, may specifically include:
[0128] Step S3331, perform feature mapping on the text embedding mapping representation vector to obtain the text embedding mapping representation vector after feature mapping; the text embedding mapping representation vector after feature mapping is consistent with the dimension of the integrated representation information.
[0129] The aforementioned step S333 combines the text embedding mapping representation vector with the integrated representation information to obtain the target representation vector. The main task of step S3331 is to perform feature mapping on the text embedding mapping representation vector to obtain a text embedding mapping representation vector after feature mapping that is consistent with the dimension of the integrated representation information. Feature mapping is a process of converting a vector in the original feature space to a new feature space, with the purpose of enabling data from different sources or different properties to be compared and calculated on the same dimension.
[0130] In actual operation, the computer system uses a predefined feature mapping function or model to process the text embedding mapping representation vector. This function or model can be linear or nonlinear, depending on the characteristics of the data and the requirements of the task. For example, dimensionality reduction techniques such as principal component analysis (PCA) and independent component analysis (ICA) can be used to convert high-dimensional text embedding mapping representation vectors into low-dimensional space while retaining the most important feature information. Alternatively, deep learning models such as neural networks can be used to map the original features to a more abstract and expressive feature space by training the complex patterns and nonlinear relationships in the learning data.
[0131] It should be noted that the goal of feature mapping is to make the dimension of the mapped text embedding mapping representation vector consistent with that of the integrated representation information. This is because the consistency of dimension is a prerequisite for subsequent standardization and integration operations. If the dimensions do not match, it will be impossible to perform mathematical operations and comparisons directly on the two vectors. To illustrate with a specific example, assume that the text embedding mapping representation vector is a 100-dimensional vector, and the integrated representation information is a 50-dimensional vector. In this case, the 100-dimensional vector can be converted into a 50-dimensional vector, or the 50-dimensional vector can be converted into a 100-dimensional vector, depending on which method is more conducive to preserving the original information and improving the performance of subsequent tasks. The converted vector can then be standardized and integrated with another vector.
[0132] Step S3332, respectively perform standardization operations on the text embedding mapping representation vector after feature mapping and the integrated representation information, and integrate the results after the respective standardization operations to obtain an integrated representation result.
[0133] Standardization (also known as normalization) is a commonly used technique in data processing. Its purpose is to limit the value range of data to a specific interval, usually [0, 1] or [-1, 1], to facilitate subsequent calculations and analysis. For the text embedding mapping representation vector and integrated representation information after feature mapping, the standardization operation can eliminate the impact caused by different dimensions or value ranges between them, so that they can be compared and operated on the same scale. Specifically, the computer system applies a standardization function or algorithm to the text embedding mapping representation vector and integrated representation information after feature mapping. This function or algorithm can be linear, such as minimum-maximum normalization, or nonlinear, such as logarithmic transformation or power transformation. The choice of which standardization method depends on the distribution characteristics of the data and the requirements of the task. For example, if the distribution of the data is relatively uniform and there are no obvious outliers, then minimum-maximum normalization may be a suitable choice; if the distribution of the data is long-tailed or skewed, then logarithmic transformation or power transformation may be more appropriate.
[0134] After the normalization operation is completed, the computer system obtains two normalized vectors: one is the normalized text embedding mapping representation vector, and the other is the normalized integrated representation information vector. The dimensions of these two vectors are consistent, and their value ranges are in the same interval.
[0135] Next, the computer system integrates the two standardized vectors, that is, concatenates them into a longer vector. This integrated representation result vector contains all the information of the original text embedding mapping representation vector and the integrated representation information, and their information is integrated at the same scale. This integration method helps to retain the detailed information of the original data and facilitates subsequent analysis and calculation.
[0136] To illustrate with a specific example, assume that the text embedding mapping representation vector after feature mapping is a vector of length 100 [0.1, 0.2, ..., 0.9, 1.0], and the integrated representation information is a vector of length 50 [0.5, 0.5, ..., 1.0, 1.0]. After standardization, these two vectors may become [0.01, 0.02, ..., 0.09, 0.1] and [0.1, 0.1, ..., 0.2, 0.2]. Then, through the concatenation operation, we can get an integrated representation result vector of length 150 [0.01, 0.02, ..., 0.09, 0.1, 0.1, 0.1, ..., 0.2, 0.2]. This vector contains both the information of the original text and the content of the integrated representation information, providing a comprehensive data basis for subsequent analysis and calculation.
[0137] Through standardization and integration operations, the text embedding mapping representation vector and integrated representation information after feature mapping are effectively integrated together to form an integrated representation result vector containing comprehensive information. This vector is one of the important inputs for obtaining the target representation vector in the subsequent steps.
[0138] Step S3333, performing feature mapping on the integrated characterization result to obtain a target characterization vector of the carbon footprint text paragraph to be analyzed.
[0139] Specifically, the computer system uses a specific feature mapping method or model to process the integrated representation results. Feature mapping here is a process of transforming raw data into a new feature space, aiming to extract the most useful information for subsequent tasks. This mapping process can be linear or nonlinear, depending on the nature of the data and the requirements of the task.
[0140] For example, if the integrated representation result is a high-dimensional vector, the computer system may use dimensionality reduction techniques such as principal component analysis (PCA) or autoencoder to reduce the dimension of the features while retaining the most important information. These techniques can help the computer system identify patterns in the data and map the original high-dimensional data to a low-dimensional space to form a target representation vector. In addition, if the information contained in the integrated representation result is very complex and the nonlinear relationship is significant, the computer system may use deep learning models such as convolutional neural networks (CNN) or recurrent neural networks (RNN) to capture these complex relationships. These models can map the original integrated representation result to a more abstract and expressive feature space by learning the intrinsic structure of the data. To illustrate with a specific example, suppose the integrated representation result is a vector containing 1,000 features, but only a few of them are critical for the subsequent carbon footprint analysis. In this case, the computer system can use feature selection algorithms (such as tree-based methods, sparsity-based methods, etc.) to identify these key features and form a new, lower-dimensional target representation vector. This vector will only contain the most important information for the analysis task, thereby improving the accuracy and efficiency of the analysis.
[0141] Step S340 , performing pattern recognition based on the target representation vector to obtain confidence distribution information of identification tokens, where the identification tokens are text tokens constituting the carbon footprint text paragraph to be analyzed.
[0142] First, pattern recognition is the process of classifying or identifying input data by a computer system based on existing knowledge or models. In step S340, the computer system uses a pre-trained machine learning model or algorithm to perform pattern recognition on the target representation vector. This model or algorithm can be based on statistical learning, such as support vector machine (SVM), logistic regression, etc.; it can also be based on deep learning, such as convolutional neural network (CNN), recurrent neural network (RNN), etc. The specific model or algorithm to be selected depends on the characteristics of the data and the requirements of the task.
[0143] In the process of pattern recognition, the computer system inputs the target representation vector into the model or algorithm, and then the model or algorithm processes and analyzes the input data according to its internal parameters and calculation logic. Finally, the model or algorithm outputs a recognition result, that is, the confidence distribution information of the recognition token. This confidence distribution information reflects the possibility or probability of each recognition token under the given input data.
[0144] Identification tokens are text tokens that make up the carbon footprint text paragraph to be analyzed. In text processing, tokens usually refer to basic units in text, such as words, phrases or sentences. In carbon footprint text processing, identification tokens can be keywords, phrases or sentences related to carbon footprint. Through pattern recognition, the computer system can identify these identification tokens from the input text and give their confidence distribution information.
[0145] To illustrate with a specific example, suppose there is a carbon footprint text paragraph: "The company used 100 tons of coal for production and emitted corresponding carbon dioxide." In this example, the identification tokens can be "coal", "production", "carbon dioxide" and other keywords related to carbon footprint. The computer system uses pattern recognition methods to identify these keywords from the text and give their confidence distribution information. For example, the confidence of "coal" may be 0.9, the confidence of "production" may be 0.8, the confidence of "carbon dioxide" may be 0.7, etc. This information reflects the possibility or probability of each keyword in a given text.
[0146] The target representation vector is processed and analyzed by pattern recognition methods to obtain the confidence distribution information of the identification token. This process is one of the important steps to ensure the accuracy and reliability of subsequent carbon footprint text analysis. At the same time, by identifying tokens and their confidence distribution information, the carbon footprint related information in the text can be more deeply understood and analyzed.
[0147] Step S350: Perform a private text detection associated with each carbon footprint private text according to the confidence distribution information of the identification token to obtain a text private information detection result.
[0148] Step S350 is responsible for performing private text detection associated with each carbon footprint private text according to the confidence distribution information of the identification token, thereby obtaining the text privacy information detection result. In this step, the computer system first obtains the confidence distribution information of the identification token generated in step S340. This information reflects the possibility of each identification token appearing in the text, which is an important basis for subsequent private text detection.
[0149] Next, the computer system uses specific privacy text detection algorithms or models, which are usually built based on machine learning or deep learning techniques. For example, traditional machine learning algorithms such as support vector machines (SVM) and random forests (RandomForest) can be used, or more complex neural network structures such as convolutional neural networks (CNN) or long short-term memory networks (LSTM) and other deep learning models can be used. These models learn based on the characteristics of privacy text in the training data, so that they can accurately identify privacy information when given new text data.
[0150] When implementing private text detection, the computer system takes the confidence distribution information of the identification token as input and matches it with pre-defined private text patterns or rules. These patterns or rules may include keywords, regular expressions, semantic templates, etc., which are used to describe the characteristics of private text. By matching these patterns or rules, the computer system can determine whether the text contains private information and give the corresponding detection results.
[0151] For example, if the recognition tokens contain keywords such as "ID number" and "bank account" and the confidence of these keywords is high, the computer system may determine that these tokens are private information based on preset rules. Similarly, if a part of the text meets a specific regular expression pattern, such as a continuous sequence of numbers or a specific format, the computer system will also mark it as potential private text.
[0152] Finally, step S350 will output the text privacy information detection result, which is usually a list containing privacy tokens and their confidence levels. This result can be directly used for subsequent privacy protection operations, such as desensitization, encryption or access control. Through this step of processing, it can be ensured that no privacy information is leaked when processing carbon footprint text.
[0153] In an implementable design, step S350 performs a private text detection associated with each carbon footprint private text according to the confidence distribution information of the identification token to obtain a text private information detection result, which may specifically include:
[0154] Step S351, obtaining the information restoration relationship network corresponding to each carbon footprint privacy text, where the information restoration relationship network is used to indicate the association relationship between the carbon footprint privacy text and the identification token.
[0155] The main task of step S351 is to obtain the information restoration relationship network corresponding to each carbon footprint privacy text. This information restoration relationship network is a key data structure, which is used to indicate the association between the carbon footprint privacy text and the identification token. Simply put, it is like a map that helps understand how the privacy information in the text is related to a specific identification token.
[0156] The information restoration network can be a complex network structure, where nodes represent identification tokens or carbon footprint privacy texts, and edges represent the association between them. This relationship can be direct or indirect, depending on the form and context of the privacy text in the text. For example, a privacy text may directly correspond to a specific identification token, or it may require a combination of multiple identification tokens or specific context information to be accurately identified.
[0157] In order to construct such an information restoration relationship network, the computer system needs to use natural language processing (NLP) and machine learning technologies to analyze and learn a large amount of training data. This process may involve multiple levels such as lexical analysis, syntactic analysis, and semantic understanding to ensure that the association between private text and identification tokens can be accurately captured. Once the information restoration relationship network is constructed, it can be used in the subsequent private text detection process. In step S352, the computer system combines this relationship network to perform private text detection on the confidence distribution information of the identification token associated with each carbon footprint private text. Specifically, it will match and compare the identification token with the possible private text according to the association relationship defined in the relationship network, so as to determine whether there is private information in the text and give the corresponding detection results.
[0158] Step S352, combining each information restoration relationship network, performs a private text detection associated with each carbon footprint private text on the confidence distribution information of the identification token to obtain a text privacy information detection result. The text privacy information detection result is used to reflect whether there is a carbon footprint private text in the carbon footprint text paragraph to be analyzed.
[0159] The information restoration network obtained in step S351 depicts the connection between the carbon footprint privacy text and the identification tokens, providing the necessary context for privacy detection. Identification tokens are basic units in the text. They may be words, phrases, or other text fragments, and the information restoration network reveals the complex relationship between these tokens and the privacy text. When performing privacy text detection, the computer system refers to the confidence distribution information of the identification tokens. This information has been generated in the previous steps and reflects the possibility of each identification token appearing in the text. Tokens with high confidence are more likely to be part of the privacy text, while tokens with low confidence may not be.
[0160] Combining the confidence distribution information of the information restoration network and the identification token, the computer system can determine which parts of the text may contain private information. For example, if a certain identification token is highly correlated with a private text node in the information restoration network and the confidence of the token is also high, the computer system will mark it as a potential private text. There are many methods for private text detection, such as rule-based methods, machine learning model-based methods, etc. Rule-based methods usually rely on a predefined set of rules that describe the common patterns and characteristics of private texts. The computer system applies these rules to the identification tokens and the information restoration network to discover potential private texts. Machine learning model-based methods use trained models to predict whether the identification token is a private text. These models can be traditional machine learning models, such as support vector machines (SVMs), decision trees, etc., or deep learning models, such as convolutional neural networks (CNNs), recurrent neural networks (RNNs), etc.
[0161] Finally, step S352 will output a text privacy information detection result, which clearly indicates whether there is carbon footprint privacy text in the carbon footprint text paragraph to be analyzed. This result is crucial for subsequent privacy protection operations because it helps determine which text parts need to be desensitized, encrypted or other protection measures. Through the processing of this step, it can be ensured that privacy information will not be leaked when analyzing and sharing carbon footprint text data.
[0162] In an implementable design, the method provided in an embodiment of the present application is executed through a privacy text recognition neural network, which includes an embedding mapping component, a prior guided representation vector extraction component, a feature integration component, a pattern recognition component and an information restoration component, wherein the embedding mapping component is used to embed and map the carbon footprint text paragraph to be analyzed, the prior guided representation vector extraction component is used to obtain the prior guided representation vector of each carbon footprint privacy text, the feature integration component is used to integrate the text embedding mapping representation vector and the prior guided representation vector of each carbon footprint privacy text, the pattern recognition component is used to perform pattern recognition based on the target representation vector, and the information restoration component is used to detect the privacy text associated with each carbon footprint privacy text based on the confidence distribution information of the recognition token to obtain the text privacy information detection result.
[0163] The embedding mapping component is responsible for embedding the carbon footprint text paragraph to be analyzed. Embedding mapping is to convert words or symbols in the text into a vector representation of a fixed dimension so that the neural network can process and understand it. For example, a common embedding mapping method is Word2Vec, which can map each word into a high-dimensional vector space so that semantically similar words are closer in the vector space.
[0164] The prior guided representation vector extraction component is used to obtain the prior guided representation vector of each carbon footprint privacy text. The prior guided representation vector is a feature vector extracted based on existing knowledge and experience, which is used to guide the neural network to better understand and identify privacy text. These feature vectors can include information such as the length, word frequency, part of speech, etc. of the text, as well as specific rules or patterns defined based on domain knowledge.
[0165] The feature integration component is responsible for integrating the text embedding mapping representation vector and the prior guided representation vector of each carbon footprint privacy text. The integration process can be a simple splicing or a fusion through a more complex network structure to make full use of the information of the two representation vectors. The integrated representation vector will be used as the input of the neural network for subsequent privacy text detection.
[0166] The pattern recognition component performs pattern recognition based on the target representation vector. The pattern recognition component can be a common machine learning model such as Softmax classifier, support vector machine (SVM), or a more complex deep learning model such as convolutional neural network (CNN) or recurrent neural network (RNN). These models learn and train based on the input target representation vector to identify the private information pattern in the text.
[0167] Finally, the information restoration component (i.e., decoder) is used to detect the private text associated with each carbon footprint private text based on the confidence distribution information of the identification token to obtain the text private information detection result. The information restoration component can decode the output of the neural network into a human-understandable private text detection result. For example, it can output a list containing privacy tokens and their confidences, or directly mark the private information part in the text. The type of decoder can be selected according to the specific application scenario and requirements, such as sequence to sequence (Seq2Seq) decoder, conditional random field (CRF) decoder, etc.
[0168] The privacy text recognition neural network can accurately identify and detect privacy information in carbon footprint text through the collaborative work of components such as embedding mapping, prior-guided representation vector extraction, feature integration, pattern recognition and information restoration, providing strong support for subsequent privacy protection operations.
[0169] In an implementable design, the privacy text recognition neural network is debugged by the following operations:
[0170] Step S1, obtaining a carbon footprint text knowledge template set, the carbon footprint text knowledge template set including at least one carbon footprint text knowledge template, each carbon footprint text knowledge template corresponding to corresponding privacy marking information.
[0171] In the process of building a privacy text recognition neural network, a key preliminary step is to prepare training data. In step S1, a carbon footprint text knowledge template set is used as a training data set, and each carbon footprint text knowledge template is a separate training sample.
[0172] Specifically, each carbon footprint text knowledge template is a text related to carbon footprint. In order to ensure that the neural network can accurately identify this private information, these texts need to be specially annotated, that is, to add privacy tag information. These privacy tag information are supervisory signals in the training process, which indicate which parts of the text are private content and the specific types of these private contents.
[0173] Step S2, based on the carbon footprint text knowledge template set, multiple rounds of iterative debugging are performed on the basic neural network to be debugged. In each round of debugging, the following steps are included:
[0174] Step S21, based on the basic neural network to be debugged, embedding mapping is performed on the carbon footprint text knowledge template to obtain a template text embedding mapping representation vector.
[0175] In the debugging process of the privacy text recognition neural network, step S21 involves converting the carbon footprint text knowledge template into a numerical form that the neural network can process. Specifically, in this step, the computer system will use the basic neural network to be debugged to embed and map the carbon footprint text knowledge template to obtain the template text embedding mapping representation vector. Embedding mapping is a commonly used technique in natural language processing. It converts words or phrases in the text into vector representations of fixed length so that the neural network can process them. In this process, each word or phrase is mapped to a point in a high-dimensional space, and the coordinates of this point (i.e., the value of the vector) are calculated based on the contextual relationship of the word or phrase in the text.
[0176] When performing embedding mapping, the computer system first divides the text into words or phrases, and then uses pre-trained word vector models (such as Word2Vec, GloVe, etc.) or neural network models (such as BERT, GPT, etc.) to convert these words or phrases into vector representations. These vector representations constitute the template text embedding mapping representation vector. It should be noted that different words or phrases have different positions in the vector space, and the distance between them reflects the semantic similarity between them. Therefore, the template text embedding mapping representation vector obtained by embedding mapping not only contains the surface information of the text, but also contains deep semantic information, which is very important for subsequent private text recognition.
[0177] Step S22: Obtain a priori guided representation vector of each privacy label information.
[0178] Step S23, integrating the template text embedding mapping representation vector and the labeling priori guided representation vector of each privacy labeling information according to the feature focus selection strategy to obtain the template target representation vector.
[0179] Step S24, performing pattern recognition on the template target representation vector to obtain template confidence distribution information of the recognition token, wherein the template target representation vector includes information corresponding to and matching the privacy mark information.
[0180] Steps S21 to S24 may refer to the aforementioned contents and will not be described in detail here.
[0181] Step S25, determining the error between the template confidence distribution information and the privacy mark information, and determining the cost value according to the error.
[0182] Specifically, in this step, the computer system determines the error between the template confidence distribution information and the privacy tag information, and determines the cost value based on this error. The template confidence distribution information is the result of the neural network's pattern recognition of the template target representation vector, which reflects the neural network's judgment and confidence level on whether each recognition token belongs to the private text. The privacy tag information is the real private text annotation result, which is an important basis for evaluating the accuracy of neural network recognition.
[0183] The computer system calculates the difference or error between the template confidence distribution information and the privacy label information by comparing them. This error reflects the degree of deviation between the recognition result of the neural network and the true labeling result, and is an important indicator for evaluating the performance of the neural network. Then, the computer system determines the cost value based on this error. The cost value is a quantitative indicator that is used to measure the recognition ability of the neural network for private text under the current parameters and structure. Generally, the smaller the cost value, the stronger the recognition ability of the neural network and the better the performance.
[0184] When determining the cost value, a general loss function can be used. For example, a binary cross entropy loss function can be used to calculate the cost value. The general form of the binary cross entropy loss function is:
[0185]
[0186] Where: L is the cost value, y is the true label, which takes the value of 0 or 1, and p is the confidence of the prediction.
[0187] Step S26, optimizing network parameters according to the cost value to obtain a debugged basic neural network.
[0188] When the privacy text recognition neural network after a round of iterative debugging meets the preset debugging cutoff condition, the debugging is stopped to obtain the privacy text recognition neural network.
[0189] Specifically, the computer system uses the gradient descent algorithm or other optimization algorithms to adjust the weights, biases and other parameters in the neural network according to the cost value to minimize the cost value and improve the recognition accuracy of the neural network. This process is an iterative process. In each iteration, the computer system calculates the cost value under the current neural network parameters and makes small adjustments to the parameters based on this cost value. These adjustments are based on the gradient descent algorithm, which determines the direction and step size of the parameter adjustment based on the direction of the cost value's impact on the parameter gradient. Through multiple iterations, the parameters of the neural network will gradually converge to the optimal value, so that the recognition accuracy of the neural network is maximized.
[0190] In an actual application scenario, the battery carbon footprint distributed computing method for protecting carbon data privacy provided by this application can be implemented by the following steps:
[0191] Basic data collection: Collect basic data related to the carbon footprint of batteries, including but not limited to energy consumption in the production process, carbon footprint of raw material collection, emissions from production processes, etc. This involves cooperation with manufacturers, supply chain partners and other relevant parties.
[0192] Data aggregation: Integrate and summarize data collected from different sources, including data from battery manufacturers, supply chain partners, energy suppliers, etc. In a distributed computing environment, data consistency and integrity must be ensured.
[0193] Data storage: The collected data is stored in a distributed storage system to ensure efficient management and retrieval of large amounts of data. This involves the use of distributed databases or cloud storage solutions. In the process, a privacy text recognition neural network is used to identify private information, and information protection, such as desensitization, is performed based on the detected private information.
[0194] Data verification: Before and after data storage, data is verified and validated to ensure the accuracy and integrity of the data. This is achieved by using technologies such as checksums and digital signatures.
[0195] Result analysis and presentation: Analyze the calculation results, generate a report on the battery carbon footprint, and present the results in a visual way. This helps relevant stakeholders understand the carbon footprint of the battery.
[0196] Continuous monitoring and updating: Battery carbon footprint is a dynamic indicator that requires continuous monitoring and updating. New data is collected regularly and recalculated to reflect changes and improvements during the battery life cycle.
[0197] During the data monitoring and maintenance process, encryption, identity authentication and other technologies can be used to limit access to carbon data to authorized personnel only.
[0198] Specifically: Data encryption: For the carbon data in transmission and storage, encryption algorithms are used to prevent unauthorized access and theft. At the same time, ensure that the data is encrypted during transmission and properly encrypted when stored. Authentication and access control: Implement authentication mechanisms to ensure that only authorized users can access carbon data. Use multi-level access control to perform fine-grained control of data based on user roles and permissions to prevent unauthorized access. Establish a comprehensive monitoring system to record all access and operations to carbon data. Monitor system activities in real time, detect abnormal behavior in a timely manner, and take appropriate measures.
[0199] Data integrity protection: Use data integrity verification mechanisms to prevent data from being tampered with during transmission or storage. Use technologies such as digital signatures to verify data integrity and ensure that the original state of the data is maintained.
[0200] Backup and recovery strategy: Establish a strategy for regular backup of Carbon data and ensure the safe storage of backup data. In the event of a data disaster or security incident, data can be quickly restored to minimize data loss.
[0201] Network security measures: Use advanced network security measures, including firewalls, intrusion detection systems (IDS), intrusion prevention systems (IPS), etc. to protect carbon data from cyber attacks.
[0202] Regular security assessments: Conduct regular security assessments and penetration tests to discover and fix potential security vulnerabilities. This helps improve the overall security of the system and ensures that carbon data is effectively protected.
[0203] In addition, data compliance needs to be ensured: carbon data protection mechanisms help organizations comply with relevant regulations and standards and ensure that the processing of carbon data complies with legal requirements.
[0204] Data integrity: Protection mechanisms help prevent carbon data from being tampered with during transmission or storage, ensuring data integrity and credibility. For example, it can be stored in a blockchain storage system.
[0205] In the embodiments of the present application, data processing is based on distributed computing, using multi-node data resources, decentralized storage and processing of carbon footprint data, which can reduce the risk of a single point. This helps prevent data leakage and malicious attacks. For large-scale carbon footprint calculations, distributed computing can complete tasks more quickly. As the scale of carbon footprint data increases, distributed computing systems can easily expand horizontally to adapt to growing data needs without the need for huge investments in a single large computer. Computing resources on different nodes can be fully shared to avoid waste of resources. This makes the calculation of carbon footprint data more economical and efficient.
[0206] It should be noted that in the embodiment of the present application, if the above-mentioned battery carbon footprint distributed calculation method for protecting carbon data privacy is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), disk or optical disk, etc. Various media that can store program codes. In this way, the embodiment of the present application is not limited to any specific hardware, software or firmware, or any combination of hardware, software, and firmware.
[0207] An embodiment of the present application provides a computer system, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.
[0208] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, some or all of the steps in the above method are implemented. The computer-readable storage medium can be transient or non-transient.
[0209] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is run in a computer device, a processor in the computer device executes some or all of the steps for implementing the above method.
[0210] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium, and in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK) and the like.
[0211] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.
[0212] Figure 2 A hardware entity diagram of a computer system provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the hardware entity of the computer system 1000 includes: a processor 1001 and a memory 1002, wherein the memory 1002 stores a computer program that can be run on the processor 1001, and the processor 1001 implements the steps in the method of any of the above embodiments when executing the program.
[0213] The memory 1002 stores computer programs that can be run on the processor. The memory 1002 is configured to store instructions and applications executable by the processor 1001. It can also cache data to be processed or processed by the processor 1001 and various modules in the computer system 1000 (for example, image data, audio data, voice communication data, and video communication data). This can be achieved through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0214] When the processor 1001 executes the program, the steps of any of the above-mentioned battery carbon footprint distributed computing methods for protecting carbon data privacy are implemented. The processor 1001 generally controls the overall operation of the computer system 1000 .
[0215] An embodiment of the present application provides a computer storage medium storing one or more programs, which can be executed by one or more processors to implement the steps of a battery carbon footprint distributed computing method for protecting carbon data privacy as in any of the above embodiments.
[0216] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For the technical details not disclosed in the storage medium and device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding. The above processor can be at least one of a target application integrated circuit (Application Specific Integrated Circuit, ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital signal processing device (Digital Signal Processing Device, DSPD), a programmable logic device (Programmable Logic Device, PLD), a field programmable gate array (Field Programmable Gate Array, FPGA), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, and a microprocessor. It can be understood that the electronic device that realizes the above processor function can also be other, and the embodiments of the present application are not specifically limited.
[0217] The above-mentioned computer storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0218] It should be understood that the "one embodiment" or "one embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" appearing in various places throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence number of the embodiment of the present application is only for description and does not represent the advantages and disadvantages of the embodiment. It should be noted that, in this article, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0219] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0220] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0221] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0222] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0223] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0224] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A battery carbon footprint distributed computing method for protecting carbon data privacy, characterized in that: The method comprises: Collect carbon footprint text data associated with the battery carbon footprint; The collected carbon footprint text data is integrated to obtain integrated carbon footprint text; Storing the fused carbon footprint text in a preset distributed storage system; Wherein, when storing the fused carbon footprint text in a preset distributed storage system, it includes: Acquire a carbon footprint text paragraph to be analyzed, and perform embedding mapping on the carbon footprint text paragraph to be analyzed to obtain a text embedding mapping representation vector; Obtaining a priori guided representation vectors of one or more carbon footprint privacy texts; the carbon footprint privacy texts are privacy texts associated with the information dimension corresponding to the carbon footprint text paragraph to be analyzed; Integrate the text embedding mapping representation vector and the prior guided representation vector of each of the carbon footprint privacy texts according to the feature focus selection strategy to obtain a target representation vector, wherein the target representation vector includes information corresponding to and matching the carbon footprint privacy text; Performing pattern recognition based on the target representation vector to obtain confidence distribution information of identification tokens; the identification tokens are text tokens constituting the carbon footprint text paragraph to be analyzed; Performing a private text detection associated with each of the carbon footprint private texts according to the confidence distribution information of the identification token to obtain a text private information detection result; The method is performed by a privacy text recognition neural network, and the privacy text recognition neural network includes an embedding mapping component, a priori guided representation vector extraction component, a feature integration component, a pattern recognition component and an information restoration component, wherein the embedding mapping component is used to embed and map the carbon footprint text paragraph to be analyzed, the priori guided representation vector extraction component is used to obtain the priori guided representation vector of each carbon footprint privacy text, the feature integration component is used to integrate the text embedding mapping representation vector and the priori guided representation vector of each carbon footprint privacy text, the pattern recognition component is used to perform pattern recognition based on the target representation vector, and the information restoration component is used to perform privacy text detection associated with each carbon footprint privacy text according to the confidence distribution information of the recognition token to obtain a text privacy information detection result; The privacy text recognition neural network is debugged by the following operations: Obtaining a carbon footprint text knowledge template set, wherein the carbon footprint text knowledge template set includes at least one carbon footprint text knowledge template, and each of the carbon footprint text knowledge templates corresponds to corresponding privacy marking information; Based on the carbon footprint text knowledge template set, multiple rounds of iterative debugging are performed on the basic neural network to be debugged. In each round of debugging, the following steps are included: Based on the basic neural network to be debugged, embedding and mapping the carbon footprint text knowledge template to obtain a template text embedding mapping representation vector; Obtain a priori guided representation vector of each privacy label information; Integrating the template text embedding mapping representation vector and the labeling prior guided representation vectors of each privacy labeling information to obtain a template target representation vector according to a feature focus selection strategy; Performing pattern recognition on the template target representation vector to obtain template confidence distribution information of the recognition token, wherein the template target representation vector includes information corresponding to and matching the privacy mark information; Determine an error between the template confidence distribution information and the privacy mark information, and determine a cost value according to the error; Optimizing network parameters according to the cost value to obtain a debugged basic neural network; When the privacy text recognition neural network after a round of iterative debugging meets the preset debugging cutoff condition, the debugging is stopped to obtain the privacy text recognition neural network.
2. The method according to claim 1, characterized in that: The step of obtaining a priori guided representation vectors of one or more carbon footprint privacy texts includes: For any of the carbon footprint privacy texts, determine a feature representation array for the carbon footprint privacy text; Perform at least one round of environmental information feature extraction on the feature representation array of the carbon footprint privacy text to obtain a priori guided representation vector of the carbon footprint privacy text.
3. The method according to claim 2, characterized in that For any one of the carbon footprint privacy texts, determining a feature representation array of the carbon footprint privacy text includes: According to the preset identification token, each of the carbon footprint privacy texts is divided to obtain a token string of each carbon footprint privacy text; For any of the carbon footprint privacy texts, single activation embedding mapping is performed on each token in the token string of the carbon footprint privacy text to obtain a single activation feature representation sequence of the carbon footprint privacy text; Performing representation information mapping on the single activation feature representation sequence of the targeted carbon footprint privacy text to obtain a feature representation array of the targeted carbon footprint privacy text; The step of performing at least one round of environmental information feature extraction on the feature representation array of the carbon footprint privacy text to obtain a priori guided representation vector of the carbon footprint privacy text includes: Perform multiple rounds of environmental information feature extraction one by one according to the feature representation array of the targeted carbon footprint privacy text; wherein the input of the first round of environmental information feature extraction is the feature representation array of the targeted carbon footprint privacy text, and the input of other rounds of environmental information feature extraction outside the first round includes the potential feature chain output by the previous round of environmental information feature extraction; Through the latent feature chain obtained by the last round of environmental information feature extraction, the prior guided representation vector of the targeted carbon footprint privacy text is determined.
4. The method according to claim 1, characterized in that: The step of integrating the text embedding mapping representation vector and the prior guided representation vectors of each of the carbon footprint privacy texts according to the feature focus selection strategy to obtain a target representation vector includes: Constructing the prior guided representation vector of each carbon footprint privacy text as a prior guided second-order tensor; Performing at least one round of feature focus selection operation based on the text embedding mapping representation vector and the prior guided second-order tensor to obtain integrated representation information; The text embedding mapping representation vector and the integrated representation information are combined to obtain a target representation vector.
5. The method according to claim 4, characterized in that The step of performing at least one round of feature focus selection operation based on the text embedding mapping representation vector and the prior guided second-order tensor to obtain integrated representation information includes: A retrieval vector is determined based on the text embedding mapping representation vector after feature mapping, and the prior guided second-order tensor is used as an anchor vector and a response vector, so as to perform no less than one round of feature focus selection operation to obtain integrated representation information; wherein the dimension of the text embedding mapping representation vector after feature mapping is consistent with the dimension of the prior guided second-order tensor.
6. The method according to claim 4, characterized in that The process of each round of feature focus selection operation includes: Determining a commonality evaluation coefficient between a retrieval vector associated with a targeted feature focus selection operation and each anchor vector; Performing a standardization operation on each of the commonality evaluation coefficients to obtain an eccentricity coefficient of each of the prior guided characterization vectors; According to each of the eccentricity coefficients, the prior guided characterization vectors are eccentrically calculated and added to obtain a focus vector obtained after a targeted feature focus selection operation; the focus vector obtained after the targeted feature focus selection operation is used to determine a search vector for a subsequent round of feature focus selection operation; The combining the text embedding mapping representation vector and the integrated representation information to obtain a target representation vector includes: Performing feature mapping on the text embedding mapping representation vector to obtain a feature-mapped text embedding mapping representation vector; the feature-mapped text embedding mapping representation vector has the same dimension as the integrated representation information; Performing standardization operations on the text embedding mapping representation vector after the feature mapping and the integrated representation information respectively, and integrating the results after the respective standardization operations to obtain an integrated representation result; Feature mapping is performed on the integrated characterization result to obtain a target characterization vector of the carbon footprint text paragraph to be analyzed.
7. The method according to claim 1, characterized in that The detecting of the private text associated with each of the carbon footprint private texts according to the confidence distribution information of the identification token to obtain the text private information detection result includes: Obtaining an information restoration relationship network corresponding to each of the carbon footprint privacy texts, wherein the information restoration relationship network is used to indicate an association relationship between the carbon footprint privacy text and an identification token; In combination with each of the information restoration relationship networks, the confidence distribution information of the identification token is subjected to a private text detection associated with each of the carbon footprint private texts to obtain a text privacy information detection result. The text privacy information detection result is used to reflect whether the carbon footprint text paragraph to be analyzed contains the carbon footprint private text.
8. A computer system comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps in the method according to any one of claims 1 to 7 are implemented.
