Wastewater plants must remove nitrogen before releasing treated water, because excess nitrogen helps create low-oxygen waters that harm sea life, a real problem in Norway’s Oslofjord. One key form, nitrate, is hard to measure continuously. Working with a test reactor at the Veas treatment plant near Oslo, the researchers trained AI models to estimate nitrate levels from twelve other sensor readings, using about a year of data and testing on the following six months. A modern AI model called a Transformer gave the most accurate estimates, clearly beating more traditional methods. This could help plant operators dose chemicals more precisely and keep the treatment process stable.