Studies on the zebrafish behavior have attracted more and more attention. The algorithm of 3D coordinate calculation is the basis of zebrafish behavioral analysis. An automatic device for observing the behavior of zebrafish was designed based on binocular stereo vision technology. According to methods of p-rate threshold and pattern threshold, the image threshold algorithm was proposed. Horizontal X and Y coordinates of single zebrafish were figured out by calculating the average of pixel coordinates of image contour. If the difference of Y coordinate values among different zebrafishes is large, two groups of zebrafishes captured by two cameras will be set up separately according to the Y coordinate values, and the same serial number in two groups means the same target. If the difference of Y coordinate is small, the same target in different cameras was identified by the method of minimum distance. The formula of three-dimensional coordinates was conducted based on the refraction theorem and the structure of the observation device. Algorithm analysis shows that the running time of the algorithm proposed in the paper is saved. Validating testing to a number of fishes is designed and carried out to show that the calculated coordinates are close to the preset locations.
Research on key algorithms of automatic device for observing the behavior of zebrafish
First published at:Jul 27, 2018
 Zon L I, Peterson R T. In vivo drug discovery in the zebrafish[J]. Nature Reviews Drug Discovery, 2005, 4(1): 35–44.
 Sun Z H, Jia S J, Meng A M. Zebrafish: swimming in life sci-ences[J]. Chinese Bulletin of Life Sciences, 2006, 18(5): 431–436.
孙智慧, 贾顺姬, 孟安明. 斑马鱼: 在生命科学中畅游[J]. 生命科学, 2006, 18(5): 431–436.
 Wang Y X, Zhong T, Song H Y. Advances in genetics of zebrafish development[J]. Section of Genetics Foreign Medical Sciences, 2004, 27(4): 220–223.
王跃样, 钟涛, 宋后燕. 斑马鱼发育遗传学研究进展[J]. 国外医学遗传学分册, 2004, 27(4): 220–223.
 Linney E, Upchurch L, Donerly S. Zebrafish as a neurotoxicological model[J]. Neurotoxicology and Teratology, 2004, 26(6): 709–718.
 Shin J T, Fishman M C. From zebrafish to human: modular medical models[J]. Annual Review of Genomics and Human Genetics, 2002, 3: 311–340.
 Ma J J, He Z X, Shu L P, et al. Expression of HOXC4 gene during early development in zebrafish[J]. Journal of Sichuan University (Medical Science Edition), 2013, 44(3): 371–374.
马健娟, 何志旭, 舒莉萍, 等. HOXC4基因在斑马鱼早期胚胎发育过程中的表达[J]. 四川大学学报(医学版), 2013, 44(3): 371–374.
 Engeszer R E, Ryan M J, Parichy D M. Learned social preference in zebrafish[J]. Current Biology, 2004, 14(10): 881–884.
 Vitebsky A, Reyes R, Sanderson M J, et al. Isolation and characterization of the laure olfactory behavioral mutant in the zebrafish, Danio rerio[J]. Developmental Dynamics, 2005, 234(1): 229–242.
 Gil Barcellosa L J, Rittera F, Kreutz L C, et al. Whole-body cortisol increases after direct and visual contact with a predator in zebrafish, Danio rerio[J]. Aquaculture, 2007, 272(1–4): 774–778.
 Kily L J M, Cowe Y C M, Hussain O, et al. Gene expression changes in a zebrafish model of drug dependency suggest conservation of neuro-adaptation pathways[J]. Journal of Experimental Biology, 2008, 211(10): 1623–1634.
 Fang F, Yu L Z. Zebrafish-A model organism that can be used to study biological medicine anxiolytics[J]. Pharmacology and Clinics of Chinese Materia Medica, 2011, 27(1): 104–106.
方芳, 余林中. 斑马鱼——一种可用于中药抗焦虑药研究的模式生物[J]. 中药药理与临床, 2011, 27(1): 104–106.
 Wang Z, Pu Y Z, Chen Y J, et al. Influence of dichlorvos on zebrafish behavior[J]. Journal of International Pharmaceutical Research, 2013, 40(3): 327–330.
王卓, 蒲韵竹, 陈怡君, 等. 敌敌畏对斑马鱼运动行为的影响[J]. 国际药学研究杂志, 2013, 40(3): 327–330.
 Huang W Y, Xu X M, Wu F Q, et al. Research of underwater binocular vision stereo positioning technology in nuclear condition[J]. Opto-Electronic Engineering, 2016, 43(12): 28–33.
黄文有, 徐向民, 吴凤岐, 等. 核环境水下双目视觉立体定位技术研究[J]. 光电工程, 2016, 43(12): 28–33.
 Liu J, Fu W P, Wang W, et al. Image matching based on improved SIFT algorithm[J]. Chinese Journal of Scientific Instrument, 2013, 34(5): 1107–1112.
刘佳, 傅卫平, 王雯, 等. 基于改进SIFT算法的图像匹配[J]. 仪器仪表学报, 2013, 34(5): 1107–1112.
 Xu Y X, Chen F. Real-time stereo visual localization based on multi-frame sequence motion estimation[J]. Opto-Electronic Engineering, 2016, 43(2): 89–94.
许允喜, 陈方. 基于多帧序列运动估计的实时立体视觉定位[J]. 光电工程, 2016, 43(2): 89–94.
 Bai T Z, Hou X B. An improved image matching algorithm based on SIFT[J]. Transactions of Beijing Institute of Technology, 2013, 33(6): 622–627.
白廷柱, 侯喜报. 基于SIFT算子的图像匹配算法研究[J]. 北京理工大学学报, 2013, 33(6): 622–627.
 Mo S T, Li B X. Design of analog front end circuit for ICX274 based on AD9923A[J]. Opto-Electronic Engineering, 2009, 36(10): 141–145.
莫思特, 李碧雄. 基于AD9923A的ICX274模拟前端电路设计[J]. 光电工程, 2009, 36(10): 141–145.
 Mo S T, Wu Z H. Design of 2.0 mega pixels digital video camera and key technology[J]. Opto-Electronic Engineering, 2009, 36(5): 117–121.
莫思特, 吴志红. 200万像素数字摄像机设计及关键技术研究[J]. 光电工程, 2009, 36(5): 117–121.
National Natural Science Foundation of China (81371425)
Get Citation: Mo Site, Liu Tianqi, He Ling. Research on key algorithms of automatic device for observing the behavior of zebrafish[J]. Opto-Electronic Engineering, 2018, 45(8): 180101.