This paper proposes a real-time water quality monitoring scheme, which is based on judging time-series motion trajectories of live fish acquired by a CCD camera. The proposed scheme includes a floating-grid method to extract patterns in the motion traject