Water affairs data processing method and system based on digital twin
The edge-side data processing model performs preprocessing and feature extraction of water affairs data in advance, combined with cloud recognition, to solve the real-time and accuracy problems in existing water affairs data processing and improve the accuracy and efficiency of digital twin display.
Patent Information
- Application Number
- CN202410088203.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-22
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-01-22
AI Technical Summary
The existing water affairs data processing method uses centralized computing in the cloud, which has weak real-time performance and unsatisfactory data processing and identification accuracy, resulting in inaccurate digital twin display results and poor reference.
The water affairs data processing method based on digital twins is used to perform data preprocessing in advance through the edge-side data processing model, separate set feature extraction and matrix interactive merging. After dimensionality reduction, the data set is loaded to the cloud for further identification, and the target monitoring status data is output. Data status information.
It improves the efficiency of water affairs data processing, reduces cloud data processing pressure, and enhances real-time response speed and data processing accuracy.
Smart Images

Figure CN118051854B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing, and in particular to a water affairs data processing method and system based on digital twins. Background Art
[0002] With the acceleration of urbanization and population growth, water management is facing increasing challenges. Traditional water management methods mainly rely on manual monitoring and manual operation, which have problems such as low efficiency, inaccurate data, and slow response. In order to solve these problems, digital twin technology came into being.
[0003] Digital twin is a technology that uses physical models, sensor data and virtual reality technology to simulate physical objects or systems. In water management, digital twin technology can digitally model the various components of the water system (such as water supply networks, sewage treatment plants, pumping stations, etc.), and integrate real-time monitoring data with the model to achieve real-time monitoring, prediction and optimization of the water system. The digital twin model needs to be dynamically updated based on the actual state of the system during the visualization process. At this time, water data processing is involved. The existing water data processing methods are based on traditional data analysis and mining technologies, such as data warehouses, data mining, machine learning, etc. Although these methods can effectively process and analyze water data, they are often concentrated in the cloud during processing, which puts a lot of computing pressure on the cloud and has weak real-time performance. At the same time, the accuracy of data processing and identification is not ideal, which makes the digital twin display results inaccurate and poor reference. Summary of the invention
[0004] The present invention provides a water affairs data processing method and system based on digital twins.
[0005] According to one aspect of the present disclosure, a water affairs data processing method based on digital twin is provided, comprising:
[0006] Access to water monitoring datasets;
[0007] The water conservancy monitoring data set is loaded into an edge-side data processing model, and A data set representation matrices corresponding to the water conservancy monitoring data set are processed based on the edge-side data processing model to obtain estimated information on whether there is target monitoring status data in the water conservancy monitoring data set; wherein the A data set representation matrices are obtained by performing feature engineering on the water conservancy monitoring data set, and the edge-side data processing model is configured to perform a diversity set feature extraction operation on the A data set representation matrices, and perform monitoring status data estimation on the diversity set feature extraction results, wherein A is not less than 1;
[0008] When the estimated information indicates that the target monitoring status data exists in the water affairs monitoring data set, the water affairs monitoring data set is loaded into the cloud data processing model, and the data category of the target monitoring status data in the water affairs monitoring data set is estimated based on the cloud data processing model, and the data status information corresponding to the target monitoring status data is output;
[0009] Based on the data status information, a visualization is performed in the corresponding area of the preset water affairs digital twin.
[0010] As an implementation mode, the water affairs monitoring data set is loaded into an edge-side data processing model, and A data set representation matrices corresponding to the water affairs monitoring data set are processed based on the edge-side data processing model to obtain estimated information on whether there is target monitoring status data in the water affairs monitoring data set, including:
[0011] Loading the water affairs monitoring data set into the feature engineering network layer in the edge-side data processing model, performing feature engineering on the water affairs monitoring data set based on the feature engineering network layer, and obtaining A data set representation matrices;
[0012] The A data set representation matrices are loaded into a diversity combination network layer in the edge-side data processing model, the A data set representation matrices are divided into K sets based on the diversity combination network layer, each set includes one or more data set representation matrices, and matrix interaction merging is performed on the data set representation matrices in each of the K sets to obtain B data set interaction representation matrices, wherein B is not less than 1, K is not greater than B, and K is not less than 1;
[0013] Performing matrix splicing on the B data set interaction representation matrices to obtain a first spliced representation matrix;
[0014] The first splicing characterization matrix is loaded into the state estimation network layer in the edge-side data processing model, and monitoring state data of the first splicing characterization matrix is estimated based on the state estimation network layer to obtain estimation information of whether there is target monitoring state data in the water affairs monitoring data set.
[0015] As an implementation mode, the A data set representation matrices are loaded into the diversity combination network layer in the edge side data processing model, the A data set representation matrices are divided into K sets based on the diversity combination network layer, each set contains one or more data set representation matrices, and the data set representation matrices in each set of the K sets are interactively merged to obtain B data set interactive representation matrices, including:
[0016] Delimiting the A data set representation matrices into K sets, performing a filtering operation on the data set representation matrix in each of the K sets, and obtaining data set filtering representation matrices of the K sets;
[0017] Mixing the representation matrices of the data set filter representation matrices belonging to different sets in the data set filter representation matrices of the K sets to obtain mixed representation matrices of the data set of the K sets;
[0018] Performing matrix addition calculation on the data set filter representation matrices belonging to different sets in the data set filter representation matrices of the K sets to obtain K data set superposition representation matrices;
[0019] Performing a hierarchical filtering operation on the mixed representation matrices of the K sets of data sets and the superimposed representation matrices of the K data sets to obtain L data set hierarchical filtering representation matrices, where L is not greater than K;
[0020] Performing feature mapping on the mixed representation matrices of the data sets of the K sets to obtain data set mapping representation matrices of the K sets;
[0021] The layered filtering representation matrices of the L data sets are concatenated with the data set mapping representation matrices of the K sets to obtain B data set interaction representation matrices.
[0022] As an implementation mode, the A data set representation matrices are loaded into the diversity combination network layer in the edge side data processing model, the A data set representation matrices are divided into K sets based on the diversity combination network layer, each set contains one or more data set representation matrices, and the data set representation matrices in each set of the K sets are interactively merged to obtain B data set interactive representation matrices, including:
[0023] The A data set representation matrices are loaded into a first component network layer in the diversity combination network layer, the A data set representation matrices are divided into K sets based on the first component network layer, and matrix interaction merging is performed on the data set representation matrices in each of the K sets to obtain (2K+1)·W first data set interaction representation matrices, where W is the number of data set filter representation matrices obtained by filtering the data set representation matrices in each set, and W is not less than 1;
[0024] The (2K+1)·W first data set interaction representation matrices are loaded into the second component network layer in the diversity combination network layer, and the (2K+1)·W first data set interaction representation matrices are divided into K sets based on the second component network layer, and matrix interaction merging is performed on the first data set interaction representation matrix of each set in the K sets to obtain B data set interaction representation matrices, where B is equal to (2K+1)·U, U is the number of data set filter representation matrices obtained by performing filtering operations on the first data set interaction representation matrix of each set, and U is not less than 1.
[0025] As an implementation manner, the step of performing matrix splicing on the B data set interaction representation matrices to obtain a first spliced representation matrix includes:
[0026] Downsampling the B data set interaction representation matrices to obtain B first downsampled representation matrices corresponding to the B data set interaction representation matrices;
[0027] The B first down-sampling representation matrices are concatenated to obtain a first concatenated representation matrix.
[0028] As an embodiment, the method further includes:
[0029] Obtain a target water affairs data set sample and a non-target water affairs data set sample, wherein the target water affairs data set sample includes a target class tag, the non-target water affairs data set sample includes a non-target class tag, the target monitoring status data exists in the target water affairs data set sample, and the non-target water affairs data set sample does not contain the target monitoring status data;
[0030] The target class water affairs data set sample is loaded into the edge side data processing model, and A target class data set representation matrices corresponding to the target class water affairs data set sample are processed based on the edge side data processing model to obtain first estimated information of whether there is target monitoring status data in the target class water affairs data set sample, wherein the A target class data set representation matrices are obtained by performing feature engineering on the target class water affairs data set sample, and the edge side data processing model is configured to perform a diversity set feature extraction operation on the A target class data set representation matrices, and perform monitoring status data estimation on the diversity set feature extraction results;
[0031] The non-target water affairs data set samples are loaded into an edge-side data processing model, and A non-target data set characterization matrices corresponding to the non-target water affairs data set samples are processed based on the edge-side data processing model to obtain second estimated information on whether there is target monitoring status data in the non-target water affairs data set samples, wherein the A non-target data set characterization matrices are obtained by performing feature engineering on the non-target water affairs data set samples, and the edge-side data processing model is configured to perform a diversity set feature extraction operation on the A non-target data set characterization matrices, and perform monitoring status data estimation on the diversity set feature extraction results;
[0032] An optimized error function is obtained according to the target class label, the first estimated information, the non-target class label and the second estimated information, and internal configuration parameters of the edge-side data processing model are corrected based on the optimized error function.
[0033] As an embodiment, the method further includes:
[0034] Acquire a first water affairs data set sample, wherein the first water affairs data set sample corresponds to a water affairs data set augmented sample and a water affairs data set sparse sample, wherein the water affairs data set augmented sample is obtained by performing data set transformation on the first water affairs data set sample, and the water affairs data set sparse sample is obtained by performing sparse extraction on the water affairs data set augmented sample;
[0035] Predicting data categories of the first water affairs data set samples according to the basic distilled model to obtain first prediction information characterizing data categories in the first water affairs data set samples;
[0036] According to the basic pre-distillation model, the data category of the first data set fusion representation matrix of the water affairs data set augmented samples and the water affairs data set sparse samples is estimated to obtain a false target for comparison;
[0037] Determining a first optimization error by using a deviation value between the first estimated information and the compared false target;
[0038] The basic distilled model is optimized using the first optimization error to obtain the cloud data processing model.
[0039] As an implementation mode, the estimating data categories of the first data set fusion representation matrix of the water affairs data set augmented samples and the water affairs data set sparse samples according to the basic pre-distillation model to obtain a false target for comparison includes:
[0040] Performing feature engineering on the augmented samples of the water affairs data set according to the basic pre-distillation model to obtain a first data set representation matrix group corresponding to the augmented samples of the water affairs data set;
[0041] Performing feature engineering on the sparse samples of the water affairs data set according to the basic pre-distillation model to obtain a second data set representation matrix group corresponding to the sparse samples of the water affairs data set;
[0042] Performing off-center fusion between the first data set representation matrix group and the second data set representation matrix group to obtain the first data set fusion representation matrix;
[0043] Predicting the data category of the first data set fusion representation matrix to obtain the comparison false target;
[0044] The step of performing off-center fusion between the first data set representation matrix group and the second data set representation matrix group to obtain the first data set fusion representation matrix includes:
[0045] Performing matrix concatenation on the first representation matrix of the g-th layer and the second representation matrix of the g-1-th layer to obtain a second concatenated representation matrix, wherein the first data set representation matrix group includes the first representation matrix of the h-th layer, and the second data set representation matrix group includes the second representation matrix of the h-th layer, wherein g-1 is a positive integer not less than 2 and less than h;
[0046] Downsampling the second spliced representation matrix to obtain a second downsampled representation matrix corresponding to the second spliced representation matrix;
[0047] Performing saliency processing on the second down-sampling representation matrix to obtain an explicit representation matrix corresponding to the second down-sampling representation matrix;
[0048] Performing a linear transformation on the explicit representation matrix to obtain a g-th eccentric fusion variable;
[0049] The g-th layer first representation matrix and the g-1-th layer second representation matrix are fused by using the eccentric fusion variable to obtain the g-th layer fusion result;
[0050] Determine the h-layer fusion result as the fusion representation matrix of the first data set;
[0051] The step of estimating the data category of the first data set fusion representation matrix to obtain the comparison false target includes:
[0052] Performing matrix restoration on the first data set fusion representation matrix to obtain a plurality of candidate estimation information corresponding to the first water conservancy data set sample, wherein the candidate estimation information represents the category confidence of the data category in the first water conservancy data set sample;
[0053] Get the category confidence threshold;
[0054] At least one candidate prediction information among the multiple candidate prediction information whose category confidence is not less than the category confidence threshold is determined as the comparison false target.
[0055] As an implementation mode, the step of performing data category estimation on the augmented samples of the water service data set and the sparse samples of the water service data set respectively according to the basic distilled model to obtain first estimation information characterizing the data category in the samples of the first water service data set includes:
[0056] Perform feature engineering on the augmented samples of the water affairs data set and the sparse samples of the water affairs data set respectively according to the basic distilled model to obtain a third data set representation matrix group corresponding to the augmented samples of the water affairs data set, and obtain a fourth data set representation matrix group corresponding to the sparse samples of the water affairs data set;
[0057] Performing off-center fusion on the third data set representation matrix group and the fourth data set representation matrix group to obtain a second data set fusion representation matrix;
[0058] Performing matrix restoration on the third data set representation matrix group, the fourth data set representation matrix group, and the second data set fusion representation matrix, respectively, to obtain first sub-estimation information corresponding to the third data set representation matrix group, second sub-estimation information corresponding to the fourth data set representation matrix group, and third sub-estimation information corresponding to the second data set fusion representation matrix;
[0059] The first sub-prediction information, the second sub-prediction information, and the third sub-prediction information are determined as the first prediction information.
[0060] According to another aspect of the present disclosure, there is provided a water service data processing system, comprising a cloud device and at least one edge device communicatively connected to the cloud device;
[0061] The edge device is embedded with the edge-side data processing model described above, and is configured to process A data set representation matrices corresponding to the water affairs monitoring data set based on the edge-side data processing model to obtain estimated information on whether there is target monitoring status data in the water affairs monitoring data set;
[0062] The cloud device is embedded with the cloud data processing model described above, and is configured to perform data category estimation on the target monitoring status data in the water affairs monitoring data set based on the cloud data processing model, output data status information corresponding to the target monitoring status data, and perform visual display in the corresponding area in the preset water affairs digital twin based on the data status information.
[0063] The present disclosure includes at least the following beneficial effects:
[0064] The digital twin-based water affairs data processing method and system provided by the present disclosure obtains a water affairs monitoring data set, then loads the water affairs monitoring data set into an edge-side data processing model, processes A data set representation matrices corresponding to the water affairs monitoring data set based on the edge-side data processing model, and obtains estimated information on whether there is target monitoring status data in the water affairs monitoring data set, the A data set representation matrices are obtained by performing feature engineering on the water affairs monitoring data set, and the edge-side data processing model is configured to perform a diversity set feature extraction operation on the A data set representation matrices, and perform monitoring status data estimation on the diversity set feature extraction results, wherein A is not less than 1. When the estimated information indicates that there is target monitoring status data in the water affairs monitoring data set, the water affairs monitoring data set is loaded into a cloud-side data processing model, and the data category of the target monitoring status data in the water affairs monitoring data set is estimated based on the cloud-side data processing model, and the data status information corresponding to the target monitoring status data is output. The water affairs data processing method based on digital twins provided in the embodiments of the present disclosure performs edge pre-processing on the water affairs monitoring data set, and can perform data pre-processing in advance on the edge side. Based on the edge side data processing model, it is pre-determined whether there is target monitoring status data in the water affairs monitoring data set. Based on the cloud side data processing model, the data category in the water affairs monitoring data set with target monitoring status data is further identified, and the data status information corresponding to the target monitoring status data is output, thereby increasing the processing efficiency of water affairs data, reducing the pressure of cloud data processing, and improving the real-time response speed in the synchronization of visualized digital twins.
[0065] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0067] Figure 1 A schematic diagram of a water utility data processing system according to an embodiment of the present disclosure is shown.
[0068] Figure 2 A flow chart of a water affairs data processing method based on digital twin according to an embodiment of the present disclosure is shown.
[0069] Figure 3 A schematic diagram of the composition of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0070] Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, and they should be considered to be merely exemplary. Therefore, it should be appreciated by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for clarity and simplicity, the description of known functions and structures is omitted in the following description. In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may point to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.
[0071] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.
[0072] Figure 1 A schematic diagram of a water utility data processing system 100 provided according to an embodiment of the present disclosure is shown. The water utility data processing system 100 includes one or more edge devices 101, a cloud device 120, and one or more communication networks 110 coupling the one or more edge devices 101 to the cloud device 120. The edge device 101 can be configured to execute one or more applications. In an embodiment of the present disclosure, the cloud device 120 can run one or more services or software applications that enable execution of a water utility data processing method based on a digital twin. In some embodiments, the cloud device 120 can also provide other services or software applications, which may include non-virtual environments and virtual environments. Figure 1 In the configuration shown, the cloud device 120 may include one or more components that implement the functions performed by the cloud device 120. These components may include software components, hardware components, or a combination thereof that are executable by one or more processors.
[0073] The edge device 101 may be an intelligent gateway. The edge device 101 is connected to various sensor devices and water equipment in the water system. The network 110 may be any type of network well known to those skilled in the art, which may use any of a variety of available protocols (including but not limited to TCP / IP, SNA, IPX, etc.) to support data communication. By way of example only, one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a blockchain network, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks. The cloud device 120 may include one or more general-purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other appropriate arrangement and / or combination. The cloud device 120 may include one or more virtual machines running a virtual operating system, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, the cloud device 120 may run one or more services or software applications that provide the functionality described below. The computing unit in the cloud device 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. The cloud device 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.
[0074] The water data processing system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store water system IoT data. The database 130 may reside in various locations. For example, the database used by the cloud device 120 may be local to the cloud device 120, or may be remote from the cloud device 120 and may communicate with the cloud device 120 via a network-based or dedicated connection. The database 130 may be of different types. In some embodiments, the database used by the cloud device 120 may be, for example, a relational database. One or more of these databases may store, update, and retrieve data to and from the database in response to a command.
[0075] Figure 1 The water data processing system 100 may be configured and operated in various ways to enable the application of various methods described in the present disclosure.
[0076] Please refer to Figure 2 , is a flow chart of a water affairs data processing method based on digital twins provided in an embodiment of the present disclosure, the method comprising the following operations:
[0077] Operation S10: Acquire a water affairs monitoring data set.
[0078] The water conservancy monitoring data set is a collection of data collected and uploaded by various sensor devices and water conservancy equipment in the water conservancy system. For example, sensor devices may include various water quality sensors, water pressure sensors, flow sensors, etc. The data of water conservancy equipment may be the working status data of each device, pump station operation data, etc. After these data are collected and uploaded, they can be packaged and sorted according to preset rules, and then data preprocessing can be completed based on data cleaning and standardization to finally obtain the water conservancy monitoring data set. Among them, data packaging rules and data preprocessing methods are conventional technologies and will not be described here.
[0079] Operation S20, loading the water monitoring data set into the edge side data processing model, processing A data set representation matrices corresponding to the water monitoring data set based on the edge side data processing model, and obtaining estimated information on whether there is target monitoring status data in the water monitoring data set.
[0080] Among them, A data set representation matrices are obtained by performing feature engineering on the water monitoring data set (for example, using convolution to extract features), and the edge-side data processing model is configured to perform a diversity feature extraction operation on the A data set representation matrices, and estimate the monitoring status data for the diversity feature extraction results, wherein A is not less than 1. In the disclosed embodiment, the edge-side data processing model is a machine learning model with a lower parameter magnitude, which is embedded in the edge device. By embedding the edge-side data processing model in the edge device, the water monitoring data set can be obtained more frequently for analysis, and uploaded to the cloud for subsequent processing when there is a target situation. Not only can it be uploaded in time when a situation is found, but it can also reduce the amount of data processing in the cloud and improve processing efficiency. The water monitoring data set is analyzed based on the edge-side data processing model, and when the water monitoring data set has target situation data, it is processed by the cloud device.
[0081] In the design of the edge-side data processing model, the characteristics of the mobile network V3 model, the ghost network model and the shuffled network model are combined. In the architecture of the edge-side data processing model, it includes a feature engineering network layer, two smoothing network layers, a downsampling network layer and a state estimation network layer. Among them, each smoothing network layer includes a diversity combination network layer, a shuffled network layer and a layered filtering network layer (which can be implemented as a separated convolutional network).
[0082] The water conservancy monitoring data set is loaded into the feature engineering network layer in the edge data processing model, and feature engineering is performed on the water conservancy monitoring data set based on the feature engineering network layer to obtain A data set representation matrices, and then the A data set representation matrices are loaded into the diversity set combination network layer in the edge data processing model, and the A data set representation matrices are divided into K sets based on the diversity set combination network layer, each set contains one or more data set representation matrices, and the data set representation matrices in each of the K sets are matrix interactively merged (i.e., matrix fusion) to obtain B data set interactive representation matrices; and the B data set interactive representation matrices are used as inputs of the downsampling network layer, and the B data set interactive representation matrices are downsampled based on the downsampling network layer to complete dimensionality reduction. The downsampling method can be implemented by using a pooling operator, and the downsampled representation matrices are matrix spliced to obtain a first spliced representation matrix. Finally, the first spliced representation matrix is loaded into the state estimation network layer in the edge data processing model, and the monitoring state data is estimated on the first spliced representation matrix based on the state estimation network layer to obtain estimated information on whether there is target monitoring state data in the water conservancy monitoring data set.
[0083] In the embodiment of the present disclosure, it is assumed that the diversity combination network layer has two diversity combination operators, and A data set representation matrices are simultaneously input into the first diversity combination operator in the diversity combination network layer. The first diversity combination operator first divides the A data set representation matrices into K sets, each set contains one or more data set representation matrices, and performs filtering operations on the data set representation matrices corresponding to the same set. The number of first data set interaction representation matrices obtained after filtering each set is W, and K·W first data set interaction representation matrices are shuffled and integrated (hereinafter referred to as mixing). Specifically, the first data set interaction representation matrices in different sets are matrix exchanged to obtain first data set mixed representation matrices of K sets, and the first data set interaction representation matrices of different sets are matrix added to obtain K first data set superposition representation matrices. Then, the first data set mixed representation matrices of the K sets and the K first data set superposition representation matrices are layered filtered to obtain (2K+1)·W first data set layered filtering representation matrices. In this way, the operation of the first diversity combination operator is completed. The hierarchical filtering process includes two steps: depth-by-depth filtering and point-by-point filtering. In the depth-by-depth filtering step, the filter kernel is applied to each channel of the input separately, so that features can be extracted for each channel without increasing the number of model parameters. The output result of depth-by-depth filtering is a set of representation matrices with the same number of channels. In the point-by-point filtering step, the set of representation matrices obtained by depth filtering is combined by applying a 1x1 filter kernel. Point-by-point filtering does not change the size of the representation matrix in space, but the number of output channels can be adjusted by appropriately setting the number of filter kernels. Point-by-point filtering can learn nonlinear relationships between channels and can help the model perform feature selection and compression. Hierarchical filtering can significantly reduce the number of parameters in traditional filtering operations, thereby reducing computational costs while maintaining certain model performance. After completing the hierarchical filtering, the (2K+1)·W first data set hierarchical filtering representation matrices are input into the second diversity combination operator in the diversity combination network layer, the (2K+1)·W first data set hierarchical filtering representation matrices are divided into K sets, the data set representation matrices corresponding to the same set are filtered, the number of second data set interaction representation matrices obtained by filtering each set is U, the K·U second data set interaction representation matrices are mixed, for example, the second data set interaction representation matrices in different sets are exchanged to obtain the second data set mixed representation matrices of K sets, the second data set interaction representation matrices of different sets are added to obtain K second data set superposition representation matrices, the second data set mixed representation matrices of the K sets and the K second data set superposition representation matrices are subjected to hierarchical filtering operations to obtain B data set interaction representation matrices, where B is equal to (2K+1)·U.
[0084] Operation S30, when the estimated information indicates that there is target monitoring status data in the water affairs monitoring data set, the water affairs monitoring data set is loaded into the cloud data processing model, and the data category of the target monitoring status data in the water affairs monitoring data set is estimated based on the cloud data processing model, and the data status information corresponding to the target monitoring status data is output.
[0085] In the disclosed embodiment, the cloud data processing model can be embedded in the cloud device. When the edge-side data processing model in the edge device analyzes that the water monitoring data set has target situation data (i.e., there is target monitoring status data in the water monitoring data set), the water monitoring data set with the target monitoring status data is sent to the cloud device for data category estimation. The data category of the target monitoring status data in the water monitoring data set is estimated based on the cloud data processing model, and the data status information corresponding to the target monitoring status data is output. For example, the data status information may include the abnormal category monitored by the regional water equipment corresponding to the data location with the monitoring status data, such as the water pressure of equipment 1 in area E1 changes too fast, the dissolved matter in the water body in area E2 is abnormal, and the water supply of pump station No. 2 in area E3 is unstable.
[0086] Operation S40: Visually display the corresponding area in the preset water affairs digital twin based on the data status information.
[0087] It can be understood that in the present disclosure, a water affairs digital twin (i.e., twin model) of the water affairs system is constructed in advance, and its construction method can refer to the related technology of twin model construction of digital twin. The digital area in the water affairs digital twin has a corresponding relationship with the actual water affairs system. After obtaining the digital status information, the corresponding position is determined in the digital twin according to the area position indicated in the digital status information. According to the display mapping relationship set in advance, the display effect corresponding to the abnormal category is displayed in the digital twin, such as the rapid change of water pressure is displayed with blue flashing, and the abnormal dissolved matter in the water body is displayed with black dot particles, etc. The specific method is not limited. In this way, the information that needs attention can be displayed intuitively and accurately.
[0088] The water affairs data processing method based on digital twins provided in the embodiments of the present disclosure performs edge pre-processing on the water affairs monitoring data set, and can perform data pre-processing in advance on the edge side. Based on the edge side data processing model, it is pre-determined whether there is target monitoring status data in the water affairs monitoring data set. Based on the cloud side data processing model, the data category in the water affairs monitoring data set with target monitoring status data is further identified, and the data status information corresponding to the target monitoring status data is output, thereby increasing the processing efficiency of water affairs data, reducing the pressure of cloud data processing, and improving the real-time response speed in the synchronization of visualized digital twins.
[0089] In a feasible design, operation S20 includes the following operations:
[0090] Operation S21, loading the water monitoring data set into the feature engineering network layer in the edge-side data processing model, performing feature engineering on the water monitoring data set based on the feature engineering network layer, and obtaining A data set representation matrices.
[0091] In an embodiment of the present disclosure, the feature engineering network layer in the edge-side data processing model may include multiple feature engineering operators. The feature engineering network layer is, for example, based on a network architecture including an A-layer pyramid structure. Each layer in the pyramid structure is executed to obtain a data set representation matrix of a corresponding scale, thereby obtaining A data set representation matrices.
[0092] Operation S22, loading A data set representation matrices into a diversity combination network layer in an edge-side data processing model, dividing the A data set representation matrices into K sets based on the diversity combination network layer, each set containing one or more data set representation matrices, performing matrix interaction merging on the data set representation matrices in each of the K sets, and obtaining B data set interaction representation matrices, wherein B is not less than 1, K is not greater than B, and K is not less than 1.
[0093] In the embodiment of the present disclosure, it is assumed that the diversity combination network layer has two diversity combination operators, and A data set representation matrices are simultaneously loaded into the first diversity combination operator in the diversity combination network layer. The first diversity combination operator divides the A data set representation matrices into K sets, each set contains one or more data set representation matrices, and filtering operations are performed on the data set representation matrices corresponding to the same set. The number of first data set interaction representation matrices obtained by filtering each set is W, and then K·W first data set interaction representation matrices are mixed. Specifically, the first data set interaction representation matrices in different sets are exchanged to obtain first data set mixed representation matrices of K sets, and matrix addition calculations are performed on the first data set interaction representation matrices of different sets to obtain K first data set superposition representation matrices, and layered filtering operations are performed on the first data set mixed representation matrices of the K sets and the K first data set superposition representation matrices to obtain (2K+1)·W first data set layered filtering representation matrices. The (2K+1)·W first data set hierarchical filtering representation matrices are loaded into the second diversity combination operator in the diversity combination network layer, the (2K+1)·W first data set hierarchical filtering representation matrices are divided into K sets, filtering operations are performed on the data set representation matrices corresponding to the same set, the number of second data set interaction representation matrices obtained by filtering each set is U, and then the K·U second data set interaction representation matrices are mixed, for example, the second data set interaction representation matrices in different sets are exchanged to obtain the second data set mixed representation matrices of K sets, matrix addition calculation is performed on the second data set interaction representation matrices of different sets to obtain K second data set superposition representation matrices, and hierarchical filtering operations are performed on the second data set mixed representation matrices of the K sets and the K second data set superposition representation matrices to obtain B data set interaction representation matrices, where B is equal to (2K+1)·U.
[0094] In operation S23, matrix concatenation is performed on the interaction representation matrices of the B data sets to obtain a first concatenated representation matrix.
[0095] In an embodiment of the present disclosure, B data set interaction representation matrices are loaded into a downsampling network layer, and dimension compression is performed on each of the B data set interaction representation matrices based on the downsampling network layer to obtain B first downsampling representation matrices, and representation matrix splicing is performed on the B first downsampling representation matrices to obtain a first spliced representation matrix.
[0096] Operation S24, loading the first splicing representation matrix into the state estimation network layer in the edge side data processing model, performing monitoring state data estimation on the first splicing representation matrix based on the state estimation network layer, and obtaining estimation information of whether there is target monitoring state data in the water conservancy monitoring data set.
[0097] The first splicing characterization matrix is loaded into the state estimation network layer, and the monitoring state data of the first splicing characterization matrix is estimated based on the state estimation network layer, for example, whether there is target monitoring state data in the first splicing characterization matrix is estimated based on the state estimation network layer. The water affairs data processing method based on digital twin provided by the embodiment of the present disclosure pre-analyzes whether there is target monitoring state data in the water affairs monitoring data set based on the edge data processing model, wherein, based on the diversity set feature extraction and matrix interaction merging of the data set characterization matrix corresponding to the water affairs monitoring data set, finally, classification is performed based on the first splicing characterization matrix after the dimension compression of the multiple data set interaction characterization matrices, so as to increase the accuracy of the edge side data processing model's estimation of whether there is target monitoring state data in the water affairs monitoring data set. The component architecture of the edge side data processing model provided by the embodiment of the present disclosure is a lightweight structure, and the parameters involved are of low magnitude. When embedded in the edge terminal device, it does not require excessive computing overhead.
[0098] In the water affairs data processing method based on digital twin provided in the present disclosure, operation S22 includes:
[0099] Operation S22a: divide the A data set representation matrices into K sets, perform a filtering operation on the data set representation matrix in each of the K sets, and obtain the data set filtering representation matrices of the K sets.
[0100] In the disclosed embodiment, A data set representation matrices are arbitrarily divided into K sets, and the A data set representation matrices can be evenly distributed to the K sets, so that the number of data set representation matrices in each set is as equal as possible. When it is not possible to evenly divide, the difference between the numbers of data set representation matrices in different sets can be no greater than A / K. A filtering operation is performed on the data set representation matrices corresponding to the same set to obtain a data set filter representation matrix corresponding to each set.
[0101] Operation S22b is to perform representation matrix mixing on the data set filter representation matrices belonging to different sets in the data set filter representation matrices of the K sets, so as to obtain mixed representation matrices of the data set of the K sets.
[0102] In the disclosed embodiment, the characterization matrix mixing specifically involves matrix multiplication of the characterization matrices in the data set filter characterization matrices of different sets. Specifically, a data set filter characterization matrix in each of the K sets is matrix multiplied with a data set filter characterization matrix in the remaining K-1 sets to obtain a data set mixed characterization matrix of the K sets, wherein the number of data set mixed characterization matrices in each set data set mixed characterization matrix is consistent with the number of data set filter characterization matrices in each set data set filter characterization matrix of the original K sets.
[0103] Operation S22c: performing matrix addition calculation on the filter representation matrices of data sets belonging to different sets in the filter representation matrices of data sets of the K sets, to obtain K data set superposition representation matrices.
[0104] Operation S22d: performing a hierarchical filtering operation on the mixed representation matrices of the K sets of data sets and the superimposed representation matrices of the K data sets to obtain L hierarchical filtering representation matrices of the data sets, where L is not greater than K.
[0105] In the disclosed embodiment, a layered filtering operation is performed on the mixed characterization matrix of the K sets of data sets and the superposition characterization matrix of the K sets of data sets, respectively, to obtain a layered filtering characterization matrix of the data sets corresponding to the mixed characterization matrix of each data set, and a layered filtering characterization matrix of the data sets corresponding to the superposition characterization matrix of each data set. For example, if the number of mixed characterization matrices of the data sets of each set in the mixed characterization matrix of the K sets of data sets is W, then the mixed characterization matrices of the K·W sets of data sets are layered filtered to obtain K·W layered filtering characterization matrices of the data sets, and the K data sets superposition characterization matrices are layered filtered to obtain K data sets layered filtering characterization matrices, and the number of L is K·W+W.
[0106] Operation S22e: performing feature mapping on the mixed representation matrices of the K sets of data sets to obtain mapping representation matrices of the K sets of data sets.
[0107] In the disclosed embodiment, feature mapping (such as PCA mapping) is performed on each of the K sets of data set mixed representation matrices to obtain a corresponding data set mapping representation matrix.
[0108] Operation S22f is to perform matrix concatenation of the layered filtering representation matrices of the L data sets and the data set mapping representation matrices of the K sets to obtain B data set interaction representation matrices.
[0109] In the disclosed embodiment, the hierarchical filtering representation matrices of L data sets are concatenated with the data set mapping representation matrices of K sets to obtain B data set interaction representation matrices. When the number of data set mapping representation matrices of each set in the data set mapping representation matrices of the K sets is W, B is equal to (2K+1)·W. The digital twin-based water conservancy data processing method provided in the disclosed embodiment increases the size of the data set representation matrix based on the set projection and mixed representation matrix, increases the accuracy of the edge-side data processing model in predicting whether there is target monitoring status data in the water conservancy monitoring data set, and further reduces the number of parameters of each level of the network, thereby reducing the computational overhead of the model as a whole on the edge device and saving costs.
[0110] Operation S22g, loading A data set representation matrices into the first component network layer in the diversity combination network layer, dividing the A data set representation matrices into K sets based on the first component network layer, performing matrix interaction merging on the data set representation matrices in each of the K sets, and obtaining (2K+1)·W first data set interaction representation matrices. Wherein W is the number of data set filter representation matrices obtained by performing filtering operations on the data set representation matrices in each set, and W is not less than 1.
[0111] Operation S22h, loading (2K+1)·W first data set interaction representation matrices into the second component network layer in the diversity combination network layer, dividing the (2K+1)·W first data set interaction representation matrices into K sets based on the second component network layer, performing matrix interaction merging on the first data set interaction representation matrix of each set in the K sets, and obtaining B data set interaction representation matrices. Wherein, B is equal to (2K+1)·U, U is the number of data set filter representation matrices obtained by filtering the first data set interaction representation matrix of each set, and U is not less than 1.
[0112] In the disclosed embodiment, it is assumed that the diversity combination network layer includes two component network layers, namely, a first component network layer and a second component network. The two component network layers have the same structure, including a diversity combination network layer, a shuffle network layer and a hierarchical filtering network layer. A data set representation matrices are simultaneously loaded into the first diversity combination operator in the diversity combination network layer. The first diversity combination operator divides the A data set representation matrices into K sets, and performs filtering operations on the data set representation matrices corresponding to the same set. The number of first data set interaction representation matrices obtained by filtering each set is W, and u·W first data set interaction representation matrices are mixed, for example, the first data set interaction representation matrices in different sets are exchanged to obtain the first data set mixed representation matrices of K sets, and the first data set interaction representation matrices of different sets are subjected to matrix addition calculation to obtain K first data set superposition representation matrices, and then the first data set mixed representation matrices of the K sets and the K first data set superposition representation matrices are subjected to hierarchical filtering operations to obtain (2K+1)·W first data set hierarchical filtering representation matrices. Next, the (2K+1)·W first data set hierarchical filtering representation matrices are loaded into the second diversity combination operator in the diversity combination network layer, the (2K+1)·W first data set hierarchical filtering representation matrices are divided into K sets, filtering operations are performed on the data set representation matrices corresponding to the same set, the number of second data set interaction representation matrices obtained by filtering each set is U, and then the K·U second data set interaction representation matrices are mixed, for example, the second data set interaction representation matrices in different sets are exchanged to obtain the second data set mixed representation matrices of K sets, the second data set interaction representation matrices of different sets are added to obtain K second data set superposition representation matrices, the second data set mixed representation matrices of the K sets and the K second data set superposition representation matrices are layered filtered to obtain B data set interaction representation matrices, and B is determined to be equal to (2K+1)·U.
[0113] In the water affairs data processing method based on digital twin provided in the embodiment of the present disclosure, operation S230 may include the following operations:
[0114] Operation S23a: down-sample the B data set interaction representation matrices to obtain B first down-sampled representation matrices corresponding to the B data set interaction representation matrices.
[0115] Operation S23b: performing representation matrix concatenation on the B first down-sampling representation matrices to obtain a first concatenated representation matrix.
[0116] In an embodiment of the present disclosure, B data set interaction representation matrices are loaded into a downsampling network layer, each of the B data set interaction representation matrices is downsampled based on the downsampling network layer to obtain B first downsampling representation matrices, and the B first downsampling representation matrices are spliced to obtain a first spliced representation matrix, thereby achieving a first spliced representation matrix based on the B data set interaction representation matrices, which can promote monitoring state data estimation of the first spliced representation matrix based on the state estimation network layer.
[0117] In the following implementation, the model optimization operation of the edge data processing model included in the water affairs data processing method based on digital twin will be introduced, which specifically includes the following operations:
[0118] Operation S11, obtaining target class water affairs data set samples (Target Class) and non-target class water affairs data set samples (Non-Target Class). The target class water affairs data set samples contain target class tags, the non-target class water affairs data set samples contain non-target class tags, the target class water affairs data set samples contain target monitoring status data, and the non-target class water affairs data set samples do not contain target monitoring status data.
[0119] Operation S12, load the target water data set samples into the edge side data processing model, process the A target data set representation matrices corresponding to the target water data set samples based on the edge side data processing model, and obtain the first estimated information of whether there is target monitoring status data in the target water data set samples.
[0120] Among them, A target class data set representation matrices are obtained by performing feature engineering on the target class water conservancy data set samples, and the edge side data processing model is configured to perform diversity set feature extraction on the A target class data set representation matrices, and estimate the monitoring status data for the diversity set feature extraction results. In an embodiment of the present disclosure, a target class water conservancy data set sample is loaded into a feature engineering network layer in an edge side data processing model, feature engineering is performed on the target class water conservancy data set sample based on the feature engineering network layer, and A target class data set representation matrices are obtained. The A target class data set representation matrices are loaded into a diversity set combination network layer in the edge side data processing model, and the A target class data set representation matrices are divided into K sets based on the diversity set combination network layer. The target class data set representation matrices of each set in the K sets are matrix interactively merged to obtain B target class data set interactive representation matrices; the B target class data set interactive representation matrices are then used as inputs of a downsampling network layer, and the B target class data set interactive representation matrices are downsampled based on the downsampling network layer, and the downsampled results are matrix spliced to obtain a first spliced representation matrix of the target class; the first spliced representation matrix of the target class is loaded into a state estimation network layer in the edge side data processing model, and monitoring state data are estimated on the first spliced representation matrix of the target class based on the state estimation network layer, to obtain estimated information on whether there is target monitoring state data in the target class water conservancy data set sample.
[0121] Operation S13, load the non-target water affairs data set samples into the edge-side data processing model, and process the A non-target data set representation matrices corresponding to the non-target water affairs data set samples based on the edge-side data processing model to obtain the second estimated information of whether there is target monitoring status data in the non-target water affairs data set samples.
[0122] Among them, A non-target data set representation matrices are obtained by performing feature engineering on non-target water data set samples, and the edge-side data processing model is configured to perform diversity feature extraction operations on the A non-target data set representation matrices, and perform monitoring status data estimation on the diversity feature extraction results.
[0123] In an embodiment of the present disclosure, a non-target water conservancy data set sample is loaded into a feature engineering network layer in an edge-side data processing model, feature engineering is performed on the non-target water conservancy data set sample based on the feature engineering network layer, and A non-target data set representation matrices are obtained. The A non-target data set representation matrices are loaded into a diversity set combination network layer in the edge-side data processing model, and the A non-target data set representation matrices are divided into K sets based on the diversity set combination network layer. The non-target data set representation matrices of each set in the K sets are matrix interactively merged to obtain B non-target data set interactive representation matrices, and the B non-target data set interactive representation matrices are input into a downsampling network layer, and the B non-target data set interactive representation matrices are downsampled based on the downsampling network layer, and the downsampling results are matrix spliced to obtain a non-target first spliced representation matrix; the non-target first spliced representation matrix is loaded into a state estimation network layer in the edge-side data processing model, and monitoring state data are estimated for the non-target first spliced representation matrix based on the state estimation network layer to obtain estimated information on whether there is target monitoring state data in the non-target water conservancy data set sample.
[0124] Operation S14: obtaining an optimized error function according to the target class label, the first estimated information, the non-target class label, and the second estimated information, and modifying internal configuration parameters of the edge-side data processing model based on the optimized error function.
[0125] The digital twin-based water affairs data processing method provided by the embodiment of the present disclosure pre-judges whether there is target monitoring status data in the positive and non-target water affairs data set samples based on the edge-side data processing model, obtains an optimized error function based on the target class labels and non-target class labels corresponding to the target class water affairs data set samples and the non-target class water affairs data set samples according to the judgment results, and corrects the internal configuration parameters (such as various weights) of the edge-side data processing model based on the optimized error function, so that the accuracy of the estimated results of the edge-side data processing model on whether there is target monitoring status data in the water affairs data set is improved.
[0126] In the following implementation, the optimization operation of the cloud data processing model included in the water data processing method based on digital twins will be introduced. When the estimated information indicates that the water monitoring data set contains target monitoring status data, the water monitoring data set is input into the cloud data processing model, and the cloud data processing model is used to estimate the data category of the target monitoring status data in the water monitoring data set to obtain the data status information corresponding to the target monitoring status data. The cloud data processing model is a machine learning model based on deep neural networks, such as recurrent neural networks, convolutional neural networks, long short-term memory neural networks, etc. In the optimization process of the cloud data processing model. The target cloud data processing model is optimized using knowledge distillation. The following is the specific optimization operation process:
[0127] Operation S51: obtaining a first water affairs data set sample.
[0128] In the disclosed embodiment, the first water conservancy data set sample corresponds to a water conservancy data set augmented sample and a water conservancy data set sparse sample. The water conservancy data set augmented sample is obtained by performing data set transformation on the first water conservancy data set sample, and the water conservancy data set sparse sample is obtained by performing sparse extraction on the water conservancy data set augmented sample. The initial samples of the cloud data processing model and the terminal preprocessing neural network in the optimization process can be the same. The first water conservancy data set sample may include target monitoring status data in the water conservancy monitoring data set.
[0129] In a feasible design, the first water conservancy data set sample is a water conservancy data set sample randomly determined in the first data sample set. In a feasible design, the first water conservancy data set sample is a water conservancy data set sample that does not contain a comparison sample mark. In a feasible design, the water conservancy data set augmented sample is a water conservancy data set augmented sample obtained by performing a data transformation operation on the first water conservancy data set sample. The data transformation operation includes but is not limited to changing the value of a data item, clearing a data item, and adding a data item.
[0130] In a feasible design, the sparse sampling method may be, for example, random sampling, uniform sampling, stratified sampling, cluster sampling, etc. The specific process may refer to the relevant technology and will not be described in detail here.
[0131] Operation S52: performing data category estimation on the first water service data set sample according to the basic distilled model to obtain first estimation information representing the data category in the first water service data set sample.
[0132] In a feasible design, the basic post-distillation model is the student model in the distillation learning, which completes the parameter initialization. Correspondingly, the pre-distillation model is the teacher model. The first water conservancy data set sample is loaded into the basic post-distillation model for data category estimation, and the output result obtained is determined as the first estimation information. Data category estimation includes estimating the distribution area position and state type of at least one data category contained in the first water conservancy data set sample in the first water conservancy data set sample. For example, at least one of the water conservancy data set augmented sample and the water conservancy data set sparse sample is loaded into the basic post-distillation model for data category estimation, and the output result obtained is determined as the first estimation information. Among them, when the water conservancy data set augmented sample and the water conservancy data set sparse sample are respectively input into the basic post-distillation model for data category estimation, the water conservancy data set augmented sample and the water conservancy data set sparse sample are respectively estimated for data category estimation, or the water conservancy data set augmented sample and the water conservancy data set sparse sample are combined for data category estimation.
[0133] Operation S53 , performing data category estimation on the first data set fusion representation matrix of the water affairs data set augmented samples and the water affairs data set sparse samples according to the basic pre-distillation model to obtain false targets for comparison.
[0134] In a feasible design, feature engineering (i.e., feature extraction) is performed on the augmented samples of the water service data set and the sparse samples of the water service data set according to the basic pre-distillation model, respectively, to obtain the first characterization matrix corresponding to the augmented samples of the water service data set and the second characterization matrix corresponding to the sparse samples of the water service data set. The first characterization matrix and the second characterization matrix are eccentrically fused (i.e., eccentric calculation is performed and then added, i.e., weighted summation) to obtain the first data set fusion characterization matrix, which is the fusion result of the first characterization matrix and the second characterization matrix. In a feasible design, the basic pre-distillation model includes a feature engineering network layer (which may be consistent with the feature engineering network layer in the edge-side data processing model), and feature engineering is performed on the augmented samples of the water service data set and the sparse samples of the water service data set according to the feature engineering network layer. The first characterization matrix is a characterization matrix corresponding to the augmented samples of the water service data set, and it may also be a combination of multiple characterization matrices. In this case, the first characterization matrix is the first data set characterization matrix group, and the first data set characterization matrix group includes multiple levels of characterization matrices. The second characterization matrix is a characterization matrix corresponding to the sparse samples of the water service data set, and may also be a combination of multiple characterization matrices. In this case, the second characterization matrix is a second data set characterization matrix group, wherein the second data set characterization matrix group includes multiple characterization matrices.
[0135] The first data set fusion representation matrix may be generated by: performing matrix splicing on a first representation matrix corresponding to a representation matrix and a second representation matrix corresponding to a representation matrix to obtain a first data set fusion representation matrix; or, performing matrix splicing on the first data set representation matrix group and the second data set representation matrix group by level, and obtaining a merged data set representation matrix group as the first data set fusion representation matrix; or, filtering the first data set representation matrix group and the second data set representation matrix group respectively, and then performing matrix splicing on the filtered matrices to obtain a first data set fusion representation matrix; or, splicing the first data set representation matrix group and the second data set representation matrix group along the channel, and filtering to obtain the first data set fusion representation matrix.
[0136] In a feasible design, the basic pre-distillation model includes a matrix reduction component, which is a decoder. The matrix reduction component is used to perform matrix reduction on the fusion representation matrix of the first data set, that is, decoding, to obtain a comparison false target corresponding to the sample of the first water conservancy data set. The false target is also called a pseudo-target, which is a semi-supervised learning technology used to estimate and generate forged labels on unlabeled data and expand training samples to improve model performance.
[0137] The comparison false target can indicate the regional location and status type of the comparison monitoring status data in the first water service data set sample. The comparison false target is the estimated information obtained after the basic pre-distillation model estimates the data category of the first water service data set sample based on the water service data set augmented samples and the water service data set sparse samples.
[0138] In operation S54, a first optimization error is determined by using a deviation value between the first estimated information and the compared false target.
[0139] In a feasible design, the distance between the first estimated information and the compared false target is obtained according to the first error function and determined as the first optimization error.
[0140] In operation S55 , the basic distilled model is optimized using the first optimization error to obtain a cloud data processing model.
[0141] In the disclosed embodiment, after obtaining the first water conservancy data set sample without the comparison sample mark, the first water conservancy data set sample is subjected to data transformation operation to obtain the water conservancy data set augmented sample, and the water conservancy data set augmented sample is subjected to sparse extraction to obtain the water conservancy data set sparse sample, and the water conservancy data set augmented sample and the water conservancy data set sparse sample of different data sizes are input into the basic pre-distillation model to obtain the comparison false target, and the basic post-distillation model is optimized by the comparison false target supervision, and finally the cloud data processing model is obtained. In other words, the accuracy of the generated false target can be high according to the loading of data of different sizes, so that the accuracy of the cloud data processing model is also increased.
[0142] In a feasible design, the first data set fusion representation matrix is obtained by performing feature engineering on the augmented samples of the water service data set and the sparse samples of the water service data set according to the basic pre-distillation model. In a feasible design, before operation S52, the method also includes operation S51', operation S51' and operation S51 can be carried out in parallel, and between operation S51 and operation S52, operations S51a to S51d are also included, and operation S53 specifically includes operations S531 to S534. For each inserted operation, it is described as follows:
[0143] Operation S51 ′: obtaining a second water affairs data set sample, wherein the second water affairs data set sample includes a comparison sample tag, and the comparison sample tag represents a comparison data category in the second water affairs data set sample.
[0144] In a feasible design, the second water conservancy data set sample is a water conservancy data set sample randomly determined in the second data sample set. The first data sample set and the second data sample set may come from the same or different data sample sets. The comparison sample mark includes the data distribution area location and state type of the comparison data category in the second water conservancy data set sample. The comparison sample mark is obtained by manual annotation in advance.
[0145] Operation S51a: performing a first data transformation operation on the first water conservancy data set sample to obtain a first water conservancy data set augmented sample corresponding to the first water conservancy data set sample.
[0146] In a feasible design, the first data transformation operation is to enhance the first water affairs data set sample with a relatively large transformation intensity, such as a high-amplitude modification of the data item value.
[0147] Operation S51b: performing sparse sampling on the augmented samples of the first water conservancy data set to obtain sparse samples of the first water conservancy data set corresponding to the augmented samples of the first water conservancy data set.
[0148] Operation S51c: performing a second data transformation operation on the first water affairs data set sample to obtain a second water affairs data set augmented sample corresponding to the first water affairs data set sample, wherein the first data transformation operation and the second data transformation operation correspond to different transformation intensities, respectively.
[0149] In a feasible design, the first data transformation operation and the second data transformation operation have different transformation intensities, for example, the numerical fluctuation ranges corresponding to the data items are different. In a feasible design, the second data transformation operation is a data transformation operation with a smaller transformation intensity performed on the first water service data set sample.
[0150] Operation S51d: performing sparse sampling on the augmented samples of the second water conservancy data set to obtain sparse samples of the second water conservancy data set corresponding to the augmented samples of the second water conservancy data set.
[0151] Also included between operation S52 and operation S531 is: operation S52a, estimating the data category of the second water affairs data set sample by using the basic distilled model to obtain second estimation information characterizing the data category in the second water affairs data set sample.
[0152] In a feasible design, the second water affairs data set sample is input into the basic distilled model for data category estimation, and the obtained output result is determined as the second estimation information. The estimation information is, for example, the confidence of the corresponding data category. In a feasible design, when optimizing the cloud data processing model, the second water affairs data set sample containing the comparison sample mark is loaded into the basic distilled model, and the data category of the second water affairs data set sample is estimated according to the basic distilled model to obtain the data category estimation confidence corresponding to the data category in the second water affairs data set sample as the second estimation information of the data category. For example, the second water affairs data set sample is loaded into the basic distilled model, or the second water affairs data set sample is enhanced to obtain the water affairs data set augmented sample, and the water affairs data set augmented sample is sparsely sampled to obtain the water affairs data set sparse sample and loaded together into the basic distilled model.
[0153] In a feasible design, all samples of the second water affairs data set contain the second estimated information, or some samples of the second water affairs data set contain the second estimated information. In this case, the basic distilled model may not make a complete estimate of the samples of the second water affairs data set.
[0154] Operation S531, perform feature engineering on the augmented samples of the water conservancy data set according to the basic pre-distillation model, and obtain a first data set characterization matrix group corresponding to the augmented samples of the water conservancy data set. In a feasible design, the basic pre-distillation model includes a feature engineering network layer, which is used to perform feature engineering on the data input into the basic pre-distillation model. In the embodiment of the present disclosure, the augmented samples of the second water conservancy data set are input into the feature engineering network layer, and feature engineering is performed on the augmented samples of the second water conservancy data set according to the feature engineering network layer to obtain a first data set characterization matrix group corresponding to the augmented samples of the second water conservancy data set, and the first data set characterization matrix group includes an h-layer first characterization matrix, where h is not less than 1.
[0155] Operation S532 , performing feature engineering on the sparse samples of the water service data set according to the basic pre-distillation model, to obtain a second data set representation matrix group corresponding to the sparse samples of the water service data set.
[0156] In a feasible design, the sparse samples of the second water service data set are loaded into the feature engineering network layer in the basic pre-distillation model, and feature engineering is performed on the sparse samples of the second water service data set according to the feature engineering network layer to obtain the second data set representation matrix group corresponding to the sparse samples of the second water service data set. For example, the augmented samples of the second water service data set and the sparse samples of the second water service data set are loaded into the feature engineering network layer in the basic pre-distillation model, and the first data set representation matrix group corresponding to the augmented samples of the first water service data set and the second data set representation matrix group corresponding to the sparse samples of the first water service data set are output. In other words, the second data set representation matrix group includes the second representation matrix of the h-layer.
[0157] In operation S533, an eccentric fusion is performed between the first data set representation matrix group and the second data set representation matrix group to obtain a first data set fusion representation matrix.
[0158] In a feasible design, the basic pre-distillation model also includes a fusion network, and the first data set representation matrix group and the second data set representation matrix group are loaded into the fusion network to obtain the first data set fusion representation matrix. In a feasible design, the first representation matrix of the g-th layer and the second representation matrix of the g-1-th layer are concatenated (i.e., spliced) to obtain a second concatenated representation matrix, where g-1 is a positive integer not less than 2 and less than h; the second concatenated representation matrix is downsampled to obtain a second downsampled representation matrix corresponding to the second concatenated representation matrix; the second downsampled representation matrix is salience processed (Feature Salience, i.e., activating the features of the input data to emphasize or highlight important features, i.e., the second downsampled representation matrix here. Through activation, the model pays more attention to the features that contribute more to the task, thereby improving the performance and interpretability of the model) to obtain the explicit representation matrix (or activation representation matrix) corresponding to the second downsampled representation matrix; the explicit representation matrix is linearly transformed to obtain the g-th eccentric fusion variable; the first representation matrix of the g-th layer and the second representation matrix of the g-1-th layer are fused through the eccentric fusion variable to obtain the g-th layer fusion result; the h-th layer fusion result is determined as the first data set fusion representation matrix. Among them, the eccentricity fusion variable is the weight during eccentricity calculation. After eccentricity weighting, each weighted result is added to complete the fusion of the first representation matrix of the g-th layer and the second representation matrix of the g-1th layer.
[0159] In a feasible design, the representation matrix of each level is fused based on the same process, and finally the h-layer fusion result is obtained, that is, the fused representation matrix of the first data set.
[0160] In operation S534, data category estimation is performed on the first data set fusion representation matrix to obtain a false target for comparison.
[0161] In a feasible design, the first data set fusion representation matrix is restored to obtain multiple candidate estimation information corresponding to the first water conservancy data set samples, and the candidate estimation information represents the category confidence of the data category in the first water conservancy data set samples; the category confidence critical value is obtained; and at least one candidate estimation information among the multiple candidate estimation information whose category confidence is not less than the category confidence critical value is determined as a comparison false target.
[0162] In a feasible design, the basic pre-distillation model includes a matrix reduction component, which is a decoder. The first data set fusion representation matrix is input into the matrix reduction component, and the matrix is reduced according to the matrix reduction component, so as to obtain the candidate estimation information corresponding to the first water service data set sample. The candidate estimation information of the first water service data set sample is used to estimate the data distribution area position and category confidence of the data category in the first water service data set sample.
[0163] In a feasible design, when selecting multiple candidate prediction information of the first water conservancy data set sample, a category confidence critical value is set in advance, and the candidate prediction information corresponding to the data category in the first water conservancy data set sample includes a location area label and a category confidence. The location area label is used to indicate that the data corresponding to the data category is located in the data distribution area of the first water conservancy data set sample, and the category confidence corresponds to the confidence corresponding to the data category. When the category confidence is not less than the category confidence critical value, the corresponding candidate prediction information is determined as a comparison false target corresponding to the data category. Then, the first water conservancy data set sample includes comparison false targets corresponding to multiple different data categories.
[0164] Between operation S54 and operation S55, operation S541 is further included to obtain a second optimization error through a deviation value between the second estimated information and the comparison sample mark.
[0165] In a feasible design, the distance between the second estimated information and the comparison sample mark is obtained according to the second error function and determined as the second optimization error. The error function may be a cross entropy error function. The first error function and the second error function may be the same.
[0166] At this time, operation S55 is S551, optimizing the basic distilled model through the first optimization error and the second optimization error to obtain a cloud data processing model.
[0167] For example, the second optimization error and the first optimization error are added or weighted together, and then the basic distilled model is optimized based on the result, and the model parameters of the basic distilled model are corrected to obtain the cloud data processing model.
[0168] It should be noted that the above only introduces one optimization process in the cloud data processing model optimization. The cloud data processing model optimization involves multiple iterative optimizations. Each optimization obtains different samples of the second water conservancy data set and the first water conservancy data set. The above introduction only involves one of the optimizations.
[0169] Based on the above optimization method, after obtaining the first water affairs data set sample without the comparison sample mark, the first water affairs data set sample is enhanced to obtain the water affairs data set augmented sample, and the water affairs data set augmented sample is sparsely extracted to obtain the water affairs data set sparse sample, and the water affairs data set augmented sample and the water affairs data set sparse sample of different data sizes are input into the basic pre-distillation model to obtain the comparison false target, and by comparing the false target, the basic post-distillation model is constrained and optimized to obtain the cloud data processing model. By obtaining data of different sizes, the generated false targets can be more accurate, so that the quality of the cloud data processing model is also higher.
[0170] In the disclosed embodiment, the first data transformation operation and the second data transformation operation are respectively performed on the first water affairs data set sample to obtain data with different transformation strengths, and the first water affairs data set augmented sample and the second water affairs data set augmented sample obtained by the transformation are respectively subjected to sparse sampling processing to obtain the first water affairs data set sparse sample corresponding to the first water affairs data set augmented sample and the second water affairs data set sparse sample corresponding to the second water affairs data set augmented sample. In the disclosed embodiment, after performing feature engineering on the first water affairs data set augmented sample and the first water affairs data set sparse sample according to the basic pre-distillation model, the first data set representation matrix group corresponding to the first water affairs data set augmented sample and the representation matrix corresponding to the first water affairs data set sparse sample are mined according to the basic pre-distillation model, and then eccentric fusion is performed to generate a comparison false target, which can make the feature coverage wider and the accuracy of the comparison false target higher. In the disclosed embodiment, according to the multi-level first representation matrix in the first data set representation matrix group and the second representation matrix in the second data set representation matrix group, the accuracy of the representation matrix generation is higher. In the disclosed embodiment, according to the candidate estimation information obtained by matrix restoration of the obtained first data set fusion representation matrix, the comparison false target is selected, and the accuracy of the false target generation is higher.
[0171] In a feasible design, the basic distillation model includes a feature engineering network layer. In a feasible design, operation S52 includes operations S521 to S524.
[0172] Operation S521 performs feature engineering on the augmented samples and sparse samples of the water affairs data set according to the basic distillation model, obtains a third data set representation matrix group corresponding to the augmented samples of the water affairs data set, and obtains a fourth data set representation matrix group corresponding to the sparse samples of the water affairs data set.
[0173] In the disclosed embodiment, the execution data of the basic distilled model is the first water service data set augmented sample and the water service data set sparse sample corresponding to the first water service data set augmented sample. For example, the first water service data set augmented sample and the water service data set sparse sample are loaded into the basic distilled model together, or the first water service data set augmented sample and the water service data set sparse sample are loaded into the basic distilled model in sequence.
[0174] In a feasible design, the basic distilled model includes a feature engineering network layer, which is used to perform feature engineering on the data input into the basic distilled model. In the embodiment of the present disclosure, the first water conservancy data set augmented sample is input into the feature engineering network layer, and feature engineering is performed on the first water conservancy data set augmented sample according to the feature engineering network layer to obtain a third data set representation matrix group corresponding to the first water conservancy data set augmented sample. In the embodiment of the present disclosure, the sparse sample of the water conservancy data set is input into the feature engineering network layer, and feature engineering is performed on the sparse sample of the water conservancy data set according to the feature engineering network layer to obtain a fourth data set representation matrix group corresponding to the sparse sample of the water conservancy data set. The third data set representation matrix group and the fourth data set representation matrix group are also multi-level collections.
[0175] In operation S522, the third data set representation matrix group and the fourth data set representation matrix group are eccentrically fused to obtain a second data set fused representation matrix.
[0176] In the embodiment of the present disclosure, the process of eccentrically fusing the third data set representation matrix group and the fourth data set representation matrix group is the same as the process of integrating the first data set representation matrix group and the second data set representation matrix group, which will not be described in detail here, so as to obtain the second data set fusion representation matrix.
[0177] In operation S523, matrix restoration is performed on the third data set representation matrix group, the fourth data set representation matrix group, and the second data set fusion representation matrix, respectively, to obtain first sub-estimation information corresponding to the third data set representation matrix group, second sub-estimation information corresponding to the fourth data set representation matrix group, and third sub-estimation information corresponding to the second data set fusion representation matrix.
[0178] In the embodiment of the present disclosure, the basic post-distillation model also includes a matrix restoration network layer. Different from the basic pre-distillation model, the third data set representation matrix group, the fourth data set representation matrix group and the second data set fusion representation matrix are respectively input into the matrix restoration component for matrix restoration to obtain the first sub-estimation information of the first water service data set sample corresponding to the third data set representation matrix group, the second sub-estimation information of the first water service data set sample corresponding to the fourth data set representation matrix group, and the third sub-estimation information corresponding to the second data set fusion representation matrix. The first sub-estimation information, the second sub-estimation information and the third sub-estimation information may be the same or different.
[0179] In operation S524, the first sub-estimation information, the second sub-estimation information, and the third sub-estimation information are determined as first estimation information.
[0180] In the embodiment of the present disclosure, the first sub-prediction information, the second sub-prediction information and the third sub-prediction information are determined as three types of sub-prediction information of the first prediction information.
[0181] In operation S54, a first optimization error is determined by using a deviation value between the first estimated information and the compared false target.
[0182] In a feasible design, the first optimized sub-error is obtained by comparing the deviation value between the false target and the first sub-estimated information; the second optimized sub-error is obtained by comparing the deviation value between the false target and the second sub-estimated information; the third optimized sub-error is obtained by comparing the deviation value between the false target and the third sub-estimated information; and the sum of the first optimized sub-error, the second optimized sub-error and the third optimized sub-error is determined as the first optimized error.
[0183] In the disclosed embodiment, after obtaining the first sub-estimation information, the second sub-estimation information and the third sub-estimation information corresponding to the first water conservancy data set sample according to the basic post-distillation model, the optimized sub-errors corresponding to the first sub-estimation information, the second sub-estimation information and the third sub-estimation information are obtained by comparing the false targets of the first water conservancy data set samples obtained by the basic pre-distillation model.
[0184] In the disclosed embodiment, the distance between the first sub-estimated information and the comparison false target is obtained through a preset error function to obtain the first optimized sub-error. Since the data size of the sparse sample of the water conservancy data set of the second water conservancy data set augmented sample corresponding to the second sub-estimated information is small, the comparison false target is subjected to sparse extraction processing to obtain a sparse target with the same data size as the sparse sample of the water conservancy data set, and the distance between the second sub-estimated information and the sparse target is obtained through a preset error function, which is used as the second optimized sub-error. In other words, the comparison false target is subjected to sparse extraction processing to obtain a sparse target, and the data size corresponding to the sparse target corresponds to the data size corresponding to the second sub-estimated information; the second optimized sub-error is obtained through the deviation value between the sparse target and the second sub-estimated information.
[0185] In the disclosed embodiment, a preset error function is used to obtain the distance between the third sub-estimated information and the compared false target, and a third optimized sub-error is determined.
[0186] In the embodiment of the present disclosure, after obtaining the first optimization sub-error, the second optimization sub-error and the third optimization sub-error, the first optimization sub-error, the second optimization sub-error and the third optimization sub-error are added together, and the addition result is used as the first optimization error.
[0187] In the embodiment of the present disclosure, when optimizing the cloud data processing model, after obtaining the first water service data set sample without the comparison sample mark, the first water service data set sample is enhanced to obtain the water service data set augmented sample, and the water service data set augmented sample is sparsely extracted to obtain the water service data set sparse sample, and the water service data set augmented sample and the water service data set sparse sample of different data sizes are input into the basic pre-distillation model to obtain the comparison false target, and the basic post-distillation model is constrained and optimized by the comparison false target to obtain the cloud data processing model. By loading data of different scales, the accuracy of the generated false target is high enough, thereby improving the accuracy of the optimized cloud data processing model. In the embodiment of the present disclosure, the data category of the water service data set augmented sample and the water service data set sparse sample is estimated according to the basic post-distillation model, and the first estimated information obtained is highly accurate. In the embodiment of the present disclosure, after obtaining the second data set fusion representation matrix, the third data set representation matrix group, the fourth data set representation matrix group and the second data set fusion representation matrix are respectively matrix restored according to the basic post-distillation model, and the first optimization error finally obtained is the optimization sub-error corresponding to different data sizes, and the first optimization error has high accuracy.
[0188] It is understandable that although the edge-side data processing model is embedded in the edge device and the cloud-side data processing model can be embedded in the cloud device, the two models can be implemented in the same computer device during the optimization stage.
[0189] According to an embodiment of the present disclosure, an electronic device, a readable storage medium and a computer program product are also provided.
[0190] Please refer to Figure 3 , is a block diagram of an electronic device 1000 implemented as an edge device or a cloud device in the present disclosure, and the electronic device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 to a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic device 1000 can also be stored. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0191] Multiple components in the electronic device 1000 are connected to the I / O interface 1005, including: an input unit 1006, an output unit 1007, a storage unit 1008, and a communication unit 1009. When implemented as a cloud device, the input unit 1006 can be any type of device that can input information to the electronic device 1000. The input unit 1006 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, keyboard, touch screen, trackpad, trackball, joystick, microphone and / or remote control. The output unit 1007 can be any type of device that can present information, and can include but is not limited to a display, a speaker, and a video / audio output terminal. The storage unit 1008 can include but is not limited to a disk and an optical disk. The communication unit 1009 allows the electronic device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as a Bluetooth™ device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device and / or the like.
[0192] The computing unit 1001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1001 performs the various methods and processes described above, such as method 200. For example, in some embodiments, the method 200 may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the method 200 described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to execute the method 200 in any other appropriate manner (eg, by means of firmware).
[0193] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0194] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0195] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer.
[0196] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0197] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in the present disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and this document is not limited here. Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present disclosure is not limited by these embodiments or examples, but only by the authorized claims and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalent elements. In addition, the steps may be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples may be combined in various ways. It is important that with the evolution of technology, many of the elements described herein may be replaced by equivalent elements that appear after the present disclosure.
Claims
1. A water affairs data processing method based on digital twin, characterized in that: include: Access to water monitoring datasets; The water conservancy monitoring data set is loaded into an edge-side data processing model, and A data set representation matrices corresponding to the water conservancy monitoring data set are processed based on the edge-side data processing model to obtain estimated information on whether there is target monitoring status data in the water conservancy monitoring data set; wherein the A data set representation matrices are obtained by performing feature engineering on the water conservancy monitoring data set, and the edge-side data processing model is configured to perform a diversity set feature extraction operation on the A data set representation matrices, and perform monitoring status data estimation on the diversity set feature extraction results, wherein A is not less than 1; When the estimated information indicates that the target monitoring status data exists in the water affairs monitoring data set, the water affairs monitoring data set is loaded into the cloud data processing model, and the data category of the target monitoring status data in the water affairs monitoring data set is estimated based on the cloud data processing model, and the data status information corresponding to the target monitoring status data is output; Visually display the corresponding area in the preset water affairs digital twin based on the data status information; The step of loading the water conservancy monitoring data set into the edge-side data processing model, processing A data set representation matrices corresponding to the water conservancy monitoring data set based on the edge-side data processing model, and obtaining estimated information on whether there is target monitoring status data in the water conservancy monitoring data set includes: Loading the water affairs monitoring data set into the feature engineering network layer in the edge-side data processing model, performing feature engineering on the water affairs monitoring data set based on the feature engineering network layer, and obtaining A data set representation matrices; The A data set representation matrices are loaded into a diversity combination network layer in the edge-side data processing model, the A data set representation matrices are divided into K sets based on the diversity combination network layer, each set includes one or more data set representation matrices, and matrix interaction merging is performed on the data set representation matrices in each of the K sets to obtain B data set interaction representation matrices, wherein B is not less than 1, K is not greater than B, and K is not less than 1; Performing matrix splicing on the B data set interaction representation matrices to obtain a first spliced representation matrix; Loading the first splicing representation matrix into the state estimation network layer in the edge-side data processing model, estimating the monitoring state data of the first splicing representation matrix based on the state estimation network layer, and obtaining estimation information of whether there is target monitoring state data in the water affairs monitoring data set; The method further comprises: Acquire a first water affairs data set sample, wherein the first water affairs data set sample corresponds to a water affairs data set augmented sample and a water affairs data set sparse sample, wherein the water affairs data set augmented sample is obtained by performing data set transformation on the first water affairs data set sample, and the water affairs data set sparse sample is obtained by performing sparse extraction on the water affairs data set augmented sample; Predicting data categories of the first water affairs data set samples according to the basic distilled model to obtain first prediction information characterizing data categories in the first water affairs data set samples; According to the basic pre-distillation model, the data category of the first data set fusion representation matrix of the water affairs data set augmented samples and the water affairs data set sparse samples is estimated to obtain a false target for comparison; Determining a first optimization error by using a deviation value between the first estimated information and the compared false target; The basic distilled model is optimized using the first optimization error to obtain the cloud data processing model.
2. The water affairs data processing method based on digital twin according to claim 1 is characterized in that: The step of loading the A data set representation matrices into a diversity combination network layer in the edge-side data processing model, dividing the A data set representation matrices into K sets based on the diversity combination network layer, each set including one or more data set representation matrices, and performing matrix interaction merging on the data set representation matrices in each of the K sets to obtain B data set interaction representation matrices includes: Delimiting the A data set representation matrices into K sets, performing a filtering operation on the data set representation matrix in each of the K sets, and obtaining data set filtering representation matrices of the K sets; Mixing the representation matrices of the data set filter representation matrices belonging to different sets in the data set filter representation matrices of the K sets to obtain mixed representation matrices of the data set of the K sets; Performing matrix addition calculation on the data set filter representation matrices belonging to different sets in the data set filter representation matrices of the K sets to obtain K data set superposition representation matrices; Performing a hierarchical filtering operation on the mixed representation matrices of the K sets of data sets and the superimposed representation matrices of the K data sets to obtain L data set hierarchical filtering representation matrices, where L is not greater than K; Performing feature mapping on the mixed representation matrices of the data sets of the K sets to obtain data set mapping representation matrices of the K sets; The layered filtering representation matrices of the L data sets are concatenated with the data set mapping representation matrices of the K sets to obtain B data set interaction representation matrices.
3. The water affairs data processing method based on digital twin according to claim 1 is characterized in that: The step of loading the A data set representation matrices into a diversity combination network layer in the edge-side data processing model, dividing the A data set representation matrices into K sets based on the diversity combination network layer, each set including one or more data set representation matrices, and performing matrix interaction merging on the data set representation matrices in each of the K sets to obtain B data set interaction representation matrices includes: The A data set representation matrices are loaded into a first component network layer in the diversity combination network layer, the A data set representation matrices are divided into K sets based on the first component network layer, and matrix interaction merging is performed on the data set representation matrices in each of the K sets to obtain (2K+1)·W first data set interaction representation matrices, where W is the number of data set filter representation matrices obtained by filtering the data set representation matrices in each set, and W is not less than 1; The (2K+1)·W first data set interaction representation matrices are loaded into the second component network layer in the diversity combination network layer, and the (2K+1)·W first data set interaction representation matrices are divided into K sets based on the second component network layer, and matrix interaction merging is performed on the first data set interaction representation matrix of each set in the K sets to obtain B data set interaction representation matrices, where B is equal to (2K+1)·U, U is the number of data set filter representation matrices obtained by performing filtering operations on the first data set interaction representation matrix of each set, and U is not less than 1.
4. The water affairs data processing method based on digital twin according to claim 1 is characterized in that: The step of performing matrix splicing on the B data set interaction representation matrices to obtain a first spliced representation matrix includes: Downsampling the B data set interaction representation matrices to obtain B first downsampled representation matrices corresponding to the B data set interaction representation matrices; The B first down-sampling representation matrices are concatenated to obtain a first concatenated representation matrix.
5. The water affairs data processing method based on digital twin according to claim 1 is characterized in that: The method further comprises: Obtain a target water affairs data set sample and a non-target water affairs data set sample, wherein the target water affairs data set sample includes a target class tag, the non-target water affairs data set sample includes a non-target class tag, the target monitoring status data exists in the target water affairs data set sample, and the non-target water affairs data set sample does not contain the target monitoring status data; The target class water affairs data set sample is loaded into the edge side data processing model, and A target class data set representation matrices corresponding to the target class water affairs data set sample are processed based on the edge side data processing model to obtain first estimated information of whether there is target monitoring status data in the target class water affairs data set sample, wherein the A target class data set representation matrices are obtained by performing feature engineering on the target class water affairs data set sample, and the edge side data processing model is configured to perform a diversity set feature extraction operation on the A target class data set representation matrices, and perform monitoring status data estimation on the diversity set feature extraction results; The non-target water affairs data set samples are loaded into an edge-side data processing model, and A non-target data set characterization matrices corresponding to the non-target water affairs data set samples are processed based on the edge-side data processing model to obtain second estimated information on whether there is target monitoring status data in the non-target water affairs data set samples, wherein the A non-target data set characterization matrices are obtained by performing feature engineering on the non-target water affairs data set samples, and the edge-side data processing model is configured to perform a diversity set feature extraction operation on the A non-target data set characterization matrices, and perform monitoring status data estimation on the diversity set feature extraction results; An optimized error function is obtained according to the target class label, the first estimated information, the non-target class label and the second estimated information, and internal configuration parameters of the edge-side data processing model are corrected based on the optimized error function.
6. The water affairs data processing method based on digital twin according to claim 1 is characterized in that: The step of estimating data categories of the first data set fusion representation matrix of the water affairs data set augmented samples and the water affairs data set sparse samples according to the basic pre-distillation model to obtain false targets for comparison includes: Performing feature engineering on the augmented samples of the water affairs data set according to the basic pre-distillation model to obtain a first data set representation matrix group corresponding to the augmented samples of the water affairs data set; Performing feature engineering on the sparse samples of the water affairs data set according to the basic pre-distillation model to obtain a second data set representation matrix group corresponding to the sparse samples of the water affairs data set; Performing off-center fusion between the first data set representation matrix group and the second data set representation matrix group to obtain the first data set fusion representation matrix; Predicting the data category of the first data set fusion representation matrix to obtain the comparison false target; The step of performing off-center fusion between the first data set representation matrix group and the second data set representation matrix group to obtain the first data set fusion representation matrix includes: Performing matrix concatenation on the first representation matrix of the g-th layer and the second representation matrix of the g-1-th layer to obtain a second concatenated representation matrix, wherein the first data set representation matrix group includes the first representation matrix of the h-th layer, and the second data set representation matrix group includes the second representation matrix of the h-th layer, wherein g-1 is a positive integer not less than 2 and less than h; Downsampling the second spliced representation matrix to obtain a second downsampled representation matrix corresponding to the second spliced representation matrix; Performing saliency processing on the second down-sampling representation matrix to obtain an explicit representation matrix corresponding to the second down-sampling representation matrix; Performing a linear transformation on the explicit representation matrix to obtain a g-th eccentric fusion variable; The g-th layer first representation matrix and the g-1-th layer second representation matrix are fused by using the eccentric fusion variable to obtain the g-th layer fusion result; Determine the h-layer fusion result as the fusion representation matrix of the first data set; The step of estimating the data category of the first data set fusion representation matrix to obtain the comparison false target includes: Performing matrix restoration on the first data set fusion representation matrix to obtain a plurality of candidate estimation information corresponding to the first water conservancy data set sample, wherein the candidate estimation information represents the category confidence of the data category in the first water conservancy data set sample; Get the category confidence threshold; At least one candidate prediction information among the multiple candidate prediction information whose category confidence is not less than the category confidence threshold is determined as the comparison false target.
7. The water affairs data processing method based on digital twin according to claim 1 or 6, characterized in that: The step of respectively estimating data categories of the augmented samples of the water affairs data set and the sparse samples of the water affairs data set according to the basic distilled model to obtain first estimation information characterizing data categories in the samples of the first water affairs data set includes: Perform feature engineering on the augmented samples of the water affairs data set and the sparse samples of the water affairs data set respectively according to the basic distilled model to obtain a third data set representation matrix group corresponding to the augmented samples of the water affairs data set, and obtain a fourth data set representation matrix group corresponding to the sparse samples of the water affairs data set; Performing off-center fusion on the third data set representation matrix group and the fourth data set representation matrix group to obtain a second data set fusion representation matrix; Performing matrix restoration on the third data set representation matrix group, the fourth data set representation matrix group, and the second data set fusion representation matrix, respectively, to obtain first sub-estimation information corresponding to the third data set representation matrix group, second sub-estimation information corresponding to the fourth data set representation matrix group, and third sub-estimation information corresponding to the second data set fusion representation matrix; The first sub-prediction information, the second sub-prediction information, and the third sub-prediction information are determined as the first prediction information.
8. A water affairs data processing system, characterized in that: comprising a cloud device and at least one edge device in communication connection with the cloud device; The edge device is embedded with an edge-side data processing model according to any one of claims 1 to 7, and is configured to process A data set representation matrices corresponding to the water affairs monitoring data set based on the edge-side data processing model to obtain estimated information on whether there is target monitoring status data in the water affairs monitoring data set; The cloud device is embedded with a cloud data processing model according to any one of claims 1 to 7, and is configured to perform data category estimation on the target monitoring status data in the water affairs monitoring data set based on the cloud data processing model, output data status information corresponding to the target monitoring status data, and perform visual display in a corresponding area in a preset water affairs digital twin based on the data status information.
Citation Information
Patent Citations
Industrial equipment fault diagnosis method based on digital twinning and computer equipment
CN116975570A
Bearing state monitoring and fault early warning method and system for digital twin drive
CN117332333A
