Fish 3D Clustering App (F3DCA): A Non-Supervised Clustering Method with a Machine Learning Autoencoder for Analyzing 3D Trajectories of Three Fish Species.
6 affiliations
- 1Department of Chemistry, Chung Yuan Christian University, Taoyuan 32023, Taiwan.
- 2Department of Bioscience Technology, Chung Yuan Christian University, Taoyuan 32023, Taiwan.
- 3Department of Chemical Engineering, Institute of Biotechnology and Chemical Engineering, I-Shou University, Da-Shu, Kaohsiung City 84001, Taiwan.
- 4Department of Biomedical Engineering, National Yang Ming Chiao Tung University, Taipei 112304, Taiwan.
- 5Department of Biomedical Engineering, Chung Yuan Christian University, Taoyuan 32023, Taiwan.
- 6Research Center for Aquatic Toxicology and Pharmacology, Chung Yuan Christian University, Taoyuan 32023, Taiwan.
Abstract
Fish behaviors are widely studied in various research fields due to their relevance to many aspects, including neurodegenerative processes, since they can impair motor control, complex behavior, habituation, and response to environmental stimuli. 3D locomotion trajectory analysis is one of the assays to analyze complex behaviors in fish. However, while existing 3D tracking software can capture the 3D trajectories of fish, they still rely heavily on manual or semi-automated analysis. Moreover, traditional analysis methods are inadequate for handling the high complexity of raw 3D data (X, Y, Z coordinates), and manual/semi-automated procedures introduce subjective human bias and are highly time-consuming, highlighting the need for a fully automated, unsupervised machine learning method. Here, we aimed to develop an unsupervised clustering method with machine learning to automatically analyze fish behaviors by using fish 3D coordinates. To evaluate the performance of this method, five different datasets, including (1) interspecies fish that consisted of three fish species, which were Danio rerio, Oryzias woworae, and Kryptopterus vitreolus, (2) shoal sex composition, (3) caudal fin amputation effect, (4) habituation time effect, and (5) acute ethanol exposure effect on zebrafish behaviors, were analyzed. The current method utilizes multiple clustering algorithms, including K-Means, BIRCH, Gaussian Mixture Model, and Spectral Clustering, which were then applied to the 3D trajectory data in every dataset. Afterward, the clustering performance was evaluated using the Silhouette Score and Davies-Bouldin Index, followed by the use of deep-learning autoencoders to improve latent feature representation and enhance cluster separation. The clustering outcomes were further compared with predefined experimental groups using ARI and NMI and were qualitatively interpreted alongside conventional behavioral endpoints. External agreement varied among datasets and clustering algorithms. The proposed method can characterize differences in zebrafish 3D locomotor trajectory patterns across experimental conditions, while its separation power may decrease when behavioral differences are subtle or highly overlapping. Furthermore, the present study evaluated the method using multiple behavioral datasets; a similar framework can be extended to zebrafish models of neurodegenerative disease to identify disease-associated alterations in movement patterns and neurobehavioral organization. Finally, a user-friendly software package with easy installation and readable trajectory-analysis outputs was also developed that can be useful in biomedical research.
Related
- An urban patrol case urgency classification method based on self-supervised clustering of a graph neural network
- Concurrent Supervised-Unsupervised Representative Subspace Clustering (CSU-RSC)
- Clustering of differential conditioned response trajectories using skin conductance: Are fear conditioning studies affected by pre-existing characteristics?
- Semi-supervised clustering with knowledge-guided representation learning in cryo-electron tomography
- The Signal of Admixture Can Decay Rapidly When Using Clustering‐Based Methods
BibTeX
@article{farhan2026fish,
title = {{Fish 3D Clustering App (F3DCA): A Non-Supervised Clustering Method with a Machine Learning Autoencoder for Analyzing 3D Trajectories of Three Fish Species.}},
author = {Ali Farhan and Gilbert Audira and Cao Thang Luong and Chih-Hsin Hung and Tzong-Rong Ger and Chung-Der Hsiao},
journal = {Biology},
year = {2026},
month = oct,
doi = {10.3390/biology15191768},
url = {https://europepmc.org/article/MED/42883441},
note = {CC BY},
}
RIS
TY - JOUR
TI - Fish 3D Clustering App (F3DCA): A Non-Supervised Clustering Method with a Machine Learning Autoencoder for Analyzing 3D Trajectories of Three Fish Species.
AU - Ali Farhan
AU - Gilbert Audira
AU - Cao Thang Luong
AU - Chih-Hsin Hung
AU - Tzong-Rong Ger
AU - Chung-Der Hsiao
PY - 2026
DA - 2026/10/04
JO - Biology
DO - 10.3390/biology15191768
UR - https://europepmc.org/article/MED/42883441
AB - Fish behaviors are widely studied in various research fields due to their relevance to many aspects, including neurodegenerative processes, since they can impair motor control, complex behavior, habituation, and response to environmental stimuli. 3D locomotion trajectory analysis is one of the assays to analyze complex behaviors in fish. However, while existing 3D tracking software can capture the 3D trajectories of fish, they still rely heavily on manual or semi-automated analysis. Moreover, traditional analysis methods are inadequate for handling the high complexity of raw 3D data (X, Y, Z coordinates), and manual/semi-automated procedures introduce subjective human bias and are highly time-consuming, highlighting the need for a fully automated, unsupervised machine learning method. Here, we aimed to develop an unsupervised clustering method with machine learning to automatically analyze fish behaviors by using fish 3D coordinates. To evaluate the performance of this method, five different datasets, including (1) interspecies fish that consisted of three fish species, which were Danio rerio, Oryzias woworae, and Kryptopterus vitreolus, (2) shoal sex composition, (3) caudal fin amputation effect, (4) habituation time effect, and (5) acute ethanol exposure effect on zebrafish behaviors, were analyzed. The current method utilizes multiple clustering algorithms, including K-Means, BIRCH, Gaussian Mixture Model, and Spectral Clustering, which were then applied to the 3D trajectory data in every dataset. Afterward, the clustering performance was evaluated using the Silhouette Score and Davies-Bouldin Index, followed by the use of deep-learning autoencoders to improve latent feature representation and enhance cluster separation. The clustering outcomes were further compared with predefined experimental groups using ARI and NMI and were qualitatively interpreted alongside conventional behavioral endpoints. External agreement varied among datasets and clustering algorithms. The proposed method can characterize differences in zebrafish 3D locomotor trajectory patterns across experimental conditions, while its separation power may decrease when behavioral differences are subtle or highly overlapping. Furthermore, the present study evaluated the method using multiple behavioral datasets; a similar framework can be extended to zebrafish models of neurodegenerative disease to identify disease-associated alterations in movement patterns and neurobehavioral organization. Finally, a user-friendly software package with easy installation and readable trajectory-analysis outputs was also developed that can be useful in biomedical research.
SN - 2079-7737
ER -