Fish growth prediction method and system based on multi-source time series data and prediction network

By using a multi-source time-series data prediction network, combined with water quality environment, fish growth status and time characteristics, the accuracy and stability of fish growth prediction under complex aquaculture conditions are solved, and coordinated prediction of fish weight and length is achieved, which is suitable for aquaculture management.

CN123158142APending Publication Date: 2026-11-24HUAZHONG AGRI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611664695.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing fish growth prediction methods are unable to accurately depict the dynamic changes in fish body weight and length under complex aquaculture conditions due to the combined effects of multiple water quality factors. Furthermore, multi-step predictions have poor stability and are prone to producing results that do not conform to physiological laws.

Method used

A prediction network based on multi-source time-series data is adopted. By using a variable selection network, a group gating module, a time encoder, and a cross-time information interaction module, combined with a physiological constraint loss function, a comprehensive modeling and prediction of water quality environment, fish growth status, and time characteristics is achieved.

Benefits of technology

It improves the accuracy and stability of short-term growth trend prediction for fish, reduces non-physiological fluctuations, and can coordinate the prediction results of body weight and body length, making it suitable for intelligent feeding, growth assessment, and pond release decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158142A_ABST
    Figure CN123158142A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for predicting fish growth using multi-source time-series data and a prediction network. First, water quality environmental variables, fish growth variables, and temporal characteristics during fish farming are acquired and preprocessed to construct historical window training samples. Then, the influence of historical environmental changes and growth states on future growth is extracted through a variable selection network, a grouping gating module, a time-series encoder, and a cross-time information interaction module. Finally, a body length and weight coupled prediction module jointly outputs predicted body weight and body length values ​​for future consecutive time steps. During the training phase, specific growth rate, body length-weight allometric growth, smoothness, and environmental rate-limiting constraints are introduced to improve prediction accuracy, stability, and physiological rationality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the fields of smart aquaculture and artificial intelligence technology, specifically relating to a method and system for predicting fish growth based on multi-source time-series data and prediction networks. It is particularly suitable for a method and system for jointly predicting fish body weight and length for future consecutive time steps based on aquaculture water quality environmental variables, historical growth status of fish, and time information. Background Technology

[0002] Accurately understanding the growth status and short-term trends of farmed fish is a crucial foundation for aquaculture management, including intelligent feeding, water quality control, disease early warning, and pond harvesting planning. In pond aquaculture, adjusting the amount of feed depends on assessing the fish's current weight gain rate and future growth potential. Management operations such as aeration and water changes need to be dynamically adjusted based on the fish's growth response, and the market size and harvesting time are closely related to the time it takes for the fish to reach target weight and length levels.

[0003] Existing methods for predicting fish growth mainly include traditional growth curve models and data-driven models. Traditional methods typically use fixed functions such as von Bertalanffy, Logistic, or Gompertz to describe the individual growth process. These methods are simple in structure, but usually rely on pre-set equations and a small number of parameters. Their expressive power is limited in the face of multiple water quality factors, significant short-term environmental fluctuations, and multi-step prediction tasks, making it difficult to accurately characterize the dynamic changes in fish body weight and length under complex aquaculture conditions.

[0004] In recent years, machine learning and deep learning models have been used for fish growth prediction, enabling them to learn nonlinear relationships and historical dependencies from multivariate time-series data. However, conventional deep learning models tend to focus on fitting statistical relationships and do not adequately consider the allometric growth relationship between body length and weight, the reasonable range of specific growth rate, the smoothness of continuous growth, and the upper limit of growth caused by water quality conditions during the fish growth process. This can easily lead to results that do not conform to physiological laws, such as short-term sudden increases or decreases, or disharmony between body length and weight, in scenarios with limited samples or multiple prediction steps.

[0005] Therefore, there is an urgent need for a prediction method that can simultaneously utilize water quality information, historical growth status, and time dependence, and incorporate prior knowledge of fish growth as a constraint into the training process, in order to improve the accuracy, stability, and physiological rationality of short-term fish growth prediction. Summary of the Invention

[0006] To address the problems of insufficient utilization of environmental factors, poor stability of multi-step prediction, and possible deviation of prediction results from fish physiological patterns in existing fish growth prediction methods, this invention provides a fish growth prediction method and system based on multi-source time-series data and prediction networks.

[0007] The technical solution adopted by the method of the present invention is: a fish growth prediction method based on multi-source time-series data and prediction networks, comprising the following steps: Step 1: Obtain multi-source time-series data during the fish farming process, including water quality environmental variables, fish growth variables, and time characteristics, and preprocess the multi-source time-series data; Step 2: Input the preprocessed multi-source time series data into the pre-trained variable selection network and group gating module to obtain a comprehensive feature representation of environmental factors and historical growth status; Step 3: Input the comprehensive feature representation into the pre-trained temporal encoder and cross-temporal information interaction module, and obtain the context representation based on the impact of the learned historical growth process and environmental change process on future growth changes; Step 4: Input the context representation into the pre-trained fish length and weight coupling prediction module, and jointly output the predicted fish weight and fish length for future consecutive time steps.

[0008] Preferably, in step 1, the environmental variables include water temperature, dissolved oxygen, pH, ammonia nitrogen, nitrate, low dissolved oxygen percentage, and high ammonia nitrogen percentage; the growth variables include fish body weight and fish body length; and the time features include time index, weekday or month information, and periodic features.

[0009] Preferably, in step 1, the preprocessing includes: first, time-scale aggregation of water quality environmental variables and fish growth variables; then, outlier processing of data that exceed the preset range of aquaculture monitoring; completion of short missing segments using adjacent observations or interpolation; isolation of breakpoints for long missing segments; and finally, standardization processing.

[0010] Preferably, in step 2, the variable selection network includes, in sequence, an input mapping layer, a univariate embedding layer, a variable importance evaluation layer, a softmax normalization layer, and a weighted fusion layer; the output of the variable selection network is provided with a variable weight output unit, used to output the importance weights of each input variable at the current time step. Where R is the real number field, and d represents the dimension of the input feature at each time step; The input mapping layer is used to map the original input variables to a unified latent space dimension; The univariate embedding layer is used to encode the output variables of the input mapping layer to obtain the corresponding univariate feature representations. The variable importance assessment layer is used to calculate the contribution of different variables to the growth prediction task based on the overall input state at the current time step, and obtain a variable importance score; wherein, the overall input state at the current time step is obtained by concatenating the embedding features of each input variable output by the univariate embedding layer; specifically, let the input variable at the t-th time step be... Where n represents the number of input variables; each variable first passes through a univariate embedding layer. ,in, This represents the embedding feature of the j-th variable at time step t. Let represent the feature mapping function corresponding to the j-th variable; then, concatenate the embedded features of all variables to obtain the overall input state at the current time step. Subsequently, the variable importance assessment layer based on Calculate the importance score for each variable ,in, This indicates the importance score of each input variable. For trainable parameters, It is a non-linear activation function; The Softmax normalization layer is used to convert variable importance scores into weight coefficients. This ensures that the weights of each variable are in a comparable normalized space, where j∈(1,n) and m∈(1,n). The weighted fusion layer is used to sum the features of different variables according to the variable weights to obtain the comprehensive input representation after variable filtering. .

[0011] Preferably, in step 2, the grouping gating module includes a sequentially connected feature grouping unit, a gating weight generation unit, a Sigmoid activation layer, an inter-group weighted fusion unit, and a residual output unit. The feature grouping unit divides the input features into temperature, dissolved oxygen, nitrogen, growth status, and time features groups. The temperature group characterizes the impact of water temperature changes on fish feeding and metabolic activities; the dissolved oxygen group characterizes the impact of dissolved oxygen conditions on fish respiration, feeding, and growth status; the nitrogen group characterizes the impact of ammonia nitrogen and nitrate on fish growth potential; the growth status group characterizes historical changes in fish body weight and length; and the time features group characterizes the temporal sequence and periodic changes during the growth process. The intra-group feature mapping unit performs feature mapping on the q-th class features to obtain the intra-group feature representation. ,in, Let q be the input representation of the q-th feature group at the t-th time step, where q = 1, 2, ..., Q, and Q represents the number of feature groups. This represents the within-group feature representation of the q-th feature group at time step t. This represents the feature mapping function corresponding to the q-th feature group; The gating weight generation unit generates a gating score based on the in-group feature representation. ,in, This represents the gating score of the q-th feature group at time step t. This represents the trainable weight parameters corresponding to the q-th feature group. This represents the bias parameter corresponding to the q-th feature group; The Sigmoid activation layer is used to restrict the gating weights to between 0 and 1. ,in, This represents the gating weight of the q-th feature group at time step t. This represents the Sigmoid activation function; The inter-group weighted fusion unit is used to perform weighted fusion on different feature groups according to the gating weight and output the inter-group fusion result. The residual output unit is used to perform a residual concatenation between the inter-group fusion result and the input features to obtain a comprehensive feature representation. ;in, This represents the comprehensive feature representation output by the group gating module at time step t, where t represents the time step and 0 indicates that the comprehensive feature is the initial fused feature representation before being input to the timing encoder. R represents the real number field. This represents the comprehensive feature dimension output by the group gating module, which is a hyperparameter preset by the model.

[0012] Preferably, in step 3, the timing encoder includes a time position coding layer, a sequence feature projection layer, a gated cyclic coding layer, a timing feature enhancement layer, a residual connection layer, and a normalized output layer connected in sequence. The time position encoding layer is used to inject time sequence information into the input sequence and output the feature representation after injecting the time sequence information t. ;in, This represents the initial synthesized feature representation output by the group gating module at time step t; This represents the position code corresponding to the t-th time step; The sequence feature projection layer is used to project the feature representation output by the time position encoding layer. Mapping to a unified temporal latent space, outputting shallow temporal features. ;in, This represents the trainable weight matrix of the sequence feature projection layer; This represents the bias parameters of the sequence feature projection layer; The gated recurrent coding layer is used to obtain the continuous dependency relationship between environmental variables and fish growth status within the historical window, and output the temporal hidden state. ;in, This represents the temporal hidden state output by the gated cyclic coding layer at time step t; This indicates the hidden state of the previous time step; This represents a gated cyclic encoding function; The temporal feature enhancement layer is used to further extract the phased change features, short-term fluctuation features, and long-term trend features from the historical input sequence, and output deep temporal features. ;in, and These represent the trainable weight matrix and bias parameters of the temporal feature enhancement layer, respectively; δ( ) represents a non-linear activation function; The residual connection layer is used to project the shallow temporal features output by the sequence feature projection layer. The deep temporal features output by the temporal feature enhancement layer Perform residual connection and output. ,in, Norm represents the hidden state at time step t after residual connection and normalization; ) indicates normalization processing; The normalized output layer is used to stabilize the hidden state distribution and output the historical hidden state sequence. Where T represents the history window length, , This represents the comprehensive feature dimension output by the group gating module, which is a hyperparameter preset by the model.

[0013] Preferably, in step 3, the cross-time information interaction module includes a query vector generation layer, a key vector generation layer, a value vector generation layer, a time attention calculation layer, and a context aggregation layer. For the k-th prediction step in the future, the query vector generation layer generates a query vector corresponding to the k-th prediction step in the future. The key vector generation layer generates key vectors based on the historical hidden state sequence H output by the temporal encoder. The value vector generation layer generates value vectors based on the historical hidden state sequence H output by the time encoder. The time attention computation layer is used to compute the query vector. With key vector The correlation between them is used to obtain the attention weights between the future prediction step and different historical time steps; the context aggregation layer, based on the attention weights... For historical value vectors Weighted aggregation yields the future number. The context representation of each prediction step : ; ; in, , This represents the comprehensive feature dimension output by the group gating module, which is a preset hyperparameter of the model; T represents the length of the historical window. Indicates the prediction of the future. Heaven's History τ Attention weight of Tianxin Information; Indicates the first in history The value vector corresponding to each time step; This represents the trainable weight matrix of the query vector generation layer, used to embed the step size of the k-th prediction step into q. k Mapped to query vector Q k ;q k This represents the step size embedding or position embedding representation for the k-th prediction step in the future; This represents the trainable weight matrix of the key vector generation layer, used to store the historical hidden states h. τ Mapped to key vector K τ h τ d represents the hidden state at the τ-th time step of the history output by the timing encoder; d represents the query vector Q. k and bond vector K τ The feature dimension; τ′ represents the time step index used for summation and normalization within the historical window; τ′=t-T+1,…,t indicates that the attention weights are normalized within the historical window from tT to t; This represents the dot product similarity between the query vector at the k-th prediction step and the key vector at the τ-th time step in the past.

[0014] Preferably, in step 4, the body length and weight coupled prediction module includes a shared feature input layer and a coupled feature mapping layer connected in sequence, and a weight prediction branch and a body length prediction branch are set in parallel after the coupled feature mapping layer; the weight prediction branch and the body length prediction branch respectively output the weight prediction sequence and the body length prediction sequence for future consecutive time steps; The shared feature input layer is used to receive the context representation output by the cross-temporal information interaction module. The coupled feature mapping layer is used to map the context representation into shared coupled features suitable for joint prediction of body length and weight. ,in, This represents the shared coupling feature corresponding to the k-th prediction step in the future; and These are the trainable parameters for the coupled feature mapping layer; Represents a nonlinear activation function; The weight prediction branch is used to output predicted fish weight values ​​for each future time step based on shared coupling features. , ;in, This represents the predicted fish body weight at the (t+k)th time step in the future; This represents the intermediate features of the weight prediction branch; This represents the trainable weight matrix of the intermediate mapping layer in the weight prediction branch, used to link shared coupled features. The intermediate features are mapped to the weight prediction branch; This represents the trainable bias parameters of the intermediate mapping layer in the weight prediction branch; This represents the trainable weight vector of the output layer of the weight prediction branch, used to incorporate the intermediate features of the weight prediction branch. Mapped to a specific predicted weight value; This represents the trainable bias parameters of the weight prediction branch output layer; The body length prediction branch is used to output predicted fish body length values ​​for each future time step based on shared coupling features. , ;in, This represents the predicted body length of the fish at the (t+k)th time step in the future; This represents the intermediate features of the body length prediction branch; This represents the trainable weight matrix of the intermediate mapping layer in the body length prediction branch, used to integrate shared coupled features. The intermediate features are mapped to the body length prediction branch; This represents the trainable bias parameters of the intermediate mapping layer in the body length prediction branch; This represents the trainable weight vector of the output layer of the body length prediction branch, used to incorporate the intermediate features of the body length prediction branch. This is mapped to a specific predicted body length value. This represents the trainable bias parameters of the output layer of the body length prediction branch.

[0015] Preferably, the variable selection network, group gating module, time encoder, cross-time information interaction module, and body length and weight coupled prediction module constitute the prediction network; the prediction network is a trained network, and during the training process, a dual-objective interaction constraint unit is set between the weight prediction branch and the body length prediction branch to establish the information interaction relationship between the two prediction objectives of body length and weight, so that the two prediction branches constrain and complement each other on the basis of shared features, thereby improving the coordination and physiological rationality of the joint prediction results of body length and weight; Loss function used during training for: ; Data prediction loss ; physiological constraint loss ; Constraint loss within a reasonable range of growth rate Predicted growth rate ;in, This indicates the lower limit of the specific growth rate of fish, used to limit the predicted growth rate from falling below the normal growth range; This represents the upper limit of the fish's specific growth rate, used to limit the predicted growth rate from exceeding the normal growth range; Δt represents the time interval between two adjacent time steps. Allometric growth consistency constraint loss ; Allometric growth relationship between body length (L) and body weight (W) a and b are parameters for the allometric growth relationship between body length and body weight, where a represents the allometric growth ratio coefficient and b represents the allometric growth index. Smoothness constraint loss ; Environmental limitations and losses ; ; This represents the water quality environment state at the (t+k)th time step; Indicates the state of the water quality environment The maximum specific growth rate that fish can achieve under constraints; Indicates the basal growth ratio; , , , , These represent the water temperature, dissolved oxygen, ammonia nitrogen, pH, and nitrate concentration at the (t+k)th time step, respectively. , , , These are the limiting factor functions for temperature, dissolved oxygen, ammonia nitrogen, and nitrate concentrations, respectively, with an output range of [0,1]. , This indicates the optimal temperature location within the standardized space. Control the width of the suitable temperature range; The temperature after standardization; , Indicates the dissolved oxygen limiting threshold. Control the slope of the function. Dissolved oxygen after standardization treatment; , and These represent the limit thresholds for ammonia nitrogen and pH, respectively. and To control the slope of the function. and The ammonia nitrogen and pH values ​​after standardization. , Indicates the nitrate limit threshold. Control the slope of the function. This refers to the nitrate concentration after standardization treatment; Where H represents the future prediction step size; k represents the k-th prediction step in the future; and Let represent the predicted weight and the actual weight at the (t+k)th time step, respectively; and Let represent the predicted body length and the actual body length at the (t+k)th time step, respectively; The data prediction loss is used to measure the prediction error for weight and body length. For physiological constraint loss; Weighting coefficients to balance the data prediction loss and the physiological constraint loss; To limit losses within a reasonable range of growth rate, For the loss due to allometric growth consistency constraints, For smoothness constraint loss, To limit environmental losses, These are the weighting coefficients.

[0016] The technical solution adopted by the system of this invention is: a fish growth prediction system based on multi-source time-series data and a prediction network, comprising: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, enable the one or more processors to implement the fish growth prediction method based on multi-source time-series data and prediction networks.

[0017] Compared with the prior art, the beneficial effects of the present invention include: (1) This invention puts water quality environmental variables, fish growth variables and time characteristics into a unified multivariate time series modeling framework, which can simultaneously utilize environmental driving information and historical growth status information to improve the ability to predict short-term growth trends. (2) The present invention introduces a variable selection network and a group gating module, which can not only identify the importance of individual variables, but also adjust the contribution of different factors to the prediction results from the feature group level such as temperature, dissolved oxygen, nitrogen stress and historical growth status, thereby improving the model’s adaptability to complex aquaculture environments. (3) This invention characterizes the impact of different historical time steps on different future prediction steps through time-series coding and cross-time attention mechanism, and is applicable to continuous multi-step prediction scenarios; (4) The present invention introduces a reasonable range of specific growth rate, allometric growth relationship between body length and body weight, smoothness of prediction sequence and environmental rate limit constraint during the training stage, which can reduce non-physiological fluctuations and make the prediction results of body weight and body length more coordinated, stable and interpretable. (5) This invention can provide data support for intelligent feeding, growth assessment, size judgment and pond discharge decision in aquaculture, and has good application value. Attached Figure Description

[0018] The technical solutions of the present invention will be further illustrated below using embodiments and specific implementation methods. In addition, some accompanying drawings are used in the description of the technical solutions. Those skilled in the art can obtain other drawings and the intent of the present invention from these drawings without any creative effort.

[0019] Figure 1 This is a flowchart of a method according to an embodiment of the present invention; Figure 2 This is a diagram of the prediction network structure according to an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the training principle of the prediction network according to an embodiment of the present invention. Figure 4 This is a schematic diagram illustrating the composition of the prediction network training loss function according to an embodiment of the present invention; Figure 5 This is a schematic diagram comparing the overall error indices of different methods obtained in the experiments of this invention. Detailed Implementation

[0020] To facilitate understanding and implementation of the present invention by those skilled in the art, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the embodiments described herein are for illustration and explanation only and are not intended to limit the present invention.

[0021] Please see Figure 1 This embodiment provides a fish growth prediction method based on multi-source time-series data and a prediction network, comprising the following steps: Step 1: Obtain multi-source time-series data during the fish farming process, including water quality environmental variables, fish growth variables, and time characteristics, and preprocess the multi-source time-series data; In one implementation, environmental variables include average daily water temperature, average daily dissolved oxygen, average daily pH, average daily ammonia nitrogen, average daily nitrate, percentage of low dissolved oxygen exposure, and percentage of high ammonia nitrogen exposure; fish growth variables include body weight and body length; and time characteristics include time index, weekday, month, or periodic characteristics.

[0022] In one implementation, when preprocessing multi-source time-series data, the data is first aggregated according to a daily scale or other preset time scales; then, outliers that clearly exceed the reasonable range of aquaculture monitoring are removed, truncated, or corrected; for short missing segments, adjacent observations, linear interpolation, or spline interpolation are used to fill in the missing segments; for long missing segments, no forced filling is performed, but breakpoint isolation is performed to avoid uncertainty caused by manual filling; finally, the input features are standardized.

[0023] Step 2: Input the preprocessed multi-source time series data into the pre-trained variable selection network and group gating module to obtain a comprehensive feature representation of environmental factors and historical growth status; In one implementation, please see Figure 2 The variable selection network, abbreviated as VSN, comprises an input mapping layer, a univariate embedding layer, a variable importance evaluation layer, a softmax normalization layer, and a weighted fusion layer connected in sequence. The output of the variable selection network includes a variable weight output unit, used to output the importance weights of each input variable at the current time step. Where R is the real number field, and d represents the dimension of the input feature at each time step; The input mapping layer maps the original input variables to a unified latent space dimension, reducing the impact of differences in the scale and numerical range of different variables on model training. The univariate embedding layer encodes the features of each input variable to obtain the corresponding univariate feature representation. The variable importance evaluation layer calculates the contribution of different variables to the growth prediction task based on the overall input state at the current time step, obtaining a variable importance score. The overall input state at the current time step is obtained by concatenating the embedded features of each input variable output by the univariate embedding layer. Specifically, let the input variable at the t-th time step be: ; Where d represents the number of input variables, such as water temperature, dissolved oxygen, pH, ammonia nitrogen, nitrate, low dissolved oxygen percentage, high ammonia nitrogen percentage, body weight, body length, and time characteristics.

[0024] Each variable first goes through a univariate embedding layer: ; in, This represents the embedding feature of the j-th variable at time step t. This represents the feature mapping function corresponding to the j-th variable.

[0025] Then, the embedded features of all variables are concatenated to obtain the "overall input state at the current time step": ; in, It refers to the "overall input state at the current time step".

[0026] Then, the variable importance assessment layer based on Calculate the importance score for each variable: ; in, This indicates the importance score of each input variable. For trainable parameters, It is a non-linear activation function.

[0027] Then, the variable weights are obtained through Softmax: ; Finally, a weighted fusion is performed based on the variable weights: ; in, This represents the comprehensive input representation of the network output, indicating the variable selection.

[0028] The Softmax normalization layer is used to convert the variable importance scores into weight coefficients, so that the weights of each variable are in a comparable normalization space; the weighted fusion layer is used to perform weighted summation of different variable features according to the variable weights to obtain a comprehensive input representation after variable screening.

[0029] The variable selection network dynamically selects key variables more relevant to the current prediction task from multiple sources, including water temperature, dissolved oxygen, pH, ammonia nitrogen, nitrate, low dissolved oxygen percentage, high ammonia nitrogen percentage, body weight, body length, and temporal characteristics, while suppressing the interference of redundant and noisy variables on model training. Through this module, the prediction network can adaptively focus on environmental factors and historical growth states that primarily affect short-term fish growth at different time stages, thereby improving the utilization efficiency of multivariate input features and the interpretability of prediction results.

[0030] In one implementation, please see Figure 2 The Grouped Gating Module (GGM) comprises a feature grouping unit, a gating weight generation unit, a sigmoid activation layer, an inter-group weighted fusion unit, and a residual output unit.

[0031] The Sigmoid activation layer, inter-group weighted fusion unit, and residual output unit can be implemented using conventional basic operations in the field of neural networks. The feature grouping unit and gating weight generation unit can be implemented using fully connected layers, nonlinear activation function layers, or combinations thereof. This application does not take a single basic operation itself as an improvement point, but rather divides water quality environmental variables and fish growth variables into temperature group, dissolved oxygen group, nitrogen group, growth state group, and time feature group according to aquaculture semantics, generates dynamic gating weights on group-level features, and then performs inter-group weighted fusion and residual output to form a grouped gating structure suitable for short-term fish growth prediction tasks.

[0032] In one implementation, the feature grouping unit divides the input features into temperature, dissolved oxygen, nitrogen, growth status, and time feature groups based on the aquaculture semantics and physiological effects of the variables. Specifically, the temperature group characterizes the impact of water temperature changes on fish feeding and metabolic activities; the dissolved oxygen group characterizes the impact of dissolved oxygen conditions on fish respiration, feeding, and growth status; the nitrogen group characterizes the impact of water quality stress factors such as ammonia nitrogen and nitrate on fish growth potential; the growth status group characterizes historical changes in fish body weight and length; and the time feature group characterizes the temporal sequence and periodic changes during the growth process.

[0033] The gating weight generation unit generates a gating score based on the in-group feature representation: ; in, This represents the gating score of the q-th feature group at time step t. This represents the trainable weight parameters corresponding to the q-th feature group. This represents the bias parameter corresponding to the q-th feature group.

[0034] The Sigmoid activation layer is used to restrict the gating weights to between 0 and 1: ; in, This represents the gating weight of the q-th feature group at time step t. This represents the Sigmoid activation function.

[0035] The inter-group weighted fusion unit is used to perform weighted fusion of different feature groups according to the gating weights and output the inter-group fusion result; the residual output unit is used to perform residual concatenation between the inter-group fusion result and the input features to obtain the comprehensive feature representation. ;in, This represents the comprehensive feature representation output by the group gating module at time step t, where t represents the time step and 0 indicates that the comprehensive feature is the initial fused feature representation before being input to the timing encoder. Indicates the number of feature groups; Indicates the first Class feature group in the first Gating weights for each time step; Indicates the first Feature mapping function for feature groups; Indicates the first Class feature group in the first Features of each time step; Where R represents the real number field, This represents the comprehensive feature dimension output by the group gating module, which is a hyperparameter preset by the model.

[0036] The grouping gating module serves to further adjust the contribution of different categories of information to fish growth prediction at the feature group level, after the variable selection network has completed the screening at the individual variable level. Compared with directly concatenating all variables, this module can better distinguish the relative effects of temperature, dissolved oxygen, nitrogen stress, historical growth status, and time factors at different stages, expanding the prediction network from the expression level of "single variable importance" to the expression level of "variable group importance," thereby enhancing the model's ability to characterize the relationship between changes in the aquaculture environment and fish growth response.

[0037] Step 3: Input the comprehensive feature representation into the pre-trained temporal encoder and cross-temporal information interaction module, and obtain the context representation based on the impact of the learned historical growth process and environmental change process on future growth changes; In one implementation, please see Figure 2 The temporal encoder comprises a time position encoding layer, a sequence feature projection layer, a gated cyclic encoding layer, a temporal feature enhancement layer, a residual connection layer, and a normalized output layer, connected in sequence.

[0038] The time position encoding layer is used to inject time sequence information into the input sequence and output the feature representation after injecting the time sequence information t. ;in, This represents the initial synthesized feature representation output by the group gating module at time step t; This represents the position code corresponding to the t-th time step; The sequence feature projection layer is used to project the feature representation output by the time position encoding layer. Mapping to a unified temporal latent space, outputting shallow temporal features. ;in, This represents the trainable weight matrix of the sequence feature projection layer; This represents the bias parameters of the sequence feature projection layer; The gated recurrent coding layer is used to obtain the continuous dependency relationship between environmental variables and fish growth status within the historical window, and output the temporal hidden state. ;in, This represents the temporal hidden state output by the gated cyclic coding layer at time step t; This indicates the hidden state of the previous time step; This represents a gated cyclic encoding function, which can be implemented using LSTM or GRU; The temporal feature enhancement layer is used to further extract the phased change features, short-term fluctuation features, and long-term trend features from the historical input sequence, and output deep temporal features. ;in, and These represent the trainable weight matrix and bias parameters of the temporal feature enhancement layer, respectively; δ( ) represents a non-linear activation function; The residual connection layer is used to project the shallow temporal features output by the sequence feature projection layer. The deep temporal features output by the temporal feature enhancement layer Perform residual connections to preserve basic information in shallow input features and reduce information loss during deep temporal coding; output ,in, Norm represents the hidden state at time step t after residual connection and normalization; ) indicates normalization processing; It is a shallow temporal feature. It is a deep temporal enhancement feature, and the two are in a unified latent space, which can be residual connected; The normalized output layer is used to stabilize the hidden state distribution and output the historical hidden state sequence. Where T represents the history window length, , This represents the comprehensive feature dimension output by the group gating module, which is a hyperparameter preset by the model.

[0039] The temporal encoder serves to continuously model the environmental changes and fish growth process over a historical 21-day period, extracting information on the impact of historical water quality, weight changes, and length changes on future growth trends. Since fish growth is continuous and cumulative, future weight and length are influenced not only by current environmental conditions but also by previous water quality changes and historical growth states. Therefore, the temporal encoder can effectively learn the historical environment-growth coupling process, providing a temporal feature foundation for subsequent multi-step predictions.

[0040] In one implementation, please see Figure 2The Cross-Time Information Interaction Module (CTIIM) comprises a query vector generation layer, a key vector generation layer, a value vector generation layer, a time attention calculation layer, and a context aggregation layer.

[0041] Among them, query vector generation, key vector generation, value vector generation, attention weight calculation, and context aggregation operations can be implemented using the basic operations of the attention mechanism commonly used in the field of deep learning. The improvement of this application is not in the attention calculation operation itself, but in combining the above basic operations with the short-term multi-step growth prediction task of fish to form a cross-time information interaction structure for different prediction steps in the future, so that the model can adaptively select more relevant environmental change information and growth status information within the historical window for different time steps in the future.

[0042] Specifically, for the k-th prediction step in the future, the query vector generation layer generates a query vector corresponding to the k-th prediction step in the future. The key vector generation layer generates key vectors based on the historical hidden state sequence H output by the temporal encoder. The value vector generation layer generates value vectors based on the historical hidden state sequence H output by the temporal encoder. The time attention computation layer is used to compute the query vector. With key vector The correlation between them is used to obtain the attention weights between the future prediction step and different historical time steps; the context aggregation layer, based on the attention weights... For historical value vectors Weighted aggregation yields the future number. The context representation of each prediction step : ; ; in, , This represents the comprehensive feature dimension output by the group gating module, which is a preset hyperparameter of the model; T represents the length of the historical window. Indicates the prediction of the future. Heaven's History τ Attention weight of Tianxin Information; Indicates the first in history The value vector corresponding to each time step; This represents the trainable weight matrix of the query vector generation layer, used to embed the step size of the k-th prediction step into q. k Mapped to query vector Q k ;qk This represents the step size embedding or position embedding representation for the k-th prediction step in the future; This represents the trainable weight matrix of the key vector generation layer, used to store the historical hidden states h. τ Mapped to key vector K τ h τ d represents the hidden state at the τ-th time step of the history output by the timing encoder; d represents the query vector Q. k and bond vector K τ The feature dimension; τ′ represents the time step index used for summation and normalization within the historical window; τ′=t-T+1,…,t indicates that the attention weights are normalized within the historical window from tT to t; The dot product similarity represents the similarity between the query vector at the k-th prediction step and the key vector at the τ-th historical time step. It measures the correlation between the hidden state at the k-th prediction step and the hidden state at the τ-th historical time step. The larger the dot product similarity, the more the model tends to focus on the information from the τ-th historical time step when predicting the k-th prediction step.

[0043] The cross-time information interaction module establishes a dynamic correlation between different future prediction steps and different historical time steps. For predictions of days 1 through 7, the historical information relied upon by the prediction network may not be entirely the same; short-term predictions typically rely more on the growth status of the most recent days, while more distant prediction steps may require a comprehensive consideration of environmental changes and growth trends over a longer period. Through this module, the prediction network can adaptively select more contributing historical time slices for different prediction steps, improving the targeting and stability of information utilization during multi-step prediction.

[0044] Step 4: Input the context representation into the pre-trained fish length and weight coupling prediction module, and jointly output the predicted fish weight and fish length for future consecutive time steps.

[0045] In one implementation, please see Figure 2 The length-weight coupled prediction module (LWCPM) comprises a shared feature input layer and a coupled feature mapping layer connected in sequence. Following the coupled feature mapping layer, a weight prediction branch and a length prediction branch are set in parallel. Each weight prediction branch and length prediction branch is equipped with a multi-step prediction head to output the weight prediction sequence and length prediction sequence for future consecutive time steps.

[0046] The shared feature input layer, coupled feature mapping layer, weight prediction branch, body length prediction branch, and multi-step prediction head can be implemented using fully connected layers, nonlinear activation function layers, normalization layers, or combinations thereof. The improvement of this application lies not in the fully connected prediction layer itself, but in mapping the future prediction step context representation output by the cross-time information interaction module to the body length and weight shared coupled features, and outputting the weight prediction sequence and body length prediction sequence for future continuous time steps in parallel under the same prediction framework. At the same time, the coordination between the two prediction objectives is improved through the dual-objective interactive constraint unit.

[0047] The shared feature input layer is used to receive the context representation output by the cross-temporal information interaction module. ; The coupled feature mapping layer is used to map the context representation into shared coupled features suitable for joint prediction of body length and weight. ,in, This represents the shared coupling feature corresponding to the k-th prediction step in the future; and These are the trainable parameters for the coupled feature mapping layer; Represents a nonlinear activation function; The weight prediction branch is used to output predicted fish weight values ​​for each future time step based on shared coupling features: ; ; in, This represents the predicted fish body weight at the (t+k)th time step in the future; This represents the intermediate features of the weight prediction branch; This represents the trainable weight matrix of the intermediate mapping layer in the weight prediction branch, used to link shared coupled features. The intermediate features are mapped to the weight prediction branch; This represents the trainable bias parameters of the intermediate mapping layer in the weight prediction branch; This represents the trainable weight vector of the output layer of the weight prediction branch, used to incorporate the intermediate features of the weight prediction branch. Mapped to a specific predicted weight value; This represents the trainable bias parameters of the weight prediction branch output layer; The body length prediction branch is used to output the predicted body length of the fish at each future time step based on the shared coupling features: , ; in, This represents the predicted body length of the fish at the (t+k)th time step in the future; This represents the intermediate features of the body length prediction branch; This represents the trainable weight matrix of the intermediate mapping layer in the body length prediction branch, used to integrate shared coupled features. The intermediate features are mapped to the body length prediction branch; This represents the trainable bias parameters of the intermediate mapping layer in the body length prediction branch; This represents the trainable weight vector of the output layer of the body length prediction branch, used to incorporate the intermediate features of the body length prediction branch. This is mapped to a specific predicted body length value. This represents the trainable bias parameters of the output layer of the body length prediction branch.

[0048] The function of the body length and weight coupling prediction module is to jointly output the two growth indicators of fish body weight and body length in the same model framework, so as to avoid the separation of weight prediction and body length prediction.

[0049] In one implementation, please see Figure 3 The variable selection network, group gating module, time encoder, cross-time information interaction module, and body length and weight coupled prediction module constitute the prediction network. The prediction network is a trained network. During the training process, a dual-objective interaction constraint unit is set between the weight prediction branch and the body length prediction branch to establish the information interaction relationship between the two prediction objectives of body length and weight. This allows the two prediction branches to constrain and complement each other based on shared features, thereby improving the coordination and physiological rationality of the joint prediction results of body length and weight. The training process includes the following steps: (1) Data acquisition and training sample construction; Multi-source time-series data of fish farming process is acquired, including water quality environmental variables, fish growth variables and time characteristics, and the multi-source time-series data is preprocessed; training samples for short-term growth prediction are constructed based on the preprocessed multi-source time-series data, the training samples take data within the historical time window as input and fish body weight and body length in future continuous time steps as prediction targets. During training, historical data from the past 21 days was used as the input window to predict the fish's body weight and length for the next 7 days. Let the... The environmental variables for today are The fish's growth state is Then we have: ; , ; in, , , , and They represent the first The water temperature, dissolved oxygen, pH, ammonia nitrogen, and nitrate levels for the day. and These represent the percentages of low dissolved oxygen exposure and high ammonia nitrogen exposure, respectively. represents weight, This represents body length. See Table 1 for a description of the main variables used in the training.

[0050] Table 1. Explanation of Key Variables

[0051] (2) During the training process, the body length and weight coupling constraints and environmental growth constraints are constructed. The reasonable range of specific growth rate, the allometric growth relationship between body length and weight, the smoothness of the prediction sequence, and the upper limit constraint of growth based on water quality conditions are incorporated into the total loss function to obtain the trained fish growth prediction network.

[0052] Since there is usually a relatively stable allometric growth relationship between fish weight and body length, predicting the two targets independently may result in inconsistent trends in weight and body length changes. By setting up a dual-target interactive constraint unit, the prediction network can simultaneously utilize the intrinsic relationship between weight and body length during the prediction process. This allows the two prediction branches to constrain and complement each other based on shared features, thereby improving the coordination and physiological rationality of the joint prediction results of body length and weight.

[0053] Please see Figure 4 The loss function used in the training process in this embodiment is: The loss function used during training is: (1) Total loss function:

[0054] (2) Data prediction loss:

[0055] (3) Loss of physiological restraint:

[0056] (4) Predicting specific growth rate

[0057] (5) Constraint loss within the reasonable range of growth rate

[0058] (6) Allometric growth relationship between body length and body weight

[0059]

[0060] (7) Loss of uniformity constraint in allometric growth

[0061] (8) Smoothness constraint loss

[0062] (9) Environmental limitation losses

[0063] Where H represents the future prediction step size; k represents the k-th prediction step in the future; and Let represent the predicted weight and the actual weight at the (t+k)th time step, respectively; and Let represent the predicted body length and the actual body length at the (t+k)th time step, respectively; The data prediction loss is used to measure the prediction error for weight and body length. For physiological constraint loss; Weighting coefficients to balance the data prediction loss and the physiological constraint loss; To limit losses within a reasonable range of growth rate, For the loss due to allometric growth consistency constraints, For smoothness constraint loss, To limit environmental losses, These are the weighting coefficients.

[0064] Loss constrained by reasonable growth rate range Predicted growth rate ;in, This indicates the reasonable lower limit of the specific growth rate of fish, used to limit the predicted growth rate from falling below the normal growth range; Δt represents the reasonable upper limit of the fish's specific growth rate, used to limit the predicted growth rate from exceeding the normal growth range; Δt represents the time interval between two adjacent time steps, and when the prediction is made on a daily basis, Δt=1; a and b are parameters of the body length-weight allometric growth relationship, where a represents the allometric growth ratio coefficient and b represents the allometric growth index; both can be obtained by fitting historical body length and weight observation data, or they can be optimized as learnable parameters during model training. This represents the water quality environmental state corresponding to the (t+k)th time step, which may include environmental variables such as water temperature, dissolved oxygen, pH, ammonia nitrogen, nitrate, low dissolved oxygen percentage, and high ammonia nitrogen percentage. Indicates the environmental state The maximum specific growth rate that fish are allowed to achieve under constraints, that is, the upper limit of growth rate determined by the current water quality conditions; Indicates the basal growth ratio; , , , , These represent the water temperature, dissolved oxygen, ammonia nitrogen, pH, and nitrate concentration at the (t+k)th time step, respectively. , , , These are the constraint factor functions for temperature, dissolved oxygen, ammonia nitrogen, and nitrate concentration, respectively, with an output range of [0,1]. Each environmental variable (water temperature, dissolved oxygen, ammonia nitrogen, and pH) is standardized before being input into the constraint factor function, denoted as […]. , , and .

[0065] The temperature limiting factor is represented by a bell-shaped function: ; in, This indicates the optimal temperature location within the standardized space. Control the width of the suitable temperature range. When the temperature approaches the optimal range... It is close to 1; as the temperature deviates from the suitable range, the factor gradually decreases.

[0066] Dissolved oxygen limiting factor is defined as: ; in, Indicates the dissolved oxygen limiting threshold. Control the slope of the limiting function. When dissolved oxygen levels are low... A decrease indicates that low dissolved oxygen conditions inhibit the upper limit of fish growth; as dissolved oxygen levels increase, this factor gradually approaches 1.

[0067] The ammonia nitrogen limiting factor, which takes into account both ammonia nitrogen concentration and pH conditions, is defined as: ; in, and These represent the limit thresholds for ammonia nitrogen and pH, respectively. and Control function slope. When ammonia nitrogen concentration increases or pH conditions deviate from the optimal range, This reduces the upper limit of the growth rate allowed by environmental conditions.

[0068] The nitrate concentration limiting factor is defined as: ; in, Indicates the nitrate limit threshold. Control the slope of the function. This indicates the standardized nitrate concentration. When the nitrate concentration is low or within a suitable range... Approaching 1; when nitrate concentration increases and exceeds the limit threshold, A gradual decrease indicates that nitrate accumulation inhibits the upper limit of fish growth, thereby reducing the upper limit of the growth rate allowed by environmental conditions.

[0069] The invention will be further illustrated below through specific experiments.

[0070] In the experiment, experimental samples were constructed using IoT monitoring data from aquaculture ponds, and body weight and length for the next 7 days were predicted using historical 21-day data. Comparison methods included traditional growth curve models and depth-based time-series prediction models. Evaluation metrics included RMSE, MAE, MAPE, and R², where lower values ​​for RMSE, MAE, and MAPE indicate lower errors, and a closer R² to 1 indicates a stronger explanatory power for the model's true trend.

[0071] The experiment employed seven comparative methods, including three traditional growth curve models and four depth time series prediction models. The Chinese names, basic ideas, and references of each method are shown in Table 2 below.

[0072] Table 2 Seven Comparison Methods

[0073] The experimental results are shown in Table 3 below.

[0074] Table 3. Experimental results of the overall prediction performance of different models.

[0075] Please see Figure 5 Table 3 shows a comparison of the overall error indices of different methods obtained in the experiments of this invention. (a) represents the root mean square error, (b) the mean absolute error, (c) the mean absolute percentage error, and (d) the determination system. The experimental results in Table 3 demonstrate that the method of this invention performs excellently in terms of overall performance. Compared with the TFT model without constraint enhancement, the RMSE of the method of this invention is significantly higher. mean MAE mean and MAPE mean Reduce respectively, R² mean The improvement indicates that by further introducing environmental limiters, group gating, and physiological constraints on the basis of the interpretable temporal modeling framework, the overall accuracy and stability of body length-weight joint prediction can be improved.

[0076] This invention focuses on the joint prediction of fish body length and weight, incorporating environmental factors, historical growth status, and temporal characteristics into a unified multivariate time-series modeling framework. It learns the dynamic relationship between environmental changes and fish growth status through variable selection, group gating, time-series coding, and cross-time information interaction mechanisms. During the training phase, it further introduces constraints such as specific growth rate, body length-weight allometric growth relationship, prediction smoothness, and environmental growth upper limit, thereby improving the accuracy, stability, and biological rationality of the prediction results.

[0077] It should be understood that the embodiments described above are only some, not all, of the embodiments of the present invention. Furthermore, the technical features of the various embodiments or individual embodiments provided by the present invention can be arbitrarily combined to form feasible technical solutions. Such combinations are not constrained by the order of steps and / or structural composition patterns, but must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.

[0078] It should be understood that the above description of the preferred embodiments is quite detailed, but it should not be considered as a limitation on the scope of protection of this invention. Those skilled in the art, under the guidance of this invention, can make substitutions or modifications without departing from the scope of protection of the claims of this invention, and all such substitutions or modifications fall within the scope of protection of this invention. The scope of protection of this invention should be determined by the appended claims.

Claims

1. A fish growth prediction method based on multi-source time series data and a prediction network, characterized in that, Includes the following steps: Step 1: Obtain multi-source time-series data during the fish farming process, including water quality environmental variables, fish growth variables, and time characteristics, and preprocess the multi-source time-series data; Step 2: Input the preprocessed multi-source time series data into the pre-trained variable selection network and group gating module to obtain a comprehensive feature representation of environmental factors and historical growth status; Step 3: Input the comprehensive feature representation into the pre-trained temporal encoder and cross-temporal information interaction module, and obtain the context representation based on the impact of the learned historical growth process and environmental change process on future growth changes; Step 4: Input the context representation into the pre-trained fish length and weight coupling prediction module, and jointly output the predicted fish weight and fish length for future consecutive time steps. 2.The fish growth prediction method based on multi-source time series data and a prediction network according to claim 1, wherein: In step 1, the environmental variables include water temperature, dissolved oxygen, pH, ammonia nitrogen, nitrate, low dissolved oxygen percentage, and high ammonia nitrogen percentage; the growth variables include fish body weight and fish body length; and the time characteristics include time index, weekday or month information, and periodicity characteristics. 3.The fish growth prediction method based on multi-source time series data and a prediction network according to claim 1, wherein: In step 1, the preprocessing includes: first, time-scale aggregation of water quality environmental variables and fish growth variables; then, outlier processing of data that are outside the scope of aquaculture monitoring; completion of short missing segments using adjacent observations or interpolation; isolation of breakpoints for long missing segments; and finally, standardization processing.

4. The fish growth prediction method based on multi-source time-series data and prediction network according to claim 1, characterized in that: In step 2, the variable selection network comprises, in sequence, an input mapping layer, a single-variable embedding layer, a variable importance evaluation layer, a Softmax normalization layer and a weighted fusion layer; and an output end of the variable selection network is provided with a variable weight output unit for outputting the importance weights of each input variable at the current time step ; wherein R is a real number field, and d represents the input feature dimension corresponding to each time step. The input mapping layer is used to map the original input variables to a unified latent space dimension; The univariate embedding layer is used to encode the output variables of the input mapping layer to obtain the corresponding univariate feature representations. The variable importance assessment layer is used to calculate the contribution of different variables to the growth prediction task based on the overall input state at the current time step, and obtain a variable importance score; wherein, the overall input state at the current time step is obtained by concatenating the embedding features of each input variable output by the univariate embedding layer; specifically, let the input variable at the t-th time step be... Where n represents the number of input variables; each variable first passes through a univariate embedding layer. ,in, This represents the embedding feature of the j-th variable at time step t. Let represent the feature mapping function corresponding to the j-th variable; then, concatenate the embedded features of all variables to obtain the overall input state at the current time step. Subsequently, the variable importance assessment layer based on Calculate the importance score for each variable ,in, This indicates the importance score of each input variable. For trainable parameters, It is a non-linear activation function; The Softmax normalization layer is used to convert variable importance scores into weight coefficients. This ensures that the weights of each variable are in a comparable normalized space, where j∈(1,n) and m∈(1,n). The weighted fusion layer is used to sum the features of different variables according to the variable weights to obtain the comprehensive input representation after variable filtering. .

5. The fish growth prediction method based on multi-source time-series data and prediction network according to claim 1, characterized in that: In step 2, the grouping gating module includes a feature grouping unit, an intra-group feature mapping unit, a gating weight generation unit, a Sigmoid activation layer, an inter-group weighted fusion unit, and a residual output unit. The feature grouping unit divides the input features into temperature, dissolved oxygen, nitrogen, growth status, and time features groups. The temperature group characterizes the impact of water temperature changes on fish feeding and metabolic activities; the dissolved oxygen group characterizes the impact of dissolved oxygen conditions on fish respiration, feeding, and growth status; the nitrogen group characterizes the impact of ammonia nitrogen and nitrate on fish growth potential; the growth status group characterizes historical changes in fish body weight and length; and the time features group characterizes the temporal sequence and periodic changes during the growth process. The intra-group feature mapping unit performs feature mapping on the q-th class features to obtain the intra-group feature representation. ,in, Let q be the input representation of the q-th feature group at the t-th time step, where q = 1, 2, ..., Q, and Q represents the number of feature groups. This represents the within-group feature representation of the q-th feature group at time step t. This represents the feature mapping function corresponding to the q-th feature group; The gating weight generation unit generates a gating score based on the in-group feature representation. ,in, This represents the gating score of the q-th feature group at time step t. This represents the trainable weight parameters corresponding to the q-th feature group. This represents the bias parameter corresponding to the q-th feature group; The Sigmoid activation layer is used to restrict the gating weights to between 0 and 1. ,in, This represents the gating weight of the q-th feature group at time step t. This represents the Sigmoid activation function; The inter-group weighted fusion unit is used to perform weighted fusion on different feature groups according to the gating weight and output the inter-group fusion result. The residual output unit is used to perform a residual concatenation between the inter-group fusion result and the input features to obtain a comprehensive feature representation. ;in, This represents the comprehensive feature representation output by the group gating module at time step t, where t represents the time step and 0 indicates that the comprehensive feature is the initial fused feature representation before being input to the timing encoder. R represents the real number field. This represents the comprehensive feature dimension output by the group gating module, which is a hyperparameter preset by the model.

6. The fish growth prediction method based on multi-source time-series data and prediction network according to claim 1, characterized in that: In step 3, the timing encoder includes a time position coding layer, a sequence feature projection layer, a gated cyclic coding layer, a timing feature enhancement layer, a residual connection layer, and a normalized output layer connected in sequence. The time position encoding layer is used to inject time sequence information into the input sequence and output the feature representation after injecting the time sequence information t. ;in, This represents the initial synthesized feature representation output by the group gating module at time step t; This represents the position code corresponding to the t-th time step; The sequence feature projection layer is used to project the feature representation output by the time position encoding layer. Mapping to a unified temporal latent space, outputting shallow temporal features. ;in, This represents the trainable weight matrix of the sequence feature projection layer; This represents the bias parameters of the sequence feature projection layer; The gated recurrent coding layer is used to obtain the continuous dependency relationship between environmental variables and fish growth status within the historical window, and output the temporal hidden state. ;in, This represents the temporal hidden state output by the gated cyclic coding layer at time step t; This indicates the hidden state of the previous time step; This represents a gated cyclic encoding function; The temporal feature enhancement layer is used to further extract the phased change features, short-term fluctuation features, and long-term trend features from the historical input sequence, and output deep temporal features. ;in, and These represent the trainable weight matrix and bias parameters of the temporal feature enhancement layer, respectively; δ( ) represents a non-linear activation function; The residual connection layer is used to project the shallow temporal features output by the sequence feature projection layer. The deep temporal features output by the temporal feature enhancement layer Perform residual connection and output. ,in, Norm represents the hidden state at time step t after residual connection and normalization; ) indicates normalization processing; The normalized output layer is used to stabilize the hidden state distribution and output the historical hidden state sequence. Where T represents the history window length, , This represents the comprehensive feature dimension output by the group gating module, which is a hyperparameter preset by the model.

7. The fish growth prediction method based on multi-source time-series data and prediction network according to claim 1, characterized in that: In step 3, the cross-time information interaction module includes a query vector generation layer, a key vector generation layer, a value vector generation layer, a time attention calculation layer, and a context aggregation layer. For the k-th prediction step in the future, the query vector generation layer generates a query vector corresponding to the k-th prediction step in the future. ; The key vector generation layer generates key vectors based on the historical hidden state sequence H output by the time encoder. The value vector generation layer generates value vectors based on the historical hidden state sequence H output by the time encoder. The time attention computation layer is used to compute the query vector. With key vector The correlation between them is used to obtain the attention weights between future prediction steps and different historical time steps; The context aggregation layer, based on attention weights For historical value vectors Weighted aggregation yields the future number. The context representation of each prediction step : ; ; in, , This represents the comprehensive feature dimension output by the group gating module, which is a preset hyperparameter of the model; T represents the length of the historical window. Indicates the prediction of the future. Heaven's History τ Attention weight of Tianxin Information; Indicates the first in history The value vector corresponding to each time step; This represents the trainable weight matrix of the query vector generation layer, used to embed the step size of the k-th prediction step into q. k Mapped to query vector Q k ;q k This represents the step size embedding or position embedding representation for the k-th prediction step in the future; This represents the trainable weight matrix of the key vector generation layer, used to store the historical hidden states h. τ Mapped to key vector K τ h τ d represents the hidden state at the τ-th time step of the history output by the timing encoder; d represents the query vector Q. k and bond vector K τ The feature dimension; τ′ represents the time step index used for summation and normalization within the historical window; τ′=t-T+1,…,t indicates that the attention weights are normalized within the historical window from tT to t; This represents the dot product similarity between the query vector at the k-th prediction step and the key vector at the τ-th historical time step, used to measure the correlation between the hidden states at the k-th prediction step and the τ-th historical time step.

8. The fish growth prediction method based on multi-source time-series data and prediction network according to claim 1, characterized in that: In step 4, the body length and weight coupled prediction module includes a shared feature input layer and a coupled feature mapping layer connected in sequence, and a weight prediction branch and a body length prediction branch are set in parallel after the coupled feature mapping layer; the weight prediction branch and the body length prediction branch respectively output the weight prediction sequence and the body length prediction sequence for future consecutive time steps; The shared feature input layer is used to receive the context representation output by the cross-temporal information interaction module. The coupled feature mapping layer is used to map the context representation into shared coupled features suitable for joint prediction of body length and weight. ,in, This represents the shared coupling feature corresponding to the k-th prediction step in the future; and These are the trainable parameters for the coupled feature mapping layer; Represents a nonlinear activation function; The weight prediction branch is used to output predicted fish weight values ​​for each future time step based on shared coupling features. , ;in, This represents the predicted fish body weight at the (t+k)th time step in the future; This represents the intermediate features of the weight prediction branch; This represents the trainable weight matrix of the intermediate mapping layer in the weight prediction branch, used to link shared coupled features. The intermediate features are mapped to the weight prediction branch; This represents the trainable bias parameters of the intermediate mapping layer in the weight prediction branch; This represents the trainable weight vector of the output layer of the weight prediction branch, used to incorporate the intermediate features of the weight prediction branch. Mapped to a specific predicted weight value; This represents the trainable bias parameters of the weight prediction branch output layer; The body length prediction branch is used to output predicted fish body length values ​​for each future time step based on shared coupling features. , ;in, This represents the predicted body length of the fish at the (t+k)th time step in the future; This represents the intermediate features of the body length prediction branch; This represents the trainable weight matrix of the intermediate mapping layer in the body length prediction branch, used to integrate shared coupled features r. k The intermediate features are mapped to the body length prediction branch; This represents the trainable bias parameters of the intermediate mapping layer in the body length prediction branch; This represents the trainable weight vector of the output layer of the body length prediction branch, used to incorporate the intermediate features of the body length prediction branch. This is mapped to a specific predicted body length value. This represents the trainable bias parameters of the output layer of the body length prediction branch.

9. The fish growth prediction method based on multi-source time-series data and prediction network according to claim 1, characterized in that: The prediction network consists of a variable selection network, a group gating module, a temporal encoder, a cross-time information interaction module, and a body length-weight coupled prediction module. The body length-weight coupled prediction module includes a shared feature input layer and a coupled feature mapping layer connected in sequence, with a weight prediction branch and a body length prediction branch set in parallel after the coupled feature mapping layer. The prediction network is a trained network. During training, a dual-objective interaction constraint unit is set between the weight prediction branch and the body length prediction branch to establish the information interaction relationship between the two prediction objectives of body length and weight. This allows the two prediction branches to constrain and complement each other based on shared features, thereby improving the coordination and physiological rationality of the joint prediction results of body length and weight.

10. A fish growth prediction system based on multi-source time-series data and a prediction network, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the fish growth prediction method based on multi-source time-series data and prediction networks as described in any one of claims 1 to 9.