Heat meter data processing method and system
By using data mapping features and correlation-focused data set transformation methods in heat meter data processing, the problem of damaged information integrity in traditional methods is solved, the accuracy and efficiency of data processing are improved, and the intelligence of the energy management system is improved. level.
Patent Information
- Application Number
- CN202410341457.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-03-25
AI Technical Summary
Traditional heat meter data processing methods ignore the impact of data transformation on information integrity during the processing process, resulting in the loss or distortion of key information, affecting the intelligence level of the energy management system and the accuracy of data analysis.
The data mapping features are obtained through the heat energy meter data set to be processed and the adjustment annotations, and down-sampling and transformation are performed to generate a correlation-focused data set. The latent space data set is transformed using the data mapping features and the correlation-focused data set, retaining the specified type of data features and Adjust requirements to improve the information retention capabilities of data.
It improves the accuracy and efficiency of heat meter data processing, ensures the integrity and consistency of data information, and improves the accuracy of subsequent data utilization.
Smart Images

Figure CN118194041B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of heat energy meters, and in particular to a heat energy meter data processing method and system. Background Art
[0002] With the intelligentization and refinement of energy management, heat meters are important tools for measuring and monitoring heat consumption. After collecting heat meter data through the Internet of Things technology, various preprocessing of data is often required, such as outlier processing, missing value filling, normalization, etc. The accuracy and efficiency of data processing methods are crucial to the performance of energy management systems. In the Internet of Things environment, the collection, transmission and processing of heat meter data face challenges such as large data volume, high real-time requirements, and difficulty in retaining information.
[0003] Therefore, developing a method that can efficiently process heat meter data and maintain the integrity of data information has become an urgent need in the current energy management field. Traditional heat meter data processing methods often ignore the impact of data transformation on information integrity during the processing process, resulting in the loss or distortion of key information. This not only affects the accuracy of subsequent data analysis, but also limits the level of intelligence of energy management systems. Summary of the invention
[0004] In view of this, the embodiments of the present disclosure at least provide a heat meter data processing method.
[0005] The technical solution of the embodiment of the present disclosure is implemented as follows:
[0006] On the one hand, an embodiment of the present disclosure provides a method for processing heat energy meter data, the method comprising: obtaining data mapping features through a heat energy meter data set to be processed and an adjustment annotation, the data mapping features comprising a characterization carrier of the heat energy meter data set to be processed and a characterization carrier of the adjustment annotation; the heat energy meter data set to be processed is a data set having data features of a specified type of heat energy meter data, and the adjustment annotation is annotation information indicating the adjustment requirements of the heat energy meter data; downsampling the heat energy meter data set to be processed to obtain a latent space data set; the latent space data set is a data set with a smaller number of features than the heat energy meter data set to be processed and retains data features of a specified type of heat energy meter data; according to the latent space data A set, data mapping features and a specified type data masker are used to obtain an associated focused data set corresponding to the heat energy meter data set to be processed, the specified type data masker is configured to identify the specified type data range in the heat energy meter data set to be processed and other ranges outside the specified type data range, and the associated focused data set is used to generate adjustment data corresponding to the heat energy meter data adjustment requirements in the specified type data range; the latent space data set is transformed through the data mapping features and the associated focused data set to obtain a transformed heat energy meter data set; the transformed heat energy meter data set retains the specified type data features of the heat energy meter data set to be processed, and has the heat energy meter data adjustment requirements indicated by the adjustment annotation.
[0007] In some embodiments, the latent space dataset is transformed through data mapping features and associated focused datasets to obtain a transformed heat energy meter dataset, including: performing n enhancements on the latent space dataset according to the first algorithm component to obtain an enhanced dataset, where n is a natural number not less than 1; performing n enhanced data estimation and data restoration on the enhanced dataset based on the data mapping features and the associated focused dataset according to the first algorithm component to obtain a restored dataset; restoring the number of features of the restored dataset to the number of features corresponding to the heat energy meter dataset to be processed to obtain a transformed heat energy meter dataset.
[0008] In some embodiments, according to the first algorithm component based on data mapping features and associated focused data sets, n enhancement data estimation and data restoration are performed on the enhanced data set to obtain a restored data set, including: according to the first algorithm component based on data mapping features and associated focused data sets, estimating the enhancement data added to the latent space data set for the kth time to obtain the kth estimated enhancement data, where k is taken from 1 to n; deleting the kth estimated enhancement data on the enhanced data set to obtain the iterated enhanced data set; the initialized enhanced data set is the enhanced data set; if k is less than n, taking l as the iterated k, l=k+1, and repeating the step of estimating the enhancement data added to the latent space data set for the kth time based on the data mapping features and associated focused data sets according to the first algorithm component to obtain the kth estimated enhancement data; if k is equal to n, determining the iterated enhanced data set as the restored data set.
[0009] In some embodiments, data mapping features are obtained through the heat energy meter data set to be processed and the adjustment annotations, including: extracting data features of the specified type of heat energy meter data contained in the heat energy meter data set to be processed according to a specified type data detection component; performing feature extraction on the adjustment annotations according to a data extraction component to obtain annotation extraction features; and obtaining data mapping features through the data features of the specified type of heat energy meter data and the annotation extraction features.
[0010] In some embodiments, the adjustment annotation includes no less than one label, and the annotation refined features include refined features that match no less than one label; the data mapping feature is obtained by specifying the type of data features of the heat energy meter data and the annotation refined features, including: fusing the refined features corresponding to the first label in no less than one label with the specified type of data features of the heat energy meter data to obtain the iterative refined features corresponding to the first label; the first label is a pre-deployed label that describes the characteristics of the heat energy meter data; the iterative refined features corresponding to the first label are processed by the forward network component to obtain the target refined features corresponding to the first label; the target refined features corresponding to the first label and the refined features corresponding to the first label have an equal number of features; the refined features corresponding to the first label in the annotated refined features are replaced with the target refined features corresponding to the first label to obtain the data mapping features.
[0011] In some embodiments, extracting specified type data features of heat energy meter data contained in the heat energy meter data set to be processed according to the specified type data detection component includes: extracting the specified type data range in the heat energy meter data set to be processed to obtain the specified type data set corresponding to the heat energy meter data set to be processed; extracting specified type data features of the heat energy meter data from the specified type data set according to the specified type data detection component.
[0012] In some embodiments, an associated focused dataset corresponding to the heat energy meter dataset to be processed is obtained according to a latent space dataset, data mapping features and a specified type data masker, including: obtaining an initial associated focused dataset corresponding to the heat energy meter dataset to be processed based on the latent space dataset and the data mapping features according to a first algorithm component; and masking other ranges outside the specified type data range in the initial associated focused dataset through a specified type data masker to obtain an associated focused dataset corresponding to the heat energy meter dataset to be processed.
[0013] In some embodiments, the method is performed by a data processing algorithm, and the method also includes an optimization process of the data processing algorithm, including: obtaining at least one learning template of the data processing algorithm, each learning template including a paired template heat energy meter data set and a template adjustment annotation; the template heat energy meter data set is a data set having data features of a specified type of heat energy meter data, and the template adjustment annotation is annotation information indicating the heat energy meter data adjustment requirements in the template heat energy meter data set; according to the data processing algorithm, the template heat energy table data set and the template adjustment annotation are used to obtain a template data mapping feature, and the template data mapping feature includes a representation carrier of the template heat energy table data set and a representation carrier of the template adjustment annotation; according to the data processing algorithm, the template heat energy table data set is downsampled to obtain a template latent space data set; the template latent space data set is a data set with a smaller number of features than the template heat energy table data set, and the template adjustment annotation is retained. A data set of data features of a specified type of heat energy meter data; according to a data processing algorithm, an associated focused data set corresponding to the template heat energy meter data set is obtained according to a template latent space data set, a template data mapping feature and a template specified type data masker, the template specified type data masker is configured to identify a specified type data range in the template heat energy meter data set and other ranges except the specified type data range, and the associated focused data set is used to generate adjustment data corresponding to the heat energy meter data adjustment requirement in the specified type data range; according to the data processing algorithm, the template latent space data set is transformed through the template data mapping feature and the associated focused data set to obtain a transformed heat energy meter data set corresponding to the template heat energy meter data set; the algorithm parameters of the data processing algorithm are corrected through the template heat energy table data set and the transformed heat energy table data set to obtain an optimized data processing algorithm.
[0014] In some embodiments, according to a data processing algorithm, a template latent space dataset is transformed through template data mapping features and associated focused datasets to obtain a transformed heat energy table dataset corresponding to the template heat energy table dataset, including: performing n enhancements on the template latent space dataset according to a first algorithm component included in the data processing algorithm to obtain a template enhanced dataset, where n is a natural number not less than 1; performing n enhancement data estimation and data restoration on the template enhanced dataset based on data mapping features and associated focused datasets according to the first algorithm component to obtain a template restored dataset; restoring the number of features of the template restored dataset to the number of features corresponding to the template heat energy table dataset to obtain a transformed heat energy table dataset.
[0015] In some embodiments, according to the first algorithm component based on data mapping features and associated focused data sets, n enhancement data estimation and data restoration are performed on the template enhanced data set to obtain a template restored data set, including: according to the first algorithm component based on the template data mapping features and the associated focused data set, estimating the enhancement data added to the template latent space data set for the kth time to obtain the kth estimated enhancement data, where k is taken from 1 to n; deleting the kth estimated enhancement data on the template enhanced data set to obtain the iterated template enhanced data set; the initialized template enhanced data set is the template enhanced data set; if k is less than n, taking l as the iterated k, l=k+1, and repeating the step of estimating the enhancement data added to the template latent space data set for the kth time based on the template data mapping features and the associated focused data set according to the first algorithm component to obtain the kth estimated enhancement data; if k is equal to n, determining the iterated template enhanced data set as the template restored data set.
[0016] In some embodiments, template data mapping features are obtained through the template heat energy meter data set and template adjustment annotations according to a data processing algorithm, including: extracting specified type data features of the heat energy meter data contained in the template heat energy meter data set according to a specified type data detection component; performing feature extraction on the template adjustment annotations according to a data extraction component included in the data processing algorithm to obtain template annotation refined features; and obtaining template data mapping features through specified type data features of the heat energy meter data and template annotation refined features.
[0017] In some embodiments, the template adjustment annotation includes no less than one label, and the template annotation refined features include refined features that match no less than one label; the template data mapping features are obtained through the specified type data features of the heat energy meter data and the template annotation refined features, including: fusing the refined features corresponding to the first label in no less than one label with the specified type data features of the heat energy meter data to obtain the iterative refined features corresponding to the first label; the first label is a pre-deployed label that describes the characteristics of the heat energy meter data; the iterative refined features corresponding to the first label are processed by the forward network component to obtain the target refined features corresponding to the first label; the target refined features corresponding to the first label correspond to the same number of features as the refined features corresponding to the first label; the refined features corresponding to the first label in the template annotation refined features are replaced with the target refined features corresponding to the first label to obtain the template data mapping features.
[0018] In some embodiments, according to the data processing algorithm, an associated focused data set corresponding to the template heat energy table data set is obtained according to the template latent space data set, the template data mapping features and the template specified type data masker, including: according to the first algorithm component included in the data processing algorithm, according to the template latent space data set and the data mapping features, an initial associated focused data set corresponding to the template heat energy table data set is obtained; through the template specified type data masker, other ranges outside the specified type data range in the initial associated focused data set are masked to obtain the associated focused data set corresponding to the template heat energy table data set; through the template heat energy table data set and the transformed heat energy table data set, the algorithm parameters of the data processing algorithm are Modification is performed to obtain an optimized data processing algorithm, including: obtaining a comprehensive cost through a template heat energy table data set and a transformed heat energy table data set, the comprehensive cost including an enhancement cost, a data information cost and a specified type of data position cost; the enhancement cost is configured to evaluate the loss of added enhancement data and estimated enhancement data, the data information cost is configured to evaluate the loss between the representation carrier representation of the template heat energy table data set and the transformed heat energy table data set in a specified type of data range, and the specified type of data position cost is configured to evaluate the regulation performance of the associated focused data set in the specified type of data range; the algorithm parameters of the data processing algorithm are modified according to the comprehensive cost to obtain an optimized data processing algorithm.
[0019] In some embodiments, a comprehensive cost is obtained through a template heat energy table data set and a transformed heat energy table data set, including: determining the enhancement cost by adding enhancement data and estimated enhancement data when transforming the template latent space data set; determining the data information cost through the template heat energy table data set and the transformed heat energy table data set; determining the specified type of data position cost through the template specified type data masker and the associated focused data set; determining the comprehensive cost based on the enhancement cost, the data information cost and the specified type of data position cost.
[0020] In some embodiments, the data information cost is determined through a template heat energy meter data set and a transformed heat energy table data set, including: extracting a specified type of data feature of the template heat energy meter data set according to a specified type of data detection component to obtain a first specified type of data feature; extracting a specified type of data feature of the transformed heat energy table data set according to a specified type of data detection component to obtain a second specified type of data feature; and obtaining the data information cost through a similarity evaluation value between the first specified type of data feature and the second specified type of data feature.
[0021] On the other hand, the present disclosure provides a data processing 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.
[0022] The beneficial effects of the present disclosure include at least: the heat energy meter data processing method and system provided by the present disclosure obtain data mapping features through the heat energy meter data set to be processed and the adjustment annotations, and downsample the heat energy meter data set to be processed to obtain a latent space data set; based on the data mapping features, the latent space data set and the specified type data masker, obtain the associated focused data set corresponding to the heat energy meter data set to be processed; through the data mapping features and the associated focused data set, the latent space data set is transformed to obtain a transformed heat energy meter data set, so that according to the specified type data features of the heat energy meter data in the heat energy meter data set to be processed and the heat energy meter data adjustment requirements of the adjustment annotations are integrated, the heat energy meter data in the transformed heat energy meter data set obtained have a high level of similarity evaluation value with the heat energy meter data in the heat energy meter data set to be processed, the heat energy meter data during transformation has a good information maintenance capability, and the accuracy of subsequent data utilization is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of the implementation flow of a heat meter data processing method provided in an embodiment of the present disclosure.
[0024] Figure 2 A hardware entity schematic diagram of a data processing system provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions of the present disclosure are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present disclosure. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the present disclosure and are not intended to limit the present disclosure.
[0027] The embodiment of the present disclosure provides a method for processing heat meter data, which can be executed by a processor of a data processing system. The data processing system can refer to a server, a laptop, a tablet computer, a desktop computer, a smart TV, a mobile device (such as a mobile phone, a portable video player, a personal digital assistant, a dedicated messaging device, a portable gaming device) and other devices with data processing capabilities.
[0028] Figure 1 A schematic diagram of the implementation flow of a heat meter data processing method provided in an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the method includes the following operations:
[0029] Operation 10: obtaining data mapping features through the heat energy meter data set to be processed and the adjustment annotations, wherein the data mapping features include a characterization carrier of the heat energy meter data set to be processed and a characterization carrier of the adjustment annotations; the heat energy meter data set to be processed is a data set having data features of a specified type of heat energy meter data, and the adjustment annotations are annotation information indicating the adjustment requirements of the heat energy meter data.
[0030] In the disclosed embodiments, a heat meter dataset to be processed is a dataset containing heat meter readings, awaiting further processing and analysis. These readings may cover a specific time period, a specific location, or a specific type of heat energy usage. For example, suppose there is a dataset containing heat energy usage per hour for a week, which is a heat meter dataset to be processed.
[0031] Adjustment annotations are instructions or instructions on how to modify or adjust data to meet specific requirements. Adjustment annotations play a vital role in data processing, especially when it comes to preprocessing processes such as outlier processing and cleaning. It is not just a simple guide or instruction, but a series of clear and specific conditions or standards that guide the data processing system on how to adjust the data to ensure data quality, accuracy and consistency. Specifically, adjustment annotations can be understood as a series of rules and conditions that need to be followed when performing data preprocessing. These rules and conditions may include but are not limited to standards for outlier detection and processing, rules for data cleaning, methods for filling missing values, etc. Adjustment annotations provide clear guidance for the data preprocessing process and ensure the consistency and repeatability of data processing. Taking outlier processing as an example, adjustment annotations can specify which values are considered outliers and how to handle these outliers. For example, for a heat meter data set, the adjustment annotation can specify that if the reading of a heat meter exceeds the upper and lower limits of the normal range (such as the mean plus or minus two standard deviations), it is considered an outlier and needs to be processed accordingly, such as replacing it with a normal value, deleting it, or making other corrections. In terms of data cleaning, reconciliation annotations can clarify which data needs to be retained and which data needs to be deleted or corrected. For example, for data records containing errors or inconsistent information, reconciliation annotations can specify how to identify and correct these errors to ensure the accuracy and integrity of the data. Reconciliation annotations are an integral part of the data preprocessing process. They provide a series of clear and specific conditions and rules to guide the data processing system on how to reconcile and process data. By setting and following reconciliation annotations reasonably, the accuracy, consistency, and repeatability of data processing can be ensured, laying a solid foundation for subsequent data analysis and application.
[0032] Data mapping features are key information extracted from the raw data (i.e., the heat meter data set to be processed and the adjustment annotations), which can represent the essential characteristics of the data and provide a basis for subsequent data processing. For example, consider a feature representing the peak hours of heat energy use every day, which is a data mapping feature because it reflects an important pattern of heat energy use.
[0033] Representation carriers are structures used to store and represent data features, such as vectors, matrices, or tensors. They provide a specific mathematical form for data features, which is convenient for computer processing. Vector example: The daily heat energy usage of a heat meter can be represented as a 7-dimensional vector, where each element represents the heat energy usage for an hour of the day, such as [100,120,110,90,80,130,140]. Matrix example: If there are multiple heat meters and you want to represent their hourly usage for a week, you can use a matrix where each row represents a heat meter and each column represents an hour.
[0034] Specified data features are specific, interesting, or task-related data features in a dataset. When processing data, you may be interested in only certain aspects or characteristics of the dataset. For example, when processing heat meter data, you may be interested only in the usage patterns on weekends and weekdays. Then, "weekend usage patterns" and "weekday usage patterns" are specified data features.
[0035] In operation 10, the data processing system first receives a heat meter data set to be processed, which includes a series of heat meter readings, each of which reflects the heat energy usage at a specific time or under a specific condition. These data usually have a certain type of data feature, such as time series feature, periodic feature or trend feature, which is crucial for subsequent data analysis and processing.
[0036] At the same time, the data processing system also receives adjustment annotations, which are annotation information used to indicate how to adjust the heat meter data set to be processed, or to what state the data should be adjusted to meet specific requirements. Adjustment annotations may contain a series of rules, standards, or target values, which provide clear guidance and constraints for data processing. After obtaining the heat meter data set to be processed and the adjustment annotations, the data processing system further processes this information to obtain data mapping features. This process usually involves in-depth analysis and mining of the data to extract key information that can reflect the essential characteristics of the data. Data mapping features are a refined feature set that contains the main features of the heat meter data set to be processed and the key information of the adjustment annotations.
[0037] The specific form of data mapping features can be varied, such as a vector, matrix, or tensor. Taking vectors as an example, a possible data mapping feature vector can contain a series of values, each of which represents the feature strength or adjustment requirements of the data set in a specific dimension. For example, a vector containing four values [0.8, 0.5, 0.3, 0.9] may represent the strength or importance of the data set in four different feature dimensions.
[0038] In general, operation 10 is the basis and starting point of the entire heat meter data processing method, which provides necessary information and guidance for subsequent data processing and analysis. By rationally utilizing the heat meter data set to be processed and adjusting the annotations, the data processing system can effectively extract the key features of the data, laying a solid foundation for subsequent data processing and analysis.
[0039] Operation 20: down-sample the heat energy meter data set to be processed to obtain a latent space data set; the latent space data set is a data set that has a smaller number of features than the heat energy meter data set to be processed and retains data features of a specified type of the heat energy meter data.
[0040] When processing a large number of heat meter data sets, in order to effectively manage and utilize data while reducing the consumption of storage and computing resources, the data processing system will use downsampling. Downsampling, in simple terms, is to compress the original data, extract its main features, and reduce the dimension of the data. In this process, the data processing system will use specific algorithms or models, such as variational autoencoders (VAE), to complete this task. Variational autoencoders (VAE) are generative models that achieve data compression and reconstruction by learning the potential representation of data (or called latent space representation). In operation 20, the data processing system first receives the heat meter data set to be processed, which may contain a large number of heat meter readings, each of which has multiple feature dimensions. Then, the data processing system uses a variational autoencoder to process these data and map them to a low-dimensional latent space (hidden space) to obtain a latent space data set.
[0041] The number of features (i.e., dimensions) of this latent space dataset will be smaller than the original heat meter dataset to be processed, but it still retains the key information in the original data, that is, the specified type of data features of the heat meter data. These features may be key information such as the periodicity, trend, and outliers of the heat meter readings, which are crucial for subsequent data analysis and processing.
[0042] For example, suppose there is a data set containing 1,000 heat meter readings, each of which has 10 feature dimensions. Through operation 20, the data processing system can use the variational autoencoder to compress this data set into a latent space with only 2 feature dimensions. Although the dimension of the data is reduced, through this latent space data set, it is still possible to roughly understand the distribution and key features of the original data, so as to perform subsequent data analysis and processing. In general, operation 20 is an effective data compression and feature extraction method, which can help better manage and utilize the heat meter data set while reducing the consumption of storage and computing resources. By adopting advanced machine learning models (such as variational autoencoders), the data processing system can automatically complete this task to provide more efficient and accurate data processing and analysis services.
[0043] In operation 20, downsampling is a technique in data processing used to reduce the amount or dimension of data while retaining the key information of the data as much as possible. In large data sets or high-dimensional data sets, downsampling can help reduce computational complexity and improve processing efficiency. For example, suppose there is a heat meter data set that records the reading of the heat meter once a second, and there will be 86,400 data points in a day. In order to reduce the amount of data, only one average reading can be retained every minute, so that the data points in a day are reduced to 1,440. This is the process of downsampling.
[0044] Latent Space Dataset / Hidden Space Dataset refers to the low-dimensional space in which the data resides after being encoded. In this space, the representation of the data is more compact and abstract, but still retains the key structure and features of the original data. Latent space datasets are datasets represented in this space. For example, continuing with the VAE example above, when the heat meter readings are encoded into latent vectors, these latent vectors constitute the latent space dataset. This dataset can be used for tasks such as cluster analysis, anomaly detection, or generating new heat meter readings.
[0045] The number of features or dimensions refers to the number of attributes or characteristics that each data point in the dataset has. In multidimensional data, each dimension represents a different feature.
[0046] Feature example: In the heat meter dataset, a data point may contain features such as "timestamp", "temperature reading", "flow reading", "pressure reading", etc. If each data point has these four features, then the number of features is 4 and the dimension of the data is also 4.
[0047] Example of dimensionality reduction: The dimensionality of a dataset can be reduced by techniques such as downsampling or feature selection. For example, if only two features, “timestamp” and “temperature reading”, are retained, the number of features is reduced to 2 and the dimensionality of the data is also reduced to 2.
[0048] Operation 30: Based on the latent space data set, the data mapping features and the specified type data masker, an associated focused data set corresponding to the heat energy meter data set to be processed is obtained, the specified type data masker is configured to identify the specified type data range in the heat energy meter data set to be processed and other ranges outside the specified type data range, and the associated focused data set is used to generate adjustment data corresponding to the heat energy meter data adjustment requirements in the specified type data range.
[0049] First, the data processing system receives a latent space data set, which is obtained from the original heat meter data set through the aforementioned downsampling and data compression techniques (such as using a variational autoencoder VAE). The number of features (i.e., dimensions) of the latent space data set is less than that of the original data set, but the key data features are still retained. Next, the data processing system uses data mapping features to further process the latent space data set. The data mapping feature is a way to associate data points in the latent space with specific attributes or features in the original data set. Through the data mapping feature, the data processing system can understand which specific information in the original data set each data point in the latent space corresponds to. In addition, operation 30 also introduces a specified type data masker (i.e., mask). This mask is configured to be able to identify the specified type data range in the heat meter data set to be processed and other data outside the range. The specified type data may be a part of the data that is of special concern, such as outliers, readings within a specific time period, etc. The role of the mask is to mark or isolate these specific types of data during the processing process so that they can be processed in a targeted manner later.
[0050] After having the latent space dataset, data mapping features and the specified type data masker, the data processing system will perform a series of operations to generate a related focused dataset. This related focused dataset is generated based on the cross-attention mechanism, which is generated based on the data within the specified type data range, and it contains the adjustment data corresponding to the heat meter data adjustment requirements. In other words, the related focused dataset is the final required dataset, which will be used to guide how to adjust the original heat meter dataset to meet specific requirements.
[0051] For example, suppose there is a dataset containing hourly heat meter readings during the week, with a particular focus on weekend readings (since they may be subject to different usage patterns). In this case, the latent space dataset may be a low-dimensional representation of the original dataset compressed by a VAE; the data mapping features may include timestamps and corresponding heat meter readings; and the type-specific data masker may be configured to identify weekend readings and distinguish them from readings from other time periods. The resulting associated focused dataset will contain mainly conditioned data related to weekend readings, which can be used for further analysis or processing tasks.
[0052] Latent Space Dataset is a low-dimensional dataset obtained by processing the original dataset through data compression techniques (such as downsampling or variational autoencoder VAE). It retains the key features of the original data but reduces the dimension and complexity of the data. For example, assuming that the original heat meter dataset contains 100 features, after processing by VAE, a latent space dataset with only 10 features may be obtained, which captures the main change patterns of the original data.
[0053] Data Mapping Features are features used to map features in the original dataset to the latent space or associated focused dataset when processing the dataset. They establish a correspondence between the original data and the processed data. For example, in the heat meter dataset, the original features may include "timestamp", "temperature reading", "flow reading", etc. Data mapping features may be converted from these original features to representations in the latent space through some function or model, such as feature mapping learned by a neural network. Specified Type Data Masker (i.e., mask) is a tool or method used to identify and distinguish specific types of data ranges in a dataset. It can mark or filter data according to preset rules or conditions so that this part of the data can be paid special attention to in subsequent processing. For example, in the heat meter dataset, you may only be interested in abnormal readings whose temperature exceeds a certain threshold. The Specified Type Data Masker can be configured to identify these abnormal readings and mark them in the dataset or distinguish them from other normal readings. The associated focused dataset (i.e., the cross-attention dataset) is a dataset obtained by combining the latent space dataset, the data mapping features, and the specified type data masker. It focuses on the part of the original dataset that is related to a specific type of data and generates adjustment data for further processing or analysis. For example, in operation 30, the associated focused dataset may contain adjustment data related to abnormal temperature readings, which can be used to adjust the operating parameters of the heat meter or trigger an alarm system. For example, it may contain information such as the recommended adjustment temperature value, the adjustment time window, etc. Adjustment data refers to specific values or instructions generated in the associated focused dataset, which are used to guide how to adjust the original heat meter dataset to meet specific requirements or optimization goals. For example, in the context of the heat meter dataset, the adjustment data may include recommended temperature set points, flow adjustment values, or switching instructions for equipment operating modes. These data are obtained based on the analysis of the latent space dataset and the specified type of data, and are intended to improve energy efficiency or meet comfort requirements.
[0054] Operation 40: transforming the latent space dataset through data mapping features and associating the focused dataset to obtain a transformed heat energy table dataset; the transformed heat energy table dataset retains the specified type of data features of the heat energy table dataset to be processed, and has heat energy table data adjustment requirements indicated by adjustment annotations.
[0055] In operation 40, the data processing system first receives as input a latent space dataset, a data mapping feature, and an associated focused dataset. These data are generated or configured in the previous processing steps, and they provide the necessary basis and context for the current operation. The latent space dataset is a low-dimensional data representation that captures the key information of the original heat meter dataset. The data mapping feature defines how to reconstruct or represent the features in the original dataset from points in the latent space. The associated focused dataset contains the adjustment information related to a specific type of data, which will be used to guide the subsequent transformation process.
[0056] Next, the data processing system transforms the latent space dataset using the data mapping features and the associated focused dataset. This transformation process may involve a series of mathematical operations, model inference, or data rearrangement operations, the purpose of which is to map the data points in the latent space back to a space that is similar to the original dataset but has been adjusted. During the transformation process, the data processing system pays special attention to those data points that correspond to specified types of data features. These specified types of data features may be parts of the original dataset that are of particular interest, such as outliers, readings in a specific time period, or records that meet certain conditions. By leveraging the adjustment information in the associated focused dataset, the data processing system can perform targeted transformations on these specific types of data to meet specific data adjustment requirements.
[0057] The resulting transformed heat meter dataset retains the specified type of data features in the original heat meter dataset and has the heat meter data adjustment requirements indicated by the adjustment annotations. This means that the transformed dataset not only contains the key information in the original data, but also incorporates the adjustment strategies or suggestions derived from the associated focused dataset. These adjustment annotations may exist in the form of additional data columns, tags, or metadata, providing valuable references for subsequent data analysis, decision making, or system control.
[0058] For example, suppose there is an original heat meter data set that records the energy consumption of a building in different time periods. Through the previous processing steps, a latent space data set and data mapping features are obtained, as well as an associated focused data set, which contains adjustment information related to energy consumption during peak hours. In operation 40, the data processing system will use these data to transform the latent space data set to generate a transformed heat meter data set. This transformed data set will pay special attention to the energy consumption data during peak hours and make corresponding adjustments based on the adjustment suggestions in the associated focused data set. In this way, a heat meter data set that retains the original data features and incorporates intelligent adjustment strategies can be obtained, providing strong support for subsequent energy management and optimization.
[0059] The Transformed Thermal Meter Dataset is a set of thermal meter data that has been processed by a specific transformation. It retains the specified type of data features in the original thermal meter dataset and is adjusted or annotated accordingly according to the adjustment annotations in the associated focused dataset.
[0060] For example, suppose that the original heat meter data set contains hourly energy consumption readings, and the goal is to reduce energy consumption during peak hours. Through operation 40, a transformed heat meter data set can be obtained, in which the energy consumption readings during peak hours have been adjusted according to the adjustment suggestions in the associated focused data set (such as lowering the set temperature), while the readings during other periods remain unchanged. In this way, the transformed data set retains the structure of the original data and reflects the energy efficiency optimization goal.
[0061] In an optional implementation, operation 40, transforming the latent space dataset by mapping the data features and associating the focused dataset to obtain a transformed heat energy table dataset, may include the following operations:
[0062] Operation 41: performing n enhancements on the latent space dataset according to the first algorithm component to obtain an enhanced dataset, where n is a natural number not less than 1.
[0063] The core purpose of operation 41 is to add some noise or changes to the latent space dataset through the first algorithm component to obtain an enhanced dataset. This enhanced processing helps to improve the generalization ability of the subsequent machine learning model, so that it can better adapt to various situations.
[0064] Specifically, the data processing system utilizes a first algorithm component, which can be a specific component structure of a neural network algorithm, such as a network layer or operator. This algorithm component is designed to enhance the latent space data set. The enhancement can be done by adding noise, transforming the data, or introducing some minor changes. For example, if the latent space data set is a multidimensional array containing multiple heat meter readings, the first algorithm component can enhance the data set by adding some random noise to the array or performing slight data perturbations. This process can be repeated n times, where n is a natural number not less than 1, depending on the required degree of enhancement and computing resources.
[0065] Through operation 41, the data processing system is able to obtain an enhanced data set, which retains the main features of the original latent space data set while introducing some new changes. These changes help to improve the robustness and generalization ability of subsequent machine learning models, so that they can perform better when faced with similar but slightly different data. It should be noted that the enhancement processing is not to add noise or changes at will, but needs to be carefully designed according to the specific tasks and data characteristics. The selection of the first algorithm component and the formulation of the enhancement strategy need to be based on a deep understanding of the data and tasks. At the same time, the degree of enhancement processing also needs to be moderate. Too much noise or changes may mask the true characteristics of the data and have a negative impact on the training of the model.
[0066] Operation 42: performing n times of enhanced data estimation and data restoration on the enhanced data set based on the data mapping features and the associated focused data set according to the first algorithm component to obtain a restored data set.
[0067] In operation 42, the data processing system uses a first algorithm component to process the enhanced data set. This algorithm component is constructed based on the data mapping features and the associated focused data set, and it can use the characteristics of these data to perform data estimation and data restoration. Data estimation is a prediction or estimation process that infers unknown or missing data based on existing data and models. In operation 42, the purpose of data estimation is to predict and evaluate the noise or changes in the enhanced data set for subsequent data restoration.
[0068] Data restoration is a process of denoising or restoring the original data. It aims to remove the added noise or changes from the enhanced data set to restore it to a form closer to the original data. This process is critical to ensuring the accuracy of subsequent data analysis and processing. Specifically, the data processing system uses the first algorithm component to perform multiple (n) enhanced data estimation and data restoration operations on the enhanced data set. In each operation, the algorithm component predicts and evaluates the noise or changes in the data based on the data mapping features and the information of the associated focused data set, and attempts to remove these noise or changes to restore the data.
[0069] For example, suppose that the enhanced data set contains some outliers caused by adding noise. The first algorithm component can identify these outliers based on the data mapping features and the information of the associated focused data set, and predict what they should have been. Then, the algorithm component replaces these outliers with predicted normal values to complete the data restoration. This process can be repeated many times until a satisfactory data restoration effect is achieved. It should be noted that the first algorithm component in operation 42 can be any machine learning model or neural network structure suitable for processing such data. For example, it can be a denoising autoencoder network based on deep learning, which learns how to remove noise from the data and restore the original data through training. Alternatively, it can also be a regression model based on statistical methods, which uses data mapping features and information of the associated focused data set to predict and restore data.
[0070] Operation 42 is intended to perform data estimation and data restoration processing on the enhanced data set through the first algorithm component to remove noise or changes therein and restore it to a form closer to the original data. This process helps to improve the accuracy and reliability of subsequent data analysis and processing.
[0071] Operation 43: restoring the number of features of the restored data set to the number of features corresponding to the heat energy table data set to be processed, to obtain a transformed heat energy table data set.
[0072] The core task of operation 43 is to restore the number of features of the restored data set processed in the previous steps to be consistent with the original heat energy table data set to be processed, thereby obtaining a transformed heat energy table data set.
[0073] In the previous steps, in order to perform data enhancement and denoising, some modifications or adjustments may be made to the number of features or dimensions of the original data. These modifications may be the addition of additional features to support the enhancement process, or the deletion of certain features to reduce the interference of noise. However, when performing subsequent data analysis or model training, it is usually necessary to keep the number of features of the data set consistent with the original data to ensure the consistency and interpretability of the processing. Therefore, the purpose of operation 43 is to restore the number of features of the restored data set to the number of features corresponding to the heat meter data set to be processed. This process may involve operations such as adding, deleting or converting features, depending on how the data features are processed in the previous steps.
[0074] For example, assume that the original heat meter data set to be processed contains 10 features, such as temperature, pressure, flow, etc. In the previous step, in order to perform data enhancement and denoising, an additional feature may be added to represent the noise level, or a feature irrelevant to the task may be deleted. In operation 43, the data processing system needs to restore these added or deleted features to the original state according to the recorded feature modification history to ensure that the final transformed heat meter data set contains the same 10 features as the original data set.
[0075] If features were added in the previous step, operation 43 may involve the deletion or transformation of features. For example, if a feature representing the noise level is added but is not needed for subsequent analysis, it can be deleted in operation 43. If the added features are redundant or correlated with other features, feature transformation or merging may also be required to eliminate redundant information and improve the quality of the data.
[0076] On the contrary, if the features were deleted in the previous step, operation 43 needs to regenerate these features according to some strategy or model. This can be achieved through some feature reconstruction techniques, such as principal component analysis (PCA) or autoencoders. These methods can learn and reconstruct the deleted features based on the remaining features, thereby restoring the original dimensions of the data. It should be noted that the feature restoration process in operation 43 needs to be handled carefully to ensure that the restored data set retains the main information of the original data and meets the requirements of subsequent tasks. This may require a combination of specific domain knowledge and data analysis techniques for design and implementation.
[0077] In an optional implementation, operation 42, performing n enhanced data estimation and data restoration on the enhanced data set based on the data mapping feature and the associated focused data set according to the first algorithm component to obtain the restored data set, may include the following operations:
[0078] Operation 421: according to the first algorithm component, based on the data mapping features and the associated focused data set, estimate the enhanced data added to the latent space data set for the kth time to obtain the kth estimated enhanced data, where k is taken from 1 to n.
[0079] In operation 42, the data processing system uses the first algorithm component to process the enhanced data set, aiming to remove noise or changes in the data to restore a form closer to the original data. Operation 421, as a sub-step in this process, focuses on estimating the enhanced data added to the latent space data set each time.
[0080] Specifically, in operation 421, the data processing system estimates the enhanced data added to the latent space dataset for the kth time based on the first algorithm component and the data mapping features and the information of the associated focused dataset. Here, k is an iterative variable from 1 to n, indicating the number of times the enhanced data is estimated. Each estimation will obtain an estimated enhanced data, which represents the noise or changes added to the latent space dataset in that iteration.
[0081] For example, assuming that the latent space dataset is a multidimensional array containing multiple heat meter readings, the data mapping features may be the statistical features of these readings (such as mean, standard deviation, etc.), and the associated focused dataset may be other information related to these readings (such as timestamp, device identification, etc.). The first algorithm component can be a machine learning-based model, such as a neural network or a decision tree.
[0082] In operation 421, the data processing system uses the first algorithm component to estimate the enhanced data added to the latent space dataset for the kth time. This estimation process may involve the training and use of the model, as well as the processing of the input data. For example, the data processing system may take the data mapping features and the associated focused dataset as input, perform calculations and inferences through the first algorithm component, and finally obtain an estimated enhanced data. This estimated enhanced data may be a numerical vector representing the noise or changes added to the latent space dataset in this iteration. It should be noted that operation 421 is only a process of estimating enhanced data, and does not directly modify the original data or enhanced dataset. The estimated enhanced data will be used for subsequent data restoration operations (as described in operation 422). At the same time, operation 421 will be repeated n times, and each iteration will obtain an estimated enhanced data until all estimates are completed.
[0083] Operation 422: Delete the kth estimated enhanced data from the enhanced data set to obtain an iterated enhanced data set; the initialized enhanced data set is the enhanced data set.
[0084] If k is less than n, take l as k after iteration, l=k+1, and repeat the step of estimating the enhanced data added to the latent space dataset for the kth time based on the data mapping features and the associated focused dataset according to the first algorithm component to obtain the kth estimated enhanced data; if k is equal to n, determine the enhanced dataset after iteration as the restored dataset.
[0085] In operation 422, the data processing system processes the enhanced data set, specifically, it deletes the kth estimated enhanced data. Here, the "enhanced data set" refers to the data set to which noise or other changes are added during the data enhancement process, and the "estimated enhanced data" refers to the noise or change data estimated in operation 421 based on the data mapping features and the associated focused data set.
[0086] The purpose of deleting the estimated enhancement data is to remove noise or changes in the data set to gradually restore a form closer to the original data. By iteratively deleting the estimated enhancement data, the noise level in the data set can be gradually reduced, thereby improving the accuracy of subsequent data analysis and processing.
[0087] Assume that the enhanced data set is a multidimensional array containing a plurality of heat meter readings, each of which has a certain degree of noise added. In operation 421, the data processing system has estimated the kth noise data, which may be a numerical vector representing the noise or variation added to the original data.
[0088] In operation 422, the data processing system deletes the estimated kth noise data from the enhanced data set. After deleting the noise data, the enhanced data set is updated, that is, the iterated enhanced data set. This process can be understood as removing part of the noise from the data set to make the data closer to its original state. It should be noted that operation 422 is iteratively executed with other steps (such as operation 421). When k is less than n, it means that there are more estimated enhanced data to be processed, so k will be increased by 1 (that is, l=k+1), and then return to operation 421 to continue estimating the next noise data. This process is repeated until all n estimated enhanced data are processed. When k is equal to n, it means that all estimated noise data have been processed. At this point, the iterated enhanced data set is determined as the final restored data set. This restored data set has undergone multiple denoising processes and should be closer to the true distribution and characteristics of the original data.
[0089] As an implementation, the structure of the first algorithm component may include an encoder, an enhancer, a cross-attention module, and a decoder. The encoder is responsible for receiving raw data (such as a latent space dataset) and converting it into an internal representation or feature vector. A neural network (such as a convolutional neural network CNN, a recurrent neural network RNN, etc.) can be used to construct the encoder, depending on the type and structure of the data. The enhancer uses the output of the encoder (i.e., the internal representation) to generate enhanced data. The enhancer can generate new data points by adding noise, applying affine transformations, interpolating, etc. The enhancer can be a random process or a learned model, such as a variational autoencoder (VAE) or a part of a generative adversarial network (GAN). The cross-attention module is responsible for estimating the enhanced data based on the data mapping features and the associated focused dataset. The cross-attention module receives the data mapping features and the associated focused dataset as input and calculates the attention weights between them. These weights are used to generate a weighted representation that combines the information of both, which is used to estimate the enhanced data. The decoder is responsible for converting the output of the enhancer or criss-cross attention module back to the space of the original data. In the restoration phase of operation 42, the decoder uses the output of the criss-cross attention module (estimated enhanced data) to generate a restored data set. The decoder usually has a symmetrical structure with the encoder, such as using a deconvolution layer (in image processing) or a fully connected layer (in general data processing).
[0090] It is important to understand that the structure and workflow here is a high-level overview, and the specific implementation details will depend on the requirements of the task, the nature of the data, and the complexity of the selected model. In practical applications, detailed experiments and adjustments may be required to optimize the performance of the model.
[0091] In an optional implementation, operation 10, obtaining data mapping features through the heat energy table data set to be processed and the adjustment annotation, may include the following operations:
[0092] Operation 11: extracting data features of a specified type of heat energy meter data contained in the heat energy meter data set to be processed according to the specified type data detection component.
[0093] Operation 12: Extract features of the adjusted annotations according to the data extraction component to obtain extracted annotation features.
[0094] Operation 13: By specifying the type of data features and annotating and refining features of the heat energy meter data, data mapping features are obtained.
[0095] Operation 11 involves using a specified type of data detection component to extract specific types of data features in the heat meter data set to be processed. The possible implementation structure of this component may include a feature extraction algorithm. For example, it applies corresponding feature extraction techniques to specific types of heat meter data (such as temperature readings, flow data, etc.). These techniques may include statistical analysis (such as mean and variance calculation), time-frequency domain conversion (such as Fourier transform or wavelet transform) or machine learning algorithms (such as principal component analysis PCA or autoencoder), etc., to extract meaningful and representative features from the original data. Operation 12 is to extract features from the adjusted annotations through the data extraction component to obtain an annotation extraction feature. This process is essentially to encode the annotation information and convert it into a format that can be processed by the machine learning model. Specifically, the data extraction component may use techniques such as One-Hot Encoding, Label Encoding or Embedding Layer to convert the original annotation information (such as text description or classification label) into a fixed-length vector representation. This vector captures the semantic and structural characteristics of the annotated information, making it easier for machine learning models to learn useful patterns from it. Finally, operation 13 combines the data features of the specified type of heat meter data with the annotated refined features to obtain data mapping features. This step usually involves fusing or concatenating the two features to form a more comprehensive feature set for subsequent machine learning tasks. The fusion method can be as simple as concatenating the two feature vectors together, or it can be achieved through more complex operations such as weighted summation, feature crossover, or neural network fusion layers. The final data mapping features will contain both the characteristics of the original heat meter data and the adjusted annotation information, providing rich contextual information for subsequent model training.
[0096] In an optional implementation, the adjustment annotation includes at least one label, and the annotation refined features include at least one refined feature that matches each label. Based on this, the above operation 13, obtaining the data mapping feature by specifying the type data feature and the annotation refined feature of the heat energy meter data, may include the following operations:
[0097] Operation 131: Fusing the refined features corresponding to the first label in at least one label with the data features of the specified type of the heat meter data to obtain the iteratively refined features corresponding to the first label; the first label is a pre-deployed label that describes the characteristics of the heat meter data.
[0098] In an optional implementation, when the adjustment annotation includes multiple tags, and each tag has its corresponding refined feature, operation 13 can fuse these features through a series of steps and finally obtain the data mapping feature. Now, we will focus on the detailed explanation of operation 131.
[0099] Operation 131 involves fusing the refined features corresponding to the first label with the data features of the specified type of the heat meter data. The "first label" here is a label deployed in advance to describe the characteristics of the heat meter data. The specific way of fusion is to achieve it by head-to-tail splicing, which means that the refined features and data features will be combined into a longer feature vector. For example, assume that the data feature of the specified type of the heat meter data is a vector containing 10 elements, represented by [d1, d2, ..., d10]. At the same time, assume that the refined feature corresponding to the first label is a vector containing 5 elements, represented by [l1, l2, ..., l5]. After head-to-tail splicing, the iterative refined feature corresponding to the first label is a vector containing 15 elements, that is, [d1, d2, ..., d10, l1, l2, ..., l5]. This fusion method helps to retain all the information in the original data features and the refined features, and allows the machine learning model to consider both features simultaneously in subsequent processing. Based on this, the model can learn the complex relationship between heat meter data and regulation annotations, thereby improving its performance on related tasks.
[0100] The meaning of adjustment annotation is to specify a series of conditions that need to be met when preprocessing data (such as outlier processing, cleaning, etc.). These conditions are expressed in the form of labels, and each label corresponds to a specific adjustment rule or condition. These labels are not used to describe the inherent properties of the data, but to guide operations during data preprocessing. Labels are usually in the form of text, numbers or symbols in adjustment annotations, which are used to clearly indicate the conditions or requirements of a certain preprocessing operation. For example, a label may be "Remove out-of-range values", indicating that data points that are out of a certain predetermined range should be deleted when processing data. Another label may be "Fill missing values", indicating that missing values in the data need to be filled with a certain method (such as mean, median, etc.).
[0101] The extracted features corresponding to each label are no longer the features extracted from the data in the traditional sense, but the parameters or conditions of the preprocessing operations related to the label. These extracted features are used to concretize the adjustment rules represented by the label so that the data preprocessing process can be carried out according to these rules.
[0102] Taking the label "delete out-of-range values" as an example, its corresponding refined features may include specific values that define the "range", such as the maximum and minimum values. In this way, when the data processing system encounters this label, it will determine which data points are out of range based on these refined features (i.e., the maximum and minimum values) and delete them accordingly. Similarly, the refined features of the label "fill missing values" may include specific values (such as mean, median, etc.) used to fill missing values, or algorithms or methods used to calculate these specific values. In summary, adjustment annotations are a series of conditions or rules used to guide the data preprocessing process, which are expressed in the form of labels. Each label corresponds to a specific preprocessing operation, and the parameters or conditions related to these operations are associated with the label as refined features. In this way, the data processing system can automatically perform the corresponding preprocessing operations based on the labels and refined features in the adjustment annotations to meet specific data processing requirements.
[0103] Operation 131 is only one step of feature fusion. In subsequent operations, such as operations 132 and 133, these fused features may be further processed or optimized to generate the final data mapping features. These subsequent steps will involve processing the features using forward network components (such as multi-layer perceptrons) and ensuring that the dimensions of the refined features remain consistent during the processing. However, since the current problem only focuses on operation 131, the specific details of these subsequent steps will not be expanded here.
[0104] Operation 132: Process the iteratively refined features corresponding to the first label through a forward network component to obtain target refined features corresponding to the first label; the target refined features corresponding to the first label have an equal number of features as the refined features corresponding to the first label.
[0105] Operation 132 involves processing the iteratively refined features corresponding to the first label using a forward network component (i.e., a multilayer perceptron). The core purpose of operation 132 is to further process the iteratively refined features through a multilayer perceptron to obtain target refined features corresponding to the first label. A multilayer perceptron is a feedforward neural network that includes multiple hidden layers, each of which includes multiple neurons. These neurons receive inputs through weighted connections and apply activation functions to generate outputs. Multilayer perceptrons are widely used for feature transformation and representation learning in machine learning tasks.
[0106] When implementing operation 132, the data processing system passes the iteratively refined features as input data to the multi-layer perceptron. The multi-layer perceptron processes the input data layer by layer according to the predefined network structure and weight parameters. The neurons in each hidden layer calculate the weighted sum of their inputs and apply activation functions (such as ReLU, sigmoid, or tanh, etc.) to introduce nonlinear characteristics. Ultimately, the output layer of the multi-layer perceptron produces a target refined feature with the same dimension as the input feature.
[0107] For example, assume that the iteratively refined feature is a vector of 15 elements, denoted as [f1,f2,...,f15]. A multilayer perceptron can be a network with a single hidden layer, containing 10 neurons, using the ReLU activation function. In the input layer, each neuron receives an element of the iteratively refined feature as input. In the hidden layer, each neuron calculates the weighted sum of its inputs and applies the ReLU function. Finally, in the output layer, the network produces a target refined feature vector containing 15 elements, denoted as [t1,t2,...,t15]. It should be noted that the specific structure of the multilayer perceptron (including the number of hidden layers, the number of neurons, and the choice of activation function) will be adjusted and optimized according to the actual application scenario and data. In addition, when training a multilayer perceptron, it is also necessary to define a loss function and an optimization algorithm so that the weight parameters of the network can be updated through the backpropagation algorithm to minimize the prediction error and improve the performance of the model.
[0108] Operation 133: Replace the refined feature corresponding to the first label in the annotated refined feature with the target refined feature corresponding to the first label to obtain a data mapping feature.
[0109] The goal of operation 133 is to replace the refined features corresponding to the first label in the annotated refined features with the target refined features processed by the multi-layer perceptron, thereby obtaining updated data mapping features.
[0110] Specifically, the execution process of operation 133 is as follows: the data processing system first obtains the annotated refined features, which is a set of refined features corresponding to multiple labels. Then, it locates the refined features corresponding to the first label, which is a vector that records the information associated with the first label. Next, the data processing system replaces the original refined features with the target refined features generated in operation 132. The target refined feature is also a vector, but it has been processed by a multi-layer perceptron and may contain more abstract and useful information. Finally, the data processing system saves the updated annotated refined feature set as a data mapping feature for use in subsequent machine learning models.
[0111] For example, assume that the annotated refined features include refined features corresponding to three labels: [A_feature, B_feature, C_feature], where A_feature is the refined feature corresponding to the first label. After operation 132, the target refined feature A_target_feature corresponding to the first label is obtained. Then, when executing operation 133, the data processing system will replace A_feature with A_target_feature to obtain the updated data mapping feature: [A_target_feature, B_feature, C_feature].
[0112] It should be noted that operation 133 only replaces the refined features corresponding to the first label, and the refined features corresponding to other labels remain unchanged. This is because in actual applications, only the refined features corresponding to some labels may need to be processed by a multi-layer perceptron to obtain a more effective representation. Of course, according to specific needs and data conditions, similar replacement operations can also be performed on the refined features corresponding to other labels. In addition, it should be emphasized that operation 133 is only a link in the entire data mapping feature generation process. In actual applications, a series of other operations and processing may be required to obtain the final data mapping features. These operations may include but are not limited to feature selection, feature dimensionality reduction, feature standardization, etc. The specific operations and processing methods to be used need to be determined based on the actual application scenario and data conditions.
[0113] In an optional implementation, the above operation 11, extracting the specified type data features of the heat energy meter data contained in the heat energy meter data set to be processed according to the specified type data detection component, may include the following operations:
[0114] Operation 111: extracting a data range of a specified type from the heat energy meter data set to be processed, and obtaining a data set of a specified type corresponding to the heat energy meter data set to be processed.
[0115] Operation 112: extracting data features of a specified type of heat energy meter data from a data set of a specified type according to a data detection component of a specified type.
[0116] The goal of operation 111 is to extract a specific type of data range from the heat meter data set to be processed, so as to obtain a subset containing only the specific type of data, i.e., a specified type data set. The "specified type" here may refer to a certain attribute or feature of the data, such as temperature reading, flow data, timestamp, etc.
[0117] For example, if the heat meter data set to be processed contains multiple types of data (such as temperature, pressure, flow, etc.), and the focus is on temperature data, then operation 111 will extract all temperature-related data from this data set to form a new data set, namely a data set of the specified type.
[0118] This process may involve operations such as traversing, filtering, and extracting data sets. The specific implementation method depends on the storage structure and access method of the data set. For example, if the data set is stored in a database, SQL query statements can be used to extract data of a specified type; if the data set is stored in a file, file reading and parsing operations can be used to extract data.
[0119] The goal of operation 112 is to further extract specific types of data features of the heat energy meter data from the specified type of data set. These features are usually key information for subsequent data analysis or machine learning model training.
[0120] In this step, the specified type of data detection component plays an important role. This component may be a pre-trained machine learning model, such as a deep learning neural network, support vector machine (SVM), or decision tree, which is specially designed to extract useful features from a specific type of data.
[0121] For example, if the specified type of data set contains temperature data, then the specified type of data detection component may be trained to identify features such as outliers, periodic patterns, or trend changes in the temperature data. These features may be very useful for subsequent tasks such as energy consumption analysis, fault prediction, or system optimization. Specifically, if the specified type of data detection component is a deep learning neural network, it may extract spatial and temporal features from the temperature data through multi-layer convolution and pooling operations; if it is an SVM model, it may map the temperature data to a high-dimensional feature space through a kernel function, so as to find a decision boundary in this space that can maximize the class interval.
[0122] Operation 11 can effectively extract specific types of data features useful for subsequent analysis or modeling from the original heat meter data set by combining the two steps of data extraction and feature extraction.
[0123] In an optional implementation, operation 30, obtaining the associated focused data set corresponding to the heat energy meter data set to be processed according to the latent space data set, the data mapping feature and the specified type data masker, may include the following operations:
[0124] Operation 31: obtaining an initial associated focused data set corresponding to the heat energy meter data set to be processed based on the latent space data set and the data mapping features according to the first algorithm component.
[0125] Specifically, the following formula can be used:
[0126]
[0127] Where W is the initial correlation focus dataset; f is the normalized exponential function (softmax); A is the latent space dataset; S is the data mapping feature, S T is its transpose; g is the number of features of the latent space dataset.
[0128] Operation 32: Mask (i.e., shield) other ranges outside the specified type data range in the initial associated focused data set through a specified type data masker to obtain an associated focused data set corresponding to the heat energy meter data set to be processed.
[0129] The masker is a data sequence or array with the same data length or size as the original data set, in which each data can mark the specified position of the original data set, that is, the specified type of data range and other ranges outside the specified type of data range. The masker can distinguish the above two ranges by 1 and 0, and there is no specific limitation. The specified type of data masker is the data range corresponding to the specified type of data, which can be marked with 1, and the other ranges outside the specified type of data range, that is, the mask range, can be marked with 0.
[0130] Operation 30 mainly involves obtaining a related focused dataset (also called a cross attention dataset) corresponding to the heat meter dataset to be processed according to the latent space dataset, the data mapping feature and the specified type data masker. This dataset is intended to describe the response degree of the embedded information corresponding to different labels at different positions of the latent space dataset.
[0131] In an optional implementation scheme, the method provided in the embodiment of the present disclosure is executed by a data processing algorithm (a neural network algorithm), then the heat meter data processing method provided by the present disclosure also includes an optimization process of the data processing algorithm, which may specifically include the following operations:
[0132] Operation 100: Obtain at least one learning template of a data processing algorithm, each learning template including a pair of template heat energy meter data sets and template adjustment annotations; the template heat energy meter data sets are data sets having data features of a specified type of heat energy meter data, and the template adjustment annotations are annotation information indicating the heat energy meter data adjustment requirements in the template heat energy meter data sets.
[0133] Operation 200: obtaining a template data mapping feature through a template heat energy table data set and template adjustment annotations according to a data processing algorithm, wherein the template data mapping feature includes a representation carrier of the template heat energy table data set and a representation carrier of the template adjustment annotations.
[0134] Operation 300: down-sample the template heat energy meter data set according to a data processing algorithm to obtain a template latent space data set; the template latent space data set is a data set with a smaller number of features than the template heat energy meter data set and retains data features of a specified type of heat energy meter data.
[0135] Operation 400: Obtain an associated focused data set corresponding to a template heat energy meter data set according to a data processing algorithm based on a template latent space data set, template data mapping features, and a template specified type data masker. The template specified type data masker is configured to identify a specified type data range and other ranges except the specified type data range in the template heat energy meter data set. The associated focused data set is used to generate adjustment data corresponding to the heat energy meter data adjustment requirements in the specified type data range.
[0136] Operation 500: transforming the template latent space dataset by mapping features of the template data and associating the focused dataset according to a data processing algorithm to obtain a transformed heat energy table dataset corresponding to the template heat energy table dataset.
[0137] Operation 600: modifying algorithm parameters of a data processing algorithm through a template heat energy table data set and a transformed heat energy table data set to obtain an optimized data processing algorithm.
[0138] Operation 100 is to obtain a learning template. First, the data processing system needs to obtain a learning template for the data processing algorithm. These learning templates are actually training samples, each of which includes a pair of template heat meter data sets and template adjustment annotations. The template heat meter data set is a data set with characteristics of a specific type of data, and the template adjustment annotation provides annotation information on how to adjust these heat meter data. For example, the template heat meter data set may contain temperature, flow, and pressure readings over a period of time, and the template adjustment annotation may indicate which readings are inaccurate and need to be adjusted.
[0139] Operation 200 is to generate template data mapping features. Next, the data processing system uses a data processing algorithm to process the template heat energy table data set and the template adjustment annotation to generate template data mapping features. These features include a representation carrier (such as a feature vector) of the template heat energy table data set and a representation carrier (such as a label vector) of the template adjustment annotation. These representation carriers can capture the inherent relationship and pattern between the data set and the annotation.
[0140] In operation 300, the template latent space data set is obtained by downsampling. The data processing system downsamples the template heat meter data set to reduce the dimension and quantity of the data while retaining key feature information, thereby obtaining the template latent space data set. This process helps to reduce computational complexity and improve processing efficiency. For example, data downsampling can be achieved through techniques such as principal component analysis (PCA) or autoencoders.
[0141] Operation 400 is to generate an associated focused dataset. After the data processing system obtains the template latent space dataset, it combines the template data mapping features and the template specified type data masker to generate an associated focused dataset. The template specified type data masker is configured to identify a specific type of data range (such as temperature readings) and other ranges (such as non-temperature readings) in the template heat meter dataset. The associated focused dataset focuses on generating adjustment data corresponding to the heat meter data adjustment requirements within the specified type of data range. This can be achieved through a cross-attention mechanism, in which attention weights are used to measure the correlation between different data features.
[0142] Operation 500 is to transform and obtain a transformed heat energy meter data set. The data processing system uses the template data mapping features and the associated focus data set to transform the template latent space data set to obtain a transformed heat energy meter data set. This transformation process may include rotation, scaling, translation or other linear or nonlinear transformations of the data, in order to make the transformed data set better meet the actual heat energy meter data adjustment requirements.
[0143] In operation 600, the algorithm parameters are corrected and the algorithm is optimized. The data processing system corrects the parameters of the data processing algorithm by comparing the difference between the original template heat meter data set and the transformed heat meter data set. This process usually involves the calculation of the loss function and the application of the gradient descent optimization algorithm. Through continuous iteration and optimization, the data processing system can gradually improve the performance and accuracy of the data processing algorithm, and finally obtain an optimized data processing algorithm. This optimized algorithm will be able to process and analyze the heat meter data more effectively, providing strong support for subsequent energy management and decision-making.
[0144] Optionally, operation 500, transforming the template latent space dataset by mapping features of the template data and associating the focused dataset according to the data processing algorithm to obtain a transformed heat energy table dataset corresponding to the template heat energy table dataset, may specifically include:
[0145] Operation 510: Perform n enhancements on the template latent space dataset according to the first algorithm component included in the data processing algorithm to obtain a template enhanced dataset, where n is a natural number not less than 1.
[0146] Operation 520: Perform n times of enhanced data estimation and data restoration on the template enhanced data set based on the data mapping features and the associated focused data set according to the first algorithm component to obtain a template restored data set.
[0147] Operation 530: Restoring the number of features of the template restored data set to the number of features corresponding to the template heat energy table data set to obtain a transformed heat energy table data set.
[0148] The principles of operations 510 to 530 may refer to the above operations 41 to 43, which will not be described in detail here.
[0149] As an optional implementation scheme, operation 520, according to the first algorithm component, based on the data mapping features and the associated focused data set, performs n times of enhanced data estimation and data restoration on the template enhanced data set to obtain the template restored data set, which may specifically include:
[0150] Operation 521: according to the first algorithm component, based on the template data mapping features and the associated focused data set, estimate the enhanced data added to the template latent space data set for the kth time to obtain the kth estimated enhanced data, where k is taken from 1 to n.
[0151] Operation 522: Delete the kth estimated enhanced data from the template enhanced data set to obtain the iterated template enhanced data set; the initialized template enhanced data set is the template enhanced data set.
[0152] If k is less than n, take l as k after iteration, l=k+1, estimate the enhanced data added to the template latent space dataset for the kth time based on the template data mapping features and the associated focused dataset according to the first algorithm component, and repeat the step of obtaining the kth estimated enhanced data; if k is equal to n, determine the dataset of the template enhanced after iteration as the template restoration dataset.
[0153] The principles of operations 521 to 522 may refer to the above operations 421 to 422, which will not be described in detail here.
[0154] As an optional implementation scheme, operation 200, according to a data processing algorithm, obtains template data mapping features through the template heat energy table data set and the template adjustment annotation, which may specifically include:
[0155] Operation 210: extracting data features of a specified type of heat energy meter data contained in a template heat energy meter data set according to a specified type data detection component.
[0156] Operation 220: According to the data refining component included in the data processing algorithm, feature refinement is performed on the template adjustment annotation to obtain template annotation refined features.
[0157] Operation 230: obtaining template data mapping features by specifying type data features of heat energy table data and refining features by template annotation.
[0158] The principles of operations 210 to 230 may refer to the above operations 11 to 13, which will not be described in detail here.
[0159] As an optional implementation scheme, the template adjustment annotation includes at least one tag, and the template annotation refined features include at least one refined feature that matches each tag. Then, operation 230, through the heat energy meter data specified type data features and the template annotation refined features, obtain the template data mapping features, which may specifically include:
[0160] Operation 231: Fusing the refined features corresponding to the first label in at least one label with the data features of the specified type of the heat meter data to obtain the iteratively refined features corresponding to the first label; the first label is a pre-deployed label that describes the characteristics of the heat meter data.
[0161] Operation 232: Process the iteratively refined features corresponding to the first label through the forward network component to obtain the target refined features corresponding to the first label; the target refined features corresponding to the first label have an equal number of features as the refined features corresponding to the first label.
[0162] Operation 233: replacing the refined features corresponding to the first label in the template annotation refined features with the target refined features corresponding to the first label, to obtain the template data mapping features.
[0163] The principles of operations 231 to 233 may refer to the above operations 131 to 133, which will not be described in detail here.
[0164] As an optional implementation scheme, operation 400, according to the data processing algorithm, obtains the associated focused data set corresponding to the template heat energy table data set according to the template latent space data set, the template data mapping feature and the template specified type data masker, which may specifically include:
[0165] Operation 410: According to a first algorithm component included in the data processing algorithm, an initial associated focused data set corresponding to the template heat energy table data set is obtained according to the template latent space data set and the data mapping feature.
[0166] Operation 420: Mask other ranges outside the specified type data range in the initial associated focused data set through the template specified type data masker to obtain the associated focused data set corresponding to the template heat energy table data set.
[0167] The principles of operations 410 to 420 may refer to the above operations 31 to 32, and will not be described in detail here.
[0168] As an optional implementation scheme, operation 600, by using the template heat energy table data set and the transformed heat energy table data set, the algorithm parameters of the data processing algorithm are modified to obtain an optimized data processing algorithm, which may specifically include:
[0169] Operation 610: Obtain a comprehensive cost through a template heat energy table data set and a transformed heat energy table data set, the comprehensive cost including an enhancement cost, a data information cost and a specified type of data position cost; wherein the enhancement cost is configured to evaluate the loss of added enhancement data and estimated enhancement data, the data information cost is configured to evaluate the loss between the representation carrier representation of the template heat energy table data set and the transformed heat energy table data set in a specified type of data range, and the specified type of data position cost is configured to evaluate the adjustment performance of the associated focused data set in the specified type of data range.
[0170] In operation 610, the data processing system evaluates the performance of the current data processing algorithm by calculating and analyzing the comprehensive cost between the template heat energy table data set and the transformed heat energy table data set, and provides a basis for subsequent algorithm parameter modification.
[0171] The comprehensive cost is a composite indicator, which includes three parts: enhancement cost, data information cost and location cost of specified type of data. These three costs evaluate the performance of data processing algorithms in processing heat meter data from different perspectives.
[0172] The enhancement cost is mainly used to evaluate the difference between the added enhancement data (such as new data generated by data enhancement technology) and the estimated enhancement data loss. In practical applications, enhancement data is usually used to expand the training data set and improve the generalization ability of the model. However, if the difference between the enhancement data and the original data is too large, it may cause the model performance to deteriorate. Therefore, the calculation of the enhancement cost needs to consider the similarity and difference between the enhancement data and the original data.
[0173] The data information cost focuses on the loss between the representation carrier representation of the template heat meter data set and the transformed heat meter data set in the specified type of data range (such as temperature, flow and other key parameters). The representation carrier is an abstract representation of the data that can capture the inherent structure and pattern of the data. If the transformed data set has a large difference in the representation of key parameters from the original data set, it means that the data processing algorithm may have deficiencies in the processing of these parameters. Therefore, the calculation of the data information cost needs to consider the similarities and differences in the representation of key parameters of the data sets.
[0174] The specified type of data location cost is mainly used to evaluate the adjustment performance of the associated focused dataset in the specified type of data range. The associated focused dataset is a subset that focuses on processing a specific type of data, and its adjustment performance directly affects the final data processing results. If the adjustment ability of the associated focused dataset in the specified type of data range is insufficient, it may lead to inaccurate final processing results. Therefore, the calculation of the specified type of data location cost needs to consider the adjustment accuracy and stability of the associated focused dataset in the specified type of data range.
[0175] Combining the above three costs, the data processing system can calculate the comprehensive cost of the current data processing algorithm when processing heat meter data. This comprehensive cost provides an important basis for the subsequent algorithm parameter modification.
[0176] Taking a specific algorithm as an example, the enhancement cost can be obtained by calculating the mean square error (MSE) or structural similarity index (SSIM) between the enhanced data and the original data; the data information cost can be obtained by calculating the cosine similarity or Euclidean distance between the representation vectors of the template heat meter data set and the transformed heat meter data set in the specified type of data range; the specified type of data position cost can be obtained by calculating the adjustment error rate or adjustment stability index of the associated focus data set in the specified type of data range. These specific calculation methods can be selected and adjusted according to the actual application scenario and data characteristics.
[0177] Operation 620: modifying the algorithm parameters of the data processing algorithm according to the comprehensive cost to obtain an optimized data processing algorithm.
[0178] In operation 610, the data processing system has obtained a comprehensive cost through calculation and analysis, and this comprehensive cost evaluates the performance of the current data processing algorithm. Operation 620 is to modify the algorithm parameters of the data processing algorithm according to this comprehensive cost, so as to obtain an optimized data processing algorithm. In operation 620, the data processing system uses the comprehensive cost calculated in operation 610 to guide the modification of the algorithm parameters. This process is usually implemented by an optimization algorithm (such as a gradient descent algorithm). The optimization algorithm adjusts the value of the algorithm parameters according to the size and direction of the comprehensive cost, with the goal of minimizing the comprehensive cost. Specifically, if the comprehensive cost is high, it means that the current data processing algorithm has a large error or deficiency when processing the heat meter data. At this time, the optimization algorithm adjusts the value of the algorithm parameters to reduce the comprehensive cost. The adjustment method can be to increase or decrease the value of certain parameters, or to change the interaction relationship between the parameters. This adjustment process will continue until a set of algorithm parameters that minimize the comprehensive cost is found.
[0179] Taking the gradient descent algorithm as an example, the data processing system calculates the gradient of the comprehensive cost with respect to the algorithm parameters (i.e., the partial derivative of the cost function with respect to the parameters). This gradient indicates the direction and step size of the movement of the algorithm parameters in the direction of reducing the comprehensive cost. Then, the data processing system will update the value of the algorithm parameters according to this gradient, usually by subtracting the product of the gradient and a learning rate. This process will be iterated many times until the comprehensive cost converges to a smaller value or reaches a preset number of iterations.
[0180] In practical applications, algorithm parameters can be weights and biases in neural networks, support vectors and kernel function parameters in support vector machines, splitting rules and leaf node values in decision trees, etc. By continuously modifying these parameters, the data processing system can gradually improve the performance and accuracy of the data processing algorithm.
[0181] It should be noted that the algorithm parameter modification process in operation 620 is an automated process, which is automatically completed by the data processing system. The modified data processing algorithm will be able to better adapt to and process the heat meter data, providing strong support for subsequent energy management and decision-making. At the same time, this optimization process can also be adjusted and improved according to actual conditions to adapt to different application scenarios and data characteristics.
[0182] As an optional implementation scheme, operation 610, obtaining a comprehensive cost through the template heat energy table data set and the transformed heat energy table data set, may specifically include:
[0183] Operation 611: Determine an enhancement cost by using the enhancement data and the estimated enhancement data added when transforming the template latent space dataset.
[0184] Operation 612: Determine the data information cost through the template heat energy table data set and the transformed heat energy table data set.
[0185] Operation 613: Determine the location cost of the specified type of data by using the template specified type data masker and the associated focused data set.
[0186] Operation 614: Determine a comprehensive cost according to the enhancement cost, the data information cost, and the location cost of the designated type of data.
[0187] In operation 611, the enhancement cost is mainly used to evaluate the difference between the enhanced data added to the template latent space dataset and the estimated enhanced data. The enhanced data is usually generated by some transformation or enhancement technology, aiming to increase the diversity and generalization ability of the dataset. However, if the added enhanced data is too different from the original data, it may cause the model performance to deteriorate.
[0188] In one example calculation formula:
[0189] Enhancement cost = ||E_data-E_estimate|| 2
[0190] Among them, E_data represents the actual enhanced data added, E_estimate represents the estimated enhanced data, ||...|| 2 Represents the square of the Euclidean norm, which is a measure of the difference between the two.
[0191] In operation 612, the data information cost focuses on the information loss between the template heat energy table data set and the transformed heat energy table data set. This cost is intended to evaluate whether the key information of the original data is retained during the data transformation process. If the transformed data set loses important information, subsequent data processing and analysis may be affected.
[0192] In one example calculation formula:
[0193] Data information cost = D(T_data,T_transformed)
[0194] Among them, T_data represents the template heat energy meter dataset, T_transformed represents the transformed heat energy meter dataset, and D represents a distance metric function (such as cosine similarity, Euclidean distance, etc.), which is used to measure the difference between the two datasets.
[0195] Specifically, as an optional implementation scheme, operation 612, determining the data information cost through the template heat energy table data set and the transformed heat energy table data set, may specifically include:
[0196] Operation 6121: extracting a specified type of data feature of a template heat energy table data set according to a specified type of data detection component to obtain a first specified type of data feature.
[0197] Operation 6122: extracting the designated type data feature of the transformed heat energy table data set according to the designated type data detection component to obtain a second designated type data feature.
[0198] Operation 6123: Obtain data information cost through a similarity evaluation value between the first specified type of data feature and the second specified type of data feature.
[0199] In the above operations 6121-6123, the data processing system determines the data information cost through a series of specific operations. This cost measures the similarity or difference between the template heat energy table data set and the transformed heat energy table data set in the specified type of data features. These operations and the calculation method of the data information cost will be explained in detail below.
[0200] Operation 6121 aims to extract the specified type data features of the template heat meter data set. First, the data processing system uses the specified type data detection component to analyze the template heat meter data set. This component is designed to identify and extract data features of a specific type in the data set, such as temperature readings, flow values, or timestamps. Through this process, the data processing system obtains the first specified type data features, which constitute the representation of the template data set on the specified type data.
[0201] For example, if the specified type of data is temperature readings, then the first specified type of data feature may include a series of temperature values, such as [22.5, 23.0, 23.5, ...], which reflect the changes in temperature in the template data set.
[0202] The purpose of operation 6122 is to extract the specified type data features of the transformed heat energy table data set. The data processing system performs similar operations on the transformed heat energy table data set. Using the same specified type data detection component, the data processing system extracts the corresponding type of data features in the transformed data set to obtain the second specified type data features. These features reflect the performance of the transformed data set on the same type of data.
[0203] Continuing with the temperature reading example above, the second specified type of data feature may be another series of temperature values, such as [22.8, 23.2, 23.6, ...], which are derived from the transformed data set and may be different from the temperature values in the template data set.
[0204] Operation 6123 is intended to evaluate the similarity between data features and obtain data information cost. The data processing system needs to compare the similarity between the first specified type of data features and the second specified type of data features. This similarity evaluation can be implemented by a variety of methods, such as calculating the cosine similarity, Euclidean distance between two feature vectors, or using a more complex machine learning model to evaluate their matching degree.
[0205] The calculation formula of data information cost can be determined according to the specific application scenario and similarity evaluation method. Taking cosine similarity as an example, data information cost can be defined as:
[0206] Data information cost = 1-cos(θ)
[0207] cos(θ)=(A·B) / (∣∣A∣∣·∣∣B∣∣)
[0208] Among them, A and B are the feature vectors of the first specified type of data feature and the second specified type of data feature, respectively, θ is the angle between the two vectors, · represents the dot product of the vectors, and ||·||| represents the modulus of the vector. The value range of cosine similarity is [-1,1], where 1 represents complete similarity, 0 represents no correlation, and -1 represents complete opposite. Therefore, by subtracting cosine similarity from 1, a value representing the difference or cost can be obtained. The larger this value is, the greater the difference between the two data sets in the specified type of data features.
[0209] This approach helps preserve key information during heat meter data processing and identifies differences that may be introduced by data transformation.
[0210] In operation 613, the location cost of the specified type of data is mainly used to evaluate the adjustment performance of the associated focused data set on the specified type of data range. This cost focuses on whether the location information of the specific type of data is maintained during the transformation process. If the location information is lost or changed, it may cause inaccuracy in subsequent processing.
[0211] In one example calculation formula:
[0212] Specified type data location cost = P(M_type, F_dataset)
[0213] Among them, M_type represents the template-specified type data masker (used to identify the location of a specific type of data), F_dataset represents the associated focused dataset, and P represents a certain position cost function (such as a distance metric based on position error), which is used to measure the degree of preservation of position information.
[0214] In operation 614, the comprehensive cost is the weighted sum of the above three costs, which comprehensively considers the difference of enhanced data, data information loss, and the change of the location of the specified type of data. By adjusting the weights of different costs, the importance of each cost can be balanced according to the specific application scenario and data characteristics.
[0215] In one example calculation formula:
[0216] Comprehensive cost = w1·enhancement cost + w2·data information cost + w3·specified type data location cost.
[0217] Among them, w1, w2 and w3 are weight coefficients used to adjust the relative importance of different costs in the comprehensive cost. These weight coefficients can be set and adjusted according to actual needs.
[0218] It should be noted that, in the embodiments of the present disclosure, if the above-mentioned heat meter data processing method 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 such an understanding, the technical solution of the embodiment of the present disclosure is essentially or 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 several 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 disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiments of the present disclosure are not limited to any specific hardware, software or firmware, or any combination of hardware, software, and firmware.
[0219] An embodiment of the present disclosure provides a data processing system, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.
[0220] The embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored thereon, 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 may be transient or non-transient. The embodiments of the present disclosure provide a computer program product, and the computer program product includes a non-transient 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 may 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 (Software Development Kit, SDK), etc.
[0221] Figure 2 A hardware entity diagram of a data processing system provided by an embodiment of the present disclosure, such as Figure 2 As shown, the hardware entity of the data processing 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.
[0222] 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 data processing 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).
[0223] When the processor 1001 executes the program, the steps of any of the above-mentioned heat meter data processing methods are implemented. The processor 1001 generally controls the overall operation of the data processing system 1000.
[0224] The embodiments of the present disclosure provide a computer storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the heat meter data processing method in any of the above embodiments. It should be pointed out 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 technical details not disclosed in the storage medium and device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding. It can be understood that the electronic device that implements the above processor function is not specifically limited in the embodiments of the present disclosure.
[0225] 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, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like.
[0226] In the several embodiments provided in the present disclosure, 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.
[0227] The above description is only an implementation mode of the present disclosure, but the protection scope of the present disclosure 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 disclosure, which should be included in the protection scope of the present disclosure.
Claims
1. A method for processing heat meter data, characterized in that: The method comprises: A data mapping feature is obtained through the heat energy table data set to be processed and the adjustment annotation, wherein the data mapping feature includes a characterization carrier of the heat energy table data set to be processed and a characterization carrier of the adjustment annotation; the heat energy table data set to be processed is a data set having a data feature of a specified type of heat energy table data, and the adjustment annotation is annotation information indicating an adjustment requirement for the heat energy table data; Downsampling the heat energy meter data set to be processed to obtain a latent space data set; the latent space data set is a data set with a smaller number of features than the heat energy meter data set to be processed and retains data features of a specified type of the heat energy meter data; According to the latent space data set, the data mapping feature and the specified type data masker, an associated focused data set corresponding to the heat energy meter data set to be processed is obtained, wherein the specified type data masker is configured to identify a specified type data range in the heat energy meter data set to be processed and other ranges outside the specified type data range, and the associated focused data set is used to generate adjustment data corresponding to the heat energy meter data adjustment requirement in the specified type data range; The latent space dataset is transformed by using the data mapping features and the associated focused dataset to obtain a transformed heat energy table dataset; the transformed heat energy table dataset retains the specified type of data features of the heat energy table dataset to be processed and has the heat energy table data adjustment requirements indicated by the adjustment annotation; The step of transforming the latent space dataset through the data mapping feature and the associated focused dataset to obtain a transformed heat energy table dataset includes: Performing n enhancements on the latent space dataset according to the first algorithm component to obtain an enhanced dataset, where n is a natural number not less than 1; According to the first algorithm component, based on the data mapping features and the associated focused data set, performing n times of enhanced data estimation and data restoration on the enhanced data set to obtain a restored data set; Restoring the number of features of the restored data set to the number of features corresponding to the heat energy table data set to be processed, to obtain the transformed heat energy table data set; The first algorithm component performs n times of enhanced data estimation and data restoration on the enhanced data set based on the data mapping feature and the associated focused data set to obtain a restored data set, including: According to the first algorithm component, based on the data mapping feature and the associated focused data set, estimating the enhanced data added to the latent space data set for the kth time, to obtain the kth estimated enhanced data, where k is taken from 1 to n; Deleting the kth estimated enhanced data from the enhanced data set to obtain an iterated enhanced data set; the enhanced data set initialized is the enhanced data set; If k is less than n, taking l as k after iteration, l=k+1, and repeating the step of estimating the k-th enhanced data added to the latent space dataset based on the data mapping features and the associated focused dataset according to the first algorithm component to obtain the k-th estimated enhanced data; If k is equal to n, the enhanced data set after the iteration is determined as the restored data set; The data mapping features are obtained by using the heat energy table data set to be processed and the adjustment annotations, including: Extracting the specified type data features of the heat energy meter data contained in the heat energy meter data set to be processed according to the specified type data detection component; performing feature extraction on the adjustment annotation according to the data extraction component to obtain annotation extraction features; Obtaining the data mapping feature through the specified type data feature of the heat energy meter data and the annotation extraction feature; The step of obtaining, according to the latent space data set, the data mapping feature and the specified type data masker, a related focused data set corresponding to the heat energy meter data set to be processed comprises: Obtaining, according to the first algorithm component, an initial associated focused data set corresponding to the heat energy meter data set to be processed based on the latent space data set and the data mapping feature; The designated type data masker is used to mask other ranges outside the designated type data range in the initial associated focused data set to obtain an associated focused data set corresponding to the heat energy meter data set to be processed.
2. The method according to claim 1, characterized in that The adjustment annotation includes at least one tag, and the annotation refined features include refined features matched by each of the at least one tag; The step of obtaining the data mapping feature by specifying the type data feature of the heat energy meter data and the annotation extraction feature comprises: The refined features corresponding to the first label of the at least one label are merged with the data features of the specified type of the heat energy meter data to obtain the iteratively refined features corresponding to the first label; the first label is a pre-deployed label describing the characteristics of the heat energy meter data; Processing the iteratively refined features corresponding to the first label through a forward network component to obtain target refined features corresponding to the first label; the target refined features corresponding to the first label have an equal number of features as the refined features corresponding to the first label; The refined features corresponding to the first label in the annotated refined features are replaced with target refined features corresponding to the first label to obtain the data mapping features.
3. The method according to claim 1, characterized in that The extracting of the specified type data features of the heat energy meter data contained in the heat energy meter data set to be processed according to the specified type data detection component includes: Extract the designated type data range in the heat energy meter data set to be processed to obtain the designated type data set corresponding to the heat energy meter data set to be processed; extract the designated type data feature of the heat energy meter data from the designated type data set according to the designated type data detection component.
4. The method according to any one of claims 1 to 3, characterized in that The method is performed by a data processing algorithm, and the method also includes an optimization process of the data processing algorithm, including: Acquire at least one learning template of the data processing algorithm, each of the learning templates comprising a pair of template heat energy table data sets and template adjustment annotations; the template heat energy table data sets are data sets having data features of a specified type of heat energy table data, and the template adjustment annotations are annotation information indicating heat energy table data adjustment requirements in the template heat energy table data sets; Obtaining a template data mapping feature through the template heat energy table data set and the template adjustment annotation according to the data processing algorithm, wherein the template data mapping feature includes a representation carrier of the template heat energy table data set and a representation carrier of the template adjustment annotation; Downsampling the template heat energy meter data set according to the data processing algorithm to obtain a template latent space data set; the template latent space data set is a data set with a smaller number of features than the template heat energy meter data set and retains data features of a specified type of the heat energy meter data; According to the data processing algorithm, the associated focused data set corresponding to the template heat energy meter data set is obtained according to the template latent space data set, the template data mapping features and the template specified type data masker, the template specified type data masker is configured to identify the specified type data range in the template heat energy meter data set and other ranges except the specified type data range, and the associated focused data set is used to generate the adjustment data corresponding to the heat energy meter data adjustment requirement in the specified type data range; transforming the template latent space dataset through the template data mapping features and the associated focused dataset according to the data processing algorithm to obtain a transformed heat energy table dataset corresponding to the template heat energy table dataset; The algorithm parameters of the data processing algorithm are modified by using the template heat energy table data set and the transformed heat energy table data set to obtain an optimized data processing algorithm.
5. The method according to claim 4, characterized in that The step of transforming the template latent space dataset through the template data mapping feature and the associated focused dataset according to the data processing algorithm to obtain a transformed heat energy table dataset corresponding to the template heat energy table dataset includes: Performing n enhancements on the template latent space dataset according to the first algorithm component included in the data processing algorithm to obtain a template enhanced dataset, where n is a natural number not less than 1; According to the first algorithm component, based on the data mapping features and the associated focused data set, performing n times of enhanced data estimation and data restoration on the template enhanced data set to obtain a template restored data set; The number of features of the template restored data set is restored to the number of features corresponding to the template heat energy table data set to obtain the transformed heat energy table data set.
6. The method according to claim 5, characterized in that The first algorithm component performs n times of enhanced data estimation and data restoration on the template enhanced data set based on the data mapping feature and the associated focused data set to obtain a template restored data set, including: According to the first algorithm component, based on the template data mapping feature and the associated focused data set, estimating the enhanced data added to the template latent space data set for the kth time, to obtain the kth estimated enhanced data, where k is taken from 1 to n; Deleting the kth estimated enhanced data from the template enhanced data set to obtain the iterated template enhanced data set; the initialized template enhanced data set is the template enhanced data set; If k is less than n, taking l as k after iteration, l=k+1, and repeating the step of estimating the k-th enhanced data added to the template latent space dataset based on the template data mapping features and the associated focused dataset according to the first algorithm component to obtain the k-th estimated enhanced data; If k is equal to n, the dataset in which the template is enhanced after the iteration is determined as the template restoration dataset.
7. The method according to claim 4, characterized in that The step of obtaining the template data mapping feature through the template heat energy table data set and the template adjustment annotation according to the data processing algorithm includes: Extracting the specified type data features of the heat energy meter data contained in the template heat energy meter data set according to the specified type data detection component; According to the data refining component included in the data processing algorithm, feature refining is performed on the template adjustment annotation to obtain template annotation refined features; The template data mapping feature is obtained by using the specified type data feature of the heat energy meter data and the template annotation and refinement feature.
8. The method according to claim 7, characterized in that The template adjustment annotation includes at least one tag, and the template annotation refined features include the refined features matched by the at least one tag; the template data mapping features are obtained by specifying the type data features of the heat energy meter data and the template annotation refined features, including: The refined features corresponding to the first label of the at least one label are merged with the data features of the specified type of the heat energy meter data to obtain the iteratively refined features corresponding to the first label; the first label is a pre-deployed label describing the characteristics of the heat energy meter data; Processing the iteratively refined features corresponding to the first label through a forward network component to obtain target refined features corresponding to the first label; the target refined features corresponding to the first label have an equal number of features as the refined features corresponding to the first label; The refined features corresponding to the first label in the template annotation refined features are replaced with the target refined features corresponding to the first label to obtain the template data mapping features.
9. The method according to claim 4, characterized in that The method of obtaining, according to the data processing algorithm, the associated focused data set corresponding to the template heat energy table data set based on the template latent space data set, the template data mapping features and the template specified type data masker, comprises: According to the first algorithm component included in the data processing algorithm, an initial associated focused data set corresponding to the template heat energy table data set is obtained according to the template latent space data set and the data mapping feature; Through the template specified type data masker, other ranges outside the specified type data range in the initial associated focused data set are masked to obtain an associated focused data set corresponding to the template heat energy table data set; The method of modifying the algorithm parameters of the data processing algorithm by using the template heat energy table data set and the transformed heat energy table data set to obtain an optimized data processing algorithm includes: Obtaining a comprehensive cost through the template heat energy table data set and the transformed heat energy table data set, the comprehensive cost comprising an enhancement cost, a data information cost and a specified type of data position cost; the enhancement cost is configured to evaluate the loss of the added enhancement data and the estimated enhancement data, the data information cost is configured to evaluate the loss between the representation carrier representation of the template heat energy table data set and the transformed heat energy table data set in a specified type of data range, and the specified type of data position cost is configured to evaluate the regulation performance of the associated focused data set in the specified type of data range; The algorithm parameters of the data processing algorithm are modified according to the comprehensive cost to obtain the optimized data processing algorithm.
10. The method according to claim 9, characterized in that The step of obtaining the comprehensive cost through the template heat energy table data set and the transformed heat energy table data set includes: Determining an enhancement cost by adding the enhancement data and the estimated enhancement data when transforming the template latent space dataset; Determining data information cost through the template heat energy table data set and the transformed heat energy table data set; Determine the location cost of the specified type of data by using the template specified type of data masker and the associated focused data set; The comprehensive cost is determined according to the enhancement cost, the data information cost and the location cost of the specified type of data.
11. The method according to claim 10, characterized in that The step of determining the data information cost by using the template heat energy table data set and the transformed heat energy table data set includes: Extracting the designated type data feature of the template heat energy meter data set according to the designated type data detection component to obtain a first designated type data feature; The designated type data feature of the transformed heat energy table data set is extracted according to the designated type data detection component to obtain a second designated type data feature; and the data information cost is obtained through a similarity evaluation value between the first designated type data feature and the second designated type data feature.
12. A data processing 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 11 are implemented.
Citation Information
Patent Citations
Upper limb mirror image rehabilitation training and recognition method and device
CN114005073A
A system and method for automated labeling and annotating unstructured medical datasets
US20200286614A1
