Method and system for automatically generating hydrological analysis service chain based on large model
Through the automatic generation method of hydrological analysis service chain based on large models, the user's natural language description needs are analyzed and structured needs are generated, and the most matching services are selected to combine them into the service chain, which solves the problem of low automation in the field of hydrological analysis and realizes efficient hydrological analysis automation.
Patent Information
- Application Number
- CN202411610160.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-11-12
AI Technical Summary
The existing hydrological analysis field has a low degree of automation, resulting in high manual participation, and the existing service chain automatic generation method relies on formal user demand expression, increasing the user's work costs.
A large model-based hydrological analysis service chain automatic generation method is proposed. By defining the expression model of hydrological geographic information services, the hydrological analysis model and data are published as services, the large model is used to analyze the user's natural language description needs, generate structured needs, and select the most matching services by calculating similarity to combine them into the service chain.
It realizes the direct obtaining of hydrological analysis results from the needs of natural language description, significantly improving the automation level of hydrological analysis, reducing manual participation, and improving efficiency.
Smart Images

Figure CN119691296A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent hydrological analysis, and in particular to a method and system for automatically generating a hydrological analysis service chain based on a large model. Background Art
[0002] Hydrological analysis models are widely used in water resources management, soil erosion and water and soil conservation, environmental protection, flood management and other fields, providing decision makers with reliable data support and scientific basis, thus promoting sustainable development in various fields. However, most models in the field of hydrological analysis are deployed locally, which is difficult to share, hindering the promotion and application of hydrological analysis models.
[0003] With the development of Web service technology, geographic information services have emerged. Geographic information services are based on Web service architecture and standards, using computer technology to provide query, analysis, visualization and other functions of geographic space-related data in a network environment, and have good sharing, interoperability, reusability and scalability. Therefore, based on geographic information service technology, data and models are published as data services and processing services respectively, which can effectively improve the sharing capabilities of data and models, and then support hydrological analysis tasks.
[0004] However, there is little attention paid to automated hydrological analysis in existing research, which leads to the problem of high manual involvement. In addition, some application scenarios require the collaborative work of multiple hydrological analysis models, and currently these tasks mainly rely on manual combination of models and input data, which increases the workload of users. With the development of artificial intelligence technology, how to directly obtain hydrological analysis results according to user needs has become an urgent need in the current field of intelligent hydrological analysis.
[0005] At present, the existing service chain automatic generation methods are mainly based on ontology, artificial intelligence planning and other methods, which rely on formalized user demand expression and require users to fill in their requirements according to corresponding templates, increasing the user's work cost. Summary of the invention
[0006] In view of the problem that existing research has paid little attention to automated hydrological analysis, resulting in a high degree of manual participation, the present invention proposes an automatic generation method for a hydrological analysis service chain based on a large model, which directly obtains hydrological analysis results based on the needs described in natural language by the user. Specifically, the expression model of the hydrological geographic information service is first defined, including hydrological geographic information data service, hydrological geographic information processing service and hydrological geographic information composite service. Then, based on the large model and prompt template, the needs described in natural language by the user are parsed, the most matching service is obtained by calculating the similarity, and it is executed in the service chain execution engine to obtain the hydrological analysis results, thereby improving the automation level of hydrological analysis.
[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:
[0008] The first aspect provides a method for automatically generating a hydrological analysis service chain based on a large model, comprising:
[0009] S1: Publish the hydrological analysis model as a hydrological geographic information processing service, publish the hydrological analysis data as a hydrological geographic information data service, and publish the combined model of the hydrological analysis model that completes a specific task as a hydrological geographic information composite service;
[0010] S2: Based on the attribute information of the hydrological geographic information processing service and the hydrological geographic information composite service, the Embedding representation is generated through the large model and stored in the vector database, wherein the Embedding representation of the hydrological geographic information processing service and the hydrological geographic information composite service includes the semantic relevance and similarity between the services;
[0011] S3: Design a standardized requirement template for hydrological analysis, including administrative regions, requirements, and years;
[0012] S4: Use the standardized requirement template for hydrological analysis to prompt and guide the large model, and transform the requirements described by users in natural language into structured requirements;
[0013] S5: Input the converted structured requirements into the big model to generate the Embedding of the user requirements, and select the target hydrological and geographic information processing service or hydrological and geographic information composite service according to the similarity between the Embedding of the user requirements and the service Embedding stored in the vector database;
[0014] S6: According to the input parameter information of the target hydrological and geographic information processing service or hydrological and geographic information composite service and the analyzed user requirements, a hydrological and geographic information data service that meets the conditions is selected from the service registration center, wherein the service registration center stores a large number of hydrological and geographic information data services in advance;
[0015] S7: Combine the target hydrological geographic information processing service or hydrological geographic information composite service and the hydrological geographic information data service into a hydrological analysis service chain;
[0016] S8: Input the hydrological analysis service chain into the service chain execution engine to obtain the hydrological analysis results.
[0017] In one embodiment, the hydrological geographic information processing service includes a hydrological raster data service and a hydrological vector data service.
[0018] In one embodiment, the attributes of the hydrological raster data service include a unique identifier of the hydrological raster data service, a name of the hydrological raster data service, descriptive information of the hydrological raster data service, a data source type of the hydrological raster data service, and a format supported by the hydrological raster data service; the attributes of the hydrological vector data service include a unique identifier of the hydrological vector data service, a name of the hydrological vector data service, descriptive information of the hydrological vector data service, and a format supported by the hydrological vector data service.
[0019] In one embodiment, the attribute information of the hydrological and geographic information processing service includes a unique identifier of the hydrological and geographic information processing service, a name of the hydrological and geographic information processing service, description information of the hydrological and geographic information processing service, an input parameter set of the hydrological and geographic information processing service, an output parameter set of the hydrological and geographic information processing service, and the attribute information of the hydrological and geographic information composite service includes a unique identifier representing the hydrological and geographic information composite service, a name of the hydrological and geographic information composite service, description information of the hydrological and geographic information composite service, an input parameter set of the hydrological and geographic information composite service, an output parameter set of the hydrological and geographic information composite service, and a collection of hydrological and geographic information processing services contained in the hydrological and geographic information composite service.
[0020] In one implementation, based on the similarity between the Embedding required by the user and the service Embedding stored in the vector database, a target hydrological geographic information processing service or hydrological geographic information composite service is selected, including:
[0021] Calculate the cosine similarity between the Embedding of the user's requirements and the service Embedding stored in the vector database;
[0022] The hydrological geographic information processing service or hydrological geographic information composite service with the highest similarity is selected as the target hydrological geographic information processing service or hydrological geographic information composite service.
[0023] In one implementation, the input parameter information of the target hydrological and geographic information processing service or hydrological and geographic information composite service includes the name, data type and parameter description of the input parameter.
[0024] Based on the same inventive concept, the second aspect of the present invention provides a large model-based hydrological analysis service chain automatic generation system, including:
[0025] The service publishing module is used to publish the hydrological analysis model as a hydrological geographic information processing service, publish the hydrological analysis data as a hydrological geographic information data service, and publish the combined model of the hydrological analysis model that completes a specific task as a hydrological geographic information composite service;
[0026] The processing service and composite service Embedding generation module is used to generate the Embedding representation of the hydrological geographic information processing service and the hydrological geographic information composite service through the large model based on the attribute information, and store it in the vector database, wherein the Embedding representation of the hydrological geographic information processing service and the hydrological geographic information composite service includes the semantic correlation and similarity between the hydrological geographic information services;
[0027] Standardized requirement template design module, used to design standardized requirement templates for hydrological analysis, including administrative regions, requirements and years;
[0028] The user demand structured conversion module is used to use the hydrological analysis standardized demand template to prompt and guide the large model, and convert the user's demand described in natural language into structured demand;
[0029] The processing service matching module is used to input the converted structured requirements into the large model, generate the Embedding of the user requirements, and select the target hydrological geographic information processing service or hydrological geographic information composite service according to the similarity between the Embedding of the user requirements and the Embedding of the hydrological geographic information service stored in the vector database;
[0030] The data service matching module is used to select a hydrological and geographic information data service that meets the conditions from the service registration center according to the input parameter information of the target hydrological and geographic information processing service or hydrological and geographic information composite service and the parsed user needs, wherein the service registration center pre-stores a large number of hydrological and geographic information data services;
[0031] The hydrological analysis service chain combination module is used to combine the target hydrological geographic information processing service or hydrological geographic information composite service and the hydrological geographic information data service into a hydrological analysis service chain;
[0032] The hydrological analysis result acquisition module is used to input the hydrological analysis service chain into the service chain execution engine to obtain the hydrological analysis results.
[0033] Based on the same inventive concept, the third aspect of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for automatically generating a hydrological analysis service chain based on a large model described in the first aspect is implemented.
[0034] Based on the same inventive concept, the fourth aspect of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for automatically generating a hydrological analysis service chain based on a large model as described in the first aspect is implemented.
[0035] Compared with the prior art, the advantages and beneficial technical effects of the present invention are as follows:
[0036] In view of the fact that there are few studies on automated hydrological analysis and the high level of manual participation, a method for automatically generating a hydrological analysis service chain supported by a large model is proposed to obtain hydrological analysis results directly from the requirements described in natural language. First, considering the diversity and non-standardization of user requirements, a method for understanding requirements based on a large model is proposed. Under the prompt of the designed requirement template, user requirements are automatically parsed into standard requirement solutions. Then, in view of the service matching problem under zero samples, the service and user requirements are embedded as vectors through the large model, and the most matching hydrological geographic information processing service or hydrological geographic information composite service is obtained by calculating the similarity, and the hydrological geographic information data service is selected under its constraints, so as to obtain a complete hydrological analysis service chain. Finally, the hydrological analysis service chain is input into the service chain execution engine to obtain the hydrological analysis results, which effectively reduces manual participation and improves the efficiency of hydrological analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 It is a flow chart of a method for automatically generating a hydrological analysis service chain based on a large model according to an embodiment of the present invention;
[0039] Figure 2 This is a framework diagram of a system for automatically generating a hydrological analysis service chain based on a large model according to an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The present invention proposes a method for automatically generating a hydrological analysis service chain based on a large model, so as to directly obtain hydrological analysis results from the needs described in natural language. First, a hydrological geographic information service expression model is proposed, and the hydrological analysis model and data are published as hydrological geographic information services. Then, the needs described in natural language by the user are parsed based on the large model and the prompt template, and the most matching hydrological geographic information service is obtained by calculating the similarity. Finally, the service chain is run through the service chain execution engine to obtain the hydrological analysis results. The present invention automatically parses user needs and builds a service chain based on a large model, and obtains the hydrological analysis results through the service chain execution engine, thereby effectively solving the problem of automatic generation of the hydrological analysis service chain and significantly improving the automation level of hydrological analysis.
[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] Embodiment 1
[0043] The present invention discloses a method for automatically generating a hydrological analysis service chain based on a large model, comprising:
[0044] S1: Publish the hydrological analysis model as a hydrological geographic information processing service, publish the hydrological analysis data as a hydrological geographic information data service, and publish the combined model of the hydrological analysis model that completes a specific task as a hydrological geographic information composite service;
[0045] S2: Based on the attribute information of the hydrological geographic information processing service and the hydrological geographic information composite service, the Embedding representation is generated through the large model and stored in the vector database, wherein the Embedding representation of the hydrological geographic information processing service and the hydrological geographic information composite service includes the semantic relevance and similarity between the services;
[0046] S3: Design a standardized requirement template for hydrological analysis, including administrative regions, requirements, and years;
[0047] S4: Use the standardized requirement template for hydrological analysis to prompt and guide the large model, and transform the requirements described by users in natural language into structured requirements;
[0048] S5: Input the converted structured requirements into the big model to generate the Embedding of the user requirements, and select the target hydrological geographic information processing service or hydrological geographic information composite service according to the similarity between the Embedding of the user requirements and the Embedding of the hydrological geographic information service stored in the vector database;
[0049] S6: According to the input parameter information of the target hydrological and geographic information processing service or hydrological and geographic information composite service and the analyzed user requirements, a hydrological and geographic information data service that meets the conditions is selected from the service registration center, wherein the service registration center stores a large number of hydrological and geographic information data services in advance;
[0050] S7: Combine the target hydrological geographic information processing service or hydrological geographic information composite service and the hydrological geographic information data service into a hydrological analysis service chain;
[0051] S8: Input the hydrological analysis service chain into the service chain execution engine to obtain the hydrological analysis results.
[0052] Specifically, step S1 can publish the hydrological analysis model, hydrological analysis data, and the combination model of the hydrological analysis model as a hydrological geographic information service through a service publishing strategy, thereby improving the sharing and interoperability of models and data. Considering that hydrological analysis involves multiple models such as hydrological analysis models, image cropping, and projection, they are published as hydrological geographic information processing services through a service publishing strategy, thereby improving model sharing and interoperability. Considering that hydrological analysis involves multiple data such as remote sensing images, DEM, and administrative districts, they are published as hydrological geographic information data services through a service publishing strategy to improve data sharing capabilities. Considering that hydrological analysis tasks usually require multiple models to complete together, they are published as hydrological geographic information composite services through a service publishing strategy, thereby enhancing the function of the service registration center.
[0053] Step S2 generates the Embedding representation of the hydrological and geographic information processing service and the hydrological and geographic information composite service through a large model based on the attribute information, and stores these Embeddings in a vector database.
[0054] In step S3, considering the diversity and non-standardization of user needs analyzed by the large model, a standardized demand template is designed for the field of hydrological analysis, which contains key information such as administrative regions, needs, and years.
[0055] Step S4 uses the demand template designed in step S3 to prompt and guide the large model based on the needs described by the user in natural language, thereby converting the needs described in natural language into a structured demand form.
[0056] Step S5 generates the Embedding of the user demand parsed in step S3 through the large model, calculates the similarity between it and the hydrological geographic information service Embedding stored in the vector database, and selects the hydrological geographic information processing service or hydrological geographic information composite service with the highest similarity.
[0057] Step S6 selects a hydrological data service that meets the constraint conditions from the service registration center based on the input parameter information of the hydrological geographic information processing service or the hydrological geographic information composite service and the analyzed user needs.
[0058] Step S7 combines the hydrological geographic information processing service or hydrological geographic information composite service obtained in step S5 and the hydrological geographic information data service matched in step S6 into a hydrological analysis service chain.
[0059] Step S8 inputs the hydrological analysis service chain obtained in step S7 into the service chain execution engine to obtain the hydrological analysis result.
[0060] In the specific implementation process, a method for automatically generating a hydrological analysis service chain based on a large model is shown in the flowchart of the embodiment. Figure 1 As shown, it mainly includes the following steps:
[0061] Step 1: Define the hydrological geographic information processing service expression model, and publish the hydrological analysis related models as hydrological geographic information processing services based on the service publishing strategy. The definition of the hydrological geographic information processing service expression model is as follows:
[0062]
[0063] In formula (1), ID PS Unique identifier for the hydrographic information processing service; URL PS Indicates the link address of the hydrological geographic information processing service; Name PS Indicates the name of the hydrological geographic information processing service; Title FS Indicates the title of the hydrological geographic information processing service; Descp PS Indicates the description information of the hydrological geographic information processing service; Input PS Represents the input parameter set of the hydrological geographic information processing service, including parameter name, parameter type and parameter description; Output PS Represents the output parameter set of the hydrological geographic information processing service. PS Indicates the type of hydrological geographic information processing service (such as WPS, RESTful and SOAP services), Ver PS Indicates the version of the hydrological geographic information processing service, Prov PS GCon represents the provider of hydrological geographic information processing services. PS Represents the constraint set of hydrological geographic information processing services, QoS PS Represents the service quality information of the hydrological geographic information processing service.
[0064] Step 2: Define the hydrological geographic information data service expression model, and publish the hydrological analysis related models as hydrological geographic information data services based on the service publishing strategy. Hydrological geographic information data services are divided into hydrological raster data services and hydrological vector data services. The definition of the hydrological raster data service expression model is as follows:
[0065]
[0066] In formula (2), ID RDS Unique identifier for the hydrological raster data service; URL RDS Indicates the link address of the hydrological raster data service; Name RDSIndicates the name of the hydrological raster data service; Title RDS Indicates the title of the hydrological raster data service; Descp RDS Represents the description information of the hydrological raster data service; TFeat RDS Represents temporal features, including time reference, time, year, season, and date; SFeat RDS Represents spatial characteristics, including spatial reference, spatial range, and spatial resolution; Type RDS Indicates the type of hydrological raster data service, including WCS, WMS and other services; SType RDS Indicates the data source type of the hydrological raster data service, including drone images and satellite remote sensing images; Ver RDS Indicates the version of the hydrological raster data service; Prov RDS Represents the provider of hydrological raster data service; Format RDS Indicates the formats supported by hydrological raster data services; QoS RDS Represents the quality of service information of the hydrological raster data service.
[0067] The definition of the hydrological vector data service expression model is as follows:
[0068]
[0069] In formula (3), ID VDS Unique identifier for the hydrographic vector data service; URL VDS Indicates the link address of the hydrological vector data service; Name VDS Indicates the name of the hydrological vector data service; Title VDS Indicates the title of the hydrological vector data service; Descp VDS Represents the description information of the hydrological vector data service; TFeat VDS Represents temporal features, including time reference, time, year, season, and date; SFeat VDS Represents spatial characteristics, including spatial reference, spatial range, and spatial resolution; Type VDS Indicates the type of hydrological data service, including WFS, WMS and other services; Ver VDS Indicates the version of the hydrological vector data service; Prov VDS Indicates the provider of hydrological vector data service; Format VDS Indicates the formats supported by the hydrological vector data service; QoS VDS Represents the quality of service information of the hydrological vector data service.
[0070] Step 3: Considering that hydrological analysis tasks usually require multiple models to complete, define the hydrological geographic information composite service expression model and publish it as a hydrological geographic information composite service through the service publishing strategy. The definition of the hydrological geographic information composite service expression model is as follows:
[0071]
[0072] In formula (4), ID CS The unique identifier of the hydrological geographic information composite service; Name CS Indicates the name of the hydrological geographic information composite service; Title CS Indicates the title of the hydrological geographic information composite service; Descp CS Represents the description information of the hydrological geographic information composite service; Input CS Represents the input parameter set of the hydrological geographic information composite service, including parameter name, parameter type and parameter description; Output CS Represents the output parameter set of the hydrological geographic information composite service; QoS CS Represents the service quality information of the hydrological geographic information composite service, HAPSs CS Represents the collection of hydrological and geographic information processing services contained in the hydrological and geographic information composite service, ParamRels CS A collection representing the relationships between parameters of a composite hydrological geographic information service.
[0073] Step 4: Generate the Embedding representation of the hydrological and geographic information processing service and the hydrological and geographic information composite service through the large model based on its attribute information. The Embedding contains the semantic relevance and similarity between the hydrological and geographic information services, providing a basis for subsequent service matching.
[0074] Step 5: Design a standardized requirement template for hydrological analysis, {"administrative area": "$", "requirement": "$", "year": "$"}. This template contains key information such as administrative area, requirement, and year for subsequent requirement understanding.
[0075] Step six, in response to the user's description of their hydrological analysis needs in natural language, the demand template designed in step five is used to prompt and guide the large model, thereby converting the needs described in natural language into a structured demand template form.
[0076] Step 7: Generate the structured embedding of user requirements parsed in step 6 through the big model, calculate the cosine similarity between it and the service embedding stored in the vector database, and select the hydrological geographic information processing service or hydrological geographic information composite service with the highest similarity. The definition of cosine similarity is as follows:
[0077]
[0078] In formula (5), A and B represent two vectors respectively, and ||A|| / , ||B|| represent the lengths of vectors A and B respectively.
[0079] Step 8: Select a hydrological geographic information data service that meets the constraint condition from the service registration center based on the input parameter information of the hydrological geographic information processing service or hydrological geographic information composite service obtained in step 7 and the user requirements analyzed in step 6. The service constraint mainly includes the data type of the input parameter.
[0080] Step nine, combining the hydrological geographic information processing service or hydrological geographic information composite service obtained in step seven and the hydrological geographic information data service obtained in step eight into a hydrological analysis service chain.
[0081] Step nine, binding the hydrological geographic information data service obtained in step eight to the input parameters corresponding to the hydrological geographic information processing service or hydrological geographic information composite service obtained in step seven, thereby forming a hydrological analysis service chain.
[0082] Step 10: Input the hydrological analysis service chain obtained in step 9 into the service chain execution engine, and call the corresponding service through the service chain execution engine to obtain the hydrological analysis result.
[0083] Embodiment 2
[0084] Based on the same inventive concept, this embodiment discloses a large model-based hydrological analysis service chain automatic generation system, see Figure 2 ,include:
[0085] The service publishing module 201 is used to publish the hydrological analysis model as a hydrological geographic information processing service, publish the hydrological analysis data as a hydrological geographic information data service, and publish the combined model of the hydrological analysis model that completes a specific task as a hydrological geographic information composite service;
[0086] The processing service and composite service Embedding generation module 202 is used to generate the Embedding representation of the hydrological geographic information processing service and the hydrological geographic information composite service through the large model based on the attribute information, and store it in the vector database, wherein the Embedding representation of the hydrological geographic information processing service and the hydrological geographic information composite service includes the semantic relevance and similarity between the services;
[0087] A standardized requirement template design module 203 is used to design a standardized requirement template for hydrological analysis, including administrative areas, requirements and years;
[0088] The user demand structured conversion module 204 is used to use the hydrological analysis standardized demand template to prompt and guide the large model, and convert the user's demand described in natural language into structured demand;
[0089] The processing service matching module 205 is used to input the converted structured requirements into the large model, generate the Embedding of the user requirements, and select the target hydrological and geographic information processing service or hydrological and geographic information composite service according to the similarity between the Embedding of the user requirements and the service Embedding stored in the vector database;
[0090] The data service matching module 206 is used to select a hydrological and geographic information data service that meets the conditions from the service registration center according to the input parameter information of the target hydrological and geographic information processing service or hydrological and geographic information composite service and the analyzed user needs, wherein the service registration center pre-stores a large number of hydrological and geographic information data services;
[0091] The hydrological analysis service chain combination module 207 is used to combine the target hydrological geographic information processing service or hydrological geographic information composite service and the hydrological geographic information data service into a hydrological analysis service chain;
[0092] The hydrological analysis result obtaining module 208 is used to input the hydrological analysis service chain into the service chain execution engine to obtain the hydrological analysis result.
[0093] Since the system introduced in the second embodiment of the present invention is the system used to implement the method for automatically generating a hydrological analysis service chain based on a large model in the first embodiment of the present invention, based on the method introduced in the first embodiment of the present invention, those skilled in the art can understand the specific structure and deformation of the system, so it is not described here. All systems used in the method in the first embodiment of the present invention belong to the scope of protection of the present invention.
[0094] Embodiment 3
[0095] Based on the same inventive concept, the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the first embodiment is implemented.
[0096] Since the computer-readable storage medium introduced in the third embodiment of the present invention is the computer-readable storage medium used to implement the method for automatically generating a hydrological analysis service chain based on a large model in the first embodiment of the present invention, based on the method introduced in the first embodiment of the present invention, those skilled in the art can understand the specific structure and deformation of the computer-readable storage medium, so it is not repeated here. All computer-readable storage media used in the method of the first embodiment of the present invention belong to the scope of protection of the present invention.
[0097] Embodiment 4
[0098] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in Embodiment 1 when executing the program.
[0099] Since the computer device introduced in the fourth embodiment of the present invention is the computer device used to implement the method for automatically generating a hydrological analysis service chain based on a large model in the first embodiment of the present invention, based on the method introduced in the first embodiment of the present invention, the person skilled in the art can understand the specific structure and deformation of the computer device, so it is not repeated here. All computer devices used in the method of the first embodiment of the present invention belong to the scope of protection of the present invention.
[0100] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0101] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0102] Although preferred embodiments of the present invention have been described, additional changes and modifications may be made to these embodiments by those skilled in the art once the basic creative concepts are known. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. Obviously, those skilled in the art may make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, if these modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for automatically generating a hydrological analysis service chain based on a large model, characterized in that: include: S1: Publish the hydrological analysis model as a hydrological geographic information processing service, publish the hydrological analysis data as a hydrological geographic information data service, and publish the combined model of the hydrological analysis model that completes a specific task as a hydrological geographic information composite service; S2: Based on the attribute information of the hydrological geographic information processing service and the hydrological geographic information composite service, the Embedding representation is generated through the large model and stored in the vector database, wherein the Embedding representation of the hydrological geographic information processing service and the hydrological geographic information composite service includes the semantic relevance and similarity between the services; S3: Design a standardized requirement template for hydrological analysis, including administrative regions, requirements, and years; S4: Use the standardized requirement template for hydrological analysis to prompt and guide the large model, and transform the requirements described by users in natural language into structured requirements; S5: Input the converted structured requirements into the big model to generate the Embedding of the user requirements, and select the target hydrological geographic information processing service or hydrological geographic information composite service according to the similarity between the Embedding of the user requirements and the Embedding of the hydrological geographic information service stored in the vector database; S6: According to the input parameter information of the target hydrological and geographic information processing service or hydrological and geographic information composite service and the analyzed user requirements, a hydrological and geographic information data service that meets the conditions is selected from the service registration center, wherein the service registration center stores a large number of hydrological and geographic information data services in advance; S7: Combine the target hydrological geographic information processing service or hydrological geographic information composite service and the hydrological geographic information data service into a hydrological analysis service chain; S8: Input the hydrological analysis service chain into the service chain execution engine to obtain the hydrological analysis results.
2. The method for automatically generating a hydrological analysis service chain based on a large model according to claim 1, characterized in that: Hydrological geographic information data services include hydrological raster data services and hydrological vector data services.
3. The method for automatically generating a hydrological analysis service chain based on a large model according to claim 2, characterized in that: The properties of the hydrological raster data service include the unique identifier of the hydrological raster data service, the name of the hydrological raster data service, the description information of the hydrological raster data service, the data source type of the hydrological raster data service, and the formats supported by the hydrological raster data service. The properties of the hydrological vector data service include the unique identifier of the hydrological vector data service, the name of the hydrological vector data service, the description information of the hydrological vector data service, and the formats supported by the hydrological vector data service.
4. The method for automatically generating a hydrological analysis service chain based on a large model according to claim 1, characterized in that: The attribute information of the hydrological and geographic information processing service includes the unique identifier of the hydrological and geographic information processing service, the name of the hydrological and geographic information processing service, the description information of the hydrological and geographic information processing service, the input parameter set of the hydrological and geographic information processing service, the output parameter set of the hydrological and geographic information processing service and the type of the hydrological and geographic information processing service; the attribute information of the hydrological and geographic information composite service includes the unique identifier representing the hydrological and geographic information composite service, the name of the hydrological and geographic information composite service, the description information of the composite service, the input parameter set of the hydrological and geographic information composite service, the output parameter set of the hydrological and geographic information composite service and the collection of hydrological and geographic information processing services contained in the hydrological and geographic information composite service.
5. The method for automatically generating a hydrological analysis service chain based on a large model according to claim 1, characterized in that: According to the similarity between the Embedding required by the user and the service Embedding stored in the vector database, the target hydrological geographic information processing service or hydrological geographic information composite service is selected, including: Calculate the cosine similarity between the Embedding of the user's requirements and the service Embedding stored in the vector database; The hydrological geographic information processing service or hydrological geographic information composite service with the highest similarity is selected as the target hydrological geographic information processing service or hydrological geographic information composite service.
6. The method for automatically generating a hydrological analysis service chain based on a large model according to claim 1, characterized in that: The input parameter information of the target hydrological and geographic information processing service or hydrological and geographic information composite service includes the name, data type and parameter description of the input parameter.
7. A hydrological analysis service chain automatic generation system based on a large model, characterized in that: include: The service publishing module is used to publish the hydrological analysis model as a hydrological geographic information processing service, publish the hydrological analysis data as a hydrological geographic information data service, and publish the combined model of the hydrological analysis model that completes a specific task as a hydrological geographic information composite service; The processing service and composite service Embedding generation module is used to generate the Embedding representation of the hydrological geographic information processing service and the hydrological geographic information composite service through the large model based on the attribute information, and store it in the vector database. The Embedding representation of the hydrological geographic information processing service and the hydrological geographic information composite service includes the semantic correlation and similarity between the services; Standardized requirement template design module, used to design standardized requirement templates for hydrological analysis, including administrative regions, requirements and years; The user demand structured conversion module is used to use the hydrological analysis standardized demand template to prompt and guide the large model, and convert the user's demand described in natural language into structured demand; The processing service and composite service matching module is used to input the converted structured requirements into the large model, generate the Embedding of the user requirements, and select the target hydrological and geographic information processing service or hydrological and geographic information composite service according to the similarity between the Embedding of the user requirements and the service Embedding stored in the vector database; The data service matching module is used to select a hydrological and geographic information data service that meets the conditions from the service registration center according to the input parameter information of the target hydrological and geographic information processing service or hydrological and geographic information composite service and the parsed user needs, wherein the service registration center pre-stores a large number of hydrological and geographic information data services; The hydrological analysis service chain combination module is used to combine the target hydrological geographic information processing service or hydrological geographic information composite service and the hydrological geographic information data service into a hydrological analysis service chain; The hydrological analysis result acquisition module is used to input the hydrological analysis service chain into the service chain execution engine to obtain the hydrological analysis results.
8. The large model-based hydrological analysis service chain automatic generation system according to claim 7, characterized in that: The processing service and composite service matching modules are specifically used for: Calculate the cosine similarity between the Embedding of the user's requirements and the service Embedding stored in the vector database; The hydrological geographic information processing service or hydrological geographic information composite service with the highest similarity is selected as the target hydrological geographic information processing service or hydrological geographic information composite service.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for automatically generating a hydrological analysis service chain based on a large model as described in any one of claims 1 to 7 is implemented.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for automatically generating a hydrological analysis service chain based on a large model as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Hydrological model network publishing method based on GIS technology
CN109977510A
Cloud service method and platform for acquiring hydrological data and realizing model deployment, and application
CN116911210A
Water conservancy knowledge base system based on large language model
CN117909455A
Water affair industry knowledge question-answering system implementation method and system based on large language model
CN118193711A
Flood disaster prediction method and device, equipment and storage medium
CN118886331A
Cited By
Method and system for driving collaborative computing of water conservancy professional model through large language model
CN121724160A