Cloud information prediction method and device, storage medium and electronic device
By acquiring and analyzing cloud information, predicting cloud merger events and target times, and using weight and gain parameters to calculate the merged cloud parameters, the problem of low cloud information prediction efficiency and accuracy in the existing technology is solved, achieving Efficient prediction of mesoscale convective systems.
Patent Information
- Application Number
- CN202410850080.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-27
AI Technical Summary
The prediction efficiency and accuracy of cloud information in the existing technology are low, and it is impossible to accurately predict the information of cloud mergers in mesoscale convective systems.
By obtaining the cloud body information of multiple cloud bodies in the reference time period before the current time, predict the reference cloud body and its target time where the merger event will occur, and convert the merged target cloud body information based on the initial cloud body information. Use weight parameters and gain parameters to perform weighted summation calculations to obtain the merged cloud parameters.
It achieves accurate prediction of cloud merger events, improves the prediction efficiency and accuracy of cloud information, and can accurately predict merged cloud information.
Smart Images

Figure CN118393612B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the computer field, and more specifically, to a cloud information prediction method and device, a storage medium, and an electronic device. Background Art
[0002] Mesoscale convective systems are one of the main weather systems that occur frequently in summer, are accompanied by short-term systematic heavy rainfall, and are prone to causing disastrous weather. Their local triggering and complex evolution bring great difficulties to forecasting. They are often composed of multiple interacting convective cells, which are highly organized through the convective merging process, with a scale of hundreds of kilometers and a life history of 6-12 hours. They often cause heavy rain, strong winds, thunderstorms, and hail, which are far beyond the isolated convective cells. Mesoscale convective systems often involve the birth and death of multiple convective cloud bodies and their interactions in the process of organization. At present, the research on the macroscopic phenomena and occurrence mechanism of the convective cloud body merging process shows that the convective cloud body merging is not a simple addition of two storms, but a nonlinear complex process involving thermal dynamic convergence and material exchange. The research on them has important scientific significance and urgent business needs, which is also the reason why the convective merging process has received continuous attention.
[0003] In order to track the merging process of convective clouds, a cloud tracking algorithm is proposed in the related art. The cloud tracking algorithm is based on the trajectory tracking of the relative positions of clouds, that is, the historical movement trajectory of clouds with relatively close positions is used to predict the future movement trajectory, thereby predicting whether the clouds will merge. This method can only predict whether the clouds will merge in a short period of time, but cannot accurately predict the information of the merged clouds. In addition, due to the complex influence relationship between clouds, the prediction method in the prior art cannot accurately predict the merging of clouds in the distant time. Summary of the invention
[0004] The embodiments of the present application provide a method and device for predicting cloud information, a storage medium, and an electronic device to at least solve the problem of low efficiency and accuracy in predicting cloud information in the related art.
[0005] According to an embodiment of the present application, a method for predicting cloud information is provided, comprising:
[0006] In an exemplary embodiment, cloud body information of a plurality of cloud bodies within a reference time period before a current moment is obtained, wherein the cloud body information is used to indicate changes in cloud body characteristics of the cloud bodies within the reference time period;
[0007] Predicting, based on the cloud body information, a reference cloud body in which a merging event will occur among the plurality of cloud bodies and a target time for the merging of the reference cloud bodies;
[0008] Predicting initial cloud information of each reference cloud at a reference time before the target time based on the cloud information of the reference cloud, wherein the relative distance between the reference cloud bodies at the reference time satisfies a target distance condition;
[0009] Target cloud body information of the target cloud body obtained by merging the reference cloud bodies at the target time is converted according to the initial cloud body information.
[0010] As an optional implementation manner, converting the target cloud information of the target cloud obtained by merging the reference cloud at the target time according to the initial cloud information includes:
[0011] Acquire a weight parameter of each of the reference clouds, wherein the weight parameter is used to indicate the influence of the reference cloud on the cloud parameters of the merged target cloud;
[0012] The weight parameters are used to perform weighted sum calculation on the initial cloud body parameters to obtain the target cloud body parameters, wherein the initial cloud body information includes the initial cloud body parameters, and the target cloud body information includes the target cloud body parameters.
[0013] As an optional implementation manner, obtaining a weight parameter of each reference cloud includes:
[0014] Acquire a reference gain parameter of the reference cloud, wherein the reference gain parameter is used to indicate the influence of other cloud bodies among the plurality of cloud bodies except the current reference cloud body on the current reference cloud body;
[0015] The ratio of the reference gain parameter of each reference cloud body to the reference gain parameters of all the reference cloud bodies is calculated to obtain the weight parameter of the corresponding reference cloud body.
[0016] As an optional implementation manner, predicting the initial cloud body information of each reference cloud body at a reference time before the target time according to the cloud body information of the reference cloud body includes:
[0017] Obtaining a target time interval between the end time of the reference time period and the reference time;
[0018] Predicting reference cloud parameters of multiple target moments included in the target time interval using reference gain parameters of the reference cloud and cloud parameters of the reference cloud, wherein the latter reference cloud parameters of the reference cloud parameters adjacent to the target moments are obtained by calculating the former reference cloud parameters using the reference gain parameters, the reference gain parameters are used to indicate the influence of other cloud bodies among the multiple cloud bodies except the current reference cloud body on the current reference cloud body, and the cloud body information includes the cloud body parameters;
[0019] The reference cloud body parameters corresponding to the reference time are determined as initial cloud body parameters, wherein the initial cloud body information includes the initial cloud body parameters.
[0020] As an optional implementation manner, after converting the target cloud information of the target cloud obtained by merging the reference cloud bodies at the target time according to the initial cloud body information, the method further includes:
[0021] Acquire a weight parameter of each of the reference clouds, wherein the weight parameter is used to indicate the influence of the reference cloud on the cloud parameters of the merged target cloud;
[0022] The reference gain parameter is weighted and summed using the weight parameter to obtain a target gain parameter of the target cloud body, wherein the target gain parameter is used to indicate the influence of other cloud bodies on the target cloud body.
[0023] As an optional implementation manner, predicting, based on the cloud body information, a reference cloud body in which a merging event will occur and a target time for the merging of the reference cloud bodies, includes:
[0024] Inputting the target cloud image within the reference time period into the target prediction model, the target prediction model outputs a plurality of cloud merging events and event parameters of each cloud merging event, wherein the cloud merging event is used to indicate a cloud body for which a merging event will occur and a merging time of the cloud body, the event parameters are used to indicate an occurrence probability of the corresponding cloud merging event, the target cloud image is an image recording a plurality of the cloud bodies, and the cloud body information includes the target cloud image;
[0025] Filtering a target cloud body merging event from the plurality of cloud body merging events according to the event parameters, wherein the occurrence probability of the target cloud body merging event is greater than or equal to a target probability value;
[0026] The cloud body that is merged indicated by the target cloud body merging event is determined as the reference cloud body, and the cloud body merging time indicated by the target cloud body merging time is determined as the target time.
[0027] As an optional implementation manner, before inputting the plurality of target cloud bodies within the reference time period into the target prediction model, the method further includes:
[0028] Acquire a first cloud body image within a candidate time period before the current moment, and a merging time of a second cloud body that is merged among a plurality of first cloud bodies included in the first cloud body image;
[0029] constructing a training sample according to the first cloud image, the second cloud, and the merge time of the second cloud;
[0030] The initial prediction model is trained using the training samples to obtain the target prediction model.
[0031] As an optional implementation manner, constructing a training sample according to the first cloud image, the second cloud, and the merge time of the second cloud includes:
[0032] Performing grayscale enhancement on the first cloud image using a grayscale enhancement algorithm to obtain a second cloud image;
[0033] detecting the first cloud body from the second cloud body image using the target marking model, and marking the position of the first cloud body in the second cloud body image to obtain a third cloud body image;
[0034] The marking information of the second cloud body and the merging time of the second cloud body is added to the third cloud body image to obtain the training sample.
[0035] As an optional implementation manner, the acquiring cloud body information of the plurality of cloud bodies within a reference time period before the current moment includes:
[0036] Acquire multiple frames of continuous fourth cloud body images acquired by the cloud body acquisition device within the reference time period;
[0037] Performing grayscale enhancement on the fourth cloud image using a grayscale enhancement algorithm to obtain a fifth cloud image;
[0038] Using the target marking model, a plurality of cloud bodies are detected from the fifth cloud body image, and positions of the plurality of cloud bodies are marked in the fifth cloud body image to obtain a target cloud body image;
[0039] Cloud parameters of each of the clouds are identified according to the target cloud image, wherein the cloud information includes the target cloud image and the cloud parameters.
[0040] As an optional implementation manner, identifying cloud parameters of each cloud according to the target cloud image includes:
[0041] Detecting target pixel points belonging to the corresponding cloud body in the marked area corresponding to the cloud body in the target cloud body image;
[0042] The sum of the target pixel points in the marked area is determined as the cloud area of the target cloud.
[0043] As an optional implementation manner, the detecting target pixel points belonging to the corresponding cloud body in the marked area corresponding to the cloud body in the target cloud body image includes:
[0044] Obtaining an average grayscale value of the marked area;
[0045] Generating a pixel parameter of the current pixel according to the average gray value and the gray value of the current pixel, wherein the pixel parameter is used to indicate an association relationship between the current pixel and the cloud body of the marked area;
[0046] When the pixel point parameter is greater than or equal to the target parameter value, the current pixel point is determined as the target pixel point.
[0047] As an optional implementation manner, identifying cloud parameters of each cloud according to the target cloud image includes:
[0048] The average grayscale value and the grayscale value of the current pixel are calculated using the following formula to obtain the pixel parameter of the current pixel:
[0049] ,
[0050] in, is the pixel parameter of the current pixel, is the gray value of the current pixel,
[0051] is the average gray value, is a parameter that controls the width of the Gaussian function.
[0052] As an optional implementation manner, identifying cloud parameters of each cloud according to the target cloud image includes:
[0053] Acquire the moving distance of the cloud body in the target cloud body images of adjacent frames;
[0054] The moving speed of the cloud body is calculated according to the moving distance and the acquisition time interval of the target cloud body images in adjacent frames, wherein the cloud body parameters include the moving speed.
[0055] According to another embodiment of the present application, a cloud body information prediction device is provided, comprising:
[0056] An acquisition module, used to acquire cloud body information of multiple cloud bodies within a reference time period before a current moment, wherein the cloud body information is used to indicate changes in cloud body characteristics of the cloud body within the reference time period;
[0057] A first prediction module is used to predict, based on the cloud body information, a reference cloud body in which a merging event will occur among the plurality of cloud bodies and a target time for the merging of the reference cloud bodies to occur;
[0058] A second prediction module is used to predict the initial cloud body information of each reference cloud body at a reference time before the target time according to the cloud body information of the reference cloud body, wherein the relative distance between the reference cloud bodies at the reference time satisfies the target distance condition;
[0059] The conversion module is used to convert the target cloud information of the target cloud body obtained by merging the reference cloud bodies at the target time according to the initial cloud body information.
[0060] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0061] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0062] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0063] Through the present application, by acquiring cloud body information that characterizes the changes in cloud body characteristics of multiple cloud bodies in a reference time period before the current moment, the reference cloud body where the cloud body merging event will occur and the target time when the reference cloud body merging will occur can be predicted based on the cloud body information, thereby using the cloud body information of the reference cloud body to predict the initial cloud body information of each reference cloud body at the reference time before the merging event occurs, and thus the target cloud body information of multiple reference clouds after merging at the target time can be converted based on the multiple initial cloud body information, thereby achieving accurate prediction of the merged cloud body information while accurately predicting the reference cloud body that will be merged and the merging time of the reference cloud body. Therefore, the problem of low prediction efficiency and accuracy of cloud body information can be solved, and the effect of improving the prediction efficiency and accuracy of cloud body information can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 is a schematic diagram of the hardware environment of the cloud body information prediction method according to an embodiment of the present application;
[0065] Figure 2 is a structural block diagram of a device for predicting cloud information according to an embodiment of the present application;
[0066] Figure 3 It is a flow chart of the overall model of a neural network based on multi-target recognition and multi-target tracking according to an embodiment of the present application;
[0067] Figure 4 is a schematic diagram of a Transformer network structure for training a “merge discrimination module” according to an embodiment of the present application;
[0068] Figure 5 is a multi-target tracking model training calculation flow chart according to an embodiment of the present application;
[0069] Figure 6 It is a structural block diagram of a cloud body information prediction device according to an embodiment of the present application. DETAILED DESCRIPTION
[0070] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0071] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0072] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a cloud body information prediction method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0073] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the cloud body information prediction method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0074] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0075] In this embodiment, a method for predicting cloud information is provided. Figure 2 is a flow chart of a method for predicting cloud information according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:
[0076] Step S202, obtaining cloud body information of a plurality of cloud bodies in a reference time period before the current moment, wherein the cloud body information is used to indicate changes in cloud body characteristics of the cloud bodies in the reference time period;
[0077] Step S204, predicting, based on the cloud body information, a reference cloud body in which a merging event will occur among the plurality of cloud bodies and a target time for the merging of the reference cloud bodies;
[0078] Step S206, predicting initial cloud information of each reference cloud at a reference time before the target time based on the cloud information of the reference cloud, wherein the relative distance between the reference cloud bodies at the reference time satisfies a target distance condition;
[0079] Step S208: converting the target cloud information of the target cloud obtained by merging the reference cloud at the target time according to the initial cloud information.
[0080] Through the above steps, by obtaining cloud body information that characterizes the changes in cloud body characteristics of multiple cloud bodies in the reference time period before the current moment, the reference cloud body where the cloud body merging event will occur and the target time when the reference cloud body merging will occur can be predicted based on the cloud body information, thereby using the cloud body information of the reference cloud body to predict the initial cloud body information of each reference cloud body at the reference time before the merging event occurs, so that the target cloud body information of multiple reference clouds after merging at the target time can be converted based on the multiple initial cloud body information, and the accurate prediction of the merged cloud body information can be achieved under the condition of accurately predicting the reference cloud body that will be merged and the merging time of the reference cloud body. Therefore, the problem of low prediction efficiency and accuracy of cloud body information can be solved, and the effect of improving the prediction efficiency and accuracy of cloud body information can be achieved.
[0081] Among them, the execution subject of the above steps can be a device with a function of predicting cloud information. The device with the function of predicting cloud information can include but is not limited to a server device or a terminal device. The device with the function of predicting cloud information is connected to a cloud information collection device. The cloud information collection device inputs the collected cloud information into the device with the function of predicting cloud information, so as to predict the reference cloud of the merging event that will occur and the target time of the merging of the reference cloud by running the cloud information prediction method provided in the present application, and can also predict the target cloud information of the cloud obtained after the reference cloud is merged at the target time based on the initial cloud information of the reference cloud, so that the corresponding alarm information can be generated according to the target cloud information and the target time, so as to realize the early warning of convective cloud weather.
[0082] In the embodiment provided in the above step S202, the cloud body information may be, but is not limited to, information used to characterize attributes such as the movement trajectory of the cloud body, the size of the cloud body, the size change information of the cloud body, the movement speed of the cloud body, the shape of the cloud body, and the grayscale intensity of the cloud body, and this solution does not impose any limitation on this.
[0083] Optionally, in an embodiment of the present application, the cloud body information may be, but is not limited to, multiple cloud body images collected by a cloud body image collection device in a reference time period (a cloud body image is an image that records multiple cloud bodies), or it may also be information obtained by identifying multiple cloud body images, which is not limited in this solution.
[0084] In the embodiment provided in the above step S204, the reference cloud body and the merging time of the reference cloud body may be the reference cloud body to be merged and the target time for merging the reference cloud body, which is selected from the corresponding relationship among the cloud body information with corresponding relationship, the merged cloud body and the cloud body merging time and corresponds to the cloud body information of multiple cloud bodies; or the method of predicting the reference cloud body and the target time for merging the reference cloud body may also be to predict the cloud body movement trajectory of each cloud body after the current moment based on the cloud body information of multiple cloud bodies, the cloud body movement trajectory recording the time when the corresponding cloud body moves to the corresponding position, and then by analyzing the multiple cloud bodies, multiple reference cloud bodies located at the same position at the same time are obtained, and then the time when the reference cloud body moves to the present is determined as the target merging time for merging the reference cloud bodies, and this scheme does not limit this.
[0085] Optionally, in an embodiment of the present application, the reference cloud and the merging time of the reference cloud can also be constructed by an autoregressive model (such as a Transformer model), using the autoregressive model to learn the characteristics of the cloud merging event, and output the cloud merging event and the occurrence time of the cloud merging event. This solution does not limit this.
[0086] In the embodiment provided in the above step S206, the initial cloud information of the reference cloud at the reference time may be, but is not limited to, obtained by predicting the cloud information of the reference cloud using a cloud trajectory prediction model, and the cloud trajectory prediction model is used to predict the cloud information transformation of the reference cloud at multiple moments after the current time in combination with a target gain parameter, wherein the target gain parameter is used to characterize the influence of other cloud bodies among the multiple cloud bodies except the current reference cloud body on the cloud information change of the reference cloud body.
[0087] In an embodiment of the present application, the initial cloud body information can also be obtained by constructing an initial prediction model based on deep learning, and using the initial prediction model to learn the cloud body information change characteristics of multiple cloud bodies to obtain a target prediction model, thereby inputting the cloud body information of the reference cloud body into the target prediction model to obtain the relationship between the cloud body information change of the reference cloud body output by the target model and the time, thereby determining the cloud body information at the reference time as the initial cloud body information. This scheme does not limit this.
[0088] In the embodiment provided in the above step S208, the target cloud information may be converted from the initial cloud information by merging the initial cloud information according to the influence weight of the reference cloud on the target cloud, thereby obtaining the merged target cloud information.
[0089] Optionally, in an embodiment of the present application, a method for converting target cloud information based on initial cloud information may also be to use a cloud information conversion model to identify and convert the initial cloud information, thereby obtaining target cloud information output by the cloud information conversion model, wherein the cloud information conversion model records the conversion relationship between cloud information, and this solution does not limit this.
[0090] As an optional embodiment, converting the target cloud information of the target cloud obtained by merging the reference cloud at the target time according to the initial cloud information includes:
[0091] Acquire a weight parameter of each of the reference clouds, wherein the weight parameter is used to indicate the influence of the reference cloud on the cloud parameters of the merged target cloud;
[0092] The weight parameters are used to perform weighted sum calculation on the initial cloud body parameters to obtain the target cloud body parameters, wherein the initial cloud body information includes the initial cloud body parameters, and the target cloud body information includes the target cloud body parameters.
[0093] Optionally, in the embodiment of the present application, the weight parameter of the reference cloud body may be, but is not limited to, a fixed value pre-configured according to demand, or may be generated according to the influence relationship between the cloud body information of multiple clouds. For example, assuming that n clouds are merged, the state vector (cloud body information / cloud body parameter) of each cloud body is , the covariance matrix is , i=1,2,…,n, the covariance matrix is used to characterize the influence of other cloud bodies except the current cloud body on the cloud body information change of the current cloud body, and then the weight parameter of the current cloud body is calculated according to the proportion of the covariance matrix of the current cloud body in the sum of the covariance matrix values of multiple cloud bodies. The specific implementation method is: the combined estimate is weighted. In order to better reflect the uncertainty of each cloud body, the weight parameter is calculated by the inverse of the covariance matrix of each cloud body according to the following formula:
[0094] ,
[0095] in, is the trace of the P matrix (the sum of the elements on the diagonal), then the parameters of the merged target cloud are .
[0096] In the embodiment of the present application, when the clouds are merged, the covariance matrix of the merged target cloud can be calculated by the following formula:
[0097] .
[0098] Optionally, in an embodiment of the present application, the initial cloud body parameters are used to indicate the movement change of the cloud body. The initial cloud body parameters may include but are not limited to the movement trajectory of the cloud body, the size of the cloud body, the size change information of the cloud body, the movement speed of the cloud body, the shape of the cloud body, and the grayscale intensity of the cloud body, etc. This solution does not limit this.
[0099] Through the above content, the initial cloud parameters of multiple reference clouds are weighted and calculated according to the importance of the influence of the cloud body on the cloud parameters of the merged target cloud body, so as to obtain the target cloud parameters of the target cloud body obtained by merging multiple reference clouds at the target time, thereby ensuring the accuracy of the target cloud parameters.
[0100] As an optional embodiment, obtaining a weight parameter of each reference cloud includes:
[0101] Acquire a reference gain parameter of the reference cloud, wherein the reference gain parameter is used to indicate the influence of other cloud bodies among the plurality of cloud bodies except the current reference cloud body on the current reference cloud body;
[0102] The ratio of the reference gain parameter of each reference cloud body to the reference gain parameters of all the reference cloud bodies is calculated to obtain the weight parameter of the corresponding reference cloud body.
[0103] Optionally, in the embodiment of the present application, the reference gain parameter may be, but is not limited to, calculated based on the cloud body parameters of multiple cloud ladders before the current moment. In the embodiment of the present application, the form of the reference gain parameter is not limited. For example, assuming that n cloud bodies are merged, the state vector (cloud body information / cloud body parameters) of each cloud body is , the covariance matrix (reference gain parameter) is , i=1,2,…,n, the covariance matrix is used to characterize the influence of other cloud bodies except the current cloud body on the cloud body information change of the current cloud body, and then the weight parameter of the current cloud body is calculated according to the proportion of the covariance matrix of the current cloud body in the sum of the covariance matrix values of multiple cloud bodies. The specific implementation method is: the combined estimate is weighted. In order to better reflect the uncertainty of each cloud body, the weight parameter is calculated by the inverse of the covariance matrix of each cloud body according to the following formula:
[0104] ,in, yes The trace of a matrix (the sum of the elements on the diagonal).
[0105] Through the above content, by calculating the gain parameters that characterize the reference cloud body and indicate the influence of other cloud bodies other than the current reference cloud body on the current cloud body, the weight parameter of the cloud body is determined according to the proportion of the gain parameter in the gain parameters of all reference cloud bodies, thereby improving the objective accuracy of the weight parameter.
[0106] As an optional embodiment, predicting the initial cloud body information of each reference cloud body at a reference time before the target time according to the cloud body information of the reference cloud body includes:
[0107] Obtaining a target time interval between the end time of the reference time period and the reference time;
[0108] Predicting reference cloud parameters of multiple target moments included in the target time interval using reference gain parameters of the reference cloud and cloud parameters of the reference cloud, wherein the latter reference cloud parameters of the reference cloud parameters adjacent to the target moments are obtained by calculating the former reference cloud parameters using the reference gain parameters, the reference gain parameters are used to indicate the influence of other cloud bodies among the multiple cloud bodies except the current reference cloud body on the current reference cloud body, and the cloud body information includes the cloud body parameters;
[0109] The reference cloud body parameters corresponding to the reference time are determined as initial cloud body parameters, wherein the initial cloud body information includes the initial cloud body parameters.
[0110] Optionally, in an embodiment of the present application, the initial cloud body information may be predicted by, but is not limited to, a target prediction model, in which the change relationship of the cloud body information of the reference cloud body over time is recorded. In this embodiment, the cloud body prediction model may be a Kalman filter prediction model. A specific implementation method may be: assuming that the cloud body parameters of the initial cloud body are expressed as: ,in, is the initial position, is the initial velocity. In this embodiment, only the cloud body parameters are shown as position and velocity. In practical applications, other parameters such as area, thickness, etc. can be added according to needs. This embodiment does not limit the number of parameter dimensions. The target state of the predicted adjacent frames is:
[0111] ,in, is the predicted state vector (predicted initial cloud parameters), is the predicted covariance matrix, is the state transition matrix, is the control input matrix, is the control input model, is the process noise covariance matrix;
[0112] The update steps are:
[0113] ,in is the Kalman gain, is the observed value, is the observation matrix, is the observation noise covariance matrix. The cloud parameter prediction embodiment given in the above embodiment only shows the method of predicting cloud parameters at adjacent moments, that is, predicting the cloud parameters at the next adjacent moment according to the cloud parameters at the first moment. In practical applications, the above operation can be repeated as required to predict the initial cloud parameters at the reference time after a period of time. This solution does not limit this.
[0114] Through the above content, by performing frame-by-frame prediction based on the reference gain parameter and the target time interval between the end moment of the reference time period and the reference time, the cloud parameters of each moment included in the target time interval are obtained, thereby obtaining the cloud parameters of the reference time. That is, the prediction of the cloud parameters not only takes into account the existing change law of the current cloud body, but also takes into account the influence of other cloud bodies, thereby improving the accuracy of the predicted cloud parameters.
[0115] As an optional embodiment, after converting the target cloud information of the target cloud obtained by merging the reference cloud at the target time according to the initial cloud information, the method further includes:
[0116] Acquire a weight parameter of each of the reference clouds, wherein the weight parameter is used to indicate the influence of the reference cloud on the cloud parameters of the merged target cloud;
[0117] The reference gain parameter is weighted and summed using the weight parameter to obtain a target gain parameter of the target cloud body, wherein the target gain parameter is used to indicate the influence of other cloud bodies on the target cloud body.
[0118] Optionally, in an embodiment of the present application, the calculated target gain parameter can be used to predict the change of cloud information after the target time, that is, the cloud information prediction provided by this embodiment is a continuously executed operation, which can predict the cloud merging events occurring at each moment and the merged cloud information in sequence as the time changes, and then predict the cloud information changes of subsequent clouds based on the predicted merging events, so that this embodiment can not only predict cloud merging events in a relatively recent time, but also predict cloud merging events in a relatively distant time, and this scheme does not limit this.
[0119] As an optional embodiment, predicting, based on the cloud body information, a reference cloud body in which a merging event will occur and a target time for the merging of the reference cloud bodies, includes:
[0120] Inputting the target cloud image within the reference time period into the target prediction model, the target prediction model outputs a plurality of cloud merging events and event parameters of each cloud merging event, wherein the cloud merging event is used to indicate a cloud body for which a merging event will occur and a merging time of the cloud body, the event parameters are used to indicate an occurrence probability of the corresponding cloud merging event, the target cloud image is an image recording a plurality of the cloud bodies, and the cloud body information includes the target cloud image;
[0121] Filtering a target cloud body merging event from the plurality of cloud body merging events according to the event parameters, wherein the occurrence probability of the target cloud body merging event is greater than or equal to a target probability value;
[0122] The cloud body that is merged indicated by the target cloud body merging event is determined as the reference cloud body, and the cloud body merging time indicated by the target cloud body merging time is determined as the target time.
[0123] Optionally, in the embodiment of the present application, the target prediction model may be, but is not limited to, a model of a Transformer architecture, and the model is used to predict possible cloud body merging events (i.e., the cloud bodies to be merged and the time when the cloud body merging occurs) and time parameters of the cloud body merging events (i.e., the probability of the cloud body merging event occurring) according to the input cloud body information.
[0124] Optionally, in an embodiment of the present application, the target cloud image may be a cloud image captured by a cloud image acquisition device, or may be an image obtained by marking an image captured by a cloud image acquisition device, wherein the marking process of the image is used to mark the cloud position of the cloud in the image and highlight the cloud image with the marked cloud position, thereby making the cloud features in the cloud image more obvious and improving the recognition accuracy.
[0125] Through the above content, by using the target prediction model to predict the probability of the merging event that will occur based on the target cloud image, the accuracy of the predicted cloud merging event is guaranteed, which makes it easier to screen out the reference cloud body where the merging event will occur from multiple cloud bodies.
[0126] As an optional embodiment, before inputting the plurality of target cloud bodies within the reference time period into the target prediction model, the method further includes:
[0127] Acquire a first cloud body image within a candidate time period before the current moment, and a merging time of a second cloud body that is merged among a plurality of first cloud bodies included in the first cloud body image;
[0128] constructing a training sample according to the first cloud image, the second cloud, and the merge time of the second cloud;
[0129] The initial prediction model is trained using the training samples to obtain the target prediction model.
[0130] As an optional embodiment, the constructing a training sample according to the first cloud body image, the second cloud body, and the merging time of the second cloud body includes:
[0131] Performing grayscale enhancement on the first cloud image using a grayscale enhancement algorithm to obtain a second cloud image;
[0132] detecting the first cloud body from the second cloud body image using the target marking model, and marking the position of the first cloud body in the second cloud body image to obtain a third cloud body image;
[0133] The marking information of the second cloud body and the merging time of the second cloud body is added to the third cloud body image to obtain the training sample.
[0134] Optionally, in an embodiment of the present application, a grayscale enhancement algorithm is used to highlight cloud features in the first cloud image, thereby improving the contrast between the cloud features and non-cloud image positions in the first cloud image.
[0135] Optionally, in an embodiment of the present application, the target labeling model may be, but is not limited to, a pre-trained model for labeling cloud image areas. The target labeling model records the matching relationship between image features and cloud features, thereby determining whether the current image area belongs to the image area of the cloud based on the image features. This solution does not impose any limitations on this.
[0136] Through the above content, by performing grayscale enhancement on the cloud image, on the one hand, it is convenient for the target marking model to mark the position of the cloud from the cloud image, and on the other hand, it can also improve the accuracy of identifying the cloud information from the cloud image.
[0137] As an optional embodiment, the acquiring cloud body information of the plurality of cloud bodies within a reference time period before the current moment includes:
[0138] Acquire multiple frames of continuous fourth cloud body images acquired by the cloud body acquisition device within the reference time period;
[0139] Performing grayscale enhancement on the fourth cloud image using a grayscale enhancement algorithm to obtain a fifth cloud image;
[0140] Using the target marking model, a plurality of cloud bodies are detected from the fifth cloud body image, and positions of the plurality of cloud bodies are marked in the fifth cloud body image to obtain a target cloud body image;
[0141] Cloud parameters of each of the clouds are identified according to the target cloud image, wherein the cloud information includes the target cloud image and the cloud parameters.
[0142] Optionally, in an embodiment of the present application, the method for identifying cloud parameters based on the target cloud image may be to determine the position of the cloud in the image and cloud features, such as the area and size of the cloud, based on pixel features in the cloud image, or to calculate the movement parameters of the cloud based on the position of the same cloud in different cloud images. This solution is not limited to this.
[0143] By performing grayscale enhancement on a plurality of consecutive fourth cloud body images, the features of the cloud body in the image are made more obvious, which facilitates the subsequent identification of the cloud body position in the cloud body image and the cloud body parameters representing the cloud body features.
[0144] As an optional embodiment, identifying cloud parameters of each cloud according to the target cloud image includes:
[0145] Detecting target pixel points belonging to the corresponding cloud body in the marked area corresponding to the cloud body in the target cloud body image;
[0146] The sum of the target pixel points in the marked area is determined as the cloud area of the target cloud.
[0147] Optionally, in the embodiment of the present application,
[0148] As an optional embodiment, the detecting target pixel points belonging to the corresponding cloud body in the marked area corresponding to the cloud body in the target cloud body image includes:
[0149] Obtaining an average grayscale value of the marked area;
[0150] Generating a pixel parameter of the current pixel according to the average gray value and the gray value of the current pixel, wherein the pixel parameter is used to indicate an association relationship between the current pixel and the cloud body of the marked area;
[0151] When the pixel point parameter is greater than or equal to the target parameter value, the current pixel point is determined as the target pixel point.
[0152] Optionally, in the embodiment of the present application, the pixel point parameter may be, but is not limited to, used to indicate the probability that the current pixel point belongs to the cloud body in the area, and the pixel point parameter may be calculated in the following manner: the membership function is defined as:
[0153] ,
[0154] in, It's pixels The membership function (i.e., pixel parameter) indicates the degree to which the pixel belongs to the target area, and its value range is between 0 and 1. Pixel The gray value at is the average gray value of the target area, is a parameter that controls the width of the Gaussian function.
[0155] As an optional embodiment, identifying cloud parameters of each cloud according to the target cloud image includes:
[0156] The average grayscale value and the grayscale value of the current pixel are calculated using the following formula to obtain the pixel parameter of the current pixel:
[0157] ,
[0158] in, is the pixel parameter of the current pixel, is the gray value of the current pixel, is the average gray value, is a parameter that controls the width of the Gaussian function.
[0159] As an optional embodiment, identifying cloud parameters of each cloud according to the target cloud image includes:
[0160] Acquire the moving distance of the cloud body in the target cloud body images of adjacent frames;
[0161] The moving speed of the cloud body is calculated according to the moving distance and the acquisition time interval of the target cloud body images in adjacent frames, wherein the cloud body parameters include the moving speed.
[0162] In order to better understand the above process, the above process is described below in conjunction with an optional embodiment, but it is not intended to limit the technical solution of the embodiment of the present application.
[0163] The embodiment of the present application proposes a cloud body identification, tracking and merging judgment method based on deep learning, which can realize efficient and accurate judgment of convective cloud body merging events, and output the changes in the scale characteristics of the target convective cloud body before and after the merger, so as to provide key information for weather forecasting, especially sudden local precipitation warning.
[0164] The ordinary YOLO model does not include the special category of clouds, nor does it have the ability to identify and track cloud merging events; therefore, we first retrain the model (based on YOLO, input 10,000 labeled convective cloud images) to achieve accurate recognition of clouds, then mark the images containing cloud merging events (1000 consecutive 10-frame cloud merging moments), and use the Transformer model for training. This model is used to learn the characteristics of cloud merging events, that is, the cloud "merge discrimination module", which is embedded in the multi-target tracking model to track each cloud and output the cloud feature scale change information.
[0165] As an optional implementation, the embodiment of the present application also provides a convective cloud body merger identification and tracking system based on artificial intelligence methods. The present application proposes a neural network model based on the multi-target recognition and multi-target tracking, which can efficiently and accurately identify the target convective cloud body, and can identify the interaction between multiple targets, that is, judge and obtain the convective cloud body merger event. On this basis, the model output is improved to obtain the scale characteristic changes of the target convective cloud body before and after the merger that we are concerned about, so as to provide key information for weather forecasting, especially sudden local precipitation warning.
[0166] Figure 3 is a flowchart of the overall model of a neural network based on multi-target recognition and multi-target tracking according to an embodiment of the present application, such as Figure 3 As shown, the specific implementation steps are as follows:
[0167] 1. Data collection: Obtain a large amount of time-series images or video data containing cloud bodies (which can be satellite cloud images, radar echo combined reflectivity);
[0168] 2. Data preprocessing: Use video processing technology to analyze frame by frame and organize continuous image data into sequences so that subsequent models can process them; use a logarithmic transformation grayscale enhancement algorithm to highlight the color differences between clouds to better distinguish them;
[0169] 3. Data labeling: Use labeling tools to label the bounding boxes of clouds in consecutive images, and to label the moments when two or more clouds merge. In addition, label the overall bounding boxes of clouds that are about to merge before merging, and the bounding boxes of clouds after merging.
[0170] 4. Dataset division: training set, validation set and test set are allocated in a ratio of 6:2:2;
[0171] 5. Object detection model: Input the processed data set into the YOLOv5 model and train it to accurately identify and locate clouds, mark boxes and corresponding numbers, and obtain cloud features through pixel values: the average grayscale value in the area is the cloud intensity, and the number of pixels is the cloud size;
[0172] 6. Obtaining accurate edges: The existing YOLO model cannot obtain accurate model edges, so an improved image segmentation algorithm is applied within the identified box areas to obtain the irregular shape features of the cloud target.
[0173] This type of cloud target image has a large grayscale range, unclear boundaries, and a very regular distribution of segmented targets in the image. The semantics are simple and clear, and not particularly rich. The area is calculated by binarizing the output to identify the image pixel value, calculating the target pixel as 1 and the background pixel as 0, and then calculating the sum of the pixel values as the target area. The classic area calculation formula relies on the introduction of fuzzy logic into the binary image to deal with the blurred boundary situation, making the area calculation more accurate. The membership function is defined as
[0174] ,
[0175] in, It's pixels The membership function indicates the degree to which the pixel belongs to the target area, and its value range is between 0 and 1. Pixel The gray value at is the average gray value of the target area, is a parameter that controls the width of the Gaussian function.
[0176] 7. Merge event criteria: Merge events are quite complex, and different criteria should be adopted for different data: In satellite cloud images, the edge contact of two or more cloud bodies is considered a merge event; in radar combined echo reflectivity, the edge contact of 30 dBZ echoes is considered a merge event;
[0177] 8. Model construction and training of the “merge discrimination module” (i.e., target prediction model): Design the Transformer model encoder network, input the labeled samples into the Transformer model for training, and use “merge events” as the anomaly detection target. The model learns the representation of the normal case “no merge” and the abnormal case “merge events”.
[0178] Figure 4 is a schematic diagram of merging event prediction according to an embodiment of the present application, such as Figure 4 As shown in the figure, the continuous grayscale image obtained by the above processing is converted into a feature vector by the encoder. After embedding the position information, it passes through a multi-head (e.g., 8-head) self-attention mechanism feedforward network layer. There are 6 layers in total, and each layer finally contains a normalization layer. The output of the encoder is processed by a final linear layer and a softmax layer to output the probability of cloud merging events. Since there is no need to predict behavior, the model does not contain a decoder structure. The cross entropy loss function is used to optimize and update the model parameters; the model is tuned based on the performance of the validation set, and the learning rate, the number of network layers, the activation function, etc. are adjusted to optimize the model structure and parameters, and the trained "merge discrimination module" (i.e., the target prediction model, used to predict cloud merging events and event parameters of cloud merging events) is obtained.
[0179] 9. Multi-target tracking model (used to predict the initial cloud information of each reference cloud at the reference time before the target time based on the cloud information of the reference cloud): Use the multi-target tracking model to achieve matching and tracking of continuous images of each target object, and achieve speed solution, and in this process use the judgment of the multi-target merging process obtained in step 8 (this is a correction and supplement to the existing technical model). Figure 5 is a multi-target tracking model training calculation flow chart according to an embodiment of the present application, such as Figure 5 As shown in the figure, the main principle is to use the improved Kalman filter model (multi-target tracking model) to predict the new position of the target, match the predicted position with the currently detected target, and pass the trajectory information of each cloud body to the "merge discrimination module" for in-depth analysis. The following four possible situations are respectively corresponded:
[0180] ① When adjacent frames are matched, the model considers the track that does not match the target track as a newly added cloud;
[0181] Assume that the initial target state is expressed as:
[0182] ,
[0183] is the initial position, is the initial speed.
[0184] The predicted target state of the adjacent frames is:
[0185] ,
[0186] in, is the predicted state vector, is the predicted covariance matrix, is the state transition matrix, is the control input matrix, is the control input model, is the process noise covariance matrix;
[0187] ② For the trajectory whose track matches the target but does not match the target, it is considered to be a disappearing cloud body;
[0188] ③ For the trajectory of "target matching trajectory matching", it is considered to be an independent and continuously developing cloud body;
[0189] The update process is: The update steps are:
[0190] ,
[0191] in is the Kalman gain, is the observed value, is the observation matrix, is the observation noise covariance matrix.
[0192] ④ For the continuous frames identified by the “Merge Discrimination Module”, the following method is used for prediction. Assume that there are n cloud bodies merged, and the state vector of each cloud body is , the covariance matrix is , i=1,2,…,n.
[0193] The combined estimates are weighted. To better reflect the uncertainty of each cloud, the weights are calculated by the inverse of the covariance matrix of each cloud according to the following formula:
[0194] ,
[0195] in is the trace of the P matrix (the sum of the elements on the diagonal).
[0196] Then the merged state vector is:
[0197] ,
[0198] The combined covariance matrix is:
[0199] ,
[0200] Thus, the trajectory updates and covariances of all current situations are obtained, and the matching and prediction process of the next frame is carried out.
[0201] 10. After the above-mentioned judgment is completed, the convective cloud characteristics before and after the merger are additionally output, such as area, speed, number of merged clouds and other key information.
[0202] The embodiment of the present application provides a convective cloud merger identification and tracking system based on artificial intelligence methods, which uses artificial intelligence technology to replace traditional algorithms, saves computing resources, and is faster. It can identify cloud mergers in real time, thereby greatly improving timeliness and providing important and timely reference information for severe convective weather warnings and forecasts. By designing and training a "merger identification module" based on deep learning, it can not only improve the accuracy and robustness of cloud tracking, but also effectively detect and confirm cloud merger events, providing strong technical support for meteorological forecasts and climate research.
[0203] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0204] In this embodiment, a cloud body information prediction device is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0205] Figure 6 is a structural block diagram of a cloud body information prediction device according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:
[0206] The acquisition module 602 is used to acquire cloud information of multiple clouds in a reference time period before the current moment, wherein the cloud information is used to indicate changes in cloud characteristics of the clouds in the reference time period;
[0207] A first prediction module 604 is used to predict, based on the cloud body information, a reference cloud body in which a merging event will occur among the plurality of cloud bodies and a target time for the merging of the reference cloud bodies;
[0208] A second prediction module 606 is configured to predict initial cloud information of each reference cloud at a reference time before the target time based on the cloud information of the reference cloud, wherein the relative distance between the reference cloud bodies at the reference time satisfies a target distance condition;
[0209] The conversion module 608 is configured to convert the initial cloud information into target cloud information of the target cloud obtained by merging the reference cloud at the target time.
[0210] Through the above content, by obtaining cloud body information that characterizes the changes in cloud body characteristics of multiple cloud bodies in the reference time period before the current moment, the reference cloud body where the cloud body merging event will occur and the target time when the reference cloud body merging will occur can be predicted based on the cloud body information, thereby using the cloud body information of the reference cloud body to predict the initial cloud body information of each reference cloud body at the reference time before the merging event occurs, so that the target cloud body information after the merging of multiple reference clouds at the target time can be converted based on the multiple initial cloud body information, and the accurate prediction of the merged cloud body information can be achieved under the condition of accurately predicting the reference cloud body that will be merged and the merging time of the reference cloud body. Therefore, the problem of low prediction efficiency and accuracy of cloud body information can be solved, and the effect of improving the prediction efficiency and accuracy of cloud body information can be achieved.
[0211] Optionally, the conversion module includes:
[0212] A first acquisition unit is used to acquire a weight parameter of each of the reference clouds, wherein the weight parameter is used to indicate the influence of the reference cloud on the cloud parameters of the merged target cloud;
[0213] The first calculation unit is configured to perform weighted sum calculation on initial cloud body parameters using the weight parameters to obtain the target cloud body parameters, wherein the initial cloud body information includes the initial cloud body parameters, and the target cloud body information includes the target cloud body parameters.
[0214] Optionally, the first acquiring unit is further used to:
[0215] Acquire a reference gain parameter of the reference cloud, wherein the reference gain parameter is used to indicate the influence of other cloud bodies among the plurality of cloud bodies except the current reference cloud body on the current reference cloud body;
[0216] The ratio of the reference gain parameter of each reference cloud body to the reference gain parameters of all the reference cloud bodies is calculated to obtain the weight parameter of the corresponding reference cloud body.
[0217] Optionally, the second prediction module includes:
[0218] A second acquisition unit, used to acquire a target time interval between the end time of the reference time period and the reference time;
[0219] a prediction unit, configured to predict reference cloud parameters of a plurality of target moments included in the target time interval using reference gain parameters of the reference cloud and cloud parameters of the reference cloud, wherein the latter reference cloud parameters of the reference cloud parameters adjacent to the target moments are obtained by calculating the former reference cloud parameters using the reference gain parameters, the reference gain parameters are used to indicate the influence of other cloud bodies among the plurality of cloud bodies except the current reference cloud body on the current reference cloud body, and the cloud body information includes the cloud body parameters;
[0220] The first determining unit is configured to determine the reference cloud body parameters corresponding to the reference time as initial cloud body parameters, wherein the initial cloud body information includes the initial cloud body parameters.
[0221] Optionally, the device further includes:
[0222] A second acquisition module is configured to acquire a weight parameter of each of the reference clouds after converting the target cloud information obtained by merging the reference clouds at the target time according to the initial cloud information, wherein the weight parameter is used to indicate the influence of the reference cloud on the cloud parameters of the merged target cloud;
[0223] A calculation module is used to use the weight parameter to perform weighted sum calculation on the reference gain parameter to obtain a target gain parameter of the target cloud body, wherein the target gain parameter is used to indicate the influence of other cloud bodies on the target cloud body.
[0224] Optionally, the first prediction module includes:
[0225] an input unit, configured to input a target cloud body image within the reference time period into a target prediction model, so that the target prediction model outputs a plurality of cloud body merging events and event parameters of each cloud body merging event, wherein the cloud body merging event is used to indicate a cloud body for which a merging event will occur and a merging time of the cloud body, and the event parameters are used to indicate an occurrence probability of the corresponding cloud body merging event, the target cloud body image is an image recording a plurality of the cloud bodies, and the cloud body information includes the target cloud body image;
[0226] a screening unit, configured to screen out a target cloud body merging event from the plurality of cloud body merging events according to the event parameter, wherein the occurrence probability of the target cloud body merging event is greater than or equal to a target probability value;
[0227] The second determining unit is configured to determine the merged cloud indicated by the target cloud merge event as the reference cloud, and to determine the cloud merge time indicated by the target cloud merge time as the target time.
[0228] Optionally, the device further includes:
[0229] a third acquisition module, configured to acquire, before inputting the plurality of target cloud bodies within the reference time period into the target prediction model, a first cloud body image within a candidate time period before a current moment, and a merging time of a second cloud body that is merged among the plurality of first cloud bodies included in the first cloud body image;
[0230] A processing module, configured to construct a training sample according to the first cloud body image, the second cloud body, and the merging time of the second cloud body;
[0231] A training module is used to train the initial prediction model using the training samples to obtain the target prediction model.
[0232] Optionally, the processing module includes:
[0233] A first processing unit is configured to perform grayscale enhancement on the first cloud image using a grayscale enhancement algorithm to obtain a second cloud image;
[0234] a second processing unit, configured to detect the first cloud body from the second cloud body image by using a target marking model, and mark a position of the first cloud body in the second cloud body image to obtain a third cloud body image;
[0235] The third processing unit is used to add the marking information of the second cloud body and the merging time of the second cloud body to the third cloud body image to obtain the training sample.
[0236] Optionally, the acquisition module includes:
[0237] A fifth acquisition unit, configured to acquire a plurality of continuous frames of fourth cloud body images acquired by the cloud body acquisition device within the reference time period;
[0238] an enhancement unit, configured to perform grayscale enhancement on the fourth cloud image using a grayscale enhancement algorithm to obtain a fifth cloud image;
[0239] a marking unit, configured to detect a plurality of cloud bodies from the fifth cloud body image using a target marking model, and mark positions of the plurality of cloud bodies in the fifth cloud body image to obtain a target cloud body image;
[0240] An identification unit is used to identify cloud parameters of each of the clouds according to the target cloud image, wherein the cloud information includes the target cloud image and the cloud parameters.
[0241] Optionally, the identification unit is further used to:
[0242] Detecting target pixel points belonging to the corresponding cloud body in the marked area corresponding to the cloud body in the target cloud body image;
[0243] The sum of the target pixel points in the marked area is determined as the cloud area of the target cloud.
[0244] Optionally, the identification unit is further used to:
[0245] Obtaining an average grayscale value of the marked area;
[0246] Generating a pixel parameter of the current pixel according to the average gray value and the gray value of the current pixel, wherein the pixel parameter is used to indicate an association relationship between the current pixel and the cloud body of the marked area;
[0247] When the pixel point parameter is greater than or equal to the target parameter value, the current pixel point is determined as the target pixel point.
[0248] Optionally, the identification unit is further used to:
[0249] The average grayscale value and the grayscale value of the current pixel are calculated using the following formula to obtain the pixel parameter of the current pixel:
[0250] ,
[0251] in, is the pixel parameter of the current pixel, is the gray value of the current pixel,
[0252] is the average gray value, is a parameter that controls the width of the Gaussian function.
[0253] As an optional implementation manner, the identification unit is further used to:
[0254] Acquire the moving distance of the cloud body in the target cloud body images of adjacent frames;
[0255] The moving speed of the cloud body is calculated according to the moving distance and the acquisition time interval of the target cloud body images in adjacent frames, wherein the cloud body parameters include the moving speed.
[0256] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0257] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0258] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0259] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0260] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0261] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0262] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0263] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.
[0264] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0265] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0266] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for predicting cloud information, characterized in that: include: Acquire cloud body information of multiple cloud bodies within a reference time period before a current moment, wherein the cloud body information is used to indicate a change in cloud body characteristics of each cloud body within the reference time period; Predicting, based on the cloud body information, a reference cloud body in which a merging event will occur among the plurality of cloud bodies and a target time for the merging of the reference cloud bodies; Predicting initial cloud information of each reference cloud at a reference time before the target time based on the cloud information of the reference cloud, wherein the relative distance between the reference cloud bodies at the reference time satisfies a target distance condition; Convert the target cloud information of the target cloud obtained by merging the reference cloud at the target time according to the initial cloud information; Wherein, predicting the initial cloud body information of each reference cloud body at a reference time before the target time according to the cloud body information of the reference cloud body comprises: obtaining a target time interval between an end time of the reference time period and the reference time; predicting the reference cloud body parameters of multiple target moments included in the target time interval using a reference gain parameter of the reference cloud body and a cloud body parameter of the reference cloud body, wherein the latter reference cloud body parameter among the reference cloud body parameters adjacent to the target time moments is calculated using the reference gain parameter to the previous reference cloud body parameter, the reference gain parameter is used to indicate the influence of other cloud bodies among the multiple cloud bodies except the current reference cloud body on the current reference cloud body, and the cloud body information comprises the cloud body parameters; determining the reference cloud body parameters corresponding to the reference time as the initial cloud body parameters, wherein the initial cloud body information comprises the initial cloud body parameters.
2. The method according to claim 1, characterized in that: The step of converting the target cloud information of the target cloud obtained by merging the reference cloud at the target time according to the initial cloud information includes: Acquire a weight parameter of each of the reference clouds, wherein the weight parameter is used to indicate the influence of the reference cloud on the cloud parameters of the merged target cloud; The weight parameters are used to perform weighted sum calculation on the initial cloud body parameters to obtain target cloud body parameters, wherein the initial cloud body information includes the initial cloud body parameters, and the target cloud body information includes the target cloud body parameters.
3. The method according to claim 2, characterized in that The obtaining of the weight parameter of each reference cloud body includes: Acquire a reference gain parameter of the reference cloud, wherein the reference gain parameter is used to indicate the influence of other cloud bodies among the plurality of cloud bodies except the current reference cloud body on the current reference cloud body; The ratio of the reference gain parameter of each reference cloud body to the reference gain parameters of all the reference cloud bodies is calculated to obtain the weight parameter of the corresponding reference cloud body.
4. The method according to claim 1, characterized in that: After converting the target cloud information of the target cloud obtained by merging the reference cloud bodies according to the initial cloud body information at the target time, the method further includes: Acquire a weight parameter of each of the reference clouds, wherein the weight parameter is used to indicate the influence of the reference cloud on the cloud parameters of the merged target cloud; The reference gain parameter is weightedly summed using the weight parameter to obtain a target gain parameter of the target cloud body, wherein the target gain parameter is used to indicate the influence of other cloud bodies on the target cloud body.
5. The method according to claim 1, characterized in that The step of predicting, based on the cloud body information, a reference cloud body in which a merging event will occur and a target time for the merging of the reference cloud bodies to occur, comprises: Inputting the target cloud image within the reference time period into the target prediction model, the target prediction model outputs a plurality of cloud merging events and event parameters of each cloud merging event, wherein the cloud merging event is used to indicate a cloud body for which a merging event will occur and a merging time of the cloud body, the event parameters are used to indicate an occurrence probability of the corresponding cloud merging event, the target cloud image is an image recording a plurality of the cloud bodies, and the cloud body information includes the target cloud image; Filtering a target cloud body merging event from the plurality of cloud body merging events according to the event parameters, wherein the occurrence probability of the target cloud body merging event is greater than or equal to a target probability value; The cloud body that is merged indicated by the target cloud body merging event is determined as the reference cloud body, and the cloud body merging time indicated by the target cloud body merging time is determined as the target time.
6. The method according to claim 5, characterized in that Before inputting the plurality of target cloud bodies within the reference time period into the target prediction model, the method further includes: Acquire a first cloud body image within a candidate time period before the current moment, and a merging time of a second cloud body that is merged among a plurality of first cloud bodies included in the first cloud body image; constructing a training sample according to the first cloud image, the second cloud, and the merge time of the second cloud; The initial prediction model is trained using the training samples to obtain the target prediction model.
7. The method according to claim 6, characterized in that The constructing a training sample according to the first cloud image, the second cloud, and the merge time of the second cloud includes: Performing grayscale enhancement on the first cloud image using a grayscale enhancement algorithm to obtain a second cloud image; detecting the first cloud body from the second cloud body image using the target marking model, and marking the position of the first cloud body in the second cloud body image to obtain a third cloud body image; The marking information of the second cloud body and the merging time of the second cloud body is added to the third cloud body image to obtain the training sample.
8. The method according to claim 1, characterized in that The acquiring cloud body information of a plurality of cloud bodies within a reference time period before the current moment includes: Acquire multiple frames of continuous fourth cloud body images acquired by the cloud body acquisition device within the reference time period; Performing grayscale enhancement on the fourth cloud image using a grayscale enhancement algorithm to obtain a fifth cloud image; Using the target marking model, a plurality of cloud bodies are detected from the fifth cloud body image, and positions of the plurality of cloud bodies are marked in the fifth cloud body image to obtain a target cloud body image; Cloud parameters of each of the clouds are identified according to the target cloud image, wherein the cloud information includes the target cloud image and the cloud parameters.
9. The method according to claim 8, characterized in that The step of identifying cloud parameters of each cloud according to the target cloud image includes: Detecting target pixel points belonging to the corresponding cloud body in the marked area corresponding to each cloud body in the target cloud body image; The sum of the target pixel points in the marked area is determined as the cloud area of the target cloud.
10. The method according to claim 9, characterized in that The detecting, in the marked area corresponding to each of the cloud bodies in the target cloud body image, target pixel points belonging to the corresponding cloud body comprises: Obtaining an average grayscale value of the marked area; Generating a pixel parameter of the current pixel according to the average gray value and the gray value of the current pixel, wherein the pixel parameter is used to indicate an association relationship between the current pixel and each of the cloud bodies in the marked area; When the pixel point parameter is greater than or equal to the target parameter value, the current pixel point is determined as the target pixel point.
11. The method according to claim 10, characterized in that The step of identifying cloud parameters of each cloud according to the target cloud image includes: The average grayscale value and the grayscale value of the current pixel are calculated using the following formula to obtain the pixel parameter of the current pixel: , in, is the pixel parameter of the current pixel, is the gray value of the current pixel, is the average gray value, is a parameter that controls the width of the Gaussian function.
12. The method according to claim 8, characterized in that The step of identifying cloud parameters of each cloud according to the target cloud image includes: Acquire the moving distance of each cloud body in the target cloud body image of adjacent frames; The moving speed of each cloud body is calculated according to the moving distance and the acquisition time interval of the target cloud body images of adjacent frames, wherein the cloud body parameters include the moving speed.
13. A cloud information prediction device, characterized in that: include: An acquisition module, used to acquire cloud body information of multiple cloud bodies within a reference time period before a current moment, wherein the cloud body information is used to indicate a change in cloud body characteristics of each cloud body within the reference time period; A first prediction module is used to predict, based on the cloud body information, a reference cloud body in which a merging event will occur among the plurality of cloud bodies and a target time for the merging of the reference cloud bodies to occur; A second prediction module is used to predict the initial cloud body information of each reference cloud body at a reference time before the target time according to the cloud body information of the reference cloud body, wherein the relative distance between the reference cloud bodies at the reference time satisfies the target distance condition; A conversion module, configured to convert the target cloud information of the target cloud body obtained by merging the reference cloud bodies at the target time according to the initial cloud body information; The second prediction module further includes: an acquisition unit, configured to acquire a target time interval between the end time of the reference time period and the reference time; a prediction unit, configured to predict reference cloud parameters of multiple target moments included in the target time interval using reference gain parameters of the reference cloud body and cloud parameters of the reference cloud body, wherein the latter reference cloud parameters of the reference cloud body parameters adjacent to the target moments are obtained by calculating the former reference cloud body parameters using the reference gain parameters, the reference gain parameters are used to indicate the influence of other cloud bodies among the multiple cloud bodies except the current reference cloud body on the current reference cloud body, and the cloud body information includes the cloud body parameters; a determination unit, configured to determine the reference cloud body parameters corresponding to the reference time as initial cloud body parameters, wherein the initial cloud body information includes the initial cloud body parameters.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 12 when executed by a processor.
15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 12 are implemented.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 12 are implemented.
