# US 2025/0156688 A1 · Rainfall prediction method, system, device and medium based on machine learning

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0156688 A1
- Document ID: US20250156688A1
- Status: Published application
- Kind: A1
- Application number: 19/023,271
- Filed: 2025-01-15
- Published: 2025-05-15
- Earliest claimed: 2024-03-13
- Assignees: Hubei University
- Applicants: Hubei University
- Inventors: Xiang Wang; Cao Yuan; Wenjie Yin; Chen Zhou
- Web page: https://patentgrep.com/patent/US20250156688A1

## CPC

- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- Y02A 90/10: Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- Y02A: TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE

## Abstract

The present invention is a rainfall prediction method, system, device and medium based on machine learning, which relates to the field of meteorological prediction technology. It uses atmospheric precipitable water volume (PWV) data, rainfall data and related meteorological parameters to input into a trained rainfall prediction network, and realizes accurate prediction of rainfall through an improved Transformer model. The model includes an encoder, a decoder and a final output layer, wherein feature extraction is performed inside the encoder through a multi-head probabilistic sparse self-attention module and a distillation module, and the encoder output containing feature information is used as the input of the decoder. The decoder passes through the decoder mask multi-head probabilistic sparse self-attention layer, and performs a multi-head self-attention operation with the intermediate result output by the encoder, and finally adjusts the data output dimension through a fully connected layer to generate a prediction result.

## Claims

### Claim 1

A rainfall prediction method based on machine learning, characterized in that it comprises the following steps:
Constructing a rainfall prediction model based on machine learning, wherein the rainfall prediction model includes an encoder, a decoder and a fully connected layer; wherein the encoder is used to encode the meteorological sequence data and extract the encoded dependent feature data; the decoder is used to perform masked multi-head probabilistic sparse self-attention processing on the dependent feature data, and perform multi-head self-attention processing in combination with the encoded input sequence data, thereby obtaining long-distance dependent feature data; wherein the fully connected layer is used to adjust the long-distance dependent features processed by the convolutional attention layer of the decoder, and set the output latitude of the data after the multi-head attention layer to 1;
Collecting meteorological data and obtaining serial data about meteorology;
Inputting meteorological sequence data into the rainfall prediction model to obtain rainfall prediction results.

### Claim 2 (depends on 1)

The method according to the rainfall prediction method based on machine learning of claim 1, characterized in that the encoder includes a multi-head probabilistic sparse self-attention module and a distillation module, the multi-head probabilistic sparse self-attention module performs feature extraction and compression on the input sequence data to obtain the dependency features between the input data, and the distillation module distills the information in the encoder self-attention layer to extract key features.

### Claim 3 (depends on 1)

The method according to the rainfall prediction method based on machine learning in claim 1, it is characterized in that the decoder includes a convolutional attention module and a multi-head attention mechanism; the convolutional attention module calculates the encoded input sequence to obtain high-level features and captures neighbor dependency features to obtain an intermediate variable that is further input into the decoder to process data; and the intermediate variable is input into the multi-head attention mechanism to capture long-distance dependency features;
Wherein, the long-distance dependency features are projected to the original dimension of the time series through a fully connected layer to obtain the output of the decoder.

### Claim 4 (depends on 1)

The rainfall prediction method based on machine learning according to claim 1, characterized in that the fully connected layer comprises:
Select a length of the input long sequence as Ltoken a time series, which is an earlier sequence before the output long sequence;
Wherein, taking the time series β, with an input time point length X, wherein X={stα+1, stα+2, . . . , stα+168}, the generative reasoning will take 128 time points before the known target sequence as token, wherein Xfeed={st1, st2, . . . , stα}, pass it back to the decoder, wherein si represents the ith time series of the moment.

### Claim 5 (depends on 1)

The rainfall prediction method based on machine learning according to claim 1, characterized in that the meteorological data includes atmospheric precipitable water volume (PWV) data, rainfall data, and temperature, humidity, and pressure data.

### Claim 6 (depends on 1)

A rainfall prediction system based on machine learning capable of performing the method of claim 1, comprising:
A data collection module, capable of collecting meteorological data and obtaining sequence data about meteorology;
A data processing module capable of building a rainfall prediction model based on machine learning, including an encoder, a decoder, and a fully connected layer, wherein input weather sequence data is processed by the encoder to obtain dependency feature data between encoded input sequence and the data, wherein the decoder receives feature data passed in by the encoder, processes it through masked multi-head probabilistic sparse self-attention, and then combines it with the encoded input sequence for multi-head self-attention processing to obtain long-distance dependency features;
A result prediction module, based on the acquired long-distance dependency features, which is capable of adjusting the output latitude of the data after passing through the decoder convolutional attention layer and the multi-head attention layer to 1 through the fully connected layer, generating the rainfall prediction result.

### Claim 7

A computer device, characterized in that the computer device comprises a memory and a processor, wherein the memory is capable of storing a computer program, and when the computer program is executed by the processor, the processor executes the following steps:
Constructing a rainfall prediction model based on machine learning, wherein the rainfall prediction model includes an encoder, a decoder and a fully connected layer; wherein the encoder is used to encode the meteorological sequence data and extract the encoded dependent feature data; the decoder is used to perform masked multi-head probabilistic sparse self-attention processing on the dependent feature data, and perform multi-head self-attention processing in combination with the encoded input sequence data, thereby obtaining long-distance dependent feature data; wherein the fully connected layer is used to adjust the long-distance dependent features processed by the convolutional attention layer of the decoder, and set the output latitude of the data after the multi-head attention layer to 1;
Collecting meteorological data and obtaining serial data about meteorology;
Inputting meteorological sequence data into the rainfall prediction model to obtain rainfall prediction results.

### Claim 8

A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the following steps:
Constructing a rainfall prediction model based on machine learning, wherein the rainfall prediction model includes an encoder, a decoder and a fully connected layer; wherein the encoder is used to encode the meteorological sequence data and extract the encoded dependent feature data; the decoder is used to perform masked multi-head probabilistic sparse self-attention processing on the dependent feature data, and perform multi-head self-attention processing in combination with the encoded input sequence data, thereby obtaining long-distance dependent feature data; wherein the fully connected layer is used to adjust the long-distance dependent features processed by the convolutional attention layer of the decoder, and set the output latitude of the data after the multi-head attention layer to 1;
Collecting meteorological data and obtaining serial data about meteorology;
Inputting meteorological sequence data into the rainfall prediction model to obtain rainfall prediction results.
