High and low voltage center identification method, system, medium and electronic equipment
By constructing a contour map and using a pre-trained model to identify high and low pressure centers, the problem of low identification efficiency and large terrain influence in the existing technology is solved, and the identification accuracy of high and low pressure centers is improved.
Patent Information
- Application Number
- CN202410300352.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-03-15
AI Technical Summary
The existing technology is inefficient in identifying high and low pressure centers and is greatly affected by ground terrain, resulting in reduced identification accuracy.
By constructing a contour map and using pre-trained positioning models and classification models, combined with surface pressure observation data, we can locate and classify high and low pressure center areas, eliminate false high and low pressure centers, and improve identification accuracy.
The identification accuracy of high and low pressure centers is improved, errors affected by terrain are reduced, and a more efficient identification process is achieved.
Smart Images

Figure CN118262252B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a high and low voltage center identification method, system, medium and electronic equipment. Background Art
[0002] In the field of meteorology, low-pressure areas usually refer to low vortices in atmospheric circulation, also known as low-pressure systems or cyclones. Low-pressure areas are often accompanied by cloudy and rainy weather, such as rain, heavy rain or storms. High pressure refers to high-pressure areas in atmospheric circulation, also known as high-pressure systems or anticyclones. High-pressure areas are often accompanied by clear weather, such as sunny days or few clouds. Therefore, it is very important to accurately identify low-vortex areas or high-pressure areas.
[0003] In the related art, the identification of high and low pressure centers is basically achieved by manual analysis, which is inefficient. At the same time, there are also examples in the prior art of using software algorithms to process weather maps. The software algorithms do not take into account the deformation of isobars caused by the influence of ground terrain. Therefore, when the ground terrain is complex, identification deviations will occur, thereby reducing the accuracy of high and low pressure center identification. Summary of the invention
[0004] The embodiments of the present application provide a method, system, medium and electronic device for identifying high and low voltage centers. In order to have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. This summary is not a general review, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.
[0005] In a first aspect, an embodiment of the present application provides a method for identifying high and low pressure centers, the method comprising:
[0006] According to the surface air pressure observation data of the area to be identified, a contour map to be located of the area to be identified is constructed;
[0007] Input the contour map to be located into the pre-trained positioning model, and output the target high and low pressure center area corresponding to the contour map to be located; wherein the pre-trained positioning model is trained based on the contour positioning samples of different time periods, the contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods, and the contour maps of different time periods are constructed based on the ground pressure observation data of different time periods;
[0008] According to the target high and low pressure center areas, construct the weather map to be classified for the area to be identified;
[0009] The weather map to be classified is input into a pre-trained high and low pressure area classification model, and the high pressure center and / or low pressure center corresponding to the weather map to be classified is output.
[0010] Optionally, generate a pre-trained high and low pressure area localization model by following the steps below, including:
[0011] Obtaining surface air pressure observation data at different time periods within a preset period;
[0012] Based on the surface air pressure observation data of different periods, the contour map of different periods is constructed;
[0013] Mark the high and low pressure center areas in the contour maps of different time periods to obtain contour positioning samples of different time periods;
[0014] Create positioning models;
[0015] The contour positioning samples of different time periods are input into the positioning model for model training. After the training, a pre-trained high and low pressure area positioning model is generated.
[0016] Optionally, generate a pre-trained high and low pressure region classification model by following these steps, including:
[0017] According to the surface air pressure observation data of different periods, the final grid data sets of different periods are created;
[0018] According to the final grid point data sets of different time periods, small rectangular rendering images of different time periods are created;
[0019] The marked high and low pressure center areas are deducted from the contour positioning samples of different time periods to obtain the high pressure center image and low pressure center image of different time periods;
[0020] The high-pressure center images at different time periods are superimposed with the high-pressure areas whose brightness is greater than a preset threshold in the small rectangular rendering images at different time periods to obtain the high-pressure area images at different time periods;
[0021] The low-pressure center images at different time periods are superimposed with the low-pressure areas whose brightness is less than a preset threshold in the small rectangular rendering images at different time periods to obtain the low-pressure area images at different time periods;
[0022] Label the high-pressure area images and low-pressure area images at different time periods to obtain classification samples at different time periods.
[0023] Create a classification model;
[0024] The classification samples of different time periods are input into the classification model for model training. After the training, the pre-trained high and low pressure area classification model is obtained.
[0025] Optionally, create final grid point data sets for different time periods based on surface pressure observation data for different time periods, including:
[0026] The surface air pressure observation data of different periods are interpolated into grid point data to obtain multiple grid point data of different periods;
[0027] According to the longitude and latitude contained in each grid point data of different time periods, each grid point data of different time periods is mapped to the contour map of different time periods with the high and low pressure center areas marked;
[0028] From the contour maps of different time periods mapped, the grid point data included in the high and low pressure center areas marked in the contour maps are screened out to obtain a plurality of first grid point data of different time periods;
[0029] Based on a plurality of first grid point data at different time periods, final grid point data sets at different time periods are created.
[0030] Optionally, based on a plurality of first grid point data at different time periods, a final grid point data set at different time periods is created, including:
[0031] The original longitude and latitude coordinates of each first grid point data in different time periods are converted into the coordinates of the high and low pressure center areas to obtain a plurality of second grid point data in different time periods;
[0032] Query the maximum and minimum air pressure values from multiple second grid point data at different time periods;
[0033] Calculate the difference between the maximum and minimum air pressure values;
[0034] The air pressure value contained in each second grid point data of different time periods is multiplied by a preset coefficient;
[0035] Calculate the ratio of the product value to the difference value, discard the decimal part of the ratio, and obtain the replacement parameter of the air pressure value in each second grid point data of different time periods;
[0036] The air pressure value contained in each second grid point data of different time periods is replaced by a replacement parameter of the air pressure value in each second grid point data of different time periods, so as to obtain a final grid point data set of different time periods.
[0037] Optionally, based on the final grid data sets at different time periods, small rectangular rendering images at different time periods are created, including:
[0038] Create a blank single-channel image of the same size as the central area of high and low pressure;
[0039] Linearly map each final grid point data in the final grid point data set of different time periods to a blank single-channel image;
[0040] Each grid point mapped to the blank single-channel image is expanded outward at the same speed in the form of concentric rectangles until the concentric rectangles touch each other, thereby obtaining a small rectangular rendering image; wherein the small rectangular rendering image includes a low-pressure area with a brightness less than a preset threshold and a high-pressure area with a brightness greater than the preset threshold.
[0041] Optionally, a weather map to be classified for the area to be identified is constructed based on the target high and low pressure center area, including:
[0042] Interpolate the surface air pressure observation data of the area to be identified into the target grid data;
[0043] Mapping the target grid point data onto the contour map to be located;
[0044] Filter out the grid data contained in the target high and low pressure center areas;
[0045] Preprocessing the air pressure values contained in the screened grid point data to obtain processed grid point data;
[0046] Linearly map the processed grid data to a blank single-channel image of the same size as the target high and low pressure center area, and expand the mapped grid points outward to obtain a small rectangular rendering image of the target area to be identified;
[0047] The target small rectangular rendering image of the area to be identified is superimposed with the target high and low pressure center area to obtain the weather map to be classified of the area to be identified.
[0048] In a second aspect, an embodiment of the present application provides a high and low pressure center identification system, the system comprising:
[0049] A contour map construction module is used to construct a contour map of the area to be identified based on the ground pressure observation data of the area to be identified;
[0050] The high and low pressure center area positioning module is used to input the contour map to be positioned into the pre-trained positioning model, and output the target high and low pressure center area corresponding to the contour map to be positioned; wherein the pre-trained positioning model is trained based on the contour positioning samples of different time periods, the contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods, and the contour maps of different time periods are constructed based on the ground pressure observation data of different time periods;
[0051] A module for constructing a weather map to be classified is used to construct a weather map to be classified for the area to be identified based on the target high and low pressure center areas;
[0052] The high and low pressure center classification module is used to input the weather map to be classified into a pre-trained high and low pressure area classification model, and output the high pressure center and / or low pressure center corresponding to the weather map to be classified.
[0053] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0054] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0055] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0056] In an embodiment of the present application, a pre-trained positioning model can be used to locate the target high and low pressure center areas corresponding to the contour map to be located. The pre-trained positioning model is trained based on contour positioning samples of different time periods. The contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods. The marked high and low pressure centers have high accuracy. Therefore, the positioning model trained in a sample-driven manner can eliminate pseudo high and low pressure centers affected by terrain, thereby improving the accuracy of high and low pressure center identification.
[0057] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0059] Figure 1 It is a flowchart of a high and low pressure center identification method provided in an embodiment of the present application;
[0060] Figure 2 This is a schematic diagram of an embodiment of the present application that uses a rectangular frame to locate the central range of high and low pressures;
[0061] Figure 3 It is a flowchart of a positioning model training method provided in an embodiment of the present application;
[0062] Figure 4 It is a contour map of a certain period of time provided in an embodiment of the present application;
[0063] Figure 5 is a schematic diagram of a labeled contour line positioning sample provided in an embodiment of the present application;
[0064] Figure 6It is a flowchart of a high and low pressure area classification model training method provided in an embodiment of the present application;
[0065] Figure 7 is a schematic diagram of a high-pressure regional center provided in an embodiment of the present application;
[0066] Figure 8 is a schematic diagram of a low-pressure area center provided in an embodiment of the present application;
[0067] Fig. 9 is a schematic diagram of superimposed contour lines provided in an embodiment of the present application;
[0068] Fig.10 is another schematic diagram of superimposed contour lines provided in an embodiment of the present application;
[0069] Fig.11 It is a structural schematic diagram of a high and low pressure center identification system provided in an embodiment of the present application;
[0070] Fig.12 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] The following description and the accompanying drawings sufficiently illustrate specific embodiments of the present application to enable those skilled in the art to practice them.
[0072] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0073] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of systems and methods consistent with some aspects of the present application as detailed in the attached claims.
[0074] In the description of the present application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0075] The present application provides a method, system, medium and electronic device for identifying high and low pressure centers to solve the problems existing in the above-mentioned related technical issues. In the technical solution provided by the present application, in the embodiment of the present application, the target high and low pressure center area corresponding to the contour map to be located can be located through a pre-trained positioning model. The pre-trained positioning model is trained based on contour positioning samples of different time periods. The contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods. The marked high and low pressure centers have high accuracy. Therefore, the positioning model trained in a sample-driven manner can eliminate pseudo high and low pressure centers affected by terrain, thereby improving the accuracy of high and low pressure center identification. The following uses an exemplary embodiment for detailed description.
[0076] The following will be combined with the attached Figure 1 -Attached Fig.10 , the high and low pressure center identification method provided in the embodiment of the present application is introduced in detail. The method can be implemented by a computer program and can be run on a high and low pressure center identification system based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.
[0077] See also Figure 1 , which is a flow chart of a method for identifying high and low pressure centers according to an embodiment of the present application. Figure 1 As shown, the method of the embodiment of the present application may include the following steps:
[0078] S101, constructing a contour map of the area to be identified based on the ground pressure observation data of the area to be identified;
[0079] Among them, the area to be identified is the area where high and low pressure centers need to be identified; the ground pressure observation data is measured by meteorological stations or other meteorological instruments and stored in the form of longitude and latitude or grid; the contour map is drawn based on the ground pressure observation data.
[0080] In an embodiment of the present application, in the process of constructing a contour map of a to-be-identified area to be located based on the ground pressure observation data of the to-be-identified area, the process includes: preprocessing the ground pressure observation data of the to-be-identified area to obtain preprocessed pressure observation data of different time periods; determining the contour interval according to the preset data range; drawing a contour set according to the preprocessed pressure observation data and the contour interval; linearly mapping the contour set to a single-channel image of a preset resolution to obtain contour maps of different time periods. Among them, preprocessing includes operations such as data cleaning, interpolation and smoothing. Cleaning data can exclude outliers and missing data, interpolation is to fill in blank areas of data, and smoothing operations can make contour lines more continuous and smooth; the preset data range can be a longitude range of 40-170 degrees and a latitude range of 5-80 degrees.
[0081] S102, inputting the contour map to be located into a pre-trained positioning model, and outputting the target high and low pressure center areas corresponding to the contour map to be located; wherein the pre-trained positioning model is trained based on contour positioning samples of different time periods, the contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods, and the contour maps of different time periods are constructed based on the ground pressure observation data of different time periods;
[0082] Among them, the pre-trained positioning model is a neural network model that can locate the high and low pressure center areas from the contour map to be located; the high and low pressure center areas are the ranges where the high and low pressure centers exist, using rectangular frames, for example Figure 2 shown.
[0083] In an embodiment of the present application, after obtaining the contour map to be located, the contour map to be located can be input into a pre-trained positioning model. The model processes the contour map through the model parameters stored when the training is completed, so as to use a rectangular frame to locate the range where the high and low pressure centers exist, and finally the target high and low pressure center area corresponding to the contour map to be located can be output.
[0084] S103, constructing a weather map to be classified for the area to be identified according to the target high and low pressure center areas;
[0085] Among them, the weather map to be classified is obtained by superimposing the target small rectangular rendering image of the area to be identified and the target high and low pressure center area. The target small rectangular rendering image is obtained by linearly mapping the processed grid data to a blank single-channel image of the same size as the target high and low pressure center area and expanding the mapped grid outward. The processed grid data is interpolated and preprocessed according to the ground pressure observation data of the area to be identified.
[0086] In an embodiment of the present application, the process of constructing a weather map to be classified for an area to be identified based on the target high and low pressure center area includes: interpolating the ground pressure observation data of the area to be identified into target grid data; mapping the target grid data to the contour map to be located; screening out the grid data contained in the target high and low pressure center area; preprocessing the air pressure values contained in the screened grid data to obtain processed grid data; linearly mapping the processed grid data to a blank single-channel image of the same size as the target high and low pressure center area, and expanding the mapped grid outward to obtain a target small rectangular rendering image of the area to be identified; superimposing the target small rectangular rendering image of the area to be identified with the target high and low pressure center area to obtain a weather map to be classified for the area to be identified.
[0087] Specifically, the expansion process is to expand each mapped grid point outward until the expanded grid points touch each other, forming small rectangles that render the entire single-channel image, and obtaining a target small rectangular rendering image of the area to be identified.
[0088] S104, inputting the weather map to be classified into a pre-trained high and low pressure area classification model, and outputting the high pressure center and / or low pressure center corresponding to the weather map to be classified.
[0089] Among them, the pre-trained high and low pressure area classification model is a neural network model that can classify high pressure centers and / or low pressure centers in the weather map to be classified.
[0090] In an embodiment of the present application, the process of generating a pre-trained high and low pressure area classification model includes: creating a final grid data set for different time periods based on ground pressure observation data for different time periods; creating small rectangular rendering images for different time periods based on the final grid data set for different time periods; deducting the marked high and low pressure center areas from the contour positioning samples for different time periods to obtain high pressure center images and low pressure center images for different time periods; superimposing the high pressure center images for different time periods with the high pressure areas with brightness greater than a preset threshold in the small rectangular rendering images for different time periods to obtain high pressure area images for different time periods; superimposing the low pressure center images for different time periods with the low pressure areas with brightness less than a preset threshold in the small rectangular rendering images for different time periods to obtain low pressure area images for different time periods; classifying the high pressure area images for different time periods and the low pressure area images for different time periods to obtain classification samples for different time periods; creating a classification model; inputting the classification samples for different time periods into the classification model for model training, and obtaining a pre-trained high and low pressure area classification model after the training is completed.
[0091] In some embodiments of the present application, after obtaining the weather map to be classified, the weather map to be classified can be input into a pre-trained high and low pressure area classification model. The pre-trained high and low pressure area classification model processes the weather map to be classified through pre-stored training parameters to classify the high pressure center and / or low pressure center in the weather map to be classified, and outputs the high pressure center and / or low pressure center corresponding to the weather map to be classified.
[0092] In an embodiment of the present application, small rectangular rendering images of different time periods are created through grid data, which can be further displayed through pictures, and then the contour information of the high and low pressure center images are superimposed, so that the model training sample parameters are enriched. By training the classification model, the high and low pressure centers can be judged with 100% accuracy.
[0093] In an embodiment of the present application, a pre-trained positioning model can be used to locate the target high and low pressure center areas corresponding to the contour map to be located. The pre-trained positioning model is trained based on contour positioning samples of different time periods. The contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods. The marked high and low pressure centers have high accuracy. Therefore, the positioning model trained in a sample-driven manner can eliminate pseudo high and low pressure centers affected by terrain, thereby improving the accuracy of high and low pressure center identification.
[0094] See also Figure 3 , a flow chart of a positioning model training method is provided for an embodiment of the present application.
[0095] like Figure 3 As shown, the method of the embodiment of the present application may include the following steps:
[0096] S201, obtaining surface air pressure observation data at different time periods within a preset period;
[0097] The preset period is a period of time set according to the actual application scenario, such as one month or one year. For example, this application uses samples from the whole year of 2013. Different time periods are the lengths of time in different time sequences within the preset period. For example, in the samples from the whole year of 2013, one day is a time period.
[0098] In an embodiment of the present application, when performing model training, ground pressure observation data of different time periods within a preset period is first obtained.
[0099] S202, constructing contour maps of different time periods according to the surface air pressure observation data of different time periods;
[0100] In an embodiment of the present application, the process of constructing contour maps for different time periods based on ground pressure observation data for different time periods specifically includes: preprocessing the ground pressure observation data for different time periods to obtain preprocessed pressure observation data for different time periods; determining the contour line interval based on a preset data range; drawing contour line sets for different time periods based on the preprocessed pressure observation data for different time periods and the contour line interval; linearly mapping the contour line sets for different time periods to a single-channel image of a preset resolution to obtain contour line maps for different time periods.
[0101] Specifically, the preset data range can be 40-170 degrees longitude and 5-80 degrees latitude. Preprocessing includes data cleaning, interpolation and smoothing. Data cleaning can exclude outliers and missing data, interpolation is to fill in the blank areas of data, and smoothing can make the contour lines more continuous and smooth. The preset resolution is 1000*1000.
[0102] It should be noted that the linear mapping method is as follows: the lowest latitude corresponds to the bottom of the image, the highest latitude corresponds to the top of the image, the lowest longitude corresponds to the left of the image, and the highest longitude corresponds to the right of the image. Figure 4 shown.
[0103] S203, marking the high and low pressure center areas in the contour map of different time periods, and obtaining contour positioning samples of different time periods;
[0104] In the embodiment of the present application, after obtaining the contour map of different time periods, the high and low pressure center areas can be marked in the form of rectangular boxes in the contour map of different time periods through drawing software and annotation instructions, and the contour positioning samples of different time periods are obtained after the annotation. Figure 5 shown.
[0105] S204, creating a positioning model;
[0106] Among them, the creation of the positioning model can adopt the positioning algorithm in deep learning, including but not limited to SSD (Single Shot MultiBox Detector) neural network and yolov series neural network.
[0107] S205, inputting contour positioning samples of different time periods into the positioning model for model training, and generating a pre-trained high and low pressure area positioning model after the training is completed.
[0108] In an embodiment of the present application, after obtaining the contour line positioning samples of different time periods, each contour line positioning sample can be input into the positioning model for model training, and the loss value of the model can be output. When the loss value reaches the minimum, a pre-trained high and low pressure area positioning model can be generated, or when the loss value does not reach the minimum, the model parameters are updated, and the step of inputting the contour line positioning samples of different time periods into the positioning model for model training is continued until the model loss value reaches the minimum.
[0109] In an embodiment of the present application, a pre-trained positioning model can be used to locate the target high and low pressure center areas corresponding to the contour map to be located. The pre-trained positioning model is trained based on contour positioning samples of different time periods. The contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods. The marked high and low pressure centers have high accuracy. Therefore, the positioning model trained in a sample-driven manner can eliminate pseudo high and low pressure centers affected by terrain, thereby improving the accuracy of high and low pressure center identification.
[0110] See also Figure 6 , which is a flow chart of a high and low pressure area classification model training method provided in the present application embodiment. Figure 6 As shown, the method of the embodiment of the present application may include the following steps:
[0111] S301, creating final grid point data sets for different time periods according to the surface air pressure observation data for different time periods;
[0112] In an embodiment of the present application, in the process of creating the final grid data set for different time periods based on the ground air pressure observation data for different time periods, it specifically includes: interpolating the ground air pressure observation data for different time periods into grid data to obtain multiple grid data for different time periods; mapping each grid data for different time periods to the contour map of different time periods marked with high and low pressure center areas according to the longitude and latitude contained in each grid data for different time periods; from the mapped contour map of different time periods, filtering out the grid data contained in the high and low pressure center areas marked in the contour map, to obtain multiple first grid data for different time periods; based on the multiple first grid data for different time periods, creating the final grid data set for different time periods.
[0113] It should be noted that in the process of interpolating the surface pressure data into grid data, if the surface pressure data is grid data, no processing is done. Each grid point of the grid data has three attributes, namely longitude, latitude, and pressure value, and each grid point can be recorded as (longi, lati, value).
[0114] In some embodiments of the present application, according to the longi and lati contained in each grid point data of different time periods, each grid point data can be mapped to the contour map of different time periods with the high and low pressure center areas marked, so as to realize the mapping of each grid point data to the image coordinate system, and each mapped grid point data can be recorded as (x, y, value), and then each grid point data mapped to the contour map is traversed to filter out the grid point data contained in the high and low pressure center areas, and all the included grid point data are recorded as ((x_0, y_0, value_0), (x_1, y_1, value_1).....(x_n, y_n, value_n)), so as to obtain multiple first grid point data of different time periods.
[0115] In an embodiment of the present application, in the process of creating a final grid point data set for different time periods based on multiple first grid point data for different time periods, the original longitude and latitude coordinates of each first grid point data for different time periods are converted into coordinates of the high and low pressure center areas to obtain multiple second grid point data for different time periods; the maximum air pressure value and the minimum air pressure value are queried from the multiple second grid point data for different time periods; the difference between the maximum air pressure value and the minimum air pressure value is calculated; the air pressure value contained in each second grid point data for different time periods is multiplied by a preset coefficient; the ratio of the product value to the difference is calculated, and the decimal part of the ratio is discarded to obtain a replacement parameter for the air pressure value in each second grid point data for different time periods; the air pressure value contained in each second grid point data for different time periods is replaced by the replacement parameter for the air pressure value in each second grid point data for different time periods to obtain a final grid point data set for different time periods.
[0116] In some embodiments of the present application, after obtaining the included grid point data ((x_0, y_0, value_0), (x_1, y_1, value_1).....(x_n, y_n, value_n)), the coordinates in the included grid point data can be converted into the body coordinates of the high and low pressure center area, recorded as ((x__0, y__0, value__0), (x__1, y__1, value__1)....., (x__n, y__n, value__n)), thereby obtaining multiple second grid point data of different time periods, and then from the multiple second grid point data of different time periods, the maximum value_max and the minimum value_min of the air pressure value value are queried, and each second grid point data is processed as follows:
[0117] Finally, the decimal part of value_x is discarded, and only the integer part is retained to obtain the final grid data set for different time periods.
[0118] S302, creating small rectangular rendering images of different time periods according to the final grid point data sets of different time periods;
[0119] In an embodiment of the present application, in the process of creating small rectangular rendering images of different time periods based on the final grid point data sets of different time periods, a blank single-channel image of the same size as the central area of high and low pressure is created; each final grid point data in the final grid point data sets of different time periods is linearly mapped to the blank single-channel image; each grid point mapped to the blank single-channel image is expanded outward at the same speed in the manner of concentric rectangles until the concentric rectangles contact each other, thereby obtaining a small rectangular rendering image; wherein the small rectangular rendering image includes a low-pressure area whose brightness is less than a preset threshold and a high-pressure area whose brightness is greater than the preset threshold.
[0120] In some embodiments of the present application, a blank single-channel image of the same size as the high and low pressure center area can be established, and the final grid point data set of different time periods can be linearly mapped to the blank single-channel image, and then each grid point is controlled to expand outward in a concentric rectangular manner at the same speed until they touch each other, and finally a small rectangle is formed to render the entire single-channel image, and a small rectangular rendering image is obtained. In this way, the center of the high pressure area is bright, such as Figure 7 As shown, the center of the low-pressure area is dark, such as Figure 8 shown.
[0121] S303, deducting the marked high and low pressure center areas from the contour positioning samples of different time periods to obtain high pressure center images and low pressure center images of different time periods;
[0122] S304, superimposing the high-pressure center images at different time periods with the high-pressure areas whose brightness is greater than a preset threshold in the small rectangular rendering images at different time periods to obtain high-pressure area images at different time periods;
[0123] S305, superimposing the low-pressure center images at different time periods with the low-pressure areas whose brightness is less than a preset threshold in the small rectangular rendering images at different time periods to obtain low-pressure area images at different time periods;
[0124] S306, classifying and labeling the high-pressure area images and the low-pressure area images at different time periods to obtain classification samples at different time periods;
[0125] In the embodiment of the present application, based on steps S303 to S306, the high and low pressure center areas marked in the contour positioning sample are cut out to obtain a small image. Figure 7 and Figure 8 Superimpose them with the small picture of the area to form a picture, and get Fig. 9 and Fig.10 .
[0126] S307, creating a classification model;
[0127] Among them, the creation of the positioning model can adopt the classification algorithm in deep learning.
[0128] S308, inputting classification samples of different time periods into the classification model for model training, and obtaining a pre-trained high and low pressure area classification model after the training is completed.
[0129] In an embodiment of the present application, after obtaining classification samples of different time periods, the classification samples of different time periods can be input into the classification model, and the loss value of the model can be output. When the loss value reaches the minimum, a pre-trained high and low pressure area classification model is generated; when the loss value does not reach the minimum, the model parameters can be updated, and the step of inputting the classification samples of different time periods into the classification model for model training can be continued until the loss value reaches the minimum.
[0130] In an embodiment of the present application, small rectangular rendering images of different time periods are created through grid data, which can be further displayed through pictures, and then the contour information of the high and low pressure center images are superimposed, so that the model training sample parameters are enriched. By training the classification model, the high and low pressure centers can be judged with 100% accuracy.
[0131] The following is a system embodiment of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the system embodiment of the present application, please refer to the method embodiment of the present application.
[0132] See also Fig.11 , which shows a schematic diagram of the structure of a high and low pressure center identification system provided by an exemplary embodiment of the present application. The high and low pressure center identification system can be implemented as all or part of an electronic device through software, hardware or a combination of both. The system 1 includes a contour map construction module 10, a high and low pressure center area positioning module 20, a weather map to be classified construction module 30, and a high and low pressure center classification module 40.
[0133] The contour map construction module 10 is used to construct a contour map of the area to be identified based on the ground pressure observation data of the area to be identified;
[0134] The high and low pressure center area positioning module 20 is used to input the contour map to be positioned into the pre-trained positioning model, and output the target high and low pressure center area corresponding to the contour map to be positioned; wherein the pre-trained positioning model is trained based on the contour positioning samples of different time periods, the contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods, and the contour maps of different time periods are constructed based on the ground pressure observation data of different time periods;
[0135] A weather map to be classified construction module 30 is used to construct a weather map to be classified for the area to be identified according to the target high and low pressure center area;
[0136] The high and low pressure center classification module 40 is used to input the weather map to be classified into a pre-trained high and low pressure area classification model, and output the high pressure center and / or low pressure center corresponding to the weather map to be classified.
[0137] It should be noted that the high and low voltage center identification system provided in the above embodiment only uses the division of the above functional modules as an example when executing the high and low voltage center identification method. In actual applications, the above functional distribution can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the high and low voltage center identification system provided in the above embodiment and the high and low voltage center identification method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0138] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0139] In an embodiment of the present application, a pre-trained positioning model can be used to locate the target high and low pressure center areas corresponding to the contour map to be located. The pre-trained positioning model is trained based on contour positioning samples of different time periods. The contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods. The marked high and low pressure centers have high accuracy. Therefore, the positioning model trained in a sample-driven manner can eliminate pseudo high and low pressure centers affected by terrain, thereby improving the accuracy of high and low pressure center identification.
[0140] The present application also provides a computer-readable medium having program instructions stored thereon, and when the program instructions are executed by a processor, the high and low pressure center identification methods provided by the above-mentioned various method embodiments are implemented.
[0141] The present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the high and low pressure center identification methods of the above-mentioned various method embodiments.
[0142] See also Fig.12 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.12 As shown, the electronic device 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .
[0143] The communication bus 1002 is used to realize the connection and communication between these components.
[0144] The user interface 1003 may include a display screen (Display) and a camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
[0145] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0146] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts within the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.
[0147] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may also be optionally at least one storage system located away from the aforementioned processor 1001. As Fig.12 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a high and low voltage center identification application.
[0148] exist Fig.12 In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 1001 can be used to call the high and low voltage center identification application stored in the memory 1005, and specifically perform the following operations:
[0149] According to the surface air pressure observation data of the area to be identified, a contour map to be located of the area to be identified is constructed;
[0150] Input the contour map to be located into the pre-trained positioning model, and output the target high and low pressure center area corresponding to the contour map to be located; wherein the pre-trained positioning model is trained based on the contour positioning samples of different time periods, the contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods, and the contour maps of different time periods are constructed based on the ground pressure observation data of different time periods;
[0151] According to the target high and low pressure center areas, construct the weather map to be classified for the area to be identified;
[0152] The weather map to be classified is input into a pre-trained high and low pressure area classification model, and the high pressure center and / or low pressure center corresponding to the weather map to be classified is output.
[0153] In one embodiment, when the processor 1001 generates a pre-trained high and low pressure area positioning model, the processor 1001 specifically performs the following operations:
[0154] Obtaining surface air pressure observation data at different time periods within a preset period;
[0155] Based on the surface air pressure observation data of different periods, the contour map of different periods is constructed;
[0156] Mark the high and low pressure center areas in the contour maps of different time periods to obtain contour positioning samples of different time periods;
[0157] Create positioning models;
[0158] The contour positioning samples of different time periods are input into the positioning model for model training. After the training, a pre-trained high and low pressure area positioning model is generated.
[0159] In one embodiment, when the processor 1001 generates a pre-trained high and low pressure area classification model, the processor 1001 specifically performs the following operations:
[0160] According to the surface air pressure observation data of different periods, the final grid data sets of different periods are created;
[0161] According to the final grid point data sets of different time periods, small rectangular rendering images of different time periods are created;
[0162] The marked high and low pressure center areas are deducted from the contour positioning samples of different time periods to obtain the high pressure center image and low pressure center image of different time periods;
[0163] The high-pressure center images at different time periods are superimposed with the high-pressure areas whose brightness is greater than a preset threshold in the small rectangular rendering images at different time periods to obtain the high-pressure area images at different time periods;
[0164] The low-pressure center images at different time periods are superimposed with the low-pressure areas whose brightness is less than a preset threshold in the small rectangular rendering images at different time periods to obtain the low-pressure area images at different time periods;
[0165] Label the high-pressure area images and low-pressure area images at different time periods to obtain classification samples at different time periods.
[0166] Create a classification model;
[0167] The classification samples of different time periods are input into the classification model for model training. After the training, the pre-trained high and low pressure area classification model is obtained.
[0168] In one embodiment, when the processor 1001 creates the final grid point data sets of different time periods according to the surface pressure observation data of different time periods, the processor 1001 specifically performs the following operations:
[0169] The surface air pressure observation data of different periods are interpolated into grid point data to obtain multiple grid point data of different periods;
[0170] According to the longitude and latitude contained in each grid point data of different time periods, each grid point data of different time periods is mapped to the contour map of different time periods with the high and low pressure center areas marked;
[0171] From the contour maps of different time periods mapped, the grid point data included in the high and low pressure center areas marked in the contour maps are screened out to obtain a plurality of first grid point data of different time periods;
[0172] Based on a plurality of first grid point data at different time periods, final grid point data sets at different time periods are created.
[0173] In one embodiment, when the processor 1001 creates a final grid point data set for different time periods based on a plurality of first grid point data for different time periods, the processor 1001 specifically performs the following operations:
[0174] The original longitude and latitude coordinates of each first grid point data in different time periods are converted into the coordinates of the high and low pressure center areas to obtain a plurality of second grid point data in different time periods;
[0175] Query the maximum and minimum air pressure values from multiple second grid point data at different time periods;
[0176] Calculate the difference between the maximum and minimum air pressure values;
[0177] The air pressure value contained in each second grid point data of different time periods is multiplied by a preset coefficient;
[0178] Calculate the ratio of the product value to the difference value, discard the decimal part of the ratio, and obtain the replacement parameter of the air pressure value in each second grid point data of different time periods;
[0179] The air pressure value contained in each second grid point data of different time periods is replaced by a replacement parameter of the air pressure value in each second grid point data of different time periods, so as to obtain a final grid point data set of different time periods.
[0180] In one embodiment, when the processor 1001 creates small rectangular rendering images of different time periods according to the final grid point data sets of different time periods, the processor 1001 specifically performs the following operations:
[0181] Create a blank single-channel image of the same size as the central area of high and low pressure;
[0182] Linearly map each final grid point data in the final grid point data set of different time periods to a blank single-channel image;
[0183] Each grid point mapped to the blank single-channel image is expanded outward at the same speed in the form of concentric rectangles until the concentric rectangles touch each other, thereby obtaining a small rectangular rendering image; wherein the small rectangular rendering image includes a low-pressure area with a brightness less than a preset threshold and a high-pressure area with a brightness greater than the preset threshold.
[0184] In one embodiment, when the processor 1001 constructs a weather map to be classified for a region to be identified according to the target high and low pressure center area, the processor 1001 specifically performs the following operations:
[0185] Interpolate the surface air pressure observation data of the area to be identified into the target grid data;
[0186] Mapping the target grid point data onto the contour map to be located;
[0187] Filter out the grid data contained in the target high and low pressure center areas;
[0188] Preprocessing the air pressure values contained in the screened grid point data to obtain processed grid point data;
[0189] Linearly map the processed grid data to a blank single-channel image of the same size as the target high and low pressure center area, and expand the mapped grid points outward to obtain a small rectangular rendering image of the target area to be identified;
[0190] The target small rectangular rendering image of the area to be identified is superimposed with the target high and low pressure center area to obtain the weather map to be classified of the area to be identified.
[0191] In an embodiment of the present application, a pre-trained positioning model can be used to locate the target high and low pressure center areas corresponding to the contour map to be located. The pre-trained positioning model is trained based on contour positioning samples of different time periods. The contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods. The marked high and low pressure centers have high accuracy. Therefore, the positioning model trained in a sample-driven manner can eliminate pseudo high and low pressure centers affected by terrain, thereby improving the accuracy of high and low pressure center identification.
[0192] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program for high and low voltage center identification can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program for high and low voltage center identification can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0193] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A method for identifying high and low pressure centers, characterized in that: The method comprises: Constructing a contour map of the area to be identified based on the ground pressure observation data of the area to be identified; Inputting the contour map to be located into a pre-trained positioning model, and outputting the target high and low pressure center areas corresponding to the contour map to be located; wherein the pre-trained positioning model is trained based on contour positioning samples of different time periods, the contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods, and the contour maps of different time periods are constructed based on ground pressure observation data of different time periods; Constructing a weather map to be classified for the area to be identified according to the target high and low pressure center area; Input the weather map to be classified into a pre-trained high and low pressure area classification model, and output the high pressure center and / or low pressure center corresponding to the weather map to be classified; wherein, Follow these steps to generate a pre-trained high and low pressure area classification model, including: According to the ground pressure observation data of different time periods, the final grid data sets of different time periods are created; according to the final grid data sets of different time periods, small rectangular rendering images of different time periods are created; the marked high and low pressure center areas are deducted from the contour line positioning samples of different time periods to obtain the high pressure center images and low pressure center images of different time periods; the high pressure center images of different time periods are superimposed with the high pressure areas with brightness greater than a preset threshold in the small rectangular rendering images of different time periods to obtain the high pressure area images of different time periods; the low pressure center images of different time periods are superimposed with the low pressure areas with brightness less than a preset threshold in the small rectangular rendering images of different time periods to obtain the low pressure area images of different time periods; the high pressure area images of different time periods and the low pressure area images of different time periods are categorized and the classified samples of different time periods are obtained; a classification model is created; the classified samples of different time periods are input into the classification model for model training, and after the training, a pre-trained high and low pressure area classification model is obtained.
2. The method according to claim 1, generating a pre-trained high and low pressure area positioning model according to the following steps, comprising: Obtaining surface air pressure observation data at different time periods within a preset period; Based on the surface air pressure observation data of different periods, the contour map of different periods is constructed; Mark the high and low pressure center areas in the contour maps of different time periods to obtain contour positioning samples of different time periods; Create positioning models; The contour line positioning samples of different time periods are input into the positioning model for model training, and after the training is completed, a pre-trained high and low pressure area positioning model is generated.
3. The method according to claim 1, characterized in that The method of creating final grid point data sets for different time periods according to the surface air pressure observation data for different time periods includes: The surface air pressure observation data of different periods are interpolated into grid point data to obtain multiple grid point data of different periods; According to the longitude and latitude contained in each grid point data of different time periods, each grid point data of different time periods is mapped to the contour map of different time periods with the high and low pressure center areas marked; From the contour maps of different time periods mapped, the grid point data included in the high and low pressure center areas marked in the contour maps are screened out to obtain a plurality of first grid point data of different time periods; Based on a plurality of first grid point data at different time periods, final grid point data sets at different time periods are created.
4. The method according to claim 3, characterized in that The step of creating a final grid point data set for different time periods based on a plurality of first grid point data for different time periods comprises: Converting the original longitude and latitude coordinates of each first grid point data in different time periods into the coordinates of the high and low pressure center area to obtain a plurality of second grid point data in different time periods; Query the maximum and minimum air pressure values from multiple second grid point data at different time periods; Calculating the difference between the maximum air pressure value and the minimum air pressure value; The air pressure value contained in each second grid point data of different time periods is multiplied by a preset coefficient; Calculate the ratio of the product value to the difference value, discard the decimal part of the ratio, and obtain the replacement parameter of the air pressure value in each second grid point data of different time periods; The air pressure value contained in each second grid point data of different time periods is replaced by a replacement parameter of the air pressure value in each second grid point data of different time periods, so as to obtain a final grid point data set of different time periods.
5. The method according to claim 1, characterized in that: The step of creating small rectangular rendering images for different time periods according to the final grid point data sets for different time periods includes: Creating a blank single-channel image having the same size as the high and low pressure central regions; Linearly mapping each final grid point data in the final grid point data sets of different time periods to the blank single-channel image; Each grid point mapped to the blank single-channel image is expanded outward at the same speed in the manner of concentric rectangles until the concentric rectangles touch each other, thereby obtaining a small rectangular rendering image; wherein the small rectangular rendering image includes a low-pressure area with a brightness less than a preset threshold and a high-pressure area with a brightness greater than the preset threshold.
6. The method according to claim 1, characterized in that The step of constructing a weather map to be classified for the area to be identified according to the target high and low pressure center area comprises: Interpolating the surface air pressure observation data of the area to be identified into target grid point data; Mapping the target grid point data onto a contour map to be located; Filter out the grid point data contained in the target high and low pressure center area; Preprocessing the air pressure values contained in the screened grid point data to obtain processed grid point data; Linearly mapping the processed grid point data to a blank single-channel image of the same size as the target high and low pressure center area, and performing outward expansion processing on the mapped grid points to obtain a small rectangular rendering image of the target area to be identified; The target small rectangular rendering image of the area to be identified is superimposed with the target high and low pressure center area to obtain a weather map to be classified for the area to be identified.
7. A high and low voltage center identification system, characterized in that: The system comprises: A contour map construction module is used to construct a contour map to be located in the area to be identified based on the ground pressure observation data of the area to be identified; A high and low pressure center area positioning module is used to input the contour map to be positioned into a pre-trained positioning model, and output the target high and low pressure center area corresponding to the contour map to be positioned; wherein the pre-trained positioning model is trained based on contour positioning samples of different time periods, the contour positioning samples of different time periods are obtained by marking the high and low pressure center areas in the contour maps of different time periods, and the contour maps of different time periods are constructed based on ground pressure observation data of different time periods; A module for constructing a weather map to be classified, used for constructing a weather map to be classified for the area to be identified according to the target high and low pressure center area; The high and low pressure center classification module is used to input the weather map to be classified into a pre-trained high and low pressure area classification model, and output the high pressure center and / or low pressure center corresponding to the weather map to be classified; wherein, Follow these steps to generate a pre-trained high and low pressure area classification model, including: According to the ground pressure observation data of different time periods, the final grid data sets of different time periods are created; according to the final grid data sets of different time periods, small rectangular rendering images of different time periods are created; the marked high and low pressure center areas are deducted from the contour line positioning samples of different time periods to obtain the high pressure center images and low pressure center images of different time periods; the high pressure center images of different time periods are superimposed with the high pressure areas with brightness greater than a preset threshold in the small rectangular rendering images of different time periods to obtain the high pressure area images of different time periods; the low pressure center images of different time periods are superimposed with the low pressure areas with brightness less than a preset threshold in the small rectangular rendering images of different time periods to obtain the low pressure area images of different time periods; the high pressure area images of different time periods and the low pressure area images of different time periods are categorized and the classified samples of different time periods are obtained; a classification model is created; the classified samples of different time periods are input into the classification model for model training, and after the training, a pre-trained high and low pressure area classification model is obtained.
8. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 6.
9. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1 to 6.
