2.5.3. Predicting the Fresh Weight in the Next m0 Days

Schematic diagram of the solution process for predicting fresh weight in the next *m*<sup>0</sup> days based on the phenotypic and environmental data from the previous *k* days is shown as Figure 4.

**Figure 4.** Schematic diagram of the solution process for predicting fresh weight in the next *m*<sup>0</sup> days based on the phenotypic and environmental data from the previous *k* days.

<sup>1</sup> According to the method of predicting the fresh weight in the next 2 days, the fresh weight increment from day *n*<sup>0</sup> − *k* − 2 to day *n*<sup>0</sup> + 2 can be obtained.

<sup>2</sup> By analogy, the instantaneous fresh weight on day *n*<sup>0</sup> − *k* + *m*<sup>0</sup> − 1, cumulative environmental factors, and predicted fresh weight increment from day *n*<sup>0</sup> − *k* + *m*<sup>0</sup> − 1 to day *n*<sup>0</sup> + *m*<sup>0</sup> − 1 are taken as the last element to construct a new dataset labeled *m0*, which has a total of *n*<sup>0</sup> − *k* + *m*<sup>0</sup> − 1 elements. The dataset labeled *m0* is imported into the naive Bayesian network for training and testing of the model.

<sup>3</sup> The cumulative environmental factors from day *n*<sup>0</sup> − *k* + *m*<sup>0</sup> to day *n*<sup>0</sup> + *m*<sup>0</sup> and the instantaneous fresh weight on day *n*<sup>0</sup> + *m*<sup>0</sup> are taken as the inputs of the above model, and the fresh weight increment from day *n*<sup>0</sup> − *k* + *m*<sup>0</sup> to day *n*<sup>0</sup> + *m*<sup>0</sup> is derived by substituting them into the above model.

<sup>4</sup> With reference to Equations (13) and (14), the instantaneous fresh weight on day *n0 + m0* and the relative error are calculated.

Therefore, through the above methods, the future fresh weight can be predicted using phenotypic and environmental data. For example, if instantaneous fresh weight on the next day is predicted, the cumulative environmental factors from day *n*<sup>0</sup> − *k* + 1 to day *n*<sup>0</sup> + 1 will be used, which from day *n*<sup>0</sup> − *k* + 1 to day *n*<sup>0</sup> are real and known. However, the cumulative environmental factors from day *n*<sup>0</sup> to day *n*<sup>0</sup> + 1 have not occurred and are unknown. Even if there is an error in estimating the environmental factors from day *n*<sup>0</sup> to day *n*<sup>0</sup> + 1, the impact on the accuracy of the cumulative environmental factors from

day *n*<sup>0</sup> − *k* + 1 to *n*<sup>0</sup> + 1 is only 1/*k*. The overall error generated in fresh weight dynamic prediction is not too large.
