Twin modeling method for sewage treatment system
Through the data-driven twin modeling method, the key pipelines in the sewage treatment system are identified and optimized, and the problems of low efficiency and insufficient environmental friendliness of traditional sewage treatment systems are solved, and the accurate description and optimization control of the system are achieved.
Patent Information
- Application Number
- CN202411256293.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-11-12
AI Technical Summary
Traditional sewage treatment systems have low efficiency, high energy consumption, and incomplete emission treatment, which requires innovative technologies to improve system operation efficiency and environmental friendliness.
Using data-driven twin modeling methods, identify key pipelines by collecting and timely aligning the flow, pressure and temperature data of the sewage treatment system, and fine-grained modeling of non-critical pipelines. , integrate to form a twin model of sewage treatment system.
It realizes accurate formal description and optimized control of the sewage treatment system, improves the system operation efficiency and environmental friendliness, identifies key pipelines and performs detailed modeling, and improves the treatment effect.
Smart Images

Figure CN118940546A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital twin modeling, and in particular to a twin modeling method for a sewage treatment system. Background Art
[0002] Sewage treatment system is a vital part of modern urban infrastructure. With the acceleration of urbanization and population growth, the role of sewage treatment system has become increasingly prominent. These systems are not only responsible for treating domestic sewage of urban residents, but also undertake important tasks such as reducing water pollution, protecting water resources, and maintaining ecological balance. However, traditional sewage treatment methods often face problems such as low efficiency, high energy consumption, and incomplete treatment of emissions. Innovative technical means are urgently needed to improve the operating efficiency and environmental friendliness of the system. With the rapid development of information technology, data-driven modeling and simulation technology has become one of the important tools for solving complex problems. Twin modeling method is one of them. It draws on the concept of twin brothers in biology and combines real systems with mathematical models to achieve accurate prediction and optimal control of system behavior. As a typical complex system, sewage treatment system has also begun to attract the attention of twin modeling method. Summary of the invention
[0003] In view of this, the present invention proposes a twin modeling method for a sewage treatment system, which realizes an accurate formal description of the sewage treatment system through data-driven modeling.
[0004] To achieve the above object, the present invention provides a twin modeling method for a sewage treatment system, comprising the following steps:
[0005] S1: collecting operation data of the sewage treatment system, and performing time alignment on the collected operation data to obtain the time-aligned operation data, wherein the operation data includes flow, pressure and temperature data of the sewage pipeline, wherein interpolation analysis is an implementation method of the time alignment;
[0006] S2: Identify key pipelines on the time-aligned operation data to obtain key pipelines of the sewage treatment system;
[0007] S3: Perform fine-grained modeling on key pipelines in the sewage treatment system and coarse-grained modeling on non-key sewage pipelines, wherein the twin modeling method based on data enhancement and real-time drive is the implementation method of the fine-grained modeling;
[0008] S4: Integrate the pipeline modeling results of the sewage treatment system to obtain a twin model of the sewage treatment system.
[0009] As a further improvement method of the present invention:
[0010] Optionally, collecting the operation data of the sewage treatment system in step S1 includes:
[0011] Collect the operation data of the sewage treatment system, where the sewage treatment system is composed of a number of sewage pipes. The operation data of the sewage treatment system includes the flow, pressure and temperature data series of the sewage pipes. The collected operation data of the sewage treatment system are:
[0012] X={X n |n∈[1,N]}
[0013]
[0014] in:
[0015] X represents the operating data of the sewage treatment system;
[0016] X n represents the operation data of the nth sewage pipe in the sewage treatment system, and N represents the total number of sewage pipes in the sewage treatment system;
[0017] In turn, it represents the running data X n The flow data sequence, pressure data sequence and temperature data sequence in; Indicates running data X n The data sequence of the i-th indicator, where the 1st to 3rd indicators are flow, pressure and temperature respectively;
[0018] Represents a data sequence The mth data in the table is the monitoring data of the mth operating moment in the sewage treatment system. Represents a data sequence The number of monitoring data in
[0019] The collected operation data is time-aligned to obtain the time-aligned operation data.
[0020] Optionally, the performing time alignment on the collected operation data includes:
[0021] The collected operation data X is time aligned, wherein the time alignment process of the operation data X is as follows:
[0022] S11: Set the highest order term Z-1 of the interpolation function of the running data X, and initialize the interpolation function for generating each data sequence, where the data sequence The interpolation function is:
[0023]
[0024] in:
[0025] Represents a data sequence The interpolation function of , t represents the independent variable of the sewage treatment system operation time;
[0026] Represents the interpolation function The basis functions in Representation basis function The Z coefficients of the terms in ;
[0027] Represents the interpolation function The interpolation coefficient sequence in , Represents the interpolation coefficient sequence The Z interpolation coefficients in ; Represents the interpolation function The parameters to be solved in , initialize the generated All are 1;
[0028] S12: Solve the interpolation coefficient sequence in the interpolation function to form an alignment analysis interpolation function, where the data sequence The corresponding alignment analysis interpolation function is:
[0029]
[0030] in:
[0031] Represents a data sequence The corresponding alignment analysis interpolation function;
[0032] Represents the interpolation coefficient sequence generated by initialization The solution result of Represents the interpolation coefficient The solution result of ;
[0033] S13: Using the alignment analysis interpolation function to generate running data with the same time length, forming the time-aligned running data:
[0034] Y={Y n |n∈[1,N]}
[0035]
[0036] in:
[0037] Y represents the time-aligned operating data of the sewage treatment system;
[0038] Y n Indicates running data X nTime alignment results of
[0039] Sequentially represents the data sequence The time alignment result, where the lengths of the data sequences after time alignment are all equal;
[0040] Represents a data sequence The time alignment result of the d-th data in , d∈[1,D], D represents the time alignment length of each data sequence.
[0041] Optionally, solving the interpolation coefficient sequence in the interpolation function in step S12 includes:
[0042] S121: Construct the objective function for solving the interpolation coefficient sequence, where the interpolation coefficient sequence The objective function to be solved is:
[0043]
[0044] in:
[0045] exp(·) represents an exponential function with a natural constant as the base;
[0046] Represents a data sequence The mean of Represents a data sequence The standard deviation of
[0047] α represents the shape parameter of the data sequence distribution;
[0048] Indicates the data sequence distribution threshold;
[0049] Representation data Gaussian weights of
[0050] S122: Solve the objective function to obtain the solution result of the interpolation coefficient sequence, where the interpolation coefficient sequence The solution result is:
[0051]
[0052] in:
[0053] Represents the interpolation coefficient sequence (The solution result of;
[0054] T stands for transpose;
[0055] Represents the vector obtained by transformation based on the objective function.
[0056] Optionally, in step S2, identifying key pipelines on the time-aligned operation data includes:
[0057] The critical pipelines are identified on the time-aligned operation data, and the critical pipeline identification process is as follows:
[0058] S21: Acquire location information of different sewage pipes, wherein the location information includes location coordinates of the sewage pipes; the location coordinates of the sewage pipes include the coordinates of the sewage pipe inlet and the coordinates of the sewage pipe outlet;
[0059] S22: using the position coordinates of the sewage pipe to traverse and obtain the predecessor pipe and the successor pipe of each sewage pipe, wherein the water outlet of the predecessor pipe is the water inlet of the current sewage pipe, and the water inlet of the current sewage pipe is the water outlet of the successor pipe;
[0060] S23: Calculate the indicator weights of different indicators in the operating data, where the indicator weight of the i-th indicator is:
[0061]
[0062] in:
[0063] w i represents the indicator weight of the i-th indicator;
[0064] S24: Based on the indicator weights, the key weight of each sewage pipeline is calculated, where the key weight of the nth sewage pipeline is:
[0065]
[0066] in:
[0067] The data sequence representing the time-aligned operation data of the predecessor pipeline of the nth sewage pipeline at the i-th index;
[0068] The data sequence representing the time-aligned operation data of the successor pipeline of the nth sewage pipeline at the ith index;
[0069] W n represents the critical weight of the nth sewage pipeline;
[0070] ||·|| represents the L1 norm;
[0071] K sewage pipelines with the highest critical weights are selected as the key pipelines in the sewage treatment system.
[0072] Optionally, in step S3, fine-grained modeling of key pipelines in the sewage treatment system may include:
[0073] Fine-grained modeling is performed on the key pipelines in the sewage treatment system. The twin modeling method based on data enhancement and real-time drive is the implementation method of the fine-grained modeling, where the fine-grained modeling process of the kth key pipeline is:
[0074] S31: Get the material of the kth key pipeline radius And thickness and obtain the time-aligned operation data of the kth key pipeline;
[0075] S32: Extracting flow data series from time-aligned operational data Pressure data series And the temperature data series
[0076]
[0077] in:
[0078] represents the flow rate, pressure and temperature of the kth key pipeline at the dth sewage treatment system operation time in sequence;
[0079] The flow, pressure and temperature data sequences are enhanced in turn. The data enhancement formula is:
[0080]
[0081] in:
[0082] ⊙ represents item-by-item multiplication; I represents a vector whose elements are all 1;
[0083] β represents the enhancement coefficient;
[0084] Represents a data sequence The maximum value in ;
[0085] S33: Calculate the water depth of the kth key pipeline at each operating time, and form a water depth sequence with the water depths at D operating times, wherein the water depth of the kth key pipeline at the dth sewage treatment system operating time is:
[0086]
[0087] in:
[0088] represents the water depth of the kth key pipeline at the dth sewage treatment system operation time;
[0089] S34: Calculate the deformation size of the kth key pipeline at each operating time, and form a deformation size sequence with the deformation sizes of D operating times, wherein the deformation size of the kth key pipeline at the dth sewage treatment system operating time is:
[0090]
[0091] in:
[0092] Indicates material The corresponding deformation coefficient;
[0093] τ represents the preset deformation threshold;
[0094] It represents the deformation size of the kth key pipeline at the dth sewage treatment system operation time;
[0095] S35: constructing a water depth sequence, a deformation size sequence, and a temperature data sequence of the kth key pipeline, and using the constructed sequence as a fine-grained modeling result of the kth key pipeline;
[0096] Coarse-grained modeling of sewage pipelines for non-critical pipelines.
[0097] Optionally, the coarse-grained modeling of the sewage pipeline of the non-critical pipeline includes:
[0098] The coarse-grained modeling is performed on the sewage pipelines of non-critical pipelines, and the coarse-grained modeling process is as follows:
[0099] The radius and flow data sequence of the sewage pipe are obtained, and the water depth of the sewage pipe at each sewage treatment system operation time is calculated to form a water depth sequence of the sewage pipe. The water depth sequence and temperature data sequence are used as the coarse-grained modeling results of the sewage pipe.
[0100] Optionally, the step S4 integrates the pipeline modeling results of the sewage treatment system, including:
[0101] The pipeline modeling results of the sewage treatment system are integrated to obtain the twin model of the sewage treatment system. The integration process of the pipeline modeling results is as follows:
[0102] S41: Based on the location coordinates, radius and length information of each sewage pipe in the sewage treatment system, three-dimensional modeling of the sewage pipe is performed to obtain a three-dimensional model of the sewage pipe;
[0103] S42: For key pipelines in the three-dimensional model of the sewage pipeline, obtain fine-grained modeling results, map the water depth sequence into a three-dimensional water body sequence, map the deformation size sequence into a three-dimensional pipeline deformation sequence, and map the temperature data sequence into a pipeline color sequence;
[0104] The three-dimensional water body sequence is a sequence of three-dimensional modeling results of sewage in three-dimensional pipelines. The three-dimensional modeling results of sewage describe the depth and flow state of sewage. The sewage depth is the water depth in the fine-grained modeling results.
[0105] The three-dimensional pipeline deformation sequence is a sequence of deformation modeling results of the positions in the three-dimensional pipeline that are subjected to sewage pressure, and the sequence of deformation modeling results expresses the final pipeline shape corresponding to the deformation magnitude of the position in the pipeline;
[0106] The pipeline color sequence is the surface temperature color sequence of the three-dimensional pipeline, where the higher the temperature, the darker the color;
[0107] S43: for non-critical pipelines in the three-dimensional model of the sewage pipeline, a coarse-grained modeling result is obtained, a water depth sequence is mapped into a three-dimensional water body sequence, and a temperature data sequence is mapped into a pipeline color sequence;
[0108] S44: The three-dimensional model of the sewage pipeline and the sequence describing the pipeline status constitute a twin model of the sewage treatment system, and obtain the pipeline status change of the sewage treatment system from the first operating moment to the Dth operating moment.
[0109] In order to solve the above problem, the present invention provides an electronic device, the electronic device comprising:
[0110] A memory storing at least one instruction;
[0111] Communication interface, enabling electronic equipment to communicate; and
[0112] A processor executes instructions stored in the memory to implement the above-mentioned sewage treatment system twin modeling method.
[0113] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned sewage treatment system twin modeling method.
[0114] Compared with the prior art, the present invention proposes a twin modeling method for a sewage treatment system, which has the following advantages:
[0115] First, this scheme proposes a time-aligned data processing method. By obtaining the operating data of flow, pressure and temperature indicators of different sewage pipelines in the sewage treatment system, due to the different number of operating time points collected by different pipelines and different indicators, the operating data is expanded by combining Gaussian weights and interpolation functions of data distribution to obtain a multi-indicator pipeline data sequence with consistent length. Combined with the predecessor and successor pipelines of the pipeline, the change differences of different pipelines are calculated, and the indicator weights are calculated based on the indicator information amount. Combined with the indicator weights and the indicator change differences, the sewage pipelines with more obvious indicator differences and better sewage treatment effects are selected as the key pipelines to realize the identification of key pipelines in the sewage treatment system.
[0116] At the same time, this scheme proposes a data modeling method for the sewage treatment system, which performs fine-grained modeling on the key pipelines in the sewage treatment system, and extracts the operation data of the key pipelines, combines the pipeline information to calculate the water depth sequence and deformation size sequence of the key pipelines, and performs water depth sequence calculation on non-critical pipelines to realize pipeline data modeling and processing at two scales. Based on the location coordinates, radius and length information of each sewage pipeline in the sewage treatment system, the sewage pipeline is three-dimensionally modeled. Combined with the three-dimensional modeling results of the pipeline and the sequence data characterizing the pipeline status, a twin model of the sewage treatment system that characterizes the temporal state changes of the sewage treatment system pipeline is obtained to realize data-driven twin modeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0117] Figure 1 A schematic diagram of a process flow of a twin modeling method for a sewage treatment system provided by an embodiment of the present invention;
[0118] Figure 2 A schematic diagram of the structure of an electronic device for implementing a twin modeling method for a sewage treatment system provided in one embodiment of the present invention.
[0119] In the figure: 1 electronic device, 10 processor, 11 memory, 12 program, 13 communication interface.
[0120] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0121] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0122] The embodiment of the present application provides a twin modeling method for a sewage treatment system. The execution subject of the twin modeling method for a sewage treatment system includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the twin modeling method for a sewage treatment system can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0123] Embodiment 1:
[0124] S1: Collecting the operation data of the sewage treatment system and performing time alignment on the collected operation data to obtain the time-aligned operation data, wherein the operation data includes flow, pressure and temperature data of the sewage pipeline.
[0125] The operation data of the sewage treatment system collected in step S1 includes:
[0126] Collect the operation data of the sewage treatment system, where the sewage treatment system is composed of a number of sewage pipes. The operation data of the sewage treatment system includes the flow, pressure and temperature data series of the sewage pipes. The collected operation data of the sewage treatment system are:
[0127] X={X n |n∈[1,N]}
[0128]
[0129] in:
[0130] X represents the operating data of the sewage treatment system;
[0131] X n represents the operation data of the nth sewage pipe in the sewage treatment system, and N represents the total number of sewage pipes in the sewage treatment system;
[0132] In turn, it represents the running data X n The flow data sequence, pressure data sequence and temperature data sequence in;
[0133] Indicates running data X n The data sequence of the i-th indicator, where the 1st to 3rd indicators are flow, pressure and temperature respectively;
[0134] Represents a data sequence The mth data in the table is the monitoring data of the mth operating moment in the sewage treatment system. Represents a data sequence The number of monitoring data in
[0135] The collected operation data is time-aligned to obtain the time-aligned operation data.
[0136] The time alignment of the collected operation data includes:
[0137] The collected operation data X is time aligned, wherein the time alignment process of the operation data X is as follows:
[0138] S11: Set the highest order term Z-1 of the interpolation function of the running data X, and initialize the interpolation function for generating each data sequence, where the data sequence The interpolation function is:
[0139]
[0140] in:
[0141] Represents a data sequence The interpolation function of , t represents the independent variable of the sewage treatment system operation time;
[0142] Represents the interpolation function The basis functions in Representation basis function The Z coefficients of the terms in ;
[0143] Represents the interpolation function The interpolation coefficient sequence in , Represents the interpolation coefficient sequence The Z interpolation coefficients in ; Represents the interpolation function The parameters to be solved in , initialize the generated All are 1;
[0144] S12: Solve the interpolation coefficient sequence in the interpolation function to form an alignment analysis interpolation function, where the data sequence The corresponding alignment analysis interpolation function is:
[0145]
[0146] in:
[0147] Represents a data sequence The corresponding alignment analysis interpolation function;
[0148] Represents the interpolation coefficient sequence generated by initialization The solution result of Represents the interpolation coefficient The solution result of ;
[0149] S13: Using the alignment analysis interpolation function to generate running data with the same time length, forming the time-aligned running data:
[0150] Y={Y n |n∈[1,N]}
[0151]
[0152] in:
[0153] Y represents the time-aligned operating data of the sewage treatment system;
[0154] Y n Indicates running data X n Time alignment results of
[0155] Sequentially represents the data sequence The time alignment result, where the lengths of the data sequences after time alignment are all equal;
[0156] Represents a data sequence The time alignment result of the d-th data in , d∈[1,D], D represents the time alignment length of each data sequence.
[0157] The step S12 solves the interpolation coefficient sequence in the interpolation function, including:
[0158] S121: Construct the objective function for solving the interpolation coefficient sequence, where the interpolation coefficient sequence The objective function to be solved is:
[0159]
[0160]
[0161] in:
[0162] exp(·) represents an exponential function with a natural constant as the base;
[0163] Represents a data sequence The mean of Represents a data sequence The standard deviation of
[0164] α represents the shape parameter of the data sequence distribution;
[0165] Indicates the data sequence distribution threshold;
[0166] Representation data Gaussian weights of
[0167] S122: Solve the objective function to obtain the solution result of the interpolation coefficient sequence, where the interpolation coefficient sequence The solution result is:
[0168]
[0169] in:
[0170] Represents the interpolation coefficient sequence (The solution result of;
[0171] T stands for transpose;
[0172] Represents the vector obtained by transformation based on the objective function.
[0173] S2: Identify key pipelines on the time-aligned operation data to obtain key pipelines of the sewage treatment system.
[0174] In the step S2, the critical pipelines are identified on the time-aligned operation data, including:
[0175] The critical pipelines are identified on the time-aligned operation data, and the critical pipeline identification process is as follows:
[0176] S21: Acquire location information of different sewage pipes, wherein the location information includes location coordinates of the sewage pipes; the location coordinates of the sewage pipes include the coordinates of the sewage pipe inlet and the coordinates of the sewage pipe outlet;
[0177] S22: using the position coordinates of the sewage pipe to traverse and obtain the predecessor pipe and the successor pipe of each sewage pipe, wherein the water outlet of the predecessor pipe is the water inlet of the current sewage pipe, and the water inlet of the current sewage pipe is the water outlet of the successor pipe;
[0178] S23: Calculate the indicator weights of different indicators in the operating data, where the indicator weight of the i-th indicator is:
[0179]
[0180] in:
[0181] w i represents the indicator weight of the i-th indicator;
[0182] S24: Based on the indicator weights, the key weight of each sewage pipeline is calculated, where the key weight of the nth sewage pipeline is:
[0183]
[0184] in:
[0185] The data sequence representing the time-aligned operation data of the predecessor pipeline of the nth sewage pipeline at the i-th index;
[0186] The data sequence representing the time-aligned operation data of the successor pipeline of the nth sewage pipeline at the ith index;
[0187] W n represents the critical weight of the nth sewage pipeline;
[0188] ||·|| represents the L1 norm;
[0189] K sewage pipelines with the highest critical weights are selected as the key pipelines in the sewage treatment system.
[0190] S3: Fine-grained modeling is performed on critical pipelines in the sewage treatment system, and coarse-grained modeling is performed on non-critical sewage pipelines.
[0191] In the S3 step, fine-grained modeling is performed on key pipelines in the sewage treatment system, including:
[0192] Fine-grained modeling is performed on the key pipelines in the sewage treatment system. The twin modeling method based on data enhancement and real-time drive is the implementation method of the fine-grained modeling, where the fine-grained modeling process of the kth key pipeline is:
[0193] S31: Get the material of the kth key pipeline radius And thickness and obtain the time-aligned operation data of the kth key pipeline;
[0194] S32: Extracting flow data series from time-aligned operational data Pressure data series And the temperature data series
[0195]
[0196] in:
[0197] represents the flow rate, pressure and temperature of the kth key pipeline at the dth sewage treatment system operation time in sequence;
[0198] The flow, pressure and temperature data sequences are enhanced in turn. The data enhancement formula is:
[0199]
[0200] in:
[0201] ⊙ represents item-by-item multiplication; I represents a vector whose elements are all 1;
[0202] β represents the enhancement coefficient;
[0203] Represents a data sequence The maximum value in ;
[0204] S33: Calculate the water depth of the kth key pipeline at each operating time, and form a water depth sequence with the water depths at D operating times, wherein the water depth of the kth key pipeline at the dth sewage treatment system operating time is:
[0205]
[0206] in:
[0207] represents the water depth of the kth key pipeline at the dth sewage treatment system operation time;
[0208] S34: Calculate the deformation size of the kth key pipeline at each operating time, and form a deformation size sequence with the deformation sizes of D operating times, wherein the deformation size of the kth key pipeline at the dth sewage treatment system operating time is:
[0209]
[0210] in:
[0211] Indicates material The corresponding deformation coefficient;
[0212] τ represents the preset deformation threshold;
[0213] It represents the deformation size of the kth key pipeline at the dth sewage treatment system operation time;
[0214] S35: constructing a water depth sequence, a deformation size sequence, and a temperature data sequence of the kth key pipeline, and using the constructed sequence as a fine-grained modeling result of the kth key pipeline;
[0215] Coarse-grained modeling of sewage pipelines for non-critical pipelines.
[0216] The coarse-grained modeling of the sewage pipeline of the non-critical pipeline includes:
[0217] The coarse-grained modeling is performed on the sewage pipelines of non-critical pipelines, and the coarse-grained modeling process is as follows:
[0218] The radius and flow data sequence of the sewage pipe are obtained, and the water depth of the sewage pipe at each sewage treatment system operation time is calculated to form a water depth sequence of the sewage pipe. The water depth sequence and temperature data sequence are used as the coarse-grained modeling results of the sewage pipe.
[0219] S4: Integrate the pipeline modeling results of the sewage treatment system to obtain a twin model of the sewage treatment system.
[0220] In the step S4, the pipeline modeling results of the sewage treatment system are integrated, including:
[0221] The pipeline modeling results of the sewage treatment system are integrated to obtain the twin model of the sewage treatment system. The integration process of the pipeline modeling results is as follows:
[0222] S41: Based on the location coordinates, radius and length information of each sewage pipe in the sewage treatment system, three-dimensional modeling of the sewage pipe is performed to obtain a three-dimensional model of the sewage pipe;
[0223] S42: For key pipelines in the three-dimensional model of the sewage pipeline, obtain fine-grained modeling results, map the water depth sequence into a three-dimensional water body sequence, map the deformation size sequence into a three-dimensional pipeline deformation sequence, and map the temperature data sequence into a pipeline color sequence;
[0224] The three-dimensional water body sequence is a sequence of three-dimensional modeling results of sewage in three-dimensional pipelines. The three-dimensional modeling results of sewage describe the depth and flow state of sewage. The sewage depth is the water depth in the fine-grained modeling results.
[0225] The three-dimensional pipeline deformation sequence is a sequence of deformation modeling results of the positions in the three-dimensional pipeline that are subjected to sewage pressure, and the sequence of deformation modeling results expresses the final pipeline shape corresponding to the deformation magnitude of the position in the pipeline;
[0226] The pipeline color sequence is the surface temperature color sequence of the three-dimensional pipeline, where the higher the temperature, the darker the color;
[0227] S43: for non-critical pipelines in the three-dimensional model of the sewage pipeline, a coarse-grained modeling result is obtained, a water depth sequence is mapped into a three-dimensional water body sequence, and a temperature data sequence is mapped into a pipeline color sequence;
[0228] S44: The three-dimensional model of the sewage pipeline and the sequence describing the pipeline status constitute a twin model of the sewage treatment system, and obtain the pipeline status change of the sewage treatment system from the first operating moment to the Dth operating moment.
[0229] Embodiment 2:
[0230] like Figure 2 , is a schematic diagram of the structure of an electronic device for implementing a twin modeling method for a sewage treatment system provided by an embodiment of the present invention.
[0231] The electronic device 1 may include a processor 10 , a memory 11 , a communication interface 13 , and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10 , such as a program 12 .
[0232] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may be used not only to store application software and various types of data installed in the electronic device 1, such as the code of the program 12, etc., but also to temporarily store data that has been output or is to be output.
[0233] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes the programs or modules stored in the memory 11 (such as the program 12 for realizing the twin modeling of the sewage treatment system), and calls the data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
[0234] The communication interface 13 may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices, and to achieve connection and communication between internal components of the electronic device.
[0235] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0236] Figure 2 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 2 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0237] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0238] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0239] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0240] The program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0241] Collecting the operation data of the sewage treatment system, and performing time alignment on the collected operation data to obtain the time-aligned operation data;
[0242] Identify key pipelines on the time-aligned operation data to obtain key pipelines of the sewage treatment system;
[0243] Fine-grained modeling is performed for critical pipelines in the sewage treatment system, and coarse-grained modeling is performed for non-critical sewage pipelines;
[0244] The pipeline modeling results of the sewage treatment system are integrated to obtain the twin model of the sewage treatment system.
[0245] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0246] It should be noted that the serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof in this article are intended to cover non-exclusive inclusion, so that a process, device, article or method 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, device, article or method. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0247] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0248] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A twin modeling method for a sewage treatment system, characterized in that: The method comprises: S1: Collecting the operation data of the sewage treatment system and performing time alignment on the collected operation data to obtain the time-aligned operation data, wherein the operation data includes flow, pressure and temperature data of the sewage pipeline; S2: Identify key pipelines on the time-aligned operation data to obtain key pipelines of the sewage treatment system; S3: Fine-grained modeling of critical pipelines in the sewage treatment system and coarse-grained modeling of non-critical sewage pipelines; S4: Integrate the pipeline modeling results of the sewage treatment system to obtain a twin model of the sewage treatment system.
2. A twin modeling method for a sewage treatment system according to claim 1, characterized in that: The operation data of the sewage treatment system collected in step S1 includes: Collect the operation data of the sewage treatment system, where the sewage treatment system is composed of a number of sewage pipes. The operation data of the sewage treatment system includes the flow, pressure and temperature data series of the sewage pipes. The collected operation data of the sewage treatment system are: X={X n |n∈[1,N]} in: X represents the operating data of the sewage treatment system; X n represents the operation data of the nth sewage pipe in the sewage treatment system, and N represents the total number of sewage pipes in the sewage treatment system; In turn, it represents the running data X n The flow data sequence, pressure data sequence and temperature data sequence in; Indicates running data X n The data sequence of the i-th indicator, where the 1st to 3rd indicators are flow, pressure and temperature respectively; Represents a data sequence The mth data in the table is the monitoring data of the mth operating moment in the sewage treatment system. Represents a data sequence The number of monitoring data in The collected operation data is time-aligned to obtain the time-aligned operation data.
3. A twin modeling method for a sewage treatment system according to claim 2, characterized in that: The time alignment of the collected operation data includes: The collected operation data X is time aligned, wherein the time alignment process of the operation data X is as follows: S11: Set the highest order term Z-1 of the interpolation function of the running data X, and initialize the interpolation function for generating each data sequence, where the data sequence The interpolation function is: in: Represents a data sequence The interpolation function of , t represents the independent variable of the sewage treatment system operation time; Represents the interpolation function The basis functions in Representation basis function The Z coefficients of the terms in ; Represents the interpolation function The interpolation coefficient sequence in , Represents the interpolation coefficient sequence The Z interpolation coefficients in ; Represents the interpolation function The parameters to be solved in , initialize the generated All are 1; S12: Solve the interpolation coefficient sequence in the interpolation function to form an alignment analysis interpolation function, where the data sequence The corresponding alignment analysis interpolation function is: in: Represents a data sequence The corresponding alignment analysis interpolation function; Represents the interpolation coefficient sequence generated by initialization The solution result of Represents the interpolation coefficient The solution result of ; S13: Using the alignment analysis interpolation function to generate running data with the same time length, forming the time-aligned running data: And={And n |n∈[1,N]} in: Y represents the time-aligned operating data of the sewage treatment system; Y n Indicates running data X n Time alignment results of Sequentially represents the data sequence The time alignment result, where the lengths of the data sequences after time alignment are all equal; Represents a data sequence The time alignment result of the d-th data in , d∈[1,D], D represents the time alignment length of each data sequence.
4. A twin modeling method for a sewage treatment system as claimed in claim 3, characterized in that: The step S12 solves the interpolation coefficient sequence in the interpolation function, including: S121: Construct the objective function for solving the interpolation coefficient sequence, where the interpolation coefficient sequence The objective function to be solved is: in: exp(·) represents an exponential function with a natural constant as the base; Represents a data sequence The mean of Represents a data sequence The standard deviation of α represents the shape parameter of the data sequence distribution; Indicates the data sequence distribution threshold; Representation data Gaussian weights of S122: Solve the objective function to obtain the solution result of the interpolation coefficient sequence, where the interpolation coefficient sequence The solution result is: in: Represents the interpolation coefficient sequence (The solution result of; T stands for transpose; Represents the vector obtained by transformation based on the objective function.
5. A twin modeling method for a sewage treatment system according to claim 1, characterized in that: In the step S2, the critical pipelines are identified on the time-aligned operation data, including: The critical pipelines are identified on the time-aligned operation data, and the critical pipeline identification process is as follows: S21: Acquire location information of different sewage pipes, wherein the location information includes location coordinates of the sewage pipes; the location coordinates of the sewage pipes include the coordinates of the sewage pipe inlet and the coordinates of the sewage pipe outlet; S22: using the position coordinates of the sewage pipe to traverse and obtain the predecessor pipe and the successor pipe of each sewage pipe, wherein the outlet of the predecessor pipe is the inlet of the current sewage pipe, and the inlet of the current sewage pipe is the outlet of the successor pipe; S23: Calculate the indicator weights of different indicators in the operating data, where the indicator weight of the i-th indicator is: in: w i represents the indicator weight of the i-th indicator; S24: Based on the indicator weights, the key weight of each sewage pipeline is calculated, where the key weight of the nth sewage pipeline is: in: The data sequence representing the time-aligned operation data of the predecessor pipeline of the nth sewage pipeline at the i-th index; The data sequence representing the time-aligned operation data of the successor pipeline of the nth sewage pipeline at the ith index; W n represents the critical weight of the nth sewage pipeline; ||·|| represents the L1 norm; K sewage pipelines with the highest critical weights are selected as the key pipelines in the sewage treatment system.
6. A twin modeling method for a sewage treatment system according to claim 5, characterized in that: In the S3 step, fine-grained modeling is performed on key pipelines in the sewage treatment system, including: Fine-grained modeling is performed on the key pipelines in the sewage treatment system, and the fine-grained modeling process of the kth key pipeline is as follows: S31: Get the material of the kth key pipeline radius And thickness and obtain the time-aligned operation data of the kth key pipeline; S32: Extracting flow data series from time-aligned operational data Pressure data series And the temperature data series in: represents the flow rate, pressure and temperature of the kth key pipeline at the dth sewage treatment system operation time in sequence; The flow, pressure and temperature data sequences are enhanced in turn. The data enhancement formula is: in: ⊙ represents item-by-item multiplication; I represents a vector whose elements are all 1; β represents the enhancement coefficient; Represents a data sequence The maximum value in ; S33: Calculate the water depth of the kth key pipeline at each operating time, and form a water depth sequence with the water depths at D operating times, wherein the water depth of the kth key pipeline at the dth sewage treatment system operating time is: in: represents the water depth of the kth key pipeline at the dth sewage treatment system operation time; S34: Calculate the deformation size of the kth key pipeline at each operating time, and form a deformation size sequence with the deformation sizes of D operating times, wherein the deformation size of the kth key pipeline at the dth sewage treatment system operating time is: in: Indicates material The corresponding deformation coefficient; τ represents the preset deformation threshold; It represents the deformation size of the kth key pipeline at the dth sewage treatment system operation time; S35: constructing a water depth sequence, a deformation size sequence, and a temperature data sequence of the kth key pipeline, and using the constructed sequence as a fine-grained modeling result of the kth key pipeline; Coarse-grained modeling of sewage pipelines for non-critical pipelines.
7. A twin modeling method for a sewage treatment system according to claim 6, characterized in that: The coarse-grained modeling of the sewage pipeline of the non-critical pipeline includes: The coarse-grained modeling is performed on the sewage pipelines of non-critical pipelines, and the coarse-grained modeling process is as follows: The radius and flow data sequence of the sewage pipe are obtained, and the water depth of the sewage pipe at each sewage treatment system operation time is calculated to form a water depth sequence of the sewage pipe. The water depth sequence and temperature data sequence are used as the coarse-grained modeling results of the sewage pipe.
8. A twin modeling method for a sewage treatment system as described in claims 6-7, characterized in that: In the step S4, the pipeline modeling results of the sewage treatment system are integrated, including: The pipeline modeling results of the sewage treatment system are integrated to obtain the twin model of the sewage treatment system. The integration process of the pipeline modeling results is as follows: S41: Based on the location coordinates, radius and length information of each sewage pipe in the sewage treatment system, three-dimensional modeling of the sewage pipe is performed to obtain a three-dimensional model of the sewage pipe; S42: For key pipelines in the three-dimensional model of the sewage pipeline, obtain fine-grained modeling results, map the water depth sequence into a three-dimensional water body sequence, map the deformation size sequence into a three-dimensional pipeline deformation sequence, and map the temperature data sequence into a pipeline color sequence; The three-dimensional water body sequence is a sequence of three-dimensional modeling results of sewage in three-dimensional pipelines. The three-dimensional modeling results of sewage describe the depth and flow state of sewage. The sewage depth is the water depth in the fine-grained modeling results. The three-dimensional pipeline deformation sequence is a sequence of deformation modeling results of the positions in the three-dimensional pipeline that are subjected to sewage pressure, and the sequence of deformation modeling results expresses the final pipeline shape corresponding to the deformation magnitude of the position in the pipeline; The pipeline color sequence is the surface temperature color sequence of the three-dimensional pipeline, where the higher the temperature, the darker the color; S43: for non-critical pipelines in the three-dimensional model of the sewage pipeline, a coarse-grained modeling result is obtained, a water depth sequence is mapped into a three-dimensional water body sequence, and a temperature data sequence is mapped into a pipeline color sequence; S44: The three-dimensional model of the sewage pipeline and the sequence describing the pipeline status constitute a twin model of the sewage treatment system, and obtain the pipeline status change of the sewage treatment system from the first operating moment to the Dth operating moment.
Citation Information
Patent Citations
On-line framework system and water supply pipe network model modeling method based on on-line framework system
CN104598698A
Natural gas pipeline network hydraulic parameter simulation method based on GPU acceleration
CN110826188A
Digital twin construction method, device and equipment for oil and gas pipeline, and storage medium
CN113837451A
Ship pipeline system modeling simulation method, computer storage medium and equipment
CN115146392A
Real-time simulation method of sewage pipe network based on water supply IoT data assimilation
US20230205943A1
