This invention discloses a
data analysis-based method for predicting soil
fluoride content, belonging to the field of
data prediction. The method includes: S1, acquiring environmental parameters of soil samples and recording the soil
fluoride content under the current environmental parameters; S2, randomly
shuffling the environmental parameter data, preprocessing the shuffled data, and dividing it into training and test sets; S3, constructing a first soil
fluoride content prediction model using a
backpropagation (BP) neural network; S4, optimizing the number of hidden
layers and learning rate factor of the first prediction model using an improved grey
goose optimization
algorithm; S5, reconstructing the prediction model using the optimal number of hidden
layers and learning rate factor, and finally training it on the entire
training set to obtain a second prediction model; S6, inputting the
test set into the second prediction model, iterating the training process, calculating the prediction effect using the mean squared
error function, until the target prediction error for soil fluoride content is reached, and outputting the soil fluoride content prediction result.