This study examined the behavioral responses of Nile Tilapia (Oreochromis niloticus), a key aquaculture species, to ammonia stress using non-invasive image processing techniques. The experiment was conducted under controlled laboratory conditions and involved four groups exposed to ammonium chloride concentrations (0, 100, 200, and 400 mg·lt−1). Movement trajectories of individual fish were recorded over 10 h using high-resolution cameras positioned above and beside glass tanks. Images were processed with the Optical Flow Farneback algorithm in Python, implemented in Visual Studio Code with OpenCV and NumPy libraries, achieving a 91.40% accuracy rate in tracking fish positions. The results revealed that increasing ammonia levels restricted movement areas while elevating movement irregularity and activity. The 0 mg·lt−1 group utilized the glass tank homogeneously, covering 477 m. In contrast, the 100 mg·lt−1 group showed clustering in specific areas (796 m). At 200 mg·lt−1, clustering intensified, particularly along the glass tank’s left edge (744 m), and at 400 mg·lt−1, fish exhibited severe restriction near the water surface with markedly increased activity (928 m). Statistical analyses using Kruskal–Wallis and Dunn tests confirmed significant differences between the 400 mg·lt−1 group and others. No difference was observed between the 0 mg·lt−1 and 100 mg·lt−1 group, indicating tolerance to lower concentrations. The study highlights the importance of ammonia levels in water quality management and reveals the potential of image processing techniques for automation and stress monitoring in aquaculture.
In this study, the effect of ammonia on the Acipenser gueldenstaedtii was investigated using non-invasive methods. Different concentrations (100, 200, and 400 mg·lt−1) of ammonium chloride (NH4Cl) were added to the experimental groups to simulate ammonia in aquaculture systems, and the movements of the fish were monitored, recorded, and analyzed using image processing techniques and statistical methods. For image processing operations, the optical flow Farneback object-tracking algorithm and necessary image development algorithms were implemented using Python 3.9.13 Programming language codes in the Visual Studio Code software 1.98.2 development environment. At low concentrations, it was observed that the fish made circular movements, while at high concentrations, their movements were restricted and concentrated in areas close to the water’s surface. It was observed that with the increase in ammonia concentration, the movement distances of the fish decreased, and their movements became irregular. This shows that the Acipenser gueldenstaedtii is sensitive to ammonia concentrations and that these concentrations affect the behavior of the fish. These findings are significant for aquaculture conditions and water quality management of the endangered Acipenser gueldenstaedtii, which is protected from the threat of extinction.