A method and system for monitoring and querying water condition data
By establishing a watershed model in the station-level operation and maintenance management platform of the hydropower station and using a large language model to analyze water regime data, the problem of low efficiency of water regime data monitoring and query in the existing technology is solved, and efficient water regime data analysis and prediction are achieved. , to assist flood control decision-making.
Patent Information
- Application Number
- CN202410968271.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing hydropower station water regime data monitoring and query mainly relies on manual statistics and lacks efficient query and analysis methods, making it difficult to effectively assist the analysis of water regime data and flood control decisions.
In the station-level operation and maintenance management platform, establish a watershed model, enter the water regime data management interface by clicking on an item, extract keyword information combinations to form a query template in a preset format, use a large language model to output query results, and present the current situation based on the watershed model. Water regime data and correlation results are analyzed for playback.
It improves the efficiency of water regime data analysis, helps users more effectively understand and predict water regime changes, assists flood control decisions, and reduces safety risks.
Smart Images

Figure CN118502622B
Abstract
Description
Technical Field
[0001] The present application relates to the fields of data processing and artificial intelligence technology, and in particular to a method and system for monitoring and querying water situation data. Background Art
[0002] In the field of water conservancy, changes in water conditions may threaten the safety of life and property of people living around the water area. Water conservancy departments need to rely on water conditions data to conduct consultations and analyses, peak-shifting scheduling, and flood prevention decisions to reduce safety risks.
[0003] As an important power production enterprise, large hydropower stations have the characteristics of large installed capacity, which not only affects the regional power supply, but also puts higher requirements on the operation and maintenance of the power station. Intrusion into the waters of the hydropower station may cause the hydropower station to malfunction and seriously affect the normal life of residents in the corresponding area.
[0004] The existing monitoring and query of water regime data of hydropower stations mainly relies on manual statistics and maintenance, but there is a lack of a method that can efficiently query and analyze water regime data. Summary of the invention
[0005] The embodiment of the present application provides a water condition data monitoring, query and processing method and system, which is based on the station-level operation and maintenance management platform, establishes a watershed model in the water condition data management interface, and presents the relevant results of the queried water condition data based on the watershed model, thereby effectively assisting the efficiency of water condition data analysis in the water area.
[0006] The present application embodiment provides a water regime data monitoring query processing method, including:
[0007] In the station-level operation and maintenance interface, at any water condition data display position, a click item is provided, so that the water condition data management interface can be entered through the click item, wherein the main interface position of the water condition data management interface has a corresponding station-level watershed model established;
[0008] Based on the watershed model of the water regime data management interface, present the current water regime data, and obtain the user's query data;
[0009] Extracting keyword information from the query data, and combining to form a query template in a preset format based on the extracted keyword information;
[0010] Inputting the query template into a large language model to output corresponding query results using the large language model, wherein the query results include direct results and associated results corresponding to the keyword information, and the associated results include influencing factors of the direct results;
[0011] Presenting the query results based on the watershed model; and,
[0012] The watershed model is played back based on the presented current water situation data, the direct results and the associated results.
[0013] Optionally, in the station-level operation and maintenance interface, at any water condition data display location, click items are provided, including click items in the unit maintenance interface and gate operation and maintenance interface of the station-level operation and maintenance interface, and all point to the water condition data management interface.
[0014] Optionally, it also includes pre-establishing a corresponding station-level watershed model in the following manner:
[0015] Obtain topographic data of the watershed coverage of the station-level basin, as well as historical water regime data of the station-level basin;
[0016] Based on the highest water level in the historical water situation data, the modeling elevation is determined, and in the range below the modeling elevation, based on the acquired terrain data, a terrain model of the station-level watershed is established using GIS, and in the range above the modeling elevation, a brief model is established. The terrain model and the brief model constitute the watershed model.
[0017] Optionally, based on the watershed model of the water regime data management interface, presenting current water regime data includes:
[0018] Based on the water level data in the water situation data, filling water area representative pixels at corresponding positions of the terrain model; and
[0019] The filled watershed model is divided into a plurality of presentation components according to the interface relationship, so that the corresponding influencing factors can be presented by using any presentation component, wherein the plurality of presentation components divided are configured with color intervals according to the component characteristics.
[0020] Optionally, extracting keyword information from the query data and combining to form a query template in a preset format based on the extracted keyword information includes:
[0021] Performing semantic splitting on the query data to obtain multiple query terms;
[0022] Calculating the similarity between the obtained multiple query words and the preset query reference fields, wherein before calculating the similarity, determining whether any query word contains a numerical variable, and if any query word contains a numerical variable, replacing the numerical variable with a corresponding identifier;
[0023] Based on the format of the query template, according to the calculated similarity, the query words with a calculated similarity greater than a preset threshold are used as keywords to fill in the query template, the numerical variables are restored, and the words with a calculated similarity lower than the preset threshold are filled in using the set fields to combine and form a query template.
[0024] Optionally, before using the large language model to output the corresponding query result, the method further includes training the large language model in the following manner:
[0025] Semantically split the historical water regime data of the station-level basin to obtain water regime vocabulary;
[0026] According to the water condition words obtained by splitting, search for water condition synonyms within the semantic range;
[0027] Based on the water regime synonyms obtained through the query, the historical water regime data is expanded, wherein numerical variables in the expanded historical water regime data are replaced with corresponding identifiers;
[0028] Based on the expanded historical water situation data, the numerical variables are restored and input into the large language model so as to utilize the large language model to learn the correlation between the historical water level data and the influencing factors. The large language model is an LLM model with time series. During the training process, the sequence is intercepted according to the time sequence of the historical water situation data and input into the large language model to perform training.
[0029] Optionally, presenting the query result based on the watershed model includes:
[0030] In the case where the direct result is water level data, filling water area representative pixels based on the range below the corresponding water level of the watershed model; and,
[0031] The influencing factors in the association result are presented based on the watershed model, wherein for different influencing factors, corresponding pixel values are selected from the color interval for presentation according to pre-configured color intervals and attributes of the influencing factors in the association result.
[0032] Optionally, playing back in the watershed model according to the presented current water regime data, the direct result and the associated result includes:
[0033] In the case where other historical water condition data are included between the current data and the query result, searching for other historical water condition data based on the direct result and the associated result; and,
[0034] Key frames are formed according to the relevant results found, and trend fitting is performed on the related results of the same type, so as to fill the screen between the key frames based on the relevant presentation components, and complete the playback of the query results based on the watershed model.
[0035] Optionally, playing back in the watershed model according to the presented current water regime data, the direct result and the associated result further comprises:
[0036] When there is no other historical water situation data between the current data and the query result, trend fitting is performed directly based on the direct result and the associated result with the presented current water situation data to form a playback screen, thereby completing the playback of the query result based on the watershed model.
[0037] The embodiment of the present application also proposes a water condition data monitoring, query and processing system, including a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the water condition data monitoring, query and processing method as described above are implemented.
[0038] The method of the present application is based on the station-level operation and maintenance management platform, and establishes a watershed model in the water regime data management interface, so as to present the relevant results of the queried water regime data based on the watershed model, effectively assisting the efficiency of water regime data analysis in the water area.
[0039] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0041] Figure 1 The following is a schematic diagram of the basic process of the water regime data monitoring and query processing method of this embodiment. DETAILED DESCRIPTION
[0042] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0043] The present application embodiment proposes a method for monitoring and querying water condition data, such as Figure 1 As shown, the following steps are included:
[0044] In step S101, in the station-level operation and maintenance interface, a click item is provided at any water condition data display position, so as to enter the water condition data management interface through the click item, wherein the main interface position of the water condition data management interface has a corresponding station-level watershed model established.
[0045] In some embodiments, in the station-level operation and maintenance interface, at any water condition data display position, providing click items includes providing click items in the unit maintenance interface and the gate operation and maintenance interface of the station-level operation and maintenance interface, and both point to the water condition data management interface. For example, the water level display position of the unit maintenance interface and the water area schematic position of the gate operation and maintenance interface can be provided with interactive click items, so that after clicking, a separate water condition data management interface can be entered.
[0046] In some embodiments, the watershed model of the corresponding station level is also established in advance in the following manner:
[0047] Obtain topographic data of the water area coverage of the station-level basin, as well as historical water conditions data of the station-level basin.
[0048] Based on the highest water level in the historical water regime data, the modeling elevation is determined, and in the range below the modeling elevation, based on the acquired terrain data, a terrain model of the station-level watershed is established using GIS, and in the range above the modeling elevation, a brief model is established, and the terrain model and the brief model constitute the watershed model. By establishing a combination of a terrain model and a brief model, on the one hand, the amount of modeling calculations can be reduced, and on the other hand, the modeling accuracy of the area below the modeling elevation can be improved, so that in subsequent examples, more attention can be paid to the overall impact of factors such as drainage at the entrance of a tributary, weather, and temperature on the water regime.
[0049] In step S102, based on the watershed model of the watershed data management interface, the current watershed data is presented, and the user's query data is obtained. In some embodiments, the watershed model can be rotated or dragged under the user's click, so as to display the watershed data presented at that time to the user from multiple angles.
[0050] In step S103, keyword information in the query data is extracted, and based on the extracted keyword information, a query template of a preset format is formed. In some embodiments, the user may input incomplete query data, such as only a date or time, or a text description based on voice input, so that keyword information is extracted based on these query data, and the keyword information is combined according to the query template, so that the combined template is used as input.
[0051] In step S104, the query template is input into the large language model to output the corresponding query result using the large language model, wherein the query result includes the direct result and the associated result corresponding to the keyword information, and the associated result includes the influencing factor of the direct result. For example, in a specific application, the main data of the query is the water level at a certain time (corresponding to the direct result), then according to the combined template, the large language model is input to use the large language model based on the historical water conditions data to determine the water level that meets the template. In the embodiment of the present application, the reasoning ability of the large language model is further utilized to further determine the factors that affect the water level. For example, if the query time is in the flood season, the influencing factors (corresponding to the associated results) can be air temperature, rainfall, tributary water, station-level turbine guide vane opening, flood gate opening, etc. Of course, each influencing factor has a large or small influence on the direct result. In subsequent examples, the presentation method of the relevant components can be configured according to the actual situation.
[0052] In step S105, the query result is presented based on the watershed model. According to the above example, after the query result is obtained, it is presented.
[0053] In step S106, playback is performed in the watershed model according to the presented current water conditions data, the direct results and the associated results. In the embodiment of the present application, it is further proposed that playback is performed in the watershed model according to the direct results and the associated results, so that the water conditions changes before and after the query time can be displayed to the user, thereby greatly facilitating the user to conduct a comprehensive analysis of the query data, so that the historical water conditions data are no longer unrelated values, but can be presented to the user in a comprehensive manner, greatly improving the auxiliary effect for the user.
[0054] The water condition data monitoring, query and processing method of the embodiment of the present application is based on the station-level operation and maintenance management platform, and establishes a watershed model in the water condition data management interface to facilitate users to call it up during operation and maintenance. The relevant results of the queried water condition data are presented through the watershed model, effectively assisting users in improving the efficiency of water condition analysis in the water area.
[0055] In some embodiments, based on the watershed model of the water regime data management interface, presenting the current water regime data includes:
[0056] Based on the water level data in the water situation data, water area representative pixels are filled in the corresponding positions of the terrain model. For example, the blue range can be used as the pixel interval of the water area. In some examples, the color range corresponding to turbid water areas can also be used for flood season.
[0057] The filled basin model is divided into multiple presentation components according to the interface relationship, so that the corresponding influencing factors can be presented by using any presentation component, wherein the divided multiple presentation components are configured with color intervals according to the component characteristics. For the filled basin model, for example, the bank (corresponding to the tributary mouth), the cross section of which is provided with a flood control gate, a unit, a sky area (corresponding to possible rainfall), etc., is presented, and the corresponding area is divided into multiple presentation components.
[0058] In some embodiments, extracting keyword information from the query data and combining to form a query template in a preset format based on the extracted keyword information includes:
[0059] Performing semantic splitting on the query data to obtain multiple query terms;
[0060] The similarity between the obtained multiple query words and the preset query reference fields is calculated, wherein before calculating the similarity, it is determined whether any query word contains a numerical variable, and if any query word contains a numerical variable, the numerical variable is replaced with a corresponding identifier. In some examples, the numerical variable mainly includes time and date, and when it can be directly identified as time, it can be used as a keyword.
[0061] Based on the format of the query template, according to the calculated similarity, the query words with a calculated similarity greater than a preset threshold are used as keywords to fill in the query template, the numerical variables are restored, and the words with a calculated similarity lower than the preset threshold are filled in using the set fields to combine and form a query template.
[0062] In some examples, calculating similarities to form fixed-format templates helps the large language model make judgments and evaluations based on the content of the templates, thereby improving the efficiency of the query. In some examples, restoring numerical variables can make the query target clearer.
[0063] In some examples, before using the large language model to output the corresponding query result, the method further includes training the large language model in the following manner:
[0064] The historical water regime data of the station-level basin are semantically split to obtain water regime vocabulary, such as rainfall.mm, generator power generation.MW, gate opening.m, temperature.℃, etc. The water regime vocabulary associated with the basin can be determined based on the actual situation.
[0065] Based on the water condition vocabulary obtained by splitting, the synonyms of water condition within the semantic scope are searched, such as air temperature, temperature, high temperature, etc., which are synonyms that may appear in historical data and are essentially describing the same content.
[0066] Based on the water regime synonyms obtained through the query, the historical water regime data is expanded, wherein numerical variables in the expanded historical water regime data are replaced with corresponding identifiers.
[0067] Based on the expanded historical water situation data, the numerical variables are restored and input into the large language model so as to utilize the large language model to learn the correlation between the historical water level data and the influencing factors. The large language model is an LLM model with time series. During the training process, the sequence is intercepted according to the time sequence of the historical water situation data and input into the large language model to perform training.
[0068] According to the above examples, by expanding the input of the large language model, the large language model can improve its understanding and recognition of the possible correlation between water situation data and influencing factors, thereby improving the judgment accuracy of the large language model. In some chicken leg examples, the large language model is an LLM model with time series, such as TIME-LLM. Through this model, after training with a sequence intercepted in time order, the correlation of influencing factors between adjacent data nodes can be determined, further improving the judgment accuracy of the correlation results of the query data.
[0069] In some embodiments, presenting the query result based on the watershed model includes:
[0070] In the case where the direct result is water level data, filling water area representative pixels based on the range below the corresponding water level of the watershed model; and,
[0071] The influencing factors in the association result are presented based on the watershed model, wherein for different influencing factors, corresponding pixel values are selected from the color interval according to the attributes of the influencing factors in the association result according to the pre-configured color interval. For example, in some examples, for the color value of the sky, a range of blue, white, and black and gray can be selected to correspond to different climates. When the influencing factors include rainfall, it can be presented in the corresponding area of the watershed model according to the configured black and gray range.
[0072] In some embodiments, based on the presented current water regime data, the direct result and the associated result, playing back in the watershed model includes:
[0073] In the case where other historical water condition data are included between the current data and the query result, searching for other historical water condition data based on the direct result and the associated result; and,
[0074] Key frames are formed according to the relevant results found, and trend fitting is performed on the related results of the same type, so as to fill the screen between the key frames based on the relevant presentation components, and complete the playback of the query results based on the watershed model.
[0075] In a specific example, for example, when the direct result is water level information, the associated results of each query are different. For example, in normal weather, the water level may be greatly affected by tributaries and power generation factors, while in rainy season and flood season, it is greatly affected by rainfall and gate opening. In an embodiment of the present application, based on the query results, other historical water conditions data are further combined to perform simulated playback, thereby further improving the user's grasp of the water conditions of the water area of concern, such as the time node, and greatly improving the auxiliary effect on the user. In some other examples, when the time distance between the query time and the current time exceeds a preset threshold, a certain time range can be set before and after the query time to perform playback.
[0076] In some embodiments, based on the presented current water regime data, the direct result and the associated result, playing back in the watershed model further comprises:
[0077] In the case where there is no other historical water condition data between the current data and the query result, trend fitting is performed directly based on the direct result and the associated result with the presented current water condition data to form a playback screen, and playback of the query result based on the watershed model is completed. For example, for a query whose time is very close to the current time, fitting is performed directly, and playback is performed in combination with the watershed model to assist users in analyzing water condition data.
[0078] The embodiment of the present application also proposes a water condition data monitoring, query and processing system, including a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the water condition data monitoring, query and processing method as described above are implemented.
[0079] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present disclosure with equivalent elements, modifications, omissions, combinations (e.g., various embodiments intersecting schemes), adaptations or changes. It is not limited to the examples described in this specification or during the implementation of this application, and its examples will be interpreted as non-exclusive.
[0080] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. For example, those of ordinary skill in the art may use other embodiments when reading the above description.
[0081] The above embodiments are merely exemplary embodiments of the present disclosure. Those skilled in the art may make various modifications or equivalent substitutions to the present invention within the essence and protection scope of the present disclosure, and such modifications or equivalent substitutions should also be deemed to fall within the protection scope of the present invention.
Claims
1. A method for monitoring and querying water regime data. It is characterized in that include: In the station-level operation and maintenance interface, at any water condition data display position, a click item is provided, so that the water condition data management interface can be entered through the click item, wherein the main interface position of the water condition data management interface has a corresponding station-level watershed model established; Based on the watershed model of the water regime data management interface, present the current water regime data, and obtain the user's query data; Extracting keyword information from the query data, and combining to form a query template in a preset format based on the extracted keyword information; Inputting the query template into a large language model to output corresponding query results using the large language model, wherein the query results include direct results and associated results corresponding to the keyword information, and the associated results include influencing factors of the direct results; presenting the query result based on the watershed model; as well as, Playing back in the watershed model according to the presented current water regime data, the direct results and the associated results; Extracting keyword information from the query data and combining to form a query template in a preset format based on the extracted keyword information includes: Performing semantic splitting on the query data to obtain multiple query terms; Calculating the similarity between the obtained multiple query words and the preset query reference fields, wherein before calculating the similarity, determining whether any query word contains a numerical variable, and if any query word contains a numerical variable, replacing the numerical variable with a corresponding identifier; Based on the format of the query template, according to the calculated similarity, the query words with calculated similarity greater than a preset threshold are used as keywords to fill in the query template, and the numerical variables are restored. In addition, the words with calculated similarity less than the preset threshold are filled in using the set fields to form a query template; Before using the large language model to output the corresponding query result, the method further includes training the large language model in the following manner: Semantically split the historical water regime data of the station-level basin to obtain water regime vocabulary; According to the water condition words obtained by splitting, search for water condition synonyms within the semantic range; Based on the water regime synonyms obtained through the query, the historical water regime data is expanded, wherein numerical variables in the expanded historical water regime data are replaced with corresponding identifiers; Based on the expanded historical water situation data, the numerical variables are restored and input into the large language model, so as to use the large language model to learn the correlation between the historical water level data and the influencing factors, wherein the large language model is an LLM model with time series, and in the training process, the sequence is intercepted according to the time sequence of the historical water situation data, and is input into the large language model to perform training; Playing back the watershed model according to the presented current water regime data, the direct result and the associated result includes: In the case where other historical water condition data are included between the current data and the query result, searching for other historical water condition data based on the direct result and the associated result; and, Key frames are formed according to the relevant results found, and trend fitting is performed on the related results of the same type, so as to fill the screen between the key frames based on the relevant presentation components, and complete the playback of the query results based on the watershed model.
2. The water regime data monitoring and query processing method according to claim 1, It is characterized in that In the station-level operation and maintenance interface, at any water condition data display location, click items are provided, including the unit maintenance interface and the gate operation and maintenance interface of the station-level operation and maintenance interface, and click items are provided, and all point to the water condition data management interface.
3. The water regime data monitoring and query processing method according to claim 1, It is characterized in that It also includes pre-establishing the corresponding station-level watershed model in the following manner: Obtain topographic data of the watershed coverage of the station-level basin, as well as historical water regime data of the station-level basin; Based on the highest water level in the historical water situation data, the modeling elevation is determined, and in the range below the modeling elevation, based on the acquired terrain data, a terrain model of the station-level watershed is established using GIS, and in the range above the modeling elevation, a brief model is established. The terrain model and the brief model constitute the watershed model.
4. The water regime data monitoring and query processing method according to claim 3, It is characterized in that Based on the watershed model of the water regime data management interface, the current water regime data presented includes: Based on the water level data in the water situation data, filling water area representative pixels at corresponding positions of the terrain model; and The filled watershed model is divided into a plurality of presentation components according to the interface relationship, so that the corresponding influencing factors can be presented by using any presentation component, wherein the plurality of presentation components divided are configured with color intervals according to the component characteristics.
5. The water regime data monitoring and query processing method according to claim 1, It is characterized in that Presenting the query result based on the watershed model includes: In the case where the direct result is water level data, filling water area representative pixels based on the range below the corresponding water level of the watershed model; and, The influencing factors in the association result are presented based on the watershed model, wherein for different influencing factors, corresponding pixel values are selected from the color interval for presentation according to pre-configured color intervals and attributes of the influencing factors in the association result.
6. The water regime data monitoring and query processing method according to claim 1, It is characterized in that According to the presented current water situation data, the direct result and the associated result, playing back in the watershed model further comprises: When there is no other historical water situation data between the current data and the query result, trend fitting is performed directly based on the direct result and the associated result with the presented current water situation data to form a playback screen, thereby completing the playback of the query result based on the watershed model.
7. A water regime data monitoring, query and processing system. It is characterized in that The method comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the water regime data monitoring and query processing method as described in any one of claims 1 to 6 are implemented.
