Water conservancy business processing method, water conservancy professional model platform and program product
By constructing a water conservancy business processing mode based on model topology, the problem of strong coupling of traditional water conservancy system modules is solved, and loose coupling of model combination is realized, which improves business processing efficiency and system scalability and supports efficient decision-making.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-12
- Publication Date
- 2026-04-10
AI Technical Summary
Traditional water conservancy business systems are tightly coupled with modules. Expanding new functions requires significant adjustments to the overall architecture, resulting in high development costs and a high risk of cascading failures. The lack of unified standards for multi-system collaboration leads to cumbersome interaction logic, time-consuming data sharing and process integration, low business processing efficiency, and difficulty in supporting efficient decision-making.
A water conservancy business processing mode based on model topology is constructed. By determining the target model topology and its relationships, the target water conservancy model is loaded from the preset model library, the model configuration is clarified, and loosely coupled model combination is achieved to replace the complex interaction logic between traditional multi-systems. Workflow engine and componentization technology are used to improve model reusability and portability.
It reduces development and maintenance costs, improves business processing efficiency, realizes modular and standardized water conservancy business processing, provides flexible and reliable technical support, and supports efficient decision-making.
Smart Images

Figure CN121072111B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of computer, in particular to a water conservancy business processing method, a water conservancy professional model platform, equipment, a medium and a program product. BACKGROUND
[0002] In the process of digital transformation of the water conservancy industry, the traditional project customization development mode still occupies a dominant position. This mode mainly focuses on the specific needs of a single project, and builds highly customized system architecture and function modules. Although this mode can quickly respond to specific business needs, its limitations gradually appear when facing the continuous upgrading of business and the continuous expansion of application scenarios.
[0003] The current water conservancy business system faces two major problems: first, the system modules are strongly coupled, and new function expansion requires significant adjustment of the overall architecture, resulting in high development costs and easy triggering of chain failures; second, in complex business scenarios, there is a lack of unified standards for multi-system collaboration, the interaction logic is complicated, data sharing and process concatenation are time-consuming, and business processing efficiency is low, making it difficult to support efficient decision-making. SUMMARY
[0004] In view of the above problems, the present disclosure provides a water conservancy business processing method, a water conservancy professional model platform, equipment, a medium and a program product.
[0005] According to one aspect of the present disclosure, a water conservancy business processing method is provided, applied to a water conservancy professional model platform, comprising: in response to the water conservancy professional model platform receiving a business processing request, determining a target model topology matched with a target water conservancy business from a plurality of preset model topologies based on the target water conservancy business included in the business processing request, the target model topology including an association relationship between a plurality of target water conservancy models for processing the target water conservancy business and a preset model configuration of each of the plurality of target water conservancy models; processing the target water conservancy business based on the association relationship, the preset model configuration of each of the plurality of target water conservancy models, and a plurality of target water conservancy models loaded from a preset model library, to obtain a processing sub-result of each of the plurality of target water conservancy models.
[0006] Another aspect of the present disclosure provides a water conservancy professional model platform, comprising: a topology determination module configured to, in response to the water conservancy professional model platform receiving a business processing request, determine, based on a target water conservancy business included in the business processing request, a target model topology matching the target water conservancy business from a plurality of preset model topologies, the target model topology comprising an association relationship between a plurality of target water conservancy models for processing the target water conservancy business and a preset model configuration of each of the plurality of target water conservancy models; and a business processing module configured to process the target water conservancy business based on the association relationship, the preset model configuration of each of the plurality of target water conservancy models, and the plurality of target water conservancy models loaded from a preset model library, to obtain a plurality of processing sub-results of each of the plurality of target water conservancy models.
[0007] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the method.
[0008] Another aspect of the present disclosure also provides a computer-readable storage medium having stored thereon a computer program or instructions, which, when executed by a processor, implement the steps of the method.
[0009] Another aspect of the present disclosure also provides a computer program product comprising a computer program or instructions, which, when executed by a processor, implement the steps of the method.
[0010] According to the water conservancy business processing method of the present disclosure, by constructing a water conservancy business processing mode based on model topology, when the water conservancy professional model platform processes a target water conservancy business, a target model topology matching the target water conservancy business is first determined, then target water conservancy models are loaded on demand from a preset model library, and the association relationship between the models and the model configuration of each target water conservancy model are specified, so as to construct a final water conservancy model adapted to the target water conservancy business, determine the flow sequence of the target water conservancy business, and obtain a plurality of processing sub-results. Since the overall business system is disassembled into a loosely coupled model combination by using the predefined model topology, when different water conservancy businesses are processed, the corresponding model or association relationship can be adjusted to obtain a relevant processing scheme, avoiding large-scale modification of the system architecture and greatly reducing the development cost and maintenance risk. At the same time, the association relationship between the models replaces the complex interaction logic between the traditional multiple systems, achieving efficient collaboration of data and business processes and significantly improving the business processing efficiency. Therefore, at least part of the problems of poor scalability and low multi-system interaction efficiency caused by the strong coupling of traditional systems are solved, the modularization, standardization and efficiency of water conservancy business processing are achieved, and more flexible and reliable technical support is provided for water conservancy informatization construction. BRIEF DESCRIPTION OF DRAWINGS
[0011] The above and other objects, features and advantages of the present disclosure will become more apparent from the following description when taken in conjunction with the accompanying drawings, in which:
[0012] Figure 1 An application scenario diagram of a water conservancy business processing method, a water conservancy professional model platform, an apparatus, a medium and a program product according to embodiments of the present disclosure is schematically shown;
[0013] Figure 2 A flowchart of a water conservancy business processing method according to embodiments of the present disclosure is schematically shown;
[0014] Figure 3 A data flow diagram of integrating a preset water conservancy model according to embodiments of the present disclosure is schematically shown;
[0015] Figure 4 A data flow diagram of constructing a preset model topology according to embodiments of the present disclosure is schematically shown;
[0016] Figure 5 A data flow diagram of a water conservancy business processing method according to embodiments of the present disclosure is schematically shown;
[0017] Figure 6 A data flow diagram of visualizing and rendering a plurality of processing sub-results according to embodiments of the present disclosure is schematically shown;
[0018] Figure 7 A structural block diagram of a water conservancy professional model platform according to embodiments of the present disclosure is schematically shown; and
[0019] Figure 8 A block diagram of an electronic apparatus suitable for implementing a water conservancy business processing method according to embodiments of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0020] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It is to be understood, however, that the description is merely exemplary of the present disclosure, and is not intended to limit the scope of the present disclosure. In the following detailed description of the embodiments of the present disclosure, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it would be apparent to one skilled in the art that the present disclosure can be practiced without these specific details. In other instances, well-known structures and functions have not been described in detail in order to avoid obscuring aspects of the present disclosure.
[0021] The terminology used herein is for the purpose of describing embodiments only and is not intended to limit the present disclosure. As used herein, the terms "comprises", "comprising", "includes", "including" and the like are to be construed to be inclusive (i.e., to include, but not to exclude) of one or more additional elements, features, steps, operations, and / or components.
[0022] All terms used herein, including technical and scientific terms, have the meanings commonly understood by one of ordinary skill in the art unless otherwise defined. It should be further noted that the use of terms such as first and second, etc., is only intended to differentiate between similar objects and not to denote a preference or particular order.
[0023] In the case of using expressions such as "at least one of A, B, and C", etc., it generally should be interpreted that the meaning is "at least one of A or B or C" (i.e., A or B or C or any combination of these) unless otherwise defined.
[0024] It should be noted that the water conservancy business processing method of the present disclosure can be used in the field of computer technology, and can also be used in any field other than the field of computer technology, such as the intersection field of computer and water conservancy engineering. The present disclosure does not limit the application field of the water conservancy business processing method.
[0025] It is found in the research process that the development mode of the traditional water conservancy model platform is mostly customized, strongly coupled, and highly integrated, and the integration methods mainly include API service interface, executable program, and source code. With the growth of water conservancy informationization business demand and the development of containerization technology in recent years, some scholars or units have begun to focus on the standardization and cloud deployment of model integration, which has effectively promoted the iterative upgrade of model integration mechanism and application form, but there are still problems to be solved in efficiently supporting digital twin business.
[0026] Developing model integration with source code and executable programs has the advantages of visible execution process and parameter intervention, but the model running and compilation environment requirements are high. In addition, the model development language types are more, and the unified integration is difficult; the introduction of application programming interface (Application Programming Interface, API) service calling mode alleviates the problem to a certain extent, but there is a lack of a relatively unified model interface standard, resulting in a low degree of model reuse.
[0027] In view of this, the embodiments of the present disclosure provide a water conservancy business processing method applied to a water conservancy professional model platform, including: in response to the water conservancy professional model platform receiving a business processing request, determining a target model topology matched with a target water conservancy business from a plurality of preset model topologies based on the target water conservancy business included in the business processing request, the target model topology including an association relationship between a plurality of target water conservancy models for processing the target water conservancy business and a preset model configuration of each of the plurality of target water conservancy models; processing the target water conservancy business based on the association relationship, the preset model configuration of each of the plurality of target water conservancy models, and a plurality of target water conservancy models loaded from a preset model library, to obtain a processing sub-result of each of the plurality of target water conservancy models.
[0028] Figure 1 An application scenario diagram of the water conservancy business processing method, the water conservancy professional model platform, the device, the medium and the program product according to the embodiments of the present disclosure is schematically shown.
[0029] As shown in Figure 1 The application scenario 100 according to the embodiments can include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104 and a server 105. The network 104 is a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103 and the server 105. The network 104 can include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0030] A user can use the first terminal device 101, the second terminal device 102, the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0031] The first terminal device 101, the second terminal device 102, the third terminal device 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers and desktop computers, etc.
[0032] The server 105 can be a server providing various services, such as a background management server supporting a website browsed by a user using the first terminal device 101, the second terminal device 102, the third terminal device 103 (only as an example). The background management server can analyze and process the received user request and other data, and feed back the processing result (such as a webpage, information, or data, etc. obtained or generated according to the user request) to the terminal device.
[0033] It should be noted that the water conservancy business processing method provided by the embodiments of the present disclosure can generally be executed by the server 105. Accordingly, the water conservancy professional model platform provided by the embodiments of the present disclosure can generally be arranged in the server 105. The water conservancy business processing method provided by the embodiments of the present disclosure can also be executed by a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the water conservancy professional model platform provided by the embodiments of the present disclosure can also be arranged in a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.
[0034] It should be understood that Figure 1 the number of terminal devices, networks and servers in may be only illustrative. According to the needs of implementation, there can be any number of terminal devices, networks and servers.
[0035] The water conservancy business processing method according to the embodiments of the present disclosure will be described in detail below based on the scenario described in Figure 1 . Figures 2-6 .
[0036] Figure 2 A flowchart of a water conservancy business processing method according to an embodiment of the present disclosure is schematically shown.
[0037] As shown in Figure 2 , the method comprises operations S210-S220, which are executed by the water conservancy professional model platform.
[0038] In operation S210, in response to the water conservancy professional model platform receiving a business processing request, based on a target water conservancy business included in the business processing request, a target model topology matching the target water conservancy business is determined from a plurality of preset model topologies, the target model topology including an association relationship between a plurality of target water conservancy models for processing the target water conservancy business and a preset model configuration of each of the plurality of target water conservancy models.
[0039] In operation S220, based on the association relationship, the preset model configuration of each of the plurality of target water conservancy models and the plurality of target water conservancy models loaded from the preset model library, the target water conservancy business is processed to obtain a processing sub-result of each of the plurality of target water conservancy models.
[0040] The business processing request can be sent by a target object using a target client, the target object can be a user. The target client can be any mobile phone, computer, etc. capable of communicating with the water conservancy professional model platform, and the water conservancy professional model platform can be a cloud platform.
[0041] The water conservancy professional model platform can include a front-end interface and a back-end service. The front-end interface can be used to receive a business processing request and send the business processing request to the back-end service for processing. The back-end service can be a micro-service background.
[0042] The business processing request can include a target water conservancy business and a processing mode. The target water conservancy business can be a water conservancy business to be processed, for example, calculating the flow process of a section of water area A, calculating the flow of a section of water area B, or determining the flood evolution process of area A.
[0043] The plurality of preset model topologies can correspond to different water conservancy business samples respectively, that is, can be used to solve different water conservancy business problems.
[0044] The target water conservancy model is a business module or a business system constructed for water conservancy business requirements, which can be used as a tool for processing specific sub-business when solving specific water conservancy business. Its implementation mode is various, which can be constructed by neural network model and other algorithm models, or can be developed based on traditional algorithm programs.
[0045] The target water conservancy business can be processed through the association relationship, the preset model configuration of each of the plurality of target water conservancy models, and the plurality of target water conservancy models loaded from the preset model library. In the processing process, the target water conservancy business can be processed based on the model scheme flow indicated by the association relationship and the preset model configuration of each of the plurality of target water conservancy models. The model scheme flow indicates the processing tool of the input data of each target water conservancy model and the flow sequence of the output data of each target water conservancy model.
[0046] The association relationship can clearly indicate the dependency relationship between the processing sub-results of the plurality of target water conservancy models, for example, there are target water conservancy model A and target water conservancy model B in the association relationship, and the processing sub-result of A is one of the inputs of B.
[0047] According to an embodiment of the present disclosure, the water conservancy professional model platform can be composed of a workflow engine, a cluster management technology, a container technology, and a component technology. Its architecture can be a Browser / Server (B / S) architecture. Through the water conservancy professional model platform, the component application and management of the preset water conservancy model and the processing tool for the input data of the preset water conservancy model can be realized. A unified model modification and encapsulation technical specification is adopted, which improves the reuse rate and portability of the preset water conservancy model between different systems. The introduction of the workflow engine also provides convenience for model coupling. The flexible underlying scheduling engine provides strong support for water conservancy digital twin business applications.
[0048] According to an embodiment of the present disclosure, by constructing a water conservancy business processing mode based on a model topology, when a water conservancy professional model platform processes a target water conservancy business, a target model topology matched with the target water conservancy business is determined first, then a target water conservancy model is loaded from a preset model library on demand, and the association relationship between the models and the model configuration of each target water conservancy model are determined, so as to construct a final water conservancy model adapted to the target water conservancy business, determine the flow sequence of the target water conservancy business, and obtain a plurality of processing sub-results. Since the overall business system is disassembled into a loosely coupled model combination by using a predefined model topology, when different water conservancy businesses are processed, the corresponding model or association relationship can be adjusted to obtain a relevant processing scheme, avoiding large-scale modification of the system architecture, and greatly reducing the development cost and maintenance risk. At the same time, the association relationship between the models replaces the complex interaction logic between the traditional multiple systems, realizes efficient cooperation of data and business processes, and significantly improves the business processing efficiency. Therefore, at least part of the problems of poor scalability and low multi-system interaction efficiency caused by strong coupling of traditional systems are solved, the modularization, standardization and efficiency of water conservancy business processing are realized, and more flexible and reliable technical support is provided for water conservancy informatization construction.
[0049] According to an embodiment of the present disclosure, the water conservancy business processing method can further include the following operations.
[0050] In response to the water conservancy professional model platform receiving a model integration request, based on the script file of the initial water conservancy model included in the model integration request and the script desensitization strategy for the script file, the script file is desensitized to obtain a desensitized script file; based on the image building information included in the model integration request and the desensitized script file, a preset water conservancy model is obtained; the preset water conservancy model is stored in a preset model library, and the preset water conservancy model is registered based on the model information included in the model integration request, so that the water conservancy professional model platform manages the preset water conservancy model.
[0051] The script file of the initial water conservancy model can be processed based on the preset component to obtain an updated script file, so that the initial water conservancy model can output a processing sub-result conforming to a preset format, for example, the preset water conservancy model has the ability to directly read and write fixed format input and output files.
[0052] The script file of the initial water conservancy model can include source code of the initial water conservancy model. A corresponding script desensitization strategy can be determined according to the programming language of the script file, for example: in the case of a programming language such as C, C++, or Fortran, which is a compilable language, script desensitization can be performed by compiling the source code. Specifically, source code compilation can be performed in a virtual machine environment that can be imaged and built. In the case of a programming language that does not need to be compiled to be executable, script desensitization can be performed by code obfuscation or by compiling after being converted into another compilable language with the help of a third-party tool.
[0053] The image building information can include a system image and an image deployment file. The system image is an operating system image file used for fast deployment, restoration, or cloning of an operating system environment. The image deployment file includes a series of instructions and configurations for defining the building process, running environment, dependencies, and startup behavior of the image, such as a Dockerfile file.
[0054] For example, the Dockerfile file includes necessary dependent model base images, file path construction, model execution file copying, model dependency environment installation commands, and image startup command instructions.
[0055] The model image can be built by a preset image building tool to obtain a preset water conservancy model.
[0056] After the model image is built, the image name and version number can be assigned.
[0057] The preset water conservancy model can be pushed to a preset model library and managed by a water conservancy professional model platform. Each preset water conservancy model pushed to the preset model library can be registered. The registration information can include model information included in the model integration request, for example: the model information can include at least one of the following: Chinese name, version number, English name, model classification, model provider, input sample and output sample, corresponding image name, input and output parameter registration, input data information, model parameter configuration, and analysis strategy.
[0058] According to embodiments of the present disclosure, by desensitizing the initial water conservancy model, the security of the final preset water conservancy model can be ensured. Since the preset water conservancy model needs to be stored locally, the desensitized preset water conservancy model will avoid source code leakage and other problems. At the same time, by registering the preset water conservancy model on the water conservancy professional model platform, multiple preset water conservancy models can be uniformly managed.
[0059] Figure 3 A data flow diagram of an integrated preset model according to an embodiment of the present disclosure is schematically shown.
[0060] As Figure 3As shown, for the initial water conservancy model with programming language C / C++ / Fortran…d, source code compilation can be performed to obtain a desensitized script file.
[0061] For the initial water conservancy model with other development languages, code obfuscation or escape compilation and other desensitization strategies can be performed to obtain a desensitized script file.
[0062] A preset water conservancy model can be obtained through a Dockerfile file, a desensitized script file, and a system image. The preset water conservancy model can be pushed to a preset model library and registered on a water conservancy professional model platform.
[0063] After registration, the preset water conservancy model can be tested online to verify whether the model image can be correctly executed under the call of the water conservancy professional model platform. If the online test is passed, the model is evaluated. If the online test is not passed, the preset water conservancy model and the registration information are modified.
[0064] During the model evaluation, the model function, performance, and stability can be evaluated and tested. After the test is passed, the model state of the preset water conservancy model is modified to an available state, so that the preset water conservancy model can normally process business.
[0065] According to an embodiment of the present disclosure, the preset model topology corresponds to a water conservancy business sample; the water conservancy business sample includes preset region information; the target water conservancy business includes region information; and determining a target model topology that matches the target water conservancy business from a plurality of preset model topologies can include the following operations.
[0066] Matching the preset region information of each of the plurality of preset model topologies with the region information included in the target water conservancy business obtains at least one candidate model topology that matches the region information; performing intent analysis on the target water conservancy business obtains a target intent; and based on a matching result between the target intent and preset intents of the at least one candidate model topology, determining the target model topology, the preset intents being obtained by performing intent analysis on a water conservancy business sample corresponding to the preset model topology.
[0067] The preset region information can represent a geographical region to which the water conservancy business sample is directed, and can be a covered river basin, a terrain type, a water system range, etc. The preset region information included in the water conservancy business sample is, for example, a flow process of determining a region A, and the preset region information corresponding to the water conservancy business sample is region A.
[0068] The natural language processing technology can be used to perform preprocessing such as word segmentation, part-of-speech tagging, and named entity recognition on the target water conservancy business, and then a text classification model such as a fine-tuning model of BERT (Bidirectional Encoder Representations from Transformers) or a rule engine is used to extract the target intent. For example, if the target water conservancy business is to predict the flood inundation range of a certain river basin, the target intent can be identified as flood inundation prediction.
[0069] The matching result can be determined by a text similarity algorithm, such as cosine similarity or Jaccard coefficient. The matching degree of the preset regional information of the preset model topology and the regional information of the target water conservancy business can be calculated. The preset model topology with a matching degree exceeding a preset threshold can be selected as the target model topology.
[0070] According to an embodiment of the present disclosure, by matching the preset regional information of the preset model topology with the target water conservancy business regional information, and analyzing the target intent and the preset intent of the candidate model topology, a double-dimensional accurate screening is realized. This avoids invalid calculation caused by mismatch between the preset model topology and the business scenario, improves the accuracy and adaptability of selection, greatly reduces the cost of manual screening through an automated process, and improves the efficiency of water conservancy business processing. At the same time, the flexible matching system enhances the adaptability to diversified business demands, optimizes the allocation of computing resources, effectively reduces repeated calculation and resource waste, and provides efficient and accurate solution support for water conservancy engineering business processing.
[0071] According to an embodiment of the present disclosure, the preset model topology is constructed in the following manner.
[0072] Based on the upstream and downstream relationship between the at least one river basin object included in the preset regional map and the river basin, a river basin object topology is constructed, the river basin object topology including an association relationship between the at least one river basin object, the preset regional map being determined according to the preset regional information; the water conservancy business sample is split into at least one sub-business sample for the at least one river basin object; the at least one sub-business sample is matched with the functional attributes of the plurality of preset water conservancy models respectively to obtain a first water conservancy model matched with the at least one sub-business sample; based on the river basin object used by the sub-business sample and the first water conservancy model matched with the sub-business sample, a second water conservancy model matched with the river basin object is determined; based on the association relationship between the at least one river basin object included in the river basin object topology, the second water conservancy model matched with each of the at least one river basin object, and the preset model configuration of each second water conservancy model, the preset model topology is obtained; wherein the preset model configuration includes model parameter configuration and model input configuration, the model parameter configuration is obtained based on the regional characteristics corresponding to the preset regional information, and the model input configuration includes a processing tool for input data of the second water conservancy model.
[0073] The basin object can be a site, a river line, a basin surface, etc. included in the preset area map. The site can be a point-shaped entity with a geographic location, used to mark a monitoring, control or management node at a specific location. For example, a water level station, a rainfall station, a reservoir, a sluice, a water quality detection point, etc. The river line can represent a linear entity such as a river, a channel, a dike, etc., used to depict the spatial trend and connection relationship of the water system. The basin surface is used to represent a planar geographic unit, usually a region divided by a closed boundary, used to describe a catchment area or a management range.
[0074] The upstream and downstream relationship between river basins can be determined according to the preset area map.
[0075] The site, river line, basin surface, etc. can be imported or created in the front end based on the map engine of the client web page, and the topological relationship between the objects can be constructed according to the river system, i.e. the upstream and downstream relationship between river basins, and then the basin object topology is generated.
[0076] The water conservancy business sample can be split into at least one sub-business sample corresponding to each basin object based on the basin object topology. One basin object can correspond to at least one sub-business sample.
[0077] The sub-business sample and the plurality of preset water conservancy models can be matched to obtain a first water conservancy model matched with the sub-business sample. Then, the second water conservancy model matched with the current basin object can be determined according to the correspondence between the sub-business sample and the basin object, and the first water conservancy model matched with the sub-business sample, so as to configure the second water conservancy model to the point, line and surface objects according to the water conservancy business logic, and then generate a model topology graph.
[0078] The data flow direction between the second water conservancy models can be determined through the association relationship between the at least one basin object, and then an initial model topology is obtained.
[0079] The preset model configuration can be configured by a target object through a configuration page of a water conservancy professional model platform. The target object can be a relevant person with access permission to the configuration page.
[0080] The model parameter configuration can be a configuration of a model parameter of the second water conservancy model, which is related to the region characteristics of the preset area information, so that the calculation process of the second water conservancy model can be more suitable for the preset area indicated by the preset area information, i.e. more suitable for the business processing scene.
[0081] The model input configuration can be a configuration of a processing tool for input data of the second water conservancy model, which can be, for example, a grid subdivision tool, a sub-basin division tool, a surface rainfall calculation tool, etc.
[0082] The processing tool to be called before inputting the input data into the second water conservancy model can be determined through the model input configuration, so that on the one hand, the input data can be made more suitable for the requirements of the second water conservancy model; on the other hand, the calculation speed of the second water conservancy model can be accelerated.
[0083] The preset model configuration can also be obtained through automatic configuration by a preset configuration program. For example, the model parameter configuration can be obtained by performing relevant calculations according to the regional characteristics of the preset region indicated by the preset regional information. The model parameter configuration can include multiple model parameters, and the model parameters can be surface water recession coefficient, impervious area ratio, groundwater daily outflow coefficient, or soil water daily recession coefficient, etc.
[0084] For another example, the model input configuration can be obtained based on the input sample of the second water conservancy model. Through the input sample, the input format or input type of the second water conservancy model can be determined, so that the processing tool to be called can be determined.
[0085] According to the embodiments of the present disclosure, the basin object topology is constructed based on the preset regional map, and the water conservancy business sample is split, model matched, and model configured, to finally form a preset model topology. The upstream and downstream relationships among basins can be intuitively presented through the basin object topology, the water conservancy business sample is split as needed, and the pertinence and refinement degree of business processing are improved. With the aid of accurate matching of the preset water conservancy model and the sub-business sample, it is ensured that each basin business requirement corresponds to a suitable model, and the adaptability and effectiveness of model application are improved. The second water conservancy model matched with the basin object and the preset model configuration of each second water conservancy model are determined, which further strengthens the deep integration of the model and the basin business, so that the finally constructed preset model topology not only integrates the basin correlation and the adaptive model, but also clearly presents the business process and the model cooperation relationship, effectively improves the efficiency of water conservancy business processing and the scientific nature of decision-making, and enhances the ability to cope with complex water conservancy problems.
[0086] Figure 4 A data flow diagram for constructing a preset model topology according to an embodiment of the present disclosure is schematically shown.
[0087] As shown in Figure 4 , at least one basin object included in the preset regional map can be imported or created in the front end to construct a site, a river channel line, and a basin surface, i.e., point-line-surface object creation. According to the upstream and downstream relationships among river basins, a topology relationship is constructed to obtain a basin object topology. The basin object topology can include Node1-Node4, and there is an association relationship between Node1-Node4.
[0088] The water conservancy business sample can be split into at least one sub-business sample for at least one basin object, and the at least one sub-business sample is matched with the functional attributes of the plurality of preset water conservancy models respectively to obtain a first water conservancy model matched with the at least one sub-business sample. Thus, the model configuration of the basin object in the basin object topology is realized according to the water conservancy business logic, and an initial model topology is obtained. The initial model topology can include the following second water conservancy models: Model1~Model4, and the association relationship between Model1~Model4 is related to the basin object topology.
[0089] The preset water conservancy models can be selected one by one from the preset model topology for guided modeling of a single model. The process includes model building of the single model, such as model input configuration, and parameter configuration of the single model, such as model parameter configuration, so that the preset model topology, i.e., the model scheme flow, can be obtained. The preset model topology is called when the business processing is performed.
[0090] The model building and parameter configuration of the single model can be realized based on the modularized backend component tool and the convenient frontend component tool of the water conservancy professional model platform. Specifically, when the model building is performed, the modularized backend component tool for processing the input data of the second water conservancy model can be configured, such as mesh partitioning, sub-basin division, and surface rainfall calculation tools.
[0091] The model parameter configuration of the second water conservancy model, such as rainfall station configuration, boundary data configuration, and cross section processing, can also be performed through the convenient frontend component tool, i.e., the configuration page of the water conservancy professional model platform.
[0092] According to an embodiment of the present disclosure, the functional attribute is determined in the following manner.
[0093] The input sample for the preset water conservancy model is input into the preset water conservancy model to obtain a test output. In a case where the test output is consistent with the output sample for the preset water conservancy model, the functional analysis of the preset water conservancy model is performed based on the test output to obtain the functional attribute of the preset water conservancy model.
[0094] The functional attribute can be used to represent the function that can be realized by the preset water conservancy model.
[0095] The input sample and the output sample can be a sample pair, which is sample data that can be processed by the preset water conservancy model and a result that can be output when processing the sample data.
[0096] The input sample and the output sample can be sent by a model provider when the preset water conservancy model is registered.
[0097] The preset water conservancy model can be functionally analyzed by determining at least one output parameter included in the test output result, analyzing the key identification of the at least one output parameter, and determining the functional attribute of the preset water conservancy model according to the meaning of the key identification.
[0098] According to an embodiment of the present disclosure, by inputting an input sample into a preset water conservancy model to obtain a test output, and carrying out functional analysis when the test output is consistent with the output sample, the accuracy and reliability of the model output result can be verified, and reliable data can be ensured to be output by the model in actual water conservancy business. Based on the accurate test output, the specific functional attribute of the model in water conservancy business processing can be clearly defined, which provides a basis for accurate adaptation of water conservancy business scenarios and models, avoids blindness in model selection, and improves the scientificity and efficiency of water conservancy business processing.
[0099] According to an embodiment of the present disclosure, matching at least one sub-business sample with the functional attributes of a plurality of preset water conservancy models to obtain a first water conservancy model matched with the at least one sub-business sample can include the following operations.
[0100] For each sub-business sample, the sub-business sample is matched with the functional attributes of a plurality of preset water conservancy models to obtain at least one candidate water conservancy model matched with the sub-business sample; based on the performance attribute of the at least one candidate water conservancy model, a first water conservancy model matched with the sub-business sample is determined from the at least one candidate water conservancy model, and the performance attribute is obtained by performing performance testing on the candidate water conservancy model.
[0101] When determining the first water conservancy model matched with the sub-business sample, at least one candidate water conservancy model matched with the sub-business sample in terms of function can be determined according to the matching result of the functional attribute of the preset water conservancy model and the sub-business sample.
[0102] And the candidate water conservancy model with the best performance attribute in the at least one candidate water conservancy model can be selected as the first water conservancy model according to the performance attribute of each first candidate water conservancy model.
[0103] The means for testing the performance of the candidate water conservancy model is not limited, and can be stable, accurate, processing timeliness, etc. For example, by inputting data of different sizes, the time consumed by the model to complete a single simulation can be recorded, so as to realize the testing of processing timeliness. Different working conditions such as regular rainfall and extreme rainstorm are set to observe the stability of the model output under different scenarios.
[0104] According to an embodiment of the present disclosure, based on the water conservancy model matching manner of the function attribute and the performance attribute, the model meeting the needs of the sub-business sample can be accurately screened out. Through the function attribute matching, the candidate model with the ability to solve specific water conservancy problems can be quickly located, and the business processing deviation caused by the inconsistent model function can be avoided. Combined with the performance attribute for further screening, the first water conservancy model with better performance such as calculation efficiency, simulation accuracy, and applicable scene can be selected from the candidate model, so as to effectively balance the model processing effect and resource consumption, and improve the accuracy and efficiency of water conservancy business processing.
[0105] According to an embodiment of the present disclosure, the business processing request includes a processing mode; based on the association relationship and the plurality of target water conservancy models loaded from the preset model library, the target water conservancy business is processed to obtain the processing sub-result of each of the plurality of target water conservancy models, which can include the following operations.
[0106] Based on the scheduling mode corresponding to the processing mode, at least one computing node is determined; the at least one computing node loads the plurality of target water conservancy models from the preset model library to process the target water conservancy business based on the association relationship and the preset model configuration of each of the plurality of target water conservancy models, to obtain the processing sub-result of each of the plurality of target water conservancy models; and based on the result storage path of the at least one computing node, the plurality of processing sub-results are obtained.
[0107] The computing node can be a server in a server cluster, and each server is a computing node.
[0108] The model parameter loading of the target water conservancy model can be based on the model parameter configuration included in the preset model configuration of the target water conservancy model, and the data input into the target water conservancy model can be based on the model input configuration included in the preset model configuration.
[0109] According to the processing mode selected by the user, different scheduling modes can be determined, so as to determine at least one computing node for processing the target water conservancy business. For example, when the processing mode is the super-speed mode, the computing node with high priority, low resource idle rate, and strong computing performance can be selected.
[0110] The processing sub-result output by the last target water conservancy model in the target model topology is the final processing result.
[0111] In some embodiments, if the computing node has loaded the target water conservancy model, the target water conservancy model can not be loaded from the preset model library again, and the business processing can be based on the target water conservancy model in the computing node database.
[0112] According to an embodiment of the present disclosure, by associating the processing mode in the service processing request with the scheduling mode, the computing resources can be accurately matched according to different service requirements such as emergency response or regular analysis, for example, in the super-speed mode, high-performance nodes are preferentially called to realize fast calculation, and in the stable mode, resource load-balanced nodes are allocated to guarantee calculation accuracy; by controlling the computing nodes to load the target water conservancy model from the preset model library, the standardization and efficiency of model calling are realized, and resource waste and conflicts are avoided. Finally, the processing sub-results are obtained based on the result storage path, ensuring the integrity and traceability of the data, not only improving the efficiency and flexibility of water conservancy service processing, but also providing reliable data support for subsequent comprehensive analysis and decision-making, effectively enhancing the adaptability and reliability of the water conservancy service processing system.
[0113] Figure 5 A data flow diagram of a water conservancy service processing method according to an embodiment of the present disclosure is schematically shown.
[0114] As Figure 5 shown, in response to the processing mode included in the received service processing request, the micro-service background can automatically configure the corresponding scheduling mode according to the processing mode selected by the user, and construct a request file of the workflow engine corresponding to the scheduling mode. The workflow engine distributes the computing tasks to the computing nodes with appropriate computing power required by the target water conservancy model according to the monitoring capability of the cluster management and with the help of the computing power management service, such as computing nodes with X86 Central Processing Unit (X86 CPU), Graphics Processing Unit (GPU), or Arm Central Processing Unit (Arm CPU), etc., so as to carry out the target water conservancy service processing and obtain a plurality of processing sub-results.
[0115] According to an embodiment of the present disclosure, the above water conservancy service processing method further includes the following operations.
[0116] The rendering configuration corresponding to each of the plurality of target water conservancy models is obtained; for the processing sub-result of each target water conservancy model, the processing sub-result is rendered based on the rendering configuration corresponding to the target water conservancy model, and is displayed at the target position of the target area map, which is determined according to the area information included in the target water conservancy service.
[0117] The rendering configuration is a rendering rule corresponding to the target water conservancy model, such as analysis strategy and rendering strategy.
[0118] The rendering configuration corresponding to each of the plurality of target water conservancy models can be stored in a database.
[0119] The target position of the target area map can be a point position, a line position, or a surface position in a target area region.
[0120] The processing sub-result can be parsed and rendered by the rendering configuration, so as to obtain a display result corresponding to the processing sub-result finally at the target position of the target area map.
[0121] According to an embodiment of the present disclosure, by obtaining the rendering configuration corresponding to each target water conservancy model, the abstract processing sub-result is converted into a visual element such as a heat map or a dynamic contour line according to a rule, and is accurately mapped into the target position of the target area map, so as to realize deep fusion of multi-dimensional data and geographic space. Therefore, complex water conservancy business data can be intuitively presented, and multi-dimensional comprehensive analysis is supported, so as to improve business analysis and decision-making efficiency.
[0122] According to an embodiment of the present disclosure, the rendering configuration includes an analysis strategy and a rendering strategy, and the rendering strategy includes a rendering mode and a target position. Based on the rendering configuration corresponding to the target water conservancy model, the processing sub-result is rendered and displayed at the target position of the target area map, which can include the following operations.
[0123] For each processing sub-result, the processing sub-result is analyzed based on the analysis strategy to obtain to-be-displayed data, and the to-be-displayed data is rendered according to the rendering mode and displayed at the target position of the target area map.
[0124] The processing sub-result can include multiple elements, such as water depth, flow rate, and the like.
[0125] The analysis strategy can include an element name and an analysis mode. The analysis mode is used to indicate how to analyze the element from the processing sub-result.
[0126] The rendering strategy can include an element name, an element source, a display element type, and a rendering mode. The element source is used to clearly indicate the storage path or data address of the element in the processing sub-result, so as to ensure that the element data can be accurately extracted. The display element type can specify the spatial display rule of the element, such as specifying the target position of the element in the target area map by geographic coordinates or region code, for example, displaying the element in a specific geographic element such as a river basin surface A, a river center line B, or a monitoring point C, and further subdividing the display level such as a ground layer, an underground layer, a dimension such as two-dimensional or three-dimensional, and the like, so as to realize accurate mapping and intuitive visual presentation of the processing sub-result and the geographic space.
[0127] According to an embodiment of the present disclosure, the processing sub-results are parsed by parsing strategies, so as to parse the data to be displayed from the processing sub-results. The data is visualized and rendered based on a rendering mode, and is accurately mapped to a regional map according to a target position, thereby realizing deep fusion of water conservancy data and geographic space, ensuring the standardization and accuracy of data display, improving the intuitiveness and understandability of information presentation, enabling decision makers to quickly grasp the regional water conservancy situation, and providing strong support for water conservancy business analysis and decision making.
[0128] Figure 6 A data flow diagram for visualizing and rendering a plurality of processing sub-results according to an embodiment of the present disclosure is schematically shown.
[0129] As shown in Figure 6 , a plurality of processing sub-results are obtained after a plurality of target water conservancy models process a target water conservancy business. The processing sub-results are stored in a storage space of a computing node loaded with the plurality of target water conservancy models. The result storage path of the plurality of computing nodes can be determined, and the processing sub-results of the plurality of target water conservancy models can be obtained based on the result storage path.
[0130] The rendering configuration corresponding to each processing sub-result can be obtained. The rendering configuration can include a parsing strategy and a rendering strategy. The parsing strategy can include an element name, a parsing mode, etc. The rendering strategy can include an element name, an element source, a display element type, and a rendering mode, etc.
[0131] The parsing mode can be called, and the element parsing can be performed according to the configured or user-specified basic data file in the processing sub-result. The parsed elements and the rendering strategy required for display can be stored.
[0132] When the user initiates a processing sub-result visualization request of the corresponding target water conservancy model on the client side, the backend returns the elements to be displayed to the front end in a specific structure, so that the front end realizes the visual rendering of each element data.
[0133] Based on the above water conservancy business processing method, the present disclosure further provides a water conservancy professional model platform. The device will be described in detail below. Figure 7
[0134] Figure 7 A structural block diagram of a water conservancy business processing device based on a water conservancy professional model platform according to an embodiment of the present disclosure is schematically shown.
[0135] As shown in Figure 7 , the water conservancy professional model platform 700 of this embodiment includes a topology determination module 710 and a business processing module 720.
[0136] The topology determination module 710 is configured to, in response to the received service processing request including a target water conservancy service, determine a target model topology matched with the target water conservancy service from a plurality of preset model topologies, the target model topology including an association relationship between a plurality of target water conservancy models for processing the target water conservancy service and preset model configurations of the plurality of target water conservancy models respectively.
[0137] The service processing module 720 is configured to process the target water conservancy service based on the association relationship, the preset model configurations of the plurality of target water conservancy models, and the plurality of target water conservancy models loaded from the preset model library, to obtain processing sub-results of the plurality of target water conservancy models respectively.
[0138] According to an embodiment of the present disclosure, the preset model topology corresponds to a water conservancy service sample. The water conservancy service sample includes preset region information. The target water conservancy service includes region information. The topology determination module 710 can include a first matching module, an intention analysis module, and a second matching module.
[0139] The first matching module is configured to match the preset region information of each of the plurality of preset model topologies with the region information included in the target water conservancy service, to obtain at least one candidate model topology matched with the region information.
[0140] The intention analysis module is configured to perform intention analysis on the target water conservancy service to obtain a target intention.
[0141] The second matching module is configured to determine the target model topology based on a matching result between the target intention and preset intentions of the at least one candidate model topology, the preset intentions being obtained by performing intention analysis on the water conservancy service sample corresponding to the preset model topology.
[0142] According to an embodiment of the present disclosure, the water conservancy professional model platform 700 further includes a construction module, a splitting module, a first determination module, a second determination module, and a third determination module.
[0143] The construction module is configured to construct a flow domain object topology based on an upstream and downstream relationship between at least one flow domain object and a river water flow domain included in a preset region map, the flow domain object topology including an association relationship between the at least one flow domain object, the preset region map being determined according to the preset region information.
[0144] The splitting module is configured to split the water conservancy service sample into at least one sub-service sample for the at least one flow domain object.
[0145] The first determination module is configured to match the at least one sub-service sample with functional attributes of a plurality of preset water conservancy models respectively, to obtain a first water conservancy model matched with the at least one sub-service sample.
[0146] The second determining module is configured to determine a second water conservancy model matched with the basin object based on the basin object used by the sub-business sample and the first water conservancy model matched with the sub-business sample.
[0147] The third determining module is configured to obtain a preset model topology based on an association relationship between at least one basin object included in the basin object topology, the second water conservancy model matched with each of the at least one basin object, and a preset model configuration of each of the second water conservancy models, wherein the preset model configuration comprises a model parameter configuration and a model input configuration, the model parameter configuration is obtained based on a regional feature corresponding to preset regional information, and the model input configuration comprises a processing tool for input data of the second water conservancy model.
[0148] According to an embodiment of the present disclosure, the water conservancy professional model platform 700 further comprises a test module and a function analysis module.
[0149] The test module is configured to input an input sample used for a preset water conservancy model into the preset water conservancy model to obtain a test output.
[0150] The function analysis module is configured to, in a case where it is determined that the test output is consistent with an output sample used for the preset water conservancy model, perform function analysis on the preset water conservancy model based on the test output to obtain a function attribute of the preset water conservancy model.
[0151] According to an embodiment of the present disclosure, the first determining module comprises a first matching sub-module and a second matching sub-module.
[0152] The first matching sub-module is configured to, for each sub-business sample, match the sub-business sample with function attributes of a plurality of preset water conservancy models to obtain at least one candidate water conservancy model matched with the sub-business sample.
[0153] The second matching sub-module is configured to determine, from the at least one candidate water conservancy model, a first water conservancy model matched with the sub-business sample based on a performance attribute of the at least one candidate water conservancy model, the performance attribute being obtained by performing performance testing on the candidate water conservancy model.
[0154] According to an embodiment of the present disclosure, the business processing request comprises a processing mode. The business processing module comprises a node determining sub-module, a processing sub-module, and an obtaining sub-module.
[0155] The node determining sub-module is configured to determine at least one computing node based on a scheduling mode corresponding to the processing mode.
[0156] The processing sub-module is configured to control the at least one computing node to load a plurality of target water conservancy models from a preset model library, so as to process a target water conservancy business based on the association relationship and preset model configurations of the plurality of target water conservancy models respectively to obtain processing sub-results of the plurality of target water conservancy models respectively.
[0157] The acquisition sub-module is configured to acquire the multiple processing sub-results based on the result storage path of the at least one computing node.
[0158] According to an embodiment of the present disclosure, the water conservancy business processing apparatus based on a water conservancy professional model platform further comprises a configuration acquisition module and a rendering module.
[0159] The configuration acquisition module is configured to acquire rendering configurations corresponding to the multiple target water conservancy models respectively.
[0160] The rendering module is configured to, for the processing sub-result of each target water conservancy model, render the processing sub-result based on the rendering configuration corresponding to the target water conservancy model, and display the processing sub-result at a target position of a target area map, the target area map being determined according to area information included in the target water conservancy business.
[0161] According to an embodiment of the present disclosure, the rendering configuration comprises an analysis strategy and a rendering strategy. The rendering strategy comprises a rendering manner and a target position. The rendering module comprises an analysis sub-module and a rendering sub-module.
[0162] The analysis sub-module is configured to, for each processing sub-result, analyze the processing sub-result based on the analysis strategy to obtain to-be-displayed data.
[0163] The rendering sub-module is configured to render the to-be-displayed data according to the rendering manner, and display the to-be-displayed data in the target area map according to the target position.
[0164] According to an embodiment of the present disclosure, the water conservancy business processing apparatus based on a water conservancy professional model platform comprises a desensitization module, a model determination module and a storage module.
[0165] The desensitization module is configured to, in response to the received model integration request comprising a script file of an initial water conservancy model, desensitize the script file based on a script desensitization strategy corresponding to a programming language used for the script file to obtain a desensitized script file.
[0166] The model determination module is configured to obtain a preset water conservancy model based on the image building information included in the model integration request and the desensitized script file.
[0167] The storage module is configured to store the preset water conservancy model into a preset model library.
[0168] According to an embodiment of the present disclosure, any of the topology determining module 710 and the service processing module 720 can be combined in one module, or any of them can be split into multiple modules. Alternatively, at least part of the function of one or more of these modules can be combined with at least part of the function of the other modules, and implemented in one module. According to an embodiment of the present disclosure, at least one of the topology determining module 710 and the service processing module 720 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on board, a system on package, an application specific integrated circuit (ASIC), or any other reasonable way of integrating or packaging a circuit, etc. or implemented in software, hardware and firmware in any one of them or in a proper combination of any of them. Alternatively, at least one of the topology determining module 710 and the service processing module 720 can be at least partially implemented as a computer program module which, when executed, can perform the corresponding function.
[0169] Figure 8 A block diagram of an electronic device suitable for implementing the water conservancy service processing method according to an embodiment of the present disclosure is schematically shown.
[0170] As shown in Figure 8 , the electronic device 800 according to an embodiment of the present disclosure includes a processor 801 which can perform various appropriate actions and processes according to a program stored in a read only memory (ROM) 802 or a program loaded from a storage portion 808 into a random access memory (RAM) 803. The processor 801 can include, for example, a general purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special purpose microprocessor (such as an application specific integrated circuit (ASIC)), etc. The processor 801 can also include an on-board memory for cache use. The processor 801 can include a single processing unit or a plurality of processing units for performing different actions of the method processes according to an embodiment of the present disclosure.
[0171] In the RAM 803, various programs and data required for the operation of the electronic device 800 are stored. The processor 801, the ROM 802 and the RAM 803 are connected to each other through a bus 804. The processor 801 performs various operations of the method processes according to an embodiment of the present disclosure by executing the programs in the ROM 802 and / or the RAM 803. It should be noted that the programs can also be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 can also perform various operations of the method processes according to an embodiment of the present disclosure by executing the programs stored in one or more memories.
[0172] According to an embodiment of the present disclosure, the electronic device 800 can further include an input / output (I / O) interface 805 also connected to the bus 804. The electronic device 800 can further include one or more of the following components connected to the input / output (I / O) interface 805: an input part 806 including a keyboard, a mouse, etc.; an output part 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage part 808 including a hard disk, etc.; and a communication part 809 including a network interface card such as a LAN card, a modem, etc. The communication part 809 performs communication processing via a network such as the Internet. A driver 810 is also connected to the input / output (I / O) interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is mounted on the driver 810 as necessary, so that a computer program read out therefrom is installed in the storage part 808 as necessary.
[0173] The present disclosure also provides a computer readable storage medium, which can be included in the device / apparatus / system described in the above embodiments, or can exist separately without being assembled into the device / apparatus / system. The above computer readable storage medium carries one or more programs, which when executed, implement the method according to the embodiments of the present disclosure.
[0174] According to an embodiment of the present disclosure, the computer readable storage medium can be a non-volatile computer readable storage medium, which can include, but is not limited to, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any appropriate combination thereof. In the present disclosure, the computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, the computer readable storage medium can include one or more of the above-described ROM 802 and / or RAM 803 and / or a memory other than the ROM 802 and the RAM 803.
[0175] The embodiments of the present disclosure also include a computer program product, which includes a computer program containing program codes for executing the methods shown in the flowcharts. When the computer program product is run in a computer system, the program codes are used to make the computer system implement the water treatment method provided by the embodiments of the present disclosure.
[0176] The above-described functions of the system / apparatus defined in the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. According to the embodiments of the present disclosure, the system, apparatus, module, unit, etc. described above can be implemented by the computer program modules.
[0177] In one embodiment, the computer program can be stored in a tangible storage medium, such as an optical, magnetic, or other memory on a server, computer, or other computing device. In another embodiment, the computer program can be transmitted over a network, including the Internet, WAN, LAN, or other network, including a wireless network, between a server and a client (e.g., using a web server or other server) or between two client devices (e.g., using a peer-to-peer network), using signal(s) in the form of packets, electronic signals, electrical, optical, or other form.
[0178] In such an embodiment, the computer program can be downloaded and installed from a network, such as the Internet, WAN, LAN, or other network, including a wireless network, between a server and a client (e.g., using a web server or other server) or between two client devices (e.g., using a peer-to-peer network), using signal(s) in the form of packets, electronic signals, electrical, optical, or other form. The above-described functions of the system defined in the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. According to the embodiments of the present disclosure, the system, apparatus, module, unit, etc. described above can be implemented by the computer program modules.
[0179] According to the embodiments of the present disclosure, the program code for execution of the computer program provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages, and specifically, the computer program can be implemented using a high-level procedural and / or object-oriented programming language, and / or an assembly / machine language. The programming language includes, but is not limited to, such as Java, C++, python, “C” language, or similar programming languages. The program code can be executed entirely on a user computing device, partially on a user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case involving a remote computing device, the remote computing device can be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., connected to the Internet through an Internet service provider).
[0180] The computer program product of the first aspect can include one or more non-transitory computer-readable media storing instructions that, when executed, cause a processor of a computer-based system to perform any of the methods of the first aspect. The computer program product of the first aspect can include one or more non-transitory computer-readable media storing instructions that, when executed, cause a processor of a computer-based system to perform any of the methods of the first aspect.
[0181] Those skilled in the art will understand that features recited in the various embodiments of the present disclosure can be combined and / or integrated in a variety of ways, even if such combinations or integrations have not been expressly contemplated herein. In particular, features recited in the various embodiments of the present disclosure can be combined and / or integrated in a variety of ways without departing from the spirit and scope of the present disclosure. All such combinations and / or integrations are within the scope of the present disclosure.
[0182] The above describes embodiments of the present disclosure. However, these embodiments are merely for illustrative purposes, and are not intended to limit the scope of the present disclosure. Although each of the embodiments is described above separately, this does not mean that the measures in each of the embodiments cannot be used advantageously in combination. Those skilled in the art can make various substitutions and modifications without departing from the scope of the present disclosure, and these substitutions and modifications should all fall within the scope of the present disclosure.
Claims
1. A water business processing method characterized by, The method is applied to a water conservancy professional model platform, and the method comprises the following steps: In response to the water conservancy professional model platform receiving a service processing request, based on a target water conservancy service included in the service processing request, a target model topology matched with the target water conservancy service is determined from a plurality of preset model topologies, the target model topology comprises an association relationship between a plurality of target water conservancy models for processing the target water conservancy service and a preset model configuration of each of the plurality of target water conservancy models; Based on the association relationship, the preset model configuration of each of the plurality of target water conservancy models, and the plurality of target water conservancy models loaded from the preset model library, the target water conservancy service is processed to obtain a processing sub-result of each of the plurality of target water conservancy models; The preset model topology corresponds to a water conservancy service sample; the water conservancy service sample comprises preset region information; the preset model topology is constructed by the following method: Based on at least one basin object included in a preset region map and an upstream and downstream relationship between river basins, a basin object topology is constructed, the basin object topology comprises an association relationship between at least one basin object, and the preset region map is determined according to the preset region information; The water conservancy service sample is split into at least one sub-service sample for at least one basin object; At least one sub-service sample is matched with the functional attributes of a plurality of preset water conservancy models respectively to obtain a first water conservancy model matched with at least one sub-service sample; Based on the basin object used by the sub-service sample and the first water conservancy model matched with the sub-service sample, a second water conservancy model matched with the basin object is determined; Based on the association relationship between at least one basin object included in the basin object topology, the second water conservancy model matched with each of the at least one basin object, and the preset model configuration of each of the second water conservancy model, the preset model topology is obtained; The preset model configuration comprises model parameter configuration and model input configuration, the model parameter configuration is obtained based on the region characteristics corresponding to the preset region information, and the model input configuration comprises a processing tool for input data of the second water conservancy model.
2. The method of claim 1, wherein, The target water conservancy service comprises region information; The target model topology matched with the target water conservancy service is determined from a plurality of preset model topologies, which comprises the following steps: The preset region information of each of the plurality of preset model topologies is matched with the region information included in the target water conservancy service to obtain at least one candidate model topology matched with the region information; The target water conservancy service is analyzed to obtain a target intention; Based on the matching result between the target intention and the preset intention of at least one candidate model topology, the target model topology is determined, and the preset intention is obtained by analyzing the intention of the water conservancy service sample corresponding to the preset model topology.
3. The method of claim 1, wherein, The functional attribute is determined by the following method: An input sample for the preset water conservancy model is input into the preset water conservancy model to obtain a test output; In a case where it is determined that the test output is consistent with an output sample of the preset water conservancy model, performing function analysis on the preset water conservancy model based on the test output to obtain a function attribute of the preset water conservancy model.
4. The method of claim 1, wherein, The matching of the at least one sub-business sample with the function attributes of the plurality of preset water conservancy models respectively comprises: For each sub-business sample, matching the sub-business sample with the function attributes of the plurality of preset water conservancy models to obtain at least one candidate water conservancy model matched with the sub-business sample; Based on the performance attribute of at least one of the candidate water conservancy models, determining a first water conservancy model matched with the sub-business sample from the at least one candidate water conservancy model, the performance attribute being obtained by performing performance testing on the candidate water conservancy model.
5. The method according to claim 1 or 2, characterized in that, The business processing request comprises a processing mode; The processing of the target water conservancy business based on the association relationship, the preset model configurations of the plurality of target water conservancy models, and the plurality of target water conservancy models loaded from the preset model library to obtain the processing sub-results of the plurality of target water conservancy models respectively comprises: Determining at least one computing node based on a scheduling mode corresponding to the processing mode; Controlling at least one computing node to load the plurality of target water conservancy models from the preset model library to process the target water conservancy business based on the association relationship, the preset model configurations of the plurality of target water conservancy models, and obtain the processing sub-results of the plurality of target water conservancy models respectively; Obtaining the plurality of processing sub-results based on a result storage path of at least one computing node.
6. The method of claim 1 or 2, wherein, The method further comprises: Obtaining a rendering configuration corresponding to each of the plurality of target water conservancy models; For each processing sub-result of each target water conservancy model, rendering the processing sub-result based on the rendering configuration corresponding to the target water conservancy model and displaying the processing sub-result at a target position of a target area map, the target area map being determined according to area information included in the target water conservancy business.
7. The method of claim 6, wherein, The rendering configuration comprises an analysis strategy and a rendering strategy, and the rendering strategy comprises a rendering mode and a target position. The rendering of the processing sub-result based on the rendering configuration corresponding to the target water conservancy model and the display of the processing sub-result at the target position of the target area map comprise: For each processing sub-result, analyzing the processing sub-result based on the analysis strategy to obtain to-be-displayed data; Rendering the to-be-displayed data according to the rendering mode and displaying the to-be-displayed data in the target area map according to the target position.
8. The method of claim 1 or 2, wherein, The method further comprises: In response to the water conservancy professional model platform receiving a model integration request, desensitizing a script file of an initial water conservancy model included in the model integration request based on a script desensitization strategy for the script file to obtain a desensitized script file; Based on the image building information included in the model integration request and the desensitized script file, obtaining a preset water conservancy model; The preset water conservancy model is stored in the preset model library, and model registration is performed on the preset water conservancy model based on model information included in the model integration request, so that the water conservancy professional model platform manages the preset water conservancy model.
9. A hydro-professional model platform, characterized in that, The water conservancy professional model platform comprises: The topology determination module is configured to, in response to receiving a service processing request, determine a target model topology matching a target water conservancy service included in the service processing request from a plurality of preset model topologies based on the target water conservancy service, the target model topology comprising an association relationship between a plurality of target water conservancy models for processing the target water conservancy service and preset model configurations of the plurality of target water conservancy models respectively; the preset model topologies correspond to water conservancy service samples; the water conservancy service samples comprise preset region information; The topology determination module is configured to process the target water conservancy service based on the association relationship, the preset model configurations of the plurality of target water conservancy models, and the plurality of target water conservancy models loaded from the preset model library, to obtain processing sub-results of the plurality of target water conservancy models respectively; The construction module is configured to construct a flow domain object topology based on at least one flow domain object included in a preset region map and an upstream-downstream relationship between river flow domains, the flow domain object topology comprising an association relationship between at least one flow domain object, and the preset region map being determined according to the preset region information; The splitting module is configured to split the water conservancy service sample into at least one sub-service sample for at least one flow domain object; The first determination module is configured to match at least one sub-service sample with functional attributes of a plurality of preset water conservancy models respectively, to obtain first water conservancy models matched with at least one sub-service sample; The second determination module is configured to determine second water conservancy models matched with flow domain objects based on the flow domain objects used by the sub-service samples and the first water conservancy models matched with the sub-service samples; The third determination module is configured to obtain the preset model topologies based on the association relationship between at least one flow domain object included in the flow domain object topology, the second water conservancy models matched with at least one flow domain object respectively, and preset model configurations of the second water conservancy models respectively. The preset model configurations comprise model parameter configurations and model input configurations, the model parameter configurations being obtained based on region characteristics corresponding to the preset region information, and the model input configurations comprising processing tools for input data of the second water conservancy models.
10. A computer program product comprising computer programs or instructions, characterized in that, The computer program or instructions are executed by the processor to implement the steps of the method according to any one of claims 1-8.