A method for energy-saving operation of water pumps based on artificial intelligence

By designing smooth index activation functions, coding modules, etc. in the water pump energy-saving operation adjustment model, building a data-rich model and using specific tuning algorithms, the problems of low data expression ability and tuning efficiency of traditional models are solved, and the model is improved Adaptability and tuning efficiency achieve more efficient water pump energy-saving operation.

CN118709327BActive Publication Date: 2024-11-05TAIZHOU QIANTAO PUMPS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411196763.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-11-05
Estimated Expiration
2044-08-29

AI Technical Summary

Technical Problem

Due to insufficient data, the traditional water pump energy-saving operation and regulation model has weak data expression ability, low adaptability to data, low performance and accuracy, the model has weak data processing and expression ability, low generalization ability and robustness, and the tuning algorithm Low efficiency, targetedness and accuracy, making it easy to conduct blind exploration.

Method used

Build a rich data model by designing smooth index activation function, encoding module, bottleneck layer, decoding module, simulation data quality evaluation, and data simulation loss function; designing the water pump energy-saving operation adjustment model structure, including correcting the zero-intercept activation function, hidden layer, and auxiliary prediction Layer, random inactivation layer, adjustment strategy output layer, weight complexity indicator, complexity auxiliary loss function; parameter search is performed using initial adjustment factor, generating initial search cluster, adaptive factor, and adaptive reference search function.

Benefits of technology

It improves the adaptability and accuracy of the model to data, enhances generalization ability and robustness, optimizes the complexity of the model, improves the efficiency and accuracy of tuning, and avoids blind exploration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709327B_ABST
    Figure CN118709327B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for energy-saving operation of a water pump based on artificial intelligence, which includes data collection, data preprocessing, building a data enrichment model, building a water pump energy-saving operation adjustment model, model tuning and water pump energy-saving operation. The present invention relates to the field of water pump energy-saving technology, and specifically refers to a method for energy-saving operation of a water pump based on artificial intelligence. This scheme improves the adaptability of the model to data, model performance and accuracy by designing a smooth exponential activation function, a data enrichment model and a data simulation loss function; improves the expressiveness and flexibility of the model by designing a water pump energy-saving operation adjustment model, a corrected zero-cut activation function and a complexity auxiliary loss function, and helps capture complex and deep feature relationships; improves the search capability, efficiency and accuracy of the tuning by designing an initialization adjustment factor, an adaptive factor and an adaptive reference search function, making the search more reasonable and efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water pump energy saving, and in particular to an energy-saving operation method of a water pump based on artificial intelligence. Background Art

[0002] An energy-saving operation method for water pumps based on artificial intelligence is to use artificial intelligence technology, sensor technology and data processing technology to collect all-round data of water pump operation and build a water pump energy-saving operation adjustment model. The model conducts in-depth analysis of the status of the water pump during operation and intelligently adjusts the operation status of the water pump to adapt to different usage scenarios and environmental conditions. However, the traditional water pump energy-saving operation adjustment model has the problems of weak data expression ability due to insufficient data, low model adaptability to data, low model performance and accuracy; the traditional water pump energy-saving operation adjustment model has the problems of weak model data processing and expression ability, low model generalization ability and robustness, and high model complexity; the traditional model tuning algorithm has the problems of low tuning efficiency, pertinence and accuracy, weak search ability of the tuning algorithm, and easy blind exploration. Summary of the invention

[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides a water pump energy-saving operation method based on artificial intelligence. In view of the problems that the traditional water pump energy-saving operation adjustment model has weak data expression ability due to insufficient data, low model adaptability to data, low model performance and accuracy, this scheme designs a smooth exponential activation function, designs an encoding module, designs a bottleneck layer, designs a decoding module, simulates data quality evaluation, and designs a data simulation loss function to train a data enrichment model to make up for the lack of data, provide more comprehensive information, enrich the data expression ability, and improve the model's adaptability to data, model performance and accuracy; in view of the problems that the traditional water pump energy-saving operation adjustment model has weak data processing and expression ability, low generalization ability and robustness of the model, and high model complexity, this scheme designs a water pump energy-saving operation adjustment model The energy-saving operation regulation model of the water pump is constructed by adopting the regulation model structure, modified zero-cut activation function, hidden layer, auxiliary prediction layer, random inactivation layer, regulation strategy output layer, weight complexity index and complexity auxiliary loss function to improve the expressiveness and flexibility of the model, help capture complex and deep feature relationships, enhance the generalization and robustness of the model, and optimize the complexity of the model; in view of the problems of low tuning efficiency, pertinence and accuracy of the traditional model tuning algorithm, weak search ability of the tuning algorithm, and easy blind exploration, this scheme designs initialization regulation factors, generates initial search clusters, designs adaptive factors, and designs adaptive reference search functions to perform parameter search, which improves the efficiency, pertinence and accuracy of tuning, strengthens the search ability of the tuning algorithm, makes the search more reasonable and efficient, and avoids blind exploration.

[0004] The technical solution adopted by the present invention is as follows: a water pump energy-saving operation method based on artificial intelligence, the method comprising the following steps:

[0005] Step S1: data collection;

[0006] Step S2: data preprocessing;

[0007] Step S3: constructing a data enrichment model;

[0008] Step S4: constructing a water pump energy-saving operation regulation model;

[0009] Step S5: model tuning;

[0010] Step S6: The water pump operates in an energy-saving manner.

[0011] Furthermore, in step S1, the data collection is to collect water pump operating parameters, inlet and outlet pressure data, working current and voltage, system temperature data, water level or liquid level information, pipe network system characteristic data, actual water demand data, environment-related data, water pump equipment's own status data and energy-saving adjustment data; the water pump operating parameters include the water pump's speed, flow, head and power.

[0012] Furthermore, in step S2, the data preprocessing specifically includes the following steps:

[0013] Step S21: repair abnormal data, use data statistics to identify abnormal data, and repair the abnormal data;

[0014] Step S22: Data standardization, which is to process the data uniformly, unify the data into the same unit, and unify the data into a standard data range;

[0015] Step S23: Data encoding, encoding the characteristic data. For energy-saving adjustment data, a coding structure is designed, including a prefix, a middle part and a suffix. The prefix indicates the main type of energy-saving adjustment, the middle part indicates the specific adjustment subcategory, and the suffix indicates the special attributes and variants of the energy-saving adjustment strategy;

[0016] Step S24: Setting label data, setting the energy-saving adjustment data as label data.

[0017] Furthermore, in step S3, the building of the data enrichment model specifically includes the following steps:

[0018] Step S31: Design a smooth exponential activation function, which is expressed as follows:

[0019] ;

[0020] in, represents the smooth exponential activation function, represents the input of the smooth exponential activation function, represents the smoothing factor, Indicates taking the absolute value;

[0021] Step S32: designing a data enrichment model infrastructure, the model including an encoding module, a bottleneck layer and a decoding module, wherein the encoding module and the decoding module both have a two-layer neuron structure and the number of neurons in the first layer of the encoding module is the same as the number of neurons in the second layer of the decoding module, and the number of neurons in the second layer of the encoding module is the same as the number of neurons in the first layer of the decoding module;

[0022] Step S33: Design the encoding module, as shown below:

[0023] ;

[0024] in, represents the output of the encoding module, , and denote the weight, input and bias of the first layer of the encoding module, respectively. represents the weight of the second layer of the encoding module, Represents the bias of the second layer of the encoding module;

[0025] Step S34: Design the bottleneck layer and introduce the residual input of the first layer of the encoding module, which is expressed as follows:

[0026] ;

[0027] in, represents the output of the bottleneck layer, , and denote the weight, input and bias of the bottleneck layer respectively, represents the residual input of the first layer of the introduced encoding module, represents the residual weight;

[0028] Step S35: Design a decoding module, as shown below:

[0029] ;

[0030] in, represents the output of the decoding module, represents the sigmoid activation function, , and Represent the weight, input and bias of the first layer of the decoding module, respectively. represents the weight of the second layer of the decoding module, represents the bias of the second layer of the decoding module;

[0031] Step S36: Simulation data quality assessment, performing quality assessment on the newly generated simulation data, as shown below:

[0032] ;

[0033] Among them, k represents the index of the generated new data, Indicates the position of the kth new data generated, represents the quality index value of the kth new simulation data generated, N represents the total number of samples of the original data, i represents the index of the sample of the original data, Indicates the position of the i-th data in the original data, Represents the average value of the positions of all data points of the original data;

[0034] Step S37: Design a data simulation loss function, which is expressed as follows:

[0035] ;

[0036] Among them, Loss represents the data simulation loss function, and M represents the total number of new data generated;

[0037] Step S38: Model training, calculating the gradient of each neuron. The gradient reflects the influence of each weight and bias on the quality of the model. The weight and bias are adjusted according to the gradient information.

[0038] Step S39: enrich the original data, generate simulation data through the constructed model, add the simulation data to the original data set, and enrich the data set.

[0039] Further, in step S4, the construction of the water pump energy-saving operation adjustment model specifically includes the following steps:

[0040] Step S41: designing the structure of the water pump energy-saving operation regulation model, which consists of five parts, including an input layer, a hidden layer, a random inactivation layer, an auxiliary prediction layer and a regulation strategy output layer;

[0041] Step S42: Design a modified zero-cut activation function, which is expressed as follows:

[0042] ;

[0043] in, represents the corrected zero-cut activation function, represents the input of the modified zero-cut activation function, e represents a natural constant, represents the scaling factor;

[0044] Step S43: Design the hidden layer, which is expressed as follows:

[0045] ;

[0046] in, represents the output of the hidden layer, L represents the number of hidden layers, , and denote the weights of the Lth, L-1th, and 1st hidden layers, respectively. , and denote the bias of the Lth, L-1th and 1st hidden layers respectively, Table 1 shows the input of the first hidden layer, ... represents the hidden layer expression activated by the zero-cut activation function from the 2nd layer to the L-2th layer;

[0047] Step S44: Design an auxiliary prediction layer, copy the outputs of the first three layers of the hidden layer, jump connect them to the auxiliary prediction layer, and then output them to the random inactivation layer together with the hidden layer, as shown below:

[0048] ;

[0049] in, represents the output of the auxiliary prediction layer, , and They represent the skip connection weights of the auxiliary prediction layer assigned to the 1st, 2nd and 3rd hidden layers, respectively. and Represent the input of the second and third hidden layers respectively, and Represent the weights of the second and third hidden layers, respectively. and Respectively represent the bias of the second and third hidden layers;

[0050] Step S45: Design a random inactivation factor, which is expressed as follows:

[0051] ;

[0052] in, represents the random dropout factor, represents a random number between 0 and 1, and p represents the inactivation probability;

[0053] Step S46: Design a random dropout layer, as shown below:

[0054] ;

[0055] Where v represents the neuron index of the random dropout layer, represents the output of the vth neuron in the random dropout layer, represents the vth neuron of the random dropout layer input;

[0056] Step S47: Design the adjustment strategy output layer, and convert the output into the probability of the corresponding decision method through the normalized exponential activation function, which is expressed as follows:

[0057] ;

[0058] in, represents the output of the output layer of the adjustment strategy, represents the normalized exponential function, represents the weight of the output layer of the regulation strategy, represents the input of the output layer of the regulation strategy, represents the bias of the output layer of the regulation strategy;

[0059] Step S48: Design a weight complexity index to measure the complexity of the weight matrix by combining weight normalization with parameter sharing, as shown below:

[0060] ;

[0061] in, represents the model weight matrix, represents the weight complexity index, h represents the layer index of the model, and H represents the maximum number of layers of the model. represents the parameter vector of the Hth layer, The L1 norm of the parameter vector of the Hth layer, represents the parameter vector of the first layer, represents the L1 norm of the parameter vector of layer 1, The second to the The product of the L1 norms of all parameter vectors of the layer, represents the parameter vector of the Hth layer;

[0062] Step S49: Design a complexity-assisted loss function, and design a loss function in combination with the weight complexity index, as shown below:

[0063] ;

[0064] in, represents the complexity auxiliary loss function, g represents the index of the sample, It represents the probability corresponding to the actual energy-saving adjustment strategy of the g-th sample in the result output by the adjustment strategy output layer, represents the highest probability among the output results of the adjustment strategy for the g-th sample, represents the complexity weight;

[0065] Step S410: Model learning, learning and adjusting model parameters by calculating the gradient of the loss function with respect to the weight and bias parameters of the model.

[0066] Furthermore, in step S5, the model tuning specifically includes the following steps:

[0067] Step S51: tuning preparation, setting the tuning object, including the smoothing factor and scaling factor, complexity weight, and inactivation probability in the designed activation function, creating a tuning search space, and setting the accuracy of the model as the performance indicator of the parameter individual;

[0068] Step S52: Design an initialization adjustment factor, which is expressed as follows:

[0069] ;

[0070] Where b represents the index of the generated initial search point, Indicates the initialization adjustment factor when generating the b+1th initial search point, Represents the initialization adjustment factor when generating the bth initial search point, Represents a random number between 0 and 1;

[0071] Step S53: Generate an initial search cluster, and use the initialization adjustment factor to select a method for generating the initial search cluster, as shown below:

[0072] ;

[0073] in, represents the bth initial search point generated, represents the average position of the first b-1 initial search points, tol represents the upper bound of the search space, and dol represents the lower bound of the search space;

[0074] Step S54: Design an adaptive factor, which is expressed as follows:

[0075] ;

[0076] Among them, t represents the current optimization iteration number, represents the adaptive factor at the tth optimization iteration, T represents the maximum number of optimization iterations, r2 represents a random number between 0 and 1, Represents a linear decreasing factor from 1 to -2;

[0077] Step S55: Design an adaptive reference search function, based on the adaptive factor, to perform a steady search on the basis of the historical search, as shown below:

[0078] ;

[0079] in, represents the parameter position searched by the adaptive reference search function during the t+1th iteration search, represents the parameter position searched by the adaptive reference search function during the t-th iteration search, r3 represents a random number between 0 and 1, represents the parameter position searched by the adaptive reference search function during the t-1th iteration search, represents the average position of the initial search cluster, Indicates the parameter position with the highest parameter performance during the t-th iteration search;

[0080] Step S56: Parameter search, set the performance optimization threshold, set the maximum number of search iterations, and generate an initial search cluster to perform parameter search through an adaptive reference search function to evaluate the performance of the searched parameters. If there are parameters with performance greater than the performance optimization threshold, stop the parameter search and output the parameters of the point with the highest performance; if the maximum number of iterations is reached, search again; otherwise, increase the number of iterations by one and perform the next search.

[0081] Furthermore, in step S6, the energy-saving operation of the water pump is achieved by collecting water pump operation data in real time, inputting the data into a water pump energy-saving operation adjustment model, and the model quickly and comprehensively processes and analyzes the input data, outputs the corresponding water pump energy-saving operation adjustment strategy at this time, intelligently adjusts the operating status of the water pump, and continuously optimizes and updates the water pump energy-saving operation adjustment model based on the adjustment results and feedback data.

[0082] The beneficial effects achieved by the present invention using the above scheme are as follows:

[0083] (1) In view of the problems of weak data expression ability, low model adaptability to data, low model performance and accuracy caused by insufficient data in the traditional water pump energy-saving operation adjustment model, this scheme designs a smooth exponential activation function, an encoding module, a bottleneck layer, a decoding module, simulation data quality assessment, and a data simulation loss function to train a data enrichment model to make up for the lack of data, provide more comprehensive information, enrich data expression ability, and improve the model's adaptability to data, model performance and accuracy.

[0084] (2) Aiming at the problems of weak data processing and expression capabilities, low generalization and robustness, and high model complexity of the traditional water pump energy-saving operation regulation model, this scheme constructs a water pump energy-saving operation regulation model by designing the water pump energy-saving operation regulation model structure, correcting the zero-cut activation function, hidden layer, auxiliary prediction layer, random inactivation layer, regulation strategy output layer, weight complexity index, and complexity auxiliary loss function, so as to improve the expression ability and flexibility of the model, help capture complex and deep feature relationships, enhance the generalization and robustness of the model, and optimize the complexity of the model.

[0085] (3) In view of the problems of low tuning efficiency, pertinence and accuracy, weak search capability and easy blind exploration in traditional model tuning algorithms, this scheme designs initialization adjustment factors, generates initial search clusters, designs adaptive factors and designs adaptive reference search functions to perform parameter search, thereby improving the efficiency, pertinence and accuracy of tuning, strengthening the search capability of the tuning algorithm, making the search more reasonable and efficient and avoiding blind exploration. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] Figure 1 A schematic diagram of a flow chart of a water pump energy-saving operation method based on artificial intelligence provided by the present invention;

[0087] Figure 2 is a schematic flow chart of step S3;

[0088] Figure 3 is a schematic flow chart of step S4;

[0089] Figure 4 It is a flowchart diagram of step S5.

[0090] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION

[0091] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0092] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.

[0093] Example 1, see Figure 1 The present invention provides an artificial intelligence-based water pump energy-saving operation method, which includes the following steps:

[0094] Step S1: data collection, collecting water pump operating parameters, inlet and outlet pressure data, working current and voltage, system temperature data, water level or liquid level information, pipe network system characteristic data, actual water demand data, environment-related data, water pump equipment status data and energy-saving adjustment data;

[0095] Step S2: Data preprocessing, preprocessing the data and setting label data by repairing abnormal data, data standardization and data encoding;

[0096] Step S3: constructing a data enrichment model, by designing a smooth exponential activation function, designing a data enrichment model infrastructure, designing an encoding module, designing a decoding module, simulating data quality assessment, designing a data simulation loss function and model training to construct a data enrichment model;

[0097] Step S4: constructing a water pump energy-saving operation regulation model, by designing the water pump energy-saving operation regulation model structure, designing a hidden layer, designing an auxiliary prediction layer, designing a random inactivation layer, designing a regulation strategy output layer, designing a weight complexity index, designing a complexity auxiliary loss function and model learning to construct the water pump energy-saving operation regulation model;

[0098] Step S5: model tuning, tuning the model by tuning preparation, designing initialization adjustment factors, generating initial search clusters, designing adaptive factors, designing adaptive reference search functions and parameter search;

[0099] Step S6: Energy-saving operation of the water pump, collecting the data of the water pump operation, inputting the water pump energy-saving operation adjustment model, the model outputs the corresponding water pump energy-saving operation adjustment strategy at this time, and intelligently adjusts the operation status of the water pump.

[0100] Example 2, see Figure 1This embodiment is based on the above embodiment. In step S1, data collection is to collect water pump operating parameters, inlet and outlet pressure data, working current and voltage, system temperature data, water level or liquid level information, pipe network system characteristic data, actual water demand data, environment-related data, water pump equipment status data and energy-saving adjustment data; the water pump operating parameters include the speed, flow, head and power of the water pump.

[0101] Example 3, see Figure 1 This embodiment is based on the above embodiment. In step S2, data preprocessing specifically includes the following steps:

[0102] Step S21: repairing abnormal data, using data statistics to identify abnormal data and repairing the abnormal data;

[0103] Step S22: Data standardization, which is to process the data uniformly, unify the data into the same unit, and unify the data into a standard data range;

[0104] Step S23: Data encoding, encoding the characteristic data. For energy-saving adjustment data, a coding structure is designed, including a prefix, a middle part and a suffix. The prefix indicates the main type of energy-saving adjustment, the middle part indicates the specific adjustment subcategory, and the suffix indicates the special attributes and variants of the energy-saving adjustment strategy;

[0105] Step S24: Setting label data, setting the energy-saving adjustment data as label data.

[0106] Example 4, see Figure 1 and Figure 2 Based on the above embodiment, in step S3, building a data enrichment model specifically includes the following steps:

[0107] Step S31: Design a smooth exponential activation function, which is expressed as follows:

[0108] ;

[0109] in, represents the smooth exponential activation function, represents the input of the smooth exponential activation function, represents the smoothing factor, Indicates taking the absolute value;

[0110] Step S32: designing a data enrichment model infrastructure, the model including an encoding module, a bottleneck layer and a decoding module, wherein the encoding module and the decoding module both have a two-layer neuron structure and the number of neurons in the first layer of the encoding module is the same as the number of neurons in the second layer of the decoding module, and the number of neurons in the second layer of the encoding module is the same as the number of neurons in the first layer of the decoding module;

[0111] Step S33: Design the encoding module, as shown below:

[0112] ;

[0113] in, represents the output of the encoding module, , and denote the weight, input and bias of the first layer of the encoding module, respectively. represents the weight of the second layer of the encoding module, Represents the bias of the second layer of the encoding module;

[0114] Step S34: Design the bottleneck layer and introduce the residual input of the first layer of the encoding module, which is expressed as follows:

[0115] ;

[0116] in, represents the output of the bottleneck layer, , and denote the weight, input and bias of the bottleneck layer respectively, represents the residual input of the first layer of the introduced encoding module, represents the residual weight;

[0117] Step S35: Design a decoding module, as shown below:

[0118] ;

[0119] in, represents the output of the decoding module, represents the sigmoid activation function, , and Represent the weight, input and bias of the first layer of the decoding module, respectively. represents the weight of the second layer of the decoding module, represents the bias of the second layer of the decoding module;

[0120] Step S36: Simulation data quality assessment, performing quality assessment on the newly generated simulation data, as shown below:

[0121] ;

[0122] Among them, k represents the index of the generated new data, Indicates the position of the kth new data generated, represents the quality index value of the kth new simulation data generated, N represents the total number of samples of the original data, i represents the index of the sample of the original data, Indicates the position of the i-th data in the original data, Represents the average value of the positions of all data points of the original data;

[0123] Step S37: Design a data simulation loss function, which is expressed as follows:

[0124] ;

[0125] Among them, Loss represents the data simulation loss function, and M represents the total number of new data generated;

[0126] Step S38: Model training, calculating the gradient of each neuron. The gradient reflects the influence of each weight and bias on the quality of the model. The weight and bias are adjusted according to the gradient information.

[0127] Step S39: enrich the original data, generate simulation data through the constructed model, add the simulation data to the original data set, and enrich the data set.

[0128] By performing the above operations, in order to solve the problems of weak data expression ability, low model adaptability to data, low model performance and accuracy caused by insufficient data in the traditional water pump energy-saving operation adjustment model, this scheme designs smooth exponential activation functions, encoding modules, bottleneck layers, decoding modules, simulation data quality assessment, and data simulation loss functions to train data enrichment models, make up for the lack of data, provide more comprehensive information, enrich data expression capabilities, and improve the model's adaptability to data, model performance and accuracy.

[0129] Example 5, see Figure 1 and Figure 3 Based on the above embodiment, in step S4, building a water pump energy-saving operation adjustment model specifically includes the following steps:

[0130] Step S41: designing the structure of the water pump energy-saving operation regulation model, which consists of five parts, including an input layer, a hidden layer, a random inactivation layer, an auxiliary prediction layer and a regulation strategy output layer;

[0131] Step S42: Design a modified zero-cut activation function, which is expressed as follows:

[0132] ;

[0133] in, represents the corrected zero-cut activation function, represents the input of the modified zero-cut activation function, e represents a natural constant, represents the scaling factor;

[0134] Step S43: Design the hidden layer, which is expressed as follows:

[0135] ;

[0136] in, represents the output of the hidden layer, L represents the number of hidden layers, , and denote the weights of the Lth, L-1th, and 1st hidden layers, respectively. , and denote the bias of the Lth, L-1th and 1st hidden layers respectively, Table 1 shows the input of the first hidden layer, ... represents the hidden layer expression activated by the zero-cut activation function from the 2nd layer to the L-2th layer;

[0137] Step S44: Design an auxiliary prediction layer, copy the outputs of the first three layers of the hidden layer, jump connect them to the auxiliary prediction layer, and then output them to the random inactivation layer together with the hidden layer, as shown below:

[0138] ;

[0139] in, represents the output of the auxiliary prediction layer, , and They represent the skip connection weights of the auxiliary prediction layer assigned to the 1st, 2nd and 3rd hidden layers, respectively. and Represent the input of the second and third hidden layers respectively, and Represent the weights of the second and third hidden layers, respectively. and Respectively represent the bias of the second and third hidden layers;

[0140] Step S45: Design a random inactivation factor, which is expressed as follows:

[0141] ;

[0142] in, represents the random dropout factor, represents a random number between 0 and 1, and p represents the inactivation probability;

[0143] Step S46: Design a random dropout layer, as shown below:

[0144] ;

[0145] Where v represents the neuron index of the random dropout layer, represents the output of the vth neuron in the random dropout layer, represents the vth neuron of the random dropout layer input;

[0146] Step S47: Design the adjustment strategy output layer, and convert the output into the probability of the corresponding decision method through the normalized exponential activation function, which is expressed as follows:

[0147] ;

[0148] in, represents the output of the output layer of the adjustment strategy, represents the normalized exponential function, represents the weight of the output layer of the regulation strategy, represents the input of the output layer of the regulation strategy, represents the bias of the output layer of the regulation strategy;

[0149] Step S48: Design a weight complexity index to measure the complexity of the weight matrix by combining weight normalization with parameter sharing, as shown below:

[0150] ;

[0151] in, represents the model weight matrix, represents the weight complexity index, h represents the layer index of the model, and H represents the maximum number of layers of the model. represents the parameter vector of the Hth layer, The L1 norm of the parameter vector of the Hth layer, represents the parameter vector of the first layer, represents the L1 norm of the parameter vector of layer 1, The second to the The product of the L1 norms of all parameter vectors of the layer, represents the parameter vector of the Hth layer;

[0152] Step S49: Design a complexity-assisted loss function, and design a loss function in combination with the weight complexity index, as shown below:

[0153] ;

[0154] in, represents the complexity auxiliary loss function, g represents the index of the sample, It represents the probability corresponding to the actual energy-saving adjustment strategy of the g-th sample in the result output by the adjustment strategy output layer, represents the highest probability among the output results of the adjustment strategy for the g-th sample, represents the complexity weight;

[0155] Step S410: Model learning, learning and adjusting model parameters by calculating the gradient of the loss function with respect to the weight and bias parameters of the model.

[0156] By performing the above operations, in view of the problems of weak data processing and expression capabilities, low generalization and robustness, and high model complexity of the traditional water pump energy-saving operation regulation model, this scheme constructs a water pump energy-saving operation regulation model by designing the water pump energy-saving operation regulation model structure, correcting the zero-cut activation function, hidden layer, auxiliary prediction layer, random inactivation layer, regulation strategy output layer, weight complexity index, and complexity auxiliary loss function, which improves the expressiveness and flexibility of the model, helps to capture complex and deep feature relationships, enhances the generalization and robustness of the model, and optimizes the complexity of the model.

[0157] Example 6, see Figure 1 and Figure 4 This embodiment is based on the above embodiment. In step S5, model tuning specifically includes the following steps:

[0158] Step S51: tuning preparation, setting the tuning object, including the smoothing factor and scaling factor, complexity weight, and inactivation probability in the designed activation function, creating a tuning search space, and setting the accuracy of the model as the performance indicator of the parameter individual;

[0159] Step S52: Design an initialization adjustment factor, which is expressed as follows:

[0160] ;

[0161] Where b represents the index of the generated initial search point, Indicates the initialization adjustment factor when generating the b+1th initial search point, Represents the initialization adjustment factor when generating the bth initial search point, Represents a random number between 0 and 1;

[0162] Step S53: Generate an initial search cluster, and use the initialization adjustment factor to select a method for generating the initial search cluster, as shown below:

[0163] ;

[0164] in, represents the bth initial search point generated, represents the average position of the first b-1 initial search points, tol represents the upper bound of the search space, and dol represents the lower bound of the search space;

[0165] Step S54: Design an adaptive factor, which is expressed as follows:

[0166] ;

[0167] Among them, t represents the current optimization iteration number, represents the adaptive factor at the tth optimization iteration, T represents the maximum number of optimization iterations, r2 represents a random number between 0 and 1, Represents a linear decreasing factor from 1 to -2;

[0168] Step S55: Design an adaptive reference search function, based on the adaptive factor, to perform a steady search on the basis of the historical search, as shown below:

[0169] ;

[0170] in, represents the parameter position searched by the adaptive reference search function during the t+1th iteration search, represents the parameter position searched by the adaptive reference search function during the t-th iteration search, r3 represents a random number between 0 and 1, represents the parameter position searched by the adaptive reference search function during the t-1th iteration search, represents the average position of the initial search cluster, Indicates the parameter position with the highest parameter performance during the t-th iteration search;

[0171] Step S56: Parameter search, set the performance optimization threshold, set the maximum number of search iterations, and generate an initial search cluster to perform parameter search through an adaptive reference search function to evaluate the performance of the searched parameters. If there are parameters with performance greater than the performance optimization threshold, stop the parameter search and output the parameters of the point with the highest performance; if the maximum number of iterations is reached, search again; otherwise, increase the number of iterations by one and perform the next search.

[0172] By performing the above operations, the traditional model tuning algorithm has low tuning efficiency, pertinence and accuracy, weak search ability of the tuning algorithm, and is prone to blind exploration. This solution designs initialization adjustment factors, generates initial search clusters, designs adaptive factors, and designs adaptive reference search functions to perform parameter search, thereby improving the efficiency, pertinence and accuracy of tuning, strengthening the search ability of the tuning algorithm, making the search more reasonable and efficient, and avoiding blind exploration.

[0173] Embodiment 7, see Figure 1This embodiment is based on the above embodiment. In step S6, the energy-saving operation of the water pump is achieved by collecting the data of the water pump operation in real time, and inputting the data into the water pump energy-saving operation adjustment model. The model processes and analyzes the input data quickly and comprehensively, outputs the corresponding water pump energy-saving operation adjustment strategy at this time, intelligently adjusts the operating status of the water pump, and continuously optimizes and updates the water pump energy-saving operation adjustment model according to the adjustment results and feedback data.

[0174] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0175] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.

[0176] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. A water pump energy-saving operation method based on artificial intelligence, characterized in that: The method comprises the following steps: Step S1: data collection, collecting water pump operating parameters, inlet and outlet pressure data, working current and voltage, system temperature data, water level or liquid level information, pipe network system characteristic data, actual water demand data, environment-related data, water pump equipment status data and energy-saving adjustment data; Step S2: Data preprocessing, preprocessing the data and setting label data by repairing abnormal data, data standardization and data encoding; Step S3: constructing a data enrichment model, by designing a smooth exponential activation function, designing a data enrichment model infrastructure, designing an encoding module, designing a decoding module, simulating data quality assessment, designing a data simulation loss function and model training to construct a data enrichment model; Step S4: constructing a water pump energy-saving operation regulation model, by designing the water pump energy-saving operation regulation model structure, designing a hidden layer, designing an auxiliary prediction layer, designing a random inactivation layer, designing a regulation strategy output layer, designing a weight complexity index, designing a complexity auxiliary loss function and model learning to construct the water pump energy-saving operation regulation model; Step S5: model tuning, tuning the model by tuning preparation, designing initialization adjustment factors, generating initial search clusters, designing adaptive factors, designing adaptive reference search functions and parameter search; Step S6: Energy-saving operation of the water pump, collecting the data of the water pump operation, inputting the water pump energy-saving operation adjustment model, the model outputs the corresponding water pump energy-saving operation adjustment strategy at this time, and intelligently adjusts the operation state of the water pump; In step S3, the construction of the data enrichment model specifically includes the following steps: Step S31: Design a smooth exponential activation function, which is expressed as follows: ; in, represents the smooth exponential activation function, represents the input of the smooth exponential activation function, represents the smoothing factor, Indicates taking the absolute value; Step S32: designing a data enrichment model infrastructure, the model including an encoding module, a bottleneck layer and a decoding module, wherein the encoding module and the decoding module both have a two-layer neuron structure and the number of neurons in the first layer of the encoding module is the same as the number of neurons in the second layer of the decoding module, and the number of neurons in the second layer of the encoding module is the same as the number of neurons in the first layer of the decoding module; Step S33: Design the encoding module, as shown below: ; in, represents the output of the encoding module, , and denote the weight, input and bias of the first layer of the encoding module, respectively. represents the weight of the second layer of the encoding module, Represents the bias of the second layer of the encoding module; Step S34: Design the bottleneck layer and introduce the residual input of the first layer of the encoding module, which is expressed as follows: ; in, represents the output of the bottleneck layer, , and denote the weight, input and bias of the bottleneck layer respectively, represents the residual input of the first layer of the introduced encoding module, represents the residual weight; Step S35: Design a decoding module, as shown below: ; in, represents the output of the decoding module, represents the sigmoid activation function, , and Represent the weight, input and bias of the first layer of the decoding module, respectively. represents the weight of the second layer of the decoding module, represents the bias of the second layer of the decoding module; Step S36: Simulation data quality assessment, performing quality assessment on the newly generated simulation data, as shown below: ; Among them, k represents the index of the generated new data, Indicates the position of the kth new data generated, represents the quality index value of the kth new simulation data generated, N represents the total number of samples of the original data, i represents the index of the sample of the original data, Indicates the position of the i-th data in the original data, Represents the average value of the positions of all data points of the original data; Step S37: Design a data simulation loss function, which is expressed as follows: ; Among them, Loss represents the data simulation loss function, and M represents the total number of new data generated; Step S38: Model training, calculating the gradient of each neuron. The gradient reflects the influence of each weight and bias on the quality of the model. The weight and bias are adjusted according to the gradient information. Step S39: enriching the original data, generating simulation data through the constructed model, adding the simulation data to the original data set, and enriching the data set; In step S4, the construction of the water pump energy-saving operation adjustment model specifically includes the following steps: Step S41: designing the structure of the water pump energy-saving operation regulation model, which consists of five parts, including an input layer, a hidden layer, a random inactivation layer, an auxiliary prediction layer and a regulation strategy output layer; Step S42: Design a modified zero-cut activation function, which is expressed as follows: ; in, represents the corrected zero-cut activation function, represents the input of the modified zero-cut activation function, e represents a natural constant, represents the scaling factor; Step S43: Design the hidden layer, which is expressed as follows: ; in, represents the output of the hidden layer, L represents the number of hidden layers, , and denote the weights of the Lth, L-1th, and 1st hidden layers, respectively. , and denote the bias of the Lth, L-1th and 1st hidden layers respectively, represents the input of the first hidden layer, ... represents the hidden layer expression activated by the zero-cut activation function from the 2nd layer to the L-2nd layer; Step S44: Design an auxiliary prediction layer, copy the outputs of the first three layers of the hidden layer, jump connect them to the auxiliary prediction layer, and then output them to the random inactivation layer together with the hidden layer, as shown below: ; in, represents the output of the auxiliary prediction layer, , and They represent the skip connection weights of the auxiliary prediction layer assigned to the 1st, 2nd and 3rd hidden layers, respectively. and Represent the input of the second and third hidden layers respectively, and Represent the weights of the second and third hidden layers, respectively. and Represent the bias of the second and third hidden layers respectively; Step S45: Design a random inactivation factor, which is expressed as follows: ; in, represents the random dropout factor, represents a random number between 0 and 1, and p represents the inactivation probability; Step S46: Design a random dropout layer, as shown below: ; Where v represents the neuron index of the random dropout layer, represents the output of the vth neuron in the random dropout layer, represents the vth neuron of the random dropout layer input; Step S47: Design the adjustment strategy output layer, and convert the output into the probability of the corresponding decision method through the normalized exponential activation function, which is expressed as follows: ; in, represents the output of the output layer of the adjustment strategy, represents the normalized exponential function, represents the weight of the output layer of the regulation strategy, represents the input of the output layer of the regulation strategy, represents the bias of the output layer of the regulation strategy; Step S48: Design a weight complexity index to measure the complexity of the weight matrix by combining weight normalization with parameter sharing, as shown below: ; in, represents the model weight matrix, represents the weight complexity index, h represents the layer index of the model, and H represents the maximum number of layers of the model. represents the parameter vector of the Hth layer, The L1 norm of the parameter vector of the Hth layer, represents the parameter vector of the first layer, represents the L1 norm of the parameter vector of layer 1, The second to the The product of the L1 norms of all parameter vectors of the layer, represents the parameter vector of the Hth layer; Step S49: Design a complexity-assisted loss function, and design a loss function in combination with the weight complexity index, as shown below: ; in, represents the complexity auxiliary loss function, g represents the index of the sample, It represents the probability corresponding to the actual energy-saving adjustment strategy of the g-th sample in the result output by the adjustment strategy output layer, represents the highest probability among the output results of the adjustment strategy for the g-th sample, represents the complexity weight; Step S410: Model learning, learning and adjusting model parameters by calculating the gradient of the loss function with respect to the weight and bias parameters of the model; In step S5, the model tuning specifically includes the following steps: Step S51: tuning preparation, setting the tuning object, including the smoothing factor and scaling factor, complexity weight, and inactivation probability in the designed activation function, creating a tuning search space, and setting the accuracy of the model as the performance indicator of the parameter individual; Step S52: Design an initialization adjustment factor, which is expressed as follows: ; Where b represents the index of the generated initial search point, Indicates the initialization adjustment factor when generating the b+1th initial search point, Represents the initialization adjustment factor when generating the bth initial search point, Represents a random number between 0 and 1; Step S53: Generate an initial search cluster, and use the initialization adjustment factor to select a method for generating the initial search cluster, as shown below: ; in, represents the bth initial search point generated, represents the average position of the first b-1 initial search points, tol represents the upper bound of the search space, and dol represents the lower bound of the search space; Step S54: Design an adaptive factor, which is expressed as follows: ; Among them, t represents the current optimization iteration number, represents the adaptive factor at the tth optimization iteration, T represents the maximum number of optimization iterations, r2 represents a random number between 0 and 1, represents a linear decreasing factor from 1 to -2, and e represents a natural constant; Step S55: Design an adaptive reference search function, based on the adaptive factor, to perform a steady search on the basis of the historical search, as shown below: ; in, represents the parameter position searched by the adaptive reference search function during the t+1th iteration search, represents the parameter position searched by the adaptive reference search function during the t-th iteration search, r3 represents a random number between 0 and 1, represents the parameter position searched by the adaptive reference search function during the t-1th iteration search, represents the average position of the initial search cluster, Indicates the parameter position with the highest parameter performance during the t-th iteration search; Step S56: Parameter search, set the performance optimization threshold, set the maximum number of search iterations, and generate an initial search cluster to perform parameter search through an adaptive reference search function to evaluate the performance of the searched parameters. If there are parameters with performance greater than the performance optimization threshold, stop the parameter search and output the parameters of the point with the highest performance; if the maximum number of iterations is reached, search again; otherwise, increase the number of iterations by one and perform the next search.

2. The method for energy-saving operation of a water pump based on artificial intelligence according to claim 1, characterized in that: In step S2, the data preprocessing specifically includes the following steps: Step S21: repair abnormal data, use data statistics to identify abnormal data, and repair the abnormal data; Step S22: Data standardization, which is to process the data uniformly, unify the data into the same unit, and unify the data into a standard data range; Step S23: Data encoding, encoding the characteristic data. For energy-saving adjustment data, a coding structure is designed, including a prefix, a middle part and a suffix. The prefix indicates the main type of energy-saving adjustment, the middle part indicates the specific adjustment subcategory, and the suffix indicates the special attributes and variants of the energy-saving adjustment strategy; Step S24: Setting label data, setting the energy-saving adjustment data as label data.

3. The energy-saving operation method of a water pump based on artificial intelligence according to claim 1 is characterized in that: In step S1, the data collection is to collect water pump operating parameters, inlet and outlet pressure data, working current and voltage, system temperature data, water level or liquid level information, pipe network system characteristic data, actual water demand data, environment-related data, water pump equipment status data and energy-saving adjustment data; the water pump operating parameters include the speed, flow, head and power of the water pump.

4. The energy-saving operation method of a water pump based on artificial intelligence according to claim 1 is characterized in that: In step S6, the energy-saving operation of the water pump is achieved by collecting water pump operation data in real time, inputting the data into the water pump energy-saving operation adjustment model, and the model quickly and comprehensively processes and analyzes the input data, outputs the corresponding water pump energy-saving operation adjustment strategy at this time, intelligently adjusts the operating status of the water pump, and continuously optimizes and updates the water pump energy-saving operation adjustment model based on the adjustment results and feedback data.