Purse seine culture water temperature prediction method and electronic equipment

Through a multi-step prediction model, the global and local characteristic information of water temperature in seine culture is extracted, and combined with the autoregressive results, the problem of inaccurate water temperature prediction in the existing technology is solved and the accuracy of prediction is improved.

CN118656724AActive Publication Date: 2024-09-17CHINA AGRI UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410686450.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-17
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

The existing deep neural network model cannot fully analyze the correlation between external factors and water temperature when predicting water temperature in pen culture, resulting in inaccurate prediction results.

Method used

A multi-step prediction model is used to predict water temperature by extracting global and local characteristic information of water quality parameters and climate parameters at historical moments, combined with autoregressive results, to improve the accuracy of prediction.

Benefits of technology

By comprehensively considering the spatiotemporal correlation of climate parameters and water quality parameters in the fenced breeding area and the spatial distribution pattern of the water body, the defect of the self-attention mechanism that may ignore some factors is overcome, and the accuracy of water temperature prediction is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656724A
    Figure CN118656724A
Patent Text Reader

Abstract

The invention discloses a purse seine culture water temperature prediction method and electronic equipment. The method comprises the steps of obtaining first data; the first data comprises a plurality of input parameters corresponding to the fence breeding area at a plurality of historical moments, the input parameters at least comprise water quality parameters and climate parameters, and the water quality parameters at least comprise water temperature parameters; using a multi-step prediction model to extract global feature information and local feature information corresponding to the first data, the global feature information representing a mutual relationship between the input parameters; the local feature information represents a mutual relation between the input parameter and the water temperature parameter; second data are obtained at least according to the global feature information and the local feature information through the multi-step prediction model, and the second data comprise water temperature prediction values corresponding to the fence breeding area at multiple future moments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of enclosure aquaculture, and in particular to a method for predicting water temperature in enclosure aquaculture and electronic equipment. Background Art

[0002] When aquaculture is carried out in offshore enclosures, the openness of the aquaculture environment makes the water temperature susceptible to the temporal and spatial influences of external factors, and the correlation between each external factor and water temperature is also different.

[0003] However, the existing deep neural network model is unable to comprehensively analyze the correlation information between external factors and water temperature when predicting water temperature, which may lead to inaccurate predicted water temperature. Summary of the invention

[0004] In view of the above problems, the present application provides a method and electronic device for predicting water temperature in enclosure aquaculture, in order to improve the accuracy of the predicted water temperature. The specific scheme is as follows:

[0005] The first aspect of the present application provides a method for predicting water temperature in enclosure aquaculture, the method comprising:

[0006] Obtaining first data; the first data includes: a plurality of input parameters corresponding to the fenced breeding area at a plurality of historical moments, the input parameters at least including: water quality parameters and climate parameters, the water quality parameters at least including water temperature parameters;

[0007] Using a multi-step prediction model, extracting global feature information and local feature information corresponding to the first data, wherein the global feature information represents the relationship between the input parameters; and the local feature information represents the relationship between the input parameters and the water temperature parameter;

[0008] The multi-step prediction model is used to obtain second data based at least on the global feature information and the local feature information. The second data includes: predicted water temperature values ​​corresponding to the fence breeding area at multiple future moments.

[0009] In a possible implementation, extracting global feature information corresponding to the first data using a multi-step prediction model includes:

[0010] Performing convolution processing on the first data to obtain a data convolution result, wherein the data convolution result represents a local correlation change of the first data in a feature dimension;

[0011] Adding time series position information to the data convolution result to obtain a position encoding result; the time series position information represents the historical moment;

[0012] Processing the data convolution result and the position encoding result to obtain a data embedding result;

[0013] At least the data embedding result is processed to obtain the global feature information.

[0014] In a possible implementation, using a multi-step prediction model to extract local feature information corresponding to the first data at least includes:

[0015] Processing the first data to obtain a strongly correlated variable; the strongly correlated variable represents the relationship between the input parameter that satisfies a strong correlation condition with the water temperature parameter and the water temperature parameter;

[0016] The strongly correlated variables are processed to obtain the local feature information.

[0017] In a possible implementation, using a multi-step prediction model to extract local feature information corresponding to the first data at least includes:

[0018] Processing the first data to obtain a weakly correlated variable; the weakly correlated variable represents the relationship between the input parameter that satisfies a weakly correlated condition with the water temperature parameter and the water temperature parameter;

[0019] The weakly correlated variables are processed to obtain the local feature information.

[0020] In a possible implementation, processing the strongly correlated variables to obtain the local feature information includes:

[0021] Performing convolution processing on the strongly correlated variables to obtain variable convolution results;

[0022] The variable convolution result is processed to obtain the local feature information.

[0023] In a possible implementation, obtaining the second data by using the multi-step prediction model at least according to the global feature information and the local feature information includes:

[0024] fusing the global feature information and the local feature information to obtain fused feature information;

[0025] The water temperature prediction value is obtained according to the fused feature information.

[0026] In a possible implementation, the method further includes:

[0027] Processing the first data to obtain an autoregression result, wherein the autoregression result at least characterizes the volatility of the water temperature parameter with respect to the time series;

[0028] Wherein, obtaining the second data by using the multi-step prediction model at least according to the global feature information and the local feature information includes:

[0029] The water temperature prediction value is obtained according to the global feature information, the local feature information and the autoregression result.

[0030] In a possible implementation, obtaining the water temperature prediction value according to the global feature information, the local feature information and the autoregression result includes:

[0031] fusing the global feature information and the local feature information to obtain fused feature information;

[0032] Processing the fused feature information to obtain a first prediction value;

[0033] Processing the autoregression result to obtain a second prediction value;

[0034] The water temperature prediction value is obtained according to the first prediction value and the second prediction value.

[0035] In a possible implementation, the water quality parameters include at least: water temperature detection values ​​corresponding to multiple water depths in the fence breeding area, dissolved oxygen values ​​corresponding to each of the water depths, and pH values ​​corresponding to each of the water depths;

[0036] The climate parameters include at least: air temperature, relative humidity, ground wind speed, air pressure, precipitation and radiation.

[0037] The second aspect of the present application provides a device for predicting water temperature in a fence aquaculture, comprising:

[0038] A data acquisition unit is used to acquire first data; the first data includes: a plurality of input parameters corresponding to the fenced breeding area at a plurality of historical moments, the input parameters at least include: water quality parameters and climate parameters, the water quality parameters at least include water temperature parameters;

[0039] A data control unit is used to extract global feature information and local feature information corresponding to the first data using a multi-step prediction model, wherein the global feature information represents the relationship between the input parameters; the local feature information represents the relationship between the input parameters and the water temperature parameters; and using the multi-step prediction model, at least based on the global feature information and the local feature information, obtain second data, wherein the second data includes: predicted water temperature values ​​corresponding to the fence breeding area at multiple future moments.

[0040] The third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the method for predicting water temperature in fence aquaculture according to the first aspect or any implementation of the first aspect.

[0041] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0042] The memory is used to store the computer program and the data generated by the operation of the computer program;

[0043] The processor is used to execute the computer program so that the electronic device can implement the method for predicting water temperature in enclosure aquaculture according to the first aspect or any implementation of the first aspect.

[0044] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the method for predicting water temperature in fence aquaculture according to the first aspect or any implementation of the first aspect.

[0045] By means of the above-mentioned technical scheme, in a method and electronic device for predicting water temperature in enclosure aquaculture provided by the present application, global feature information and local feature information corresponding to multiple input parameters are extracted through a multi-step prediction model, thereby at least comprehensively considering the spatiotemporal correlation between climate parameters and water quality parameters in the enclosure aquaculture area, the spatial distribution law of water bodies, and the time dependence of time series data in the historical period, wherein the global feature information is used to focus on the complex relationship between the input parameters, and the local feature information can overcome the defect that the global feature information ignores the influence of some input parameters on the water temperature. Therefore, the global feature information and the local feature information can be combined to predict the water temperature, which can improve the accuracy of the water temperature prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 A flow chart of a method for predicting water temperature in a fence aquaculture provided in an embodiment of the present application;

[0048] Figure 2 This is an example diagram of a fenced breeding area;

[0049] Figure 3This is a flowchart of obtaining global feature information in an embodiment of the present application;

[0050] Figure 4 This is a schematic diagram of the structure of the global feature extraction module in the embodiment of the present application;

[0051] Figure 5 This is a flow chart of obtaining local feature information in an embodiment of the present application;

[0052] Figure 6 This is a schematic diagram of the structure of a local feature extraction module in an embodiment of the present application;

[0053] Figure 7 A flowchart of obtaining local feature information corresponding to strongly correlated variables in an embodiment of the present application;

[0054] Figure 8 This is a schematic diagram of the structure of the first coordination attention module in an embodiment of the present application;

[0055] Fig. 9 Another flow chart of obtaining local feature information in an embodiment of the present application;

[0056] Fig.10 Another structural diagram of the local feature extraction module in the embodiment of the present application;

[0057] Fig.11 This is a flowchart of obtaining local feature information corresponding to weakly correlated variables in an embodiment of the present application;

[0058] Fig.12 This is a schematic diagram of the structure of the second coordination attention module in an embodiment of the present application;

[0059] Fig.13 This is a flow chart for obtaining a water temperature prediction value in an embodiment of the present application;

[0060] Fig.14 This is a schematic diagram of the structure of the multi-step prediction model in the embodiment of the present application;

[0061] Fig.15 A flow chart of a method for predicting water temperature in a fence aquaculture provided in an embodiment of the present application;

[0062] Fig.16 Another schematic diagram of the structure of the multi-step prediction model in the embodiment of the present application;

[0063] Fig.17 Another flow chart for obtaining a water temperature prediction value in an embodiment of the present application;

[0064] Fig.18 Another schematic diagram of the structure of the multi-step prediction model in the embodiment of the present application;

[0065] Fig.19A schematic diagram of the structure of a device for predicting water temperature in a fence aquaculture provided in an embodiment of the present application;

[0066] Fig. 20 A schematic diagram of the structure of an electronic device in an embodiment of the present application;

[0067] Fig.21 This is an example diagram of water temperature prediction using the multi-step prediction model in this application;

[0068] Fig. 22 Schematic diagram of the CA module in the local feature extraction module in this application. DETAILED DESCRIPTION

[0069] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0070] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0071] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0072] The feed intake, growth rate, quality, and growth safety of farmed aquatic products are closely related to water temperature. At the same time, marine aquaculture is a weak industry with the characteristics of high frequency of disasters and large losses. Especially after experiencing continuous high temperatures in summer, the salinity and dissolved oxygen content of seawater will decrease, which will inhibit the growth of marine aquaculture products or cause a large number of diseases and increase mortality. The openness of the enclosure aquaculture environment makes the water temperature susceptible to the spatiotemporal influence of external factors, including the spatiotemporal correlation between the climate conditions and water quality parameters in the enclosure area, the spatial distribution of water bodies, and the time dependence of the historical period of sequence data. It has the characteristics of nonlinearity, dynamics, and complexity, and each parameter has a different correlation with water temperature. Therefore, it is of great significance to integrate the historical data of multiple factors, analyze the weight relationship between different parameters, and timely and accurately grasp the trend of future water temperature changes.

[0073] Deep Neural Networks (DNNs) can complete the task of finding approximate solutions to multi-dimensional complex functions, mine hidden information contained in large amounts of data, and have strong feature extraction capabilities. Compared with shallow machine learning methods, it has stronger data learning and generalization capabilities. Many researchers at home and abroad have applied DNN models to time series prediction of water quality factors. The network structure of the long short-term memory network (LSTM) can effectively analyze the historical data information of time series, but its long-term memory capacity is limited. The network structure of the temporal convolutional network (TCN) can obtain a larger receptive field by stacking depth and perceive longer historical data. However, the above two network structures cannot analyze the correlation weights between various variables. The self-attention mechanism has the ability to capture key information and is an effective tool for extracting data features. After optimizing the LSTM model with two attention mechanisms, the researchers conducted sea temperature prediction. The results showed that the model with the attention mechanism added was better than the simple LSTM model. However, the self-attention mechanism may cause the model to pay too much attention to some parts of the input sequence and ignore other parts, resulting in low prediction accuracy. Therefore, this problem needs to be solved for the prediction of high-complexity variables.

[0074] This application mainly solves three key problems of water temperature prediction in enclosure aquaculture:

[0075] The first is a multi-step prediction scheme for water temperature series under time-space fusion: According to the data characteristics of the seawater temperature time series, the multi-step prediction model fully considers the spatiotemporal correlation between the climatic conditions and water quality parameters in the enclosure aquaculture area, the spatial distribution of water bodies, and the time dependence of the historical period of the sequence data.

[0076] The second is to overcome the problems existing in the self-attention mechanism itself, that is, factors that have little impact on water temperature prediction in most cases will also have a significant impact at some special moments, thereby enhancing the robustness of the multi-step prediction model.

[0077] The third is an effective multi-step prediction model for water temperature in enclosure aquaculture: a multi-step prediction model is designed based on the environmental characteristics of the enclosure aquaculture area to make it more in line with actual conditions, and the multi-step prediction model can be effectively applied to the prediction of water temperature in the enclosure aquaculture environment.

[0078] In practical applications, accurate and meaningful prediction results can be obtained for different temperature conditions (high and low temperatures) in enclosure farming areas.

[0079] refer to Figure 1, is a flowchart of a method for predicting water temperature in a fenced aquaculture area provided in an embodiment of the present application. The method can be applied to electronic devices capable of data processing, such as computers or servers. The electronic device can be a device deployed locally by the user or a device deployed in the cloud. The technical solution in this embodiment is mainly used to improve the accuracy of water temperature prediction in a fenced aquaculture area.

[0080] Specifically, the method in this embodiment may include the following steps:

[0081] Step 101: Obtain first data.

[0082] The first data may include: multiple input parameters corresponding to the fenced breeding area at multiple historical moments. The input parameters include at least: water quality parameters and climate parameters, and the water quality parameters include at least water temperature parameters. The historical moment here can be any moment before the current moment, and the historical moments corresponding to the first data are continuous. For example, the first data includes: multiple input parameters corresponding to the fenced breeding area for each hour in 84 consecutive hours last week. The first data can be represented by X=[X1,X2,...,X T ] indicates that T is the number of historical moments, X T Represents the input parameters at time T.

[0083] In a specific implementation, the water temperature parameter may include at least: water temperature detection values ​​corresponding to multiple water depths in the fence breeding area. There may be multiple water depths, such as 1 meter, 5 meters, and 10 meters in the fence breeding area. In this embodiment, the water temperature detection value corresponding to each water depth in the fence breeding area may be detected by temperature sensing. For example, Figure 2 As shown in, according to the scheme in this embodiment, in the fence breeding platform (i.e., the fence breeding area), with the sea level as the reference, water temperature collection points, namely A, B, and C, are set at depths of 1 meter, 5 meters, and 10 meters respectively, and temperature sensors are deployed at the water temperature collection points to collect water temperature detection values ​​at corresponding positions.

[0084] In addition to the above water temperature parameters, water quality parameters may also include: dissolved oxygen values ​​corresponding to each water depth and pH values ​​corresponding to each water depth. In this embodiment, the dissolved oxygen value and pH value corresponding to each water depth in the enclosure breeding area may be detected by a water quality sensor. For example, Figure 2 As shown in , according to the scheme in this embodiment, in the fence breeding platform, with the sea level as the reference, water quality collection points are set at depths of 1 meter, 5 meters and 10 meters respectively, and water quality sensors are deployed at the water quality collection points. The water quality sensors collect dissolved oxygen values ​​and pH values ​​at corresponding positions.

[0085] Climate parameters may include at least: air temperature, relative humidity, ground wind speed, air pressure, precipitation and radiation.

[0086] Step 102: Using a multi-step prediction model, extract global feature information and local feature information corresponding to the first data.

[0087] Step 103: using a multi-step prediction model, obtaining second data at least based on global feature information and local feature information.

[0088] The second data includes: water temperature prediction values ​​corresponding to the upper fence breeding area at multiple future moments. In a specific implementation, the second data may include: water temperature prediction values ​​corresponding to one or more water depths in the upper fence breeding area at multiple future moments. For example, in this embodiment, water temperature detection values, dissolved oxygen values ​​and pH values, water quality parameters and climate parameters corresponding to multiple water depths in the upper fence breeding area at multiple historical moments are input into the multi-step prediction model, so that the multi-step prediction model outputs water temperature prediction values ​​corresponding to one or more water depths in the upper fence breeding area at multiple future moments.

[0089] It should be noted that the future time refers to the time after the current time. For example, the second data includes: the predicted value of the water temperature of the fence breeding area at a water depth of 1 meter every hour for 12 consecutive hours tomorrow.

[0090] The multi-step prediction model at least includes: a global feature extraction module and a local feature extraction module. The global feature extraction module is used to extract global feature information corresponding to the first data; the global feature information represents the relationship between the input parameters;

[0091] The local feature extraction module is used to extract local feature information corresponding to the first data; the local feature information represents the relationship between the input parameter and the water temperature parameter. The global feature information and the local feature information are used to obtain the water temperature prediction value.

[0092] In a specific implementation, an input module, also called an input layer, is deployed in the multi-step prediction model. The first data is input into the input layer in the multi-step prediction model. The input layer pre-processes the first data, and then the global feature extraction module and the local feature extraction module respectively extract features from the first data to obtain global feature information and local feature information. Accordingly, the multi-step prediction model predicts the water temperature at one or more water depths in the fence breeding area based on at least the global feature information and the local feature information to obtain the second data.

[0093] It can be seen from the above technical scheme that in a method for predicting water temperature in enclosure aquaculture provided in Example 1 of the present application, global feature information and local feature information corresponding to multiple input parameters are extracted through a multi-step prediction model, thereby at least comprehensively considering the spatiotemporal correlation between climate parameters and water quality parameters in the fenced aquaculture area, the spatial distribution law of water bodies, and the time dependence of time series data in the historical period, wherein the global feature information is used to focus on the complex relationship between the input parameters, and the local feature information can overcome the defect that the global feature information ignores the influence of some input parameters on the water temperature. Therefore, the global feature information and the local feature information can be combined to predict the water temperature, which can improve the accuracy of the water temperature prediction.

[0094] In a possible implementation, extracting global feature information in step 102 may be implemented in the following manner: Figure 3 As shown in:

[0095] Step 301: performing convolution processing on the first data to obtain a data convolution result, where the data convolution result represents a local correlation change of the first data in a feature dimension;

[0096] Step 302: adding time series position information to the data convolution result to obtain a position encoding result; the time series position information represents a historical moment;

[0097] Step 303: Process the data convolution result and the position encoding result to obtain a data embedding result;

[0098] Step 304: at least process the data embedding result to obtain global feature information.

[0099] In a specific implementation, the global feature extraction module may include at least: a data embedding module and a self-attention module; wherein the data embedding module includes at least a convolution submodule, a position encoding submodule and a random discard submodule; Figure 4 As shown in:

[0100] The convolution submodule is used to perform convolution processing on the first data to obtain a data convolution result, which represents the local correlation change of the first data in the feature dimension. The convolution submodule can use a 1*3 convolution kernel f to perform convolution processing on the first data X. The data X T The local correlation change in the feature dimension can be expressed as f 1×3 (X) indicates.

[0101] The position encoding submodule is used to add temporal position information to the data convolution result to obtain the position encoding result. The temporal position information represents the historical moment. That is to say, the position encoding submodule adds the temporal position information to the data convolution result according to the corresponding historical moment, so that the data convolution result corresponds to the historical moment. The position encoding submodule allows the data convolution result to carry the temporal position information by position embedding, thereby performing a secondary representation of each input parameter in the data convolution result, so that the data convolution result can better understand the relative position information PE(pos,d) between the temporal data, where pos is the temporal position information and d is the input parameter. As shown in formulas (1) and (2), the odd bits 2d+1 and even bits 2d of the temporal position information pos are encoded by the cosine function and the sine function respectively, and the corresponding position vector values ​​in the embedding dimension dmodel, that is, the position encoding results, are PE(pos,2d+1) and PE(pos,2d) respectively:

[0102]

[0103] The random dropout submodule can also be called a random dropout layer (dropout). The random dropout submodule is used to process the data convolution result and the position encoding result to obtain the data embedding result. Specifically, the random dropout submodule processes the data convolution result f 1×3 (X) and the position encoding result PE(pos,d) are taken as input, and then the data embedding result Embedding is output, as shown in formula (3):

[0104] Embedding=Dropout[PE(pos,d)+f 1×3 (X)] (3)

[0105] The self-attention module is built based on the self-attention mechanism, and the self-attention module is used to at least process the data embedding result to obtain global feature information.

[0106] It can be seen that the global feature extraction module based on the above multi-step prediction model can effectively obtain the correlation weights between the input parameters in the first data by adding time series position information to the data convolution result, so as to characterize the relationship between the input parameters, that is, the global feature information, and improve the accuracy of the water temperature prediction value when obtaining the water temperature prediction value.

[0107] In a possible implementation, extracting local feature information in step 102 can be implemented in the following manner: Figure 5 As shown in:

[0108] Step 501: Process the first data to obtain strongly correlated variables.

[0109] Among them, the strongly correlated variables represent the relationship between the input parameters that meet the strong correlation conditions with the water temperature parameters and the water temperature parameters.

[0110] Step 502: Process the strongly correlated variables to obtain local feature information.

[0111] In a specific implementation, the local feature extraction module may include at least: a strong correlation processing module and a first coordinated attention module, such as Figure 6 As shown in:

[0112] The strong correlation processing module is used to process the first data to obtain a strongly correlated variable; the strongly correlated variable characterizes the correlation between the input parameter that meets the strong correlation condition with the water temperature parameter and the water temperature parameter. The strong correlation condition may be: the absolute value of the correlation coefficient between the input parameter and the water temperature parameter is greater than or equal to the correlation threshold. That is to say, in this embodiment, the input parameter that meets the strong correlation condition with the water temperature parameter is first screened out according to the strong correlation condition, and then the correlation between the input parameter that meets the strong correlation condition with the water temperature parameter and the water temperature parameter is analyzed to obtain a strongly correlated variable.

[0113] In a specific implementation, the correlation coefficient in the strong correlation condition can be obtained through a corresponding algorithm, such as the Pearson correlation coefficient.

[0114] The first coordinated attention module is used to process the strongly correlated variables to obtain local feature information, where the local feature information represents the relationship between the input parameters that meet the strong correlation condition with the water temperature parameter and the water temperature parameter.

[0115] In step 502, the strongly correlated variables are processed to obtain the local feature information, which can be achieved in the following ways: Figure 7 As shown in:

[0116] Step 701: Perform convolution processing on strongly correlated variables to obtain variable convolution results.

[0117] Step 702: Process the variable convolution result to obtain local feature information.

[0118] In a specific implementation, the first coordinated attention module may also be referred to as a coordinated attention CA (coordinate attention) module. The first coordinated attention module may include: a convolution submodule and an attention submodule, such as Figure 8As shown in . The convolution submodule in the first coordinated attention module can be constructed based on a convolutional neural network CNN (Convolutional Neural Networks), and is used to perform convolution processing on strongly correlated variables to obtain variable convolution results. The attention submodule in the first coordinated attention module can be constructed based on an attention mechanism, and is used to process variable convolution results to obtain local feature information.

[0119] In a possible implementation, extracting local feature information in step 102 may also be implemented in the following manner: Fig. 9 As shown in:

[0120] At 901: first data is processed to obtain weakly correlated variables.

[0121] Among them, the weakly correlated variables represent the relationship between the input parameters that meet the weakly correlated conditions with the water temperature parameters and the water temperature parameters.

[0122] Step 902: Process the weakly correlated variables to obtain local feature information.

[0123] In a specific implementation, the local feature extraction module may also include: a weak correlation processing module and a second coordinated attention module, such as Fig.10 As shown in:

[0124] The weak correlation processing module is used to process the first data to obtain a weakly correlated variable; the weakly correlated variable represents the correlation between the input parameter that meets the weak correlation condition with the water temperature parameter and the water temperature parameter. The weakly correlated condition may be: the absolute value of the correlation coefficient between the input parameter and the water temperature parameter is less than the correlation threshold. That is to say, in this embodiment, the input parameter that meets the weak correlation condition with the water temperature parameter is first screened out according to the weak correlation condition, and then the correlation between the input parameter that meets the weak correlation condition with the water temperature parameter and the water temperature parameter is analyzed to obtain the weakly correlated variable.

[0125] In a specific implementation, the correlation coefficient in the weak correlation condition can be obtained through a corresponding algorithm, such as the Pearson correlation coefficient.

[0126] The second coordinated attention module is used to process the weakly correlated variables to obtain local feature information, where the local feature information represents the relationship between the input parameters that meet the weak correlation conditions with the water temperature parameters and the water temperature parameters.

[0127] In step 902, the weakly correlated variables are processed to obtain local feature information, which can be achieved by the following methods: Fig.11 As shown in:

[0128] Step 1101: Perform convolution processing on weakly correlated variables to obtain variable convolution results.

[0129] Step 1102: Based on the attention mechanism, it is used to process the variable convolution results to obtain local feature information.

[0130] In a specific implementation, the second coordinated attention module is used to process weakly correlated variables to obtain local feature information, where the local feature information represents the relationship between the input parameters that meet the weak correlation conditions with the water temperature parameters and the water temperature parameters.

[0131] The second coordinated attention module may also be referred to as a coordinated attention CA (coordinate attention) module. The second coordinated attention module may include: a convolution submodule and an attention submodule, such as Fig.12 As shown in . The convolution submodule in the second coordinated attention module can be constructed based on a convolutional neural network CNN (Convolutional Neural Networks), and is used to perform convolution processing on weakly correlated variables to obtain variable convolution results. The attention submodule in the second coordinated attention module can be constructed based on an attention mechanism, and is used to process variable convolution results to obtain local feature information.

[0132] Based on the above scheme, in this embodiment, the relationship between the input parameters with weak correlation with the water temperature parameters and the water temperature parameters is also taken into account in the water temperature prediction, so as to avoid the situation where only the relationship between the input parameters with strong correlation and the water temperature parameters is considered, resulting in inaccurate water temperature prediction, thereby improving the accuracy of water temperature prediction.

[0133] In a possible implementation, when obtaining the second data in step 103, it can be implemented in the following manner: Fig.13 As shown in:

[0134] Step 1301: Fuse the global feature information and the local feature information to obtain fused feature information.

[0135] Step 1302: Obtain a water temperature prediction value based on the fused feature information.

[0136] In a specific implementation, the multi-step prediction model may also include: a data fusion module, which connects the global feature extraction module and the local feature extraction module, such as Fig.14 As shown in:

[0137] The data fusion module is used to fuse the global feature information and the local feature information to obtain fused feature information, and the fused feature information is used to obtain the water temperature prediction value.

[0138] Based on this, the fused feature information is processed through a fully connected module in the multi-step prediction model to obtain the water temperature prediction value.

[0139] In a possible implementation, in this embodiment, before step 103, the following processing may also be included: Fig.15 As shown in:

[0140] Step 104: Process the first data to obtain an autoregressive result.

[0141] Among them, the autoregression results at least characterize the volatility of the water temperature parameters with respect to the time series.

[0142] Based on this, when obtaining the second data in step 103, it can be achieved in the following manner:

[0143] The water temperature prediction value is obtained based on the global feature information, local feature information and autoregression results.

[0144] In the specific implementation, the multi-step prediction model can also include: autoregressive module, such as Fig.16 As shown in:

[0145] The autoregressive module can also be called an autoregressive AR (Autoregressive) module. The autoregressive module is used to process the first data to obtain an autoregressive result. The autoregressive result characterizes the volatility of the water temperature parameters with respect to the time series, such as the volatility of the water temperature parameters, water quality parameters and climate parameters in the first data with respect to the time series. Correspondingly, it characterizes the volatility of the water temperature prediction value with respect to the time series.

[0146] The autoregression result is used to combine the global feature information and the local feature information to obtain the water temperature prediction value. For example, in this embodiment, the water temperature prediction value is obtained according to the global feature information, the local feature information and the autoregression result.

[0147] Based on this, in this embodiment, the input parameters are autoregressed, and the volatility of the input parameters with respect to the time series is taken into account in the water temperature prediction, so as to improve the accuracy of the water temperature prediction.

[0148] Specifically, in step 103, when obtaining the water temperature prediction value according to the global feature information, the local feature information and the autoregression result, it can be achieved in the following ways: Fig.17 As shown in:

[0149] Step 1701: Fuse the global feature information and the local feature information to obtain fused feature information.

[0150] Step 1702: Process the fused feature information to obtain a first prediction value;

[0151] Step 1703: Process the autoregression result to obtain a second prediction value;

[0152] Step 1704: Obtain a water temperature prediction value based on the first prediction value and the second prediction value.

[0153] In a specific implementation, the multi-step prediction model in this embodiment may further include a data fusion module, a first fully connected module, a second fully connected module and a prediction fusion module, such as Fig.18 As shown in:

[0154] The data fusion module is used to fuse the global feature information and the local feature information to obtain fused feature information.

[0155] The first fully connected module is used to process the fused feature information to obtain a first prediction value; the fused feature information is feature information obtained by the data fusion module according to the global feature information and the local feature information. The first fully connected module can also be called a fully connected layer FC1 (Fully Connected Layer).

[0156] The second fully connected module is used to process the autoregressive result to obtain a second prediction value. The second fully connected module can also be called a fully connected layer FC2.

[0157] The prediction fusion module is used to obtain a water temperature prediction value according to the first prediction value and the second prediction value.

[0158] The prediction fusion module can process the corresponding first prediction value and the second prediction value for each future moment, respectively, to obtain the water temperature prediction value corresponding to each future moment. Specifically, the prediction fusion module directly adds the corresponding first prediction value and the second prediction value for each future moment, or performs weighted summation processing according to the corresponding weights, to obtain the water temperature prediction value corresponding to each future moment.

[0159] A method for predicting water temperature in a fence aquaculture provided by an embodiment of the present application is introduced above. A device for executing the above method for predicting water temperature in a fence aquaculture will be introduced below.

[0160] See also Fig.19 , Fig.19 This is a schematic diagram of the structure of a device for predicting water temperature in a fenced aquaculture area provided in an embodiment of the present application. The device can be configured in an electronic device capable of data processing, such as a computer or a server. The electronic device can be a device deployed locally by the user or a device deployed in the cloud. The technical solution in this embodiment is mainly used to improve the accuracy of water temperature prediction in a fenced aquaculture area.

[0161] Specifically, the device in this embodiment may include the following units:

[0162] The data acquisition unit 1901 is used to acquire first data; the first data includes: a plurality of input parameters corresponding to the fenced breeding area at a plurality of historical moments, the input parameters at least include: water quality parameters and climate parameters, the water quality parameters at least include water temperature parameters;

[0163] The data control unit 1902 is used to use a multi-step prediction model to extract global feature information and local feature information corresponding to the first data, wherein the global feature information represents the relationship between the input parameters; the local feature information represents the relationship between the input parameters and the water temperature parameters; and using the multi-step prediction model, at least based on the global feature information and the local feature information, obtain second data, wherein the second data includes: predicted water temperature values ​​corresponding to the fence breeding area at multiple future moments.

[0164] It can be seen from the above technical scheme that in a prediction device for water temperature in enclosure aquaculture provided by an embodiment of the present application, global feature information and local feature information corresponding to multiple input parameters are extracted through a multi-step prediction model, thereby at least comprehensively considering the spatiotemporal correlation between climate parameters and water quality parameters in the fenced aquaculture area, the spatial distribution law of water bodies, and the time dependence of time series data in the historical period, and establishing two key modules in the multi-step prediction model, in which global feature information is used to focus on the complex relationship between the input parameters, and local feature information can be used to overcome the defect that global feature information ignores the influence of some input parameters on water temperature. Therefore, water temperature prediction can be carried out in combination with global feature information and local feature information, which can improve the accuracy of water temperature prediction.

[0165] The present application also provides an electronic device in an embodiment. The electronic device may include a memory and a processor. The memory is used to store a computer program and data generated by the operation of the computer program. The processor is used to execute the computer program to implement the above-mentioned method for predicting the water temperature of aquaculture enclosures. Fig. 20 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include but is not limited to fixed terminals such as mobile phones, notebook computers, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Fig. 20 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0166] like Fig. 20As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 2001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 2002 or a program loaded from a storage device 2008 into a random access memory (RAM) 2003. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 2003. The processing device 2001, the ROM 2002, and the RAM 2003 are connected to each other via a bus 2004. An input / output (I / O) interface 2005 is also connected to the bus 2004.

[0167] Typically, the following devices may be connected to the I / O interface 2005: input devices 2006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 2007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 2008 including, for example, a memory card, a hard disk, etc.; and communication devices 2009. The communication devices 2009 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 20 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0168] Also provided in an embodiment of the present application is a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the methods for predicting water temperature in fence aquaculture provided in the embodiments of the present application.

[0169] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any one of the methods for predicting water temperature in fence aquaculture provided in the embodiments of the present application.

[0170] Taking the electronic device as a cloud server as an example, the following is an example of water temperature prediction scenario in a pen aquaculture area near the coast:

[0171] This application proposes a multi-step prediction scheme for water temperature in enclosure aquaculture by integrating global features and local features in time series. The main steps are:

[0172] (1) Deploy sensors at different depths in offshore enclosure aquaculture areas to collect data, such as water quality parameters and climate parameters;

[0173] (2) Collect meteorological data from meteorological stations in the enclosure farming area and perform data cleaning, including data conversion, data standardization, outlier processing, missing value processing, and data integration;

[0174] (3) Setting a global feature extraction module and a local feature extraction module to analyze feature information of the sequence data (i.e., the input parameters corresponding to the multiple historical moments mentioned above), such as global feature information and local feature information;

[0175] (4) Introduce an autoregressive module to obtain the volatility of the input sequence data and the changes in the output prediction data;

[0176] (5) Perform fitting verification and performance evaluation on the test set.

[0177] The following combination Fig.21 The example diagram of water temperature prediction using the multi-step prediction model shown in the figure explains the above steps in detail:

[0178] Step (1): The data collection site is located in a certain place, 10 kilometers away from the coast. The aquaculture system of the experiment is a circular structure with a circumference of 160 meters and a water volume of 200,000 m 3 In order to fully explore the changes in seawater temperature at different depths, three parameter collection points at depths (i.e., water depths) were set, namely, 1m, 5m, and 10m underwater, corresponding to Figure 2 Point A, point B, and point C in the enclosure. In order to obtain the water temperature difference in different areas of the enclosure aquaculture area and reduce the sensor error, two sets of sensor equipment are arranged in the symmetrical areas of the fence. All collected sensor data are transmitted to the application layer through the wireless sensor network for data collection, intelligent information processing and other operations.

[0179] Among them, the multi-step prediction model of the enclosure farming area needs to include 15 input parameters: water temperature detection values, dissolved oxygen values ​​and pH values ​​(i.e., acidity and alkalinity values) at depths of 1m, 5m and 10m, as well as air temperature, relative humidity, ground wind speed, air pressure, precipitation and direct radiation, etc. The water temperature detection values, dissolved oxygen values ​​and pH values ​​(i.e., acidity and alkalinity values) can be obtained through sensors at parameter collection points.

[0180] Step (2): Use the meteorological monitoring system to perceive the local fishery climate change, including meteorological factors such as temperature, relative humidity, ground wind speed, air pressure, precipitation and direct radiation. Since the specific heat capacity of seawater is large and the water temperature changes slowly, the time interval is set to 30 minutes. Data from two time periods were collected, for example: 15 input parameters at each collection time from July 22, 2023 to August 31, 2023 and from September 15, 2023 to November 1, 2023. The input sequence data of the multi-step prediction model are: multiple groups of exogenous variables corresponding to the time window T (each group of exogenous variables is a group of input parameters), including the target variable (i.e., water temperature detection value). The output sequence data are: water temperature prediction values ​​corresponding to multiple future moments.

[0181] Step (3): In the multi-step prediction model, a global feature extraction module and a local feature extraction module are set to analyze the feature information of the input sequence data, such as global feature information and local feature information. The global feature extraction module and the local feature extraction module are described below:

[0182] 1) The global feature extraction module is Fig.21 The data embedding module Embedding, cat (CrossAttention in Vision Transformer) module and self-attention module in.

[0183] Due to the complex water flow, complex climate change and physical environment differences in enclosure aquaculture areas, multi-step prediction models need to consider the historical data of global variables at the same time. The data embedding module can also be called the embedding layer. The embedding layer associates the input parameters of each time step (i.e. each historical moment) with other related features to visualize the relationship between data at different time steps. The attention module in the global feature extraction module can effectively learn the historical data information corresponding to all input parameters through the self-attention network and capture the correlation weights between the input parameters.

[0184] like Fig.21 The global feature extraction module in the data embedding module includes the convolution submodule Convolution, the positional encoding submodule Positional Encoding and the random discarding submodule Dropout.

[0185] Among them, the convolution submodule uses a 1×3 convolution kernel f to process the input data X=[X1,X2,...,X T ] for convolution, where X T ∈R H represents the measured data at time T, data X T The local correlation change in the feature dimension is f 1×3 (X). The convolution submodule enhances the generalization ability of the model and helps the embedding layer to better capture the local features of the input data.

[0186] The positional encoding submodule Positional Encoding uses position embedding to allow data to carry position information and perform a secondary representation of each word in the input sequence, so that the embedding layer can better understand the relative position information between time series data. As shown in formulas (1) and (2), the cosine function and sine function are used to encode the odd bit 2d+1 and even bit 2d of the position pos, respectively, and the corresponding position vector values ​​in the embedding dimension dmodel are PE(pos,2d+1) and PE(pos,2d), respectively.

[0187] After that, the convolution submodule weights are output f 1×3 (X) is added to the output PE(pos,d) of the position encoding submodule and passes through the random discard submodule, namely the Dropout layer, which improves the generalization ability of the embedding layer, as shown in formula (3).

[0188] 2) The local feature extraction module includes a strong correlation processing module, a first CA module, a weak correlation processing module and a second CA module:

[0189] The CA module includes a convolution submodule and an attention submodule. The convolutional neural network in the convolution submodule has many advantages. In the time series prediction task, it can automatically learn and extract the spatial connection between different feature values ​​of the data, capture and describe the details of local time series features and perceive multivariate correlations, which is suitable for extracting local features of time series.

[0190] Afterwards, the data fusion module is used to fuse the global feature information with the local feature information through a suitable fusion algorithm to obtain fused feature information, which can better analyze the multi-level and multi-scale feature information of the water temperature sequence of the enclosure system, while taking into account the global structure and local details, and better adapt to the different data distribution and changes of the sequence.

[0191] like Fig. 22 Schematic diagram of the CA module in the local feature extraction module, where K is the size of the convolution kernel kernel size, and 1D K-size conv is a one-dimensional kernel size convolution. The CA module includes a convolution submodule CNN and an attention submodule SelfAttn. The attention submodule SelfAttn includes the following layer modules: convolution layer conv, pooling layer pooling, linear layer linear, and 4 encoding layers Encoder Layer. Among them, the attention mechanism of the attention submodule is used to supplement the difficulty of CNN in capturing long-term temporal dependencies, and the entire sequence is weighted at different time steps to capture long-term dependencies.

[0192] The data output by the CNN layer is X'=[X1',X2',...,X T '](X T '∈R dm , as shown in formula (4)) through the linear layer (Linear) [W q ,W k ,W v ](W q ,W k ,W v ∈R dm×dk), calculate the queries, keys, and values ​​of the attention module at each time step, and form a matrix Q for each set of queries, keys, and values G ,K G ,V G (Q G ,K G ,V G ∈R dm×dk ), as shown in formula (5). G and (K G ) T Multiply them to get the correlation of the time series data at different time intervals, and then multiply them by V G Multiply to get the attention weight Wa G , as shown in formula (6), where Wa G ∈R dm×dk Used to represent the correlation characteristics between time series.

[0193] X'=W(ReLU(Conv(X))) (4)

[0194] [Q G ,K G ,V G ]=X'[W q ,W k ,W v ] (5)

[0195]

[0196] The softmax function is used to G ,K G ,V G Regularization obtains the final attention weight Wa G When the vector dimension used to calculate the similarity is long, the softmax value will be extremely close to 1 or 0. In this case, It can effectively avoid the problem of gradient disappearance or gradient explosion, which is beneficial to the training of network models.

[0197] Step (4): Introduce an autoregressive module to obtain the volatility of the sequence input (i.e., input parameters) and the pattern changes of the output.

[0198] Among them, the global feature extraction module and the local feature extraction module enable the multi-step prediction model to have better nonlinear representation capabilities and can parse more comprehensive information based on the training data. However, for the actual observed time series, the data has the characteristics of noise and irregular changes. It is difficult to obtain the volatility of the input and the pattern change of the output by relying solely on the neural network, which makes the model insensitive to the volatility of the data set. Therefore, the AR module is introduced. By introducing the information of historical moments, the AR module adds a scale modeling method, improves the expression ability of the multi-step prediction model for noisy and complex fence time series data, enables the model to better integrate historical information, obtain more comprehensive background information, adapt to changes in different time steps, and improve the generalization ability of the model. The expression of the AR model is shown in formula (7):

[0199]

[0200] in, and b ar ∈R is the parameter to be learned.

[0201] Based on this, FC1 is set for global feature information and local feature information, and FC2 is set for the autoregressive module. FC1 obtains the first prediction value, and FC2 obtains the second prediction value. Finally, the prediction fusion is performed to obtain the multi-step prediction result, that is, the water temperature prediction value at multiple future moments:

[0202] Among them, taking FC1 as an example, the batchsize of FC1 input data is M1*N1, such as 84*15, that is, M1 historical moments correspond to N1 input parameters, and the batchsize of FC1 and FC2 output data is M2*N2, such as 12*1, that is, M2 future moments correspond to N2 water temperature prediction values. The processing stages of FC1 include FC1-1 and FC1-2. In the FC1-1 stage, M1 is reduced to M2, and in the FC1-2 stage, N1 is reduced to N2. The implementation principle of FC2 is the same as that of FC1.

[0203] Step (5): Perform test set fitting verification and performance evaluation.

[0204] In order to measure the effectiveness of the multi-step prediction model for multivariate time series, the overall prediction accuracy and local performance of the multi-step prediction model are evaluated. Based on the hyperparameters of the multi-step prediction model shown in Table 1, the root mean square error RMSE (Root Mean Squared Error), mean absolute error MAE (Mean Absolute Error) and mean absolute percentage error MAPE (Mean Absolute Percentage Error) can be used as evaluation indicators to evaluate the overall performance, and the empirical correlation coefficient CORR (Empirical Correlation Coefficient) and relative square root error RRSE (Root Relative Squared Error) can be used as evaluation indicators to measure the local goodness of fit. Specifically, as shown in formula (8)-formula (12):

[0205]

[0206]

[0207] in, is the true value, is the predicted value, and W is the length of the multi-step prediction window, that is, the number of future moments. Based on this, the smaller the values ​​of RMSE, MAE, and RRSE, the higher the prediction accuracy, and the larger the CORR value, the better the local fitting performance of the multi-step prediction model.

[0208] Table 1 Multi-step prediction model hyperparameter settings

[0209] Hyperparameters set up Prediction time step 12 Global module window size 84 Local module window size 84 Data batch size 128 Optimizer Adam Learning Rate 0.001 Gradient clipping size 5 Dropout ratio 0.3 Number of global CNN convolution kernels 32 Number of local CNN convolution kernels 64 Encoder Layer 6 Global module CNN convolution kernel size 1×3 Local module CNN convolution kernel size 1×1 Weight matrix dimension kernel 64 Scaling factor Inner 2048

[0210] In summary, this application analyzes the characteristics of seawater temperature in enclosure aquaculture, studies the information extraction capabilities of models with different structures on historical series data of water temperature, and proposes a multivariate time series prediction framework based on grouped dual attention convolution, such as Fig.21 As shown in . Among them, the embedding layer is used for the global feature extraction module of multivariate time series data; the convolutional neural network is combined with the self-attention mechanism as a local feature extraction module; the autoregressive module is used to model the trend and autocorrelation of time series data to solve the problem of prediction lag. By comparing with other benchmark models, the following conclusions are drawn:

[0211] The multi-step prediction model achieved good results in the multi-step prediction of seawater temperature in enclosure aquaculture. Compared with the best results of other benchmark models, the RMSE in the predictions of 1h, 3h, and 6h was reduced by 10.43%, 29.3%, and 31.55%, respectively. Especially in multi-step prediction, the model accuracy was significantly improved.

[0212] The global and local information extraction modes of the time series data of seawater temperature in enclosure aquaculture enable the model to have the analysis capabilities from coarse-grained to fine-grained, and can fully explore the trend and volatility information of the data at the same time.

[0213] There are complex spatiotemporal patterns in the water temperature data of enclosure aquaculture seawater. By utilizing the characteristics of different neural networks, we can process multivariate sequences in a targeted manner and integrate them effectively, which successfully makes up for the shortcomings of a single module and is of great significance.

[0214] In addition, it should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0215] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0216] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0217] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. A method for predicting water temperature in enclosure aquaculture, characterized in that: The method comprises: Obtaining first data; the first data includes: a plurality of input parameters corresponding to the fenced breeding area at a plurality of historical moments, the input parameters at least including: water quality parameters and climate parameters, the water quality parameters at least including water temperature parameters; Using a multi-step prediction model, extracting global feature information and local feature information corresponding to the first data, wherein the global feature information represents the relationship between the input parameters; and the local feature information represents the relationship between the input parameters and the water temperature parameter; The multi-step prediction model is used to obtain second data based at least on the global feature information and the local feature information. The second data includes: predicted water temperature values ​​corresponding to the fence breeding area at multiple future moments.

2. The method according to claim 1, characterized in that Using a multi-step prediction model, extracting global feature information corresponding to the first data includes: Performing convolution processing on the first data to obtain a data convolution result, wherein the data convolution result represents a local correlation change of the first data in a feature dimension; Adding time series position information to the data convolution result to obtain a position encoding result; the time series position information represents the historical moment; Processing the data convolution result and the position encoding result to obtain a data embedding result; At least the data embedding result is processed to obtain the global feature information.

3. The method according to claim 1 or 2, characterized in that: Extracting local feature information corresponding to the first data using a multi-step prediction model at least includes: Processing the first data to obtain a strongly correlated variable; the strongly correlated variable represents the relationship between the input parameter that satisfies a strong correlation condition with the water temperature parameter and the water temperature parameter; The strongly correlated variables are processed to obtain the local feature information.

4. The method according to claim 1 or 2, characterized in that: Extracting local feature information corresponding to the first data using a multi-step prediction model at least includes: Processing the first data to obtain a weakly correlated variable; the weakly correlated variable represents the relationship between the input parameter that satisfies a weakly correlated condition with the water temperature parameter and the water temperature parameter; The weakly correlated variables are processed to obtain the local feature information.

5. The method according to claim 3, characterized in that: Processing the strongly correlated variables to obtain the local feature information includes: Performing convolution processing on the strongly correlated variables to obtain variable convolution results; The variable convolution result is processed to obtain the local feature information.

6. The method according to claim 1 or 2, characterized in that: Obtaining second data using the multi-step prediction model at least according to the global feature information and the local feature information, comprising: fusing the global feature information and the local feature information to obtain fused feature information; The water temperature prediction value is obtained according to the fused feature information.

7. The method according to claim 1 or 2, characterized in that: The method further comprises: Processing the first data to obtain an autoregression result, wherein the autoregression result at least characterizes the volatility of the water temperature parameter with respect to the time series; Wherein, using the multi-step prediction model, obtaining second data at least according to the global feature information and the local feature information includes: The water temperature prediction value is obtained according to the global feature information, the local feature information and the autoregression result.

8. The method according to claim 7, characterized in that Obtaining the water temperature prediction value according to the global feature information, the local feature information and the autoregression result includes: fusing the global feature information and the local feature information to obtain fused feature information; Processing the fused feature information to obtain a first prediction value; Processing the autoregression result to obtain a second prediction value; The water temperature prediction value is obtained according to the first prediction value and the second prediction value.

9. The method according to claim 1, characterized in that: The water quality parameters include at least: water temperature detection values ​​corresponding to multiple water depths in the fenced breeding area, dissolved oxygen values ​​corresponding to each of the water depths, and pH values ​​corresponding to each of the water depths; The climate parameters include at least: air temperature, relative humidity, ground wind speed, air pressure, precipitation and radiation.

10. An electronic device, characterized in that: include: A memory, used to store a computer program and data generated by the execution of the computer program; A processor is used to execute the computer program to achieve: obtaining first data; The first data includes: multiple input parameters corresponding to the fenced breeding area at multiple historical moments, the input parameters include at least water quality parameters and climate parameters, the water quality parameters include at least water temperature parameters; using a multi-step prediction model, extracting global feature information and local feature information corresponding to the first data, the global feature information characterizing the relationship between the input parameters; the local feature information characterizing the relationship between the input parameters and the water temperature parameters; using the multi-step prediction model, obtaining second data based on at least the global feature information and the local feature information, the second data including: predicted water temperature values ​​corresponding to the fenced breeding area at multiple future moments.

Citation Information

Patent Citations

  • Method and system for predicting residual service life of equipment based on multi-scale self-attention

    CN115994630A

  • Telemetering parameter prediction method based on improved attention mechanism combined machine learning

    CN116187515A

  • Air temperature prediction method and device based on graph neural network

    CN117741822A

  • Method and system for accurately forecasting three-dimensional spatiotemporal sequence multiple parameters of seawater quality

    WO2023202474A1