Water quality early warning is a key aspect in industrial recirculating aquaculture systems for high-density shrimp farming. The concentrations of ammonia nitrogen and nitrite in the water significantly impact the cultured animals and are challenging to measure in real-time, posing a substantial challenge to water quality early warning technology. This study aims to collect data samples using low-cost water quality sensors during the industrial recirculating aquaculture process and to construct predictive values for ammonia nitrogen and nitrite, which are difficult to obtain through sensors in the aquaculture environment, using data prediction techniques. This study employs various machine learning algorithms, including General Regression Neural Network (GRNN), Deep Belief Network (DBN), Long Short-Term Memory (LSTM), and Support Vector Machine (SVM), to build predictive models for ammonia nitrogen and nitrite. The accuracy of the models is determined by comparing the predicted values with the actual values, and the performance of the models is evaluated using Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), and Root Mean Square Error (RMSE) metrics. Ultimately, the optimized GRNN-based predictive model for ammonia nitrogen concentration (MAE = 0.5915, MAPE = 28.95%, RMSE = 0.7765) and the nitrite concentration predictive model (MAE = 0.1191, MAPE = 29.65%, RMSE = 0.1904) were selected. The models can be integrated into an Internet of Things system to analyze the changes in ammonia nitrogen and nitrite concentrations over time through aquaculture management and routine water quality conditions, thereby achieving the application of recirculating aquaculture system water environment early warning technology.