[go: up one dir, main page]

CN115812612A - Multi-target mouse whole-growth-period high-throughput phenotype acquisition and analysis system and method - Google Patents

Multi-target mouse whole-growth-period high-throughput phenotype acquisition and analysis system and method Download PDF

Info

Publication number
CN115812612A
CN115812612A CN202211587793.2A CN202211587793A CN115812612A CN 115812612 A CN115812612 A CN 115812612A CN 202211587793 A CN202211587793 A CN 202211587793A CN 115812612 A CN115812612 A CN 115812612A
Authority
CN
China
Prior art keywords
mouse
mice
cage
target
mouse cage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211587793.2A
Other languages
Chinese (zh)
Other versions
CN115812612B (en
Inventor
杨万能
梁秀英
王翔宇
何磊
贾学镇
陈振夏
张启发
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huazhong Agricultural University
Original Assignee
Huazhong Agricultural University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huazhong Agricultural University filed Critical Huazhong Agricultural University
Priority to CN202211587793.2A priority Critical patent/CN115812612B/en
Publication of CN115812612A publication Critical patent/CN115812612A/en
Application granted granted Critical
Publication of CN115812612B publication Critical patent/CN115812612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Image Analysis (AREA)

Abstract

The invention relates to a multi-target mouse whole-growth-period high-throughput phenotype acquisition and analysis system and method. According to the invention, a mouse cage system suitable for the life of the multi-target experimental mouse is constructed, the experimental mouse is observed from two rectangular holes on the top surface of the mouse cage by adopting two depth cameras to obtain RGB image data and depth image data, and meanwhile, the video data of the experimental mouse is obtained by adopting the RGB cameras to observe downwards from a round-corner rectangular hole on the top surface of the mouse cage. The method comprises the steps of identifying mice in real time and accurately tracking each mouse based on a deep learning network and a multi-target tracking algorithm, extracting key points such as the nose, ears, necks, central points of the back, tail roots and the like of each mouse, estimating behaviors of a single mouse and social behaviors among the mice according to the key points, determining behavior parameters such as time, duration, frequency and the like of occurrence of each behavior, and analyzing the health state of the mice according to the behavior parameters. The method can accurately extract the phenotype of the multi-target mouse in the whole life cycle, and is low in cost and convenient and quick to operate.

Description

多目标小鼠全生育期高通量表型获取和分析系统及方法Multi-target mouse full growth period high-throughput phenotype acquisition and analysis system and method

技术领域technical field

本发明属于动物行为学和自动化实验器材装备技术领域,具体涉及一种多目标小鼠全生育期高通量表型获取和分析系统及方法。The invention belongs to the technical field of animal behavior and automated experimental equipment, and in particular relates to a system and method for acquiring and analyzing multi-target mouse high-throughput phenotypes throughout the growth period.

背景技术Background technique

动物行为是动物表达心理和生理的肢体语言,也是动物自身综合机能的体现。动物行为学是研究动物与环境和其他生物的互动等问题的学科,它不仅要观察动物的自然行为活动,更重要的是在特定实验室的条件下,观察动物的行为及其变化,进而研究实验动物的神经功能、心理过程、分析药物的作用等。Animal behavior is the body language of animals to express their psychology and physiology, and it is also the embodiment of animals' comprehensive functions. Animal ethology is a subject that studies the interaction between animals and the environment and other organisms. It not only observes the natural behavior of animals, but more importantly, observes the behavior and changes of animals under specific laboratory conditions, and then studies Experimental animal's nervous function, psychological process, analysis of drug effects, etc.

小鼠是典型的模式动物,小鼠作为哺乳动物,其基因与人类基因的相似度达98%以上,人类难以治愈的许多疾病都可以在小鼠身上进行模拟,小鼠不同行为的分析广泛应用于衡量生物学、神经科学、药理学和遗传学等领域的实验效果。Mice are typical model animals. As mammals, their genes are more than 98% similar to human genes. Many diseases that are difficult to cure for humans can be simulated in mice. The analysis of different behaviors of mice is widely used It is used to measure the effect of experiments in fields such as biology, neuroscience, pharmacology and genetics.

传统的小鼠行为分析的测量方法是基于人工观察的结果进行统计分析,费时费力、不但无法实现一些需要长时间观测的实验,还不能对行为进行客观的评价和测量,主观因素影响大。The traditional measurement method of mouse behavior analysis is based on statistical analysis of the results of manual observation, which is time-consuming and laborious. Not only can it not realize some experiments that require long-term observation, but also cannot perform objective evaluation and measurement of behavior, and subjective factors have a great influence.

现有基于机器视觉的小鼠行为检测还存在若干明显不足。首先,检测通量低,目标小鼠少且主要适用于短期实验,对全生命周期小鼠行为检测的装备及方法还未有报道,导致现有技术不能同时观测不同品种小鼠全生命周期中的表型,从而造成后期研究小鼠基因-营养-表型之间的关联分析出现偏差。其次,由于小鼠外观极其相似,多目标小鼠跟踪精度不高,容易出现跟丢和跟不准,导致小鼠之间的ID发生交换进而出现数据混乱。此外,现有技术中多是采用RGB相机获取小鼠二维表型,提取小鼠三维表型并进行多目标小鼠跟踪尚未见报道,而三维点云增加了深度信息,能够利用深度信息更加准确地跟踪多目标小鼠,且通过三维点云可以获取二维数据获取不到的表型,如小鼠的体重,小鼠筑巢行为等。There are still some obvious deficiencies in the existing mouse behavior detection based on machine vision. First of all, the detection throughput is low, the number of target mice is small, and it is mainly suitable for short-term experiments. The equipment and methods for detecting the behavior of mice in the whole life cycle have not been reported, so the existing technology cannot observe the life cycle of different species of mice at the same time. phenotypes, resulting in deviations in the association analysis between gene-nutrition-phenotype of mice in later studies. Secondly, due to the extremely similar appearance of mice, the tracking accuracy of multi-target mice is not high, and it is easy to lose track and inaccurate tracking, which leads to the exchange of IDs between mice and data confusion. In addition, in the existing technology, RGB cameras are mostly used to obtain the two-dimensional phenotype of mice, and the extraction of three-dimensional mouse phenotypes and multi-target mouse tracking have not been reported yet. However, the depth information added to the three-dimensional point cloud can make use of the depth information more Accurately track multi-target mice, and phenotypes that cannot be obtained from 2D data can be obtained through 3D point clouds, such as mouse weight, mouse nesting behavior, etc.

发明内容Contents of the invention

(一)要解决的技术问题(1) Technical problems to be solved

为解决通量低、跟不准、试验周期短和获取表型参数不全等技术问题,本发明提出了一种多目标小鼠全生育期高通量表型获取和分析系统及方法。In order to solve technical problems such as low throughput, inaccurate tracking, short test period and incomplete acquisition of phenotypic parameters, the present invention proposes a system and method for high-throughput phenotype acquisition and analysis of multi-target mice throughout the growth period.

(二)技术方案(2) Technical solutions

为了解决其技术问题,本发明提供了一种多目标小鼠全生育期高通量表型获取和分析系统及方法。In order to solve the technical problem, the present invention provides a system and method for acquiring and analyzing multi-target high-throughput phenotypes in the whole growth period of mice.

一种多目标小鼠全生育期高通量表型获取和分析系统,其特征在于,包括鼠笼系统、架子、T字型支架系统、深度相机、RGB相机、笔记本电脑、交换机、录像机、显示屏和工作站,其中,A multi-target mouse full growth period high-throughput phenotype acquisition and analysis system is characterized in that it includes a mouse cage system, a shelf, a T-shaped bracket system, a depth camera, an RGB camera, a notebook computer, a switch, a video recorder, a display screens and workstations, where,

鼠笼系统包括多套鼠笼子系统,每一套鼠笼子系统包括鼠笼、抽屉、水瓶和食物盒;鼠笼采用长方体箱式设计,用于安置实验小鼠,方便实验小鼠在鼠笼内部自由活动;鼠笼的顶面设有用于通风的多个小圆孔,并且在顶面的两侧分别开有矩形孔;水瓶和食物盒以可拆卸方式安装于鼠笼的侧壁上,分别用于为实验小鼠提供水源和食物;抽屉位于鼠笼的正下方,用玉米芯垫料铺满,避免小鼠排泄物污染鼠笼;The mouse cage system includes multiple sets of mouse cage systems, each set of mouse cage systems includes mouse cages, drawers, water bottles and food boxes; the mouse cages are designed in a rectangular box, which is used to place experimental mice, which is convenient for experimental mice to live in the mouse cage free movement; the top surface of the mouse cage is provided with a plurality of small round holes for ventilation, and there are rectangular holes on both sides of the top surface; water bottles and food boxes are detachably installed on the side walls of the mouse cage, respectively It is used to provide water and food for experimental mice; the drawer is located directly under the mouse cage, and is covered with corncob bedding to prevent mouse excrement from polluting the mouse cage;

架子采用多层置物架式设计,每一层均可等间距并排放置多个鼠笼子系统;架子的每一层均设有多个卡扣,每个鼠笼子系统通过卡扣与架子实现固定位置的可拆卸安装;The shelf adopts a multi-layer shelf design, and each floor can place multiple mouse cage systems side by side at equal intervals; each layer of the shelf is equipped with multiple buckles, and each mouse cage system can be fixed to the shelf through the buckle. detachable installation;

T字型支架系统包括多个T字型支架,采用倒T字样式固定安装于架子上,使其刚好位于每个鼠笼子系统的正上方;The T-shaped bracket system includes multiple T-shaped brackets, which are fixedly installed on the shelf in an inverted T-shaped style, so that it is just above each mouse cage system;

每个T字型支架的下端横杆的两侧末端处分别安装深度相机,深度相机通过鼠笼顶面的两个矩形孔正对鼠笼内部,对实验小鼠进行观测;The depth cameras are respectively installed at the ends of both sides of the lower end crossbar of each T-shaped bracket, and the depth cameras are directly facing the inside of the mouse cage through two rectangular holes on the top surface of the mouse cage to observe the experimental mice;

每个鼠笼的顶面中心处以可拆卸方式安装有RGB相机,该RGB相机具备红外夜视功能,可对实验小鼠进行24小时连续观测;An RGB camera is detachably installed at the center of the top surface of each mouse cage. The RGB camera has infrared night vision function and can continuously observe the experimental mice for 24 hours;

笔记本电脑与深度相机连接,用于存储深度相机采集的RGB图像数据和深度图像数据;The laptop is connected to the depth camera to store the RGB image data and depth image data collected by the depth camera;

录像机通过交换机与RGB相机连接,用于实时存储RGB相机采集的视频数据;The video recorder is connected to the RGB camera through a switch to store the video data collected by the RGB camera in real time;

显示屏与录像机连接,用于实时显示和监控所有鼠笼中的小鼠的活动情况;The display screen is connected with the video recorder for real-time display and monitoring of the activities of the mice in all cages;

工作站与笔记本电脑和录像机连接,用于处理和分析RGB相机和深度相机获取的所有小鼠的视频和图像文件,获取多目标小鼠全生命周期的二维和三维表型参数,包括饮食、喝水、睡觉、站立、打架和追逐在内的多种行为发生的频次和持续时间,并根据获得的结果参数分析小鼠的健康情况。The workstation is connected with a laptop and a video recorder to process and analyze the video and image files of all mice acquired by the RGB camera and the depth camera, and obtain two-dimensional and three-dimensional phenotypic parameters of the whole life cycle of multi-target mice, including diet, drinking The frequency and duration of various behaviors including water, sleeping, standing, fighting and chasing were analyzed, and the health of the mice was analyzed according to the obtained result parameters.

优选地,鼠笼的顶面中心处开设有圆角矩形孔,圆角矩形孔在一侧设有用于穿过线缆的细小凹槽;RGB相机通过可拆卸方式安装于与所述圆角矩形孔的形状和尺寸相配套的圆角矩形板上,且圆角矩形板也设有与圆角矩形孔相对应的凹槽,用于穿过线缆;所述圆角矩形板被设计为可卡入所述圆角矩形孔中,使得RGB相机位于鼠笼内部空间且朝向小鼠进行观测,RGB相机的线缆通过细小凹槽导出,连接外部设备;观测完毕后,可通过提起线缆将安装有RGB相机的圆角矩形板从圆角矩形孔中取出。Preferably, a rectangular hole with rounded corners is provided at the center of the top surface of the squirrel cage, and a small groove for passing cables is provided on one side of the rectangular hole with rounded corners; the RGB camera is detachably mounted on the rounded rectangular hole. The shape and size of the hole match the rounded rectangular plate, and the rounded rectangular plate is also provided with a groove corresponding to the rounded rectangular hole for passing the cable; the rounded rectangular plate is designed to be Snap into the rounded rectangular hole, so that the RGB camera is located in the inner space of the mouse cage and observes towards the mouse. The cable of the RGB camera is exported through a small groove and connected to an external device; The rounded rectangular board with the RGB camera installed is taken out of the rounded rectangular hole.

优选地,所述架子采用304不锈钢材料制作。Preferably, the shelf is made of 304 stainless steel.

优选地,所述鼠笼由6块透明的聚亚苯基砜树脂板组成,长宽高为265×265×310mm。Preferably, the squirrel cage is composed of 6 transparent polyphenylene sulfone resin plates with a length, width and height of 265×265×310 mm.

优选地,鼠笼上方的两个深度相机均以倾斜方式对准鼠笼内部空间,倾斜角度均为与水平方向夹角65°,深度相机的底部与鼠笼顶部的高度差均为1cm。Preferably, the two depth cameras above the squirrel cage are aimed at the inner space of the squirrel cage in an oblique manner, the inclination angle is 65° with the horizontal direction, and the height difference between the bottom of the depth camera and the top of the squirrel cage is 1cm.

一种多目标小鼠全生育期高通量表型获取和分析方法,其采用前述的多目标小鼠全生育期高通量表型获取和分析系统进行作业,具体包括如下步骤:A high-throughput phenotype acquisition and analysis method for the whole growth period of multi-target mice, which uses the aforementioned high-throughput phenotype acquisition and analysis system for the whole growth period of multi-target mice for operation, and specifically includes the following steps:

步骤1,将架子和鼠笼子系统进行消毒处理;Step 1, the shelf and rat cage system are disinfected;

步骤2,将多个鼠笼子系统通过卡扣安装到架子上,确保T字型支架上的两个深度相机通过鼠笼顶面两侧的矩形孔对准鼠笼内部空间;Step 2, install multiple squirrel cage systems on the shelf through buckles, and ensure that the two depth cameras on the T-shaped bracket are aligned with the inner space of the squirrel cage through the rectangular holes on both sides of the top surface of the squirrel cage;

步骤3,将装有RGB相机的圆角矩形板卡入鼠笼顶面的圆角矩形孔中,确保RGB相机对准鼠笼内部空间;Step 3, snap the rounded rectangular plate with the RGB camera into the rounded rectangular hole on the top surface of the squirrel cage, and ensure that the RGB camera is aligned with the inner space of the squirrel cage;

步骤4,用玉米芯垫料将鼠笼的抽屉底部铺满,将小鼠放入鼠笼;Step 4, cover the bottom of the drawer of the mouse cage with corncob bedding, and put the mouse into the mouse cage;

步骤5,系统上电,深度相机获取小鼠的RGB图像和深度图像,RGB相机获取小鼠的视频数据,数据实时存储;Step 5, the system is powered on, the depth camera acquires the RGB image and the depth image of the mouse, the RGB camera acquires the video data of the mouse, and the data is stored in real time;

步骤6,工作人员定期将鼠笼子系统取下,将小鼠从鼠笼移出,并对鼠笼子系统进行消毒处理,更换玉米芯垫料,重新安装鼠笼子系统和圆角矩形板,放入小鼠并继续观测;Step 6. The staff regularly removes the mouse cage system, removes the mice from the mouse cage, and disinfects the mouse cage system, replaces the corncob bedding, reinstalls the mouse cage system and the rounded rectangular plate, and puts the mouse cage system into a small Rat and continue to observe;

步骤7,工作站定期对小鼠的图像和视频进行数字图像处理和分析,完成多目标小鼠全生命周期的观测,获取小鼠的表型参数信息,并基于获得的结果参数分析小鼠的健康状况。Step 7, the workstation regularly performs digital image processing and analysis on the images and videos of the mice, completes the observation of the whole life cycle of the multi-objective mice, obtains the phenotypic parameter information of the mice, and analyzes the health of the mice based on the obtained result parameters situation.

优选地,步骤7中,采用深度学习神经网络YOLOv7和改进型StrongSORT多目标跟踪算法处理分析RGB相机采集的视频数据,获取小鼠二维表型参数信息,具体方式如下:Preferably, in step 7, the deep learning neural network YOLOv7 and the improved StrongSORT multi-target tracking algorithm are used to process and analyze the video data collected by the RGB camera to obtain the two-dimensional phenotypic parameter information of the mouse, the specific method is as follows:

(1)标注视频图像,制作数据集,离线训练基于YOLOv7的小鼠识别模型;(1) Annotate the video image, make a data set, and train the mouse recognition model based on YOLOv7 offline;

(2)输入小鼠视频数据,采用YOLOv7小鼠识别模型识别每帧视频中的多目标小鼠并生成目标检测框,基于改进型StrongSORT的多目标跟踪算法为每个目标检测框分配一个特定的ID号并进行跟踪;(2) Input mouse video data, use YOLOv7 mouse recognition model to identify multi-target mice in each frame of video and generate target detection frames, and assign a specific target detection frame to each target detection frame based on the improved StrongSORT multi-target tracking algorithm ID number and tracking;

(3)根据YOLOv7小鼠检测结果,识别每只小鼠的包括嘴巴、耳朵、脖子、背部中心点和尾巴根部在内的多个关键点;如果有遮挡,则根据前后几帧关键点的信息和修复技术修复关键点;(3) According to the detection results of YOLOv7 mice, identify multiple key points of each mouse, including the mouth, ears, neck, back center and tail root; and repair technology to repair key points;

(4)根据关键点位置信息估计每帧视频中每只小鼠的姿态;(4) Estimate the posture of each mouse in each frame of video according to the key point position information;

(5)根据每帧视频图像中小鼠的姿态及时间序列计算每只小鼠的行为及小鼠之间的社交行为。(5) Calculate the behavior of each mouse and the social behavior between mice according to the posture and time series of mice in each frame of video images.

优选地,步骤7中,所述改进型StrongSORT的多目标小鼠跟踪算法的具体改进如下:在当前帧视频中,采用YOLOv7识别小鼠并生成检测框,将生成的检测框与前一帧视频中赋予特定ID号的检测框即轨迹进行级联匹配和IOU匹配后,若有未匹配上检测框的轨迹和未匹配上轨迹的检测框,则计算它们之间的欧式距离,将欧式距离最小的未匹配上检测框的轨迹的ID号分配给未匹配上轨迹的检测框。Preferably, in step 7, the specific improvement of the multi-target mouse tracking algorithm of the improved StrongSORT is as follows: in the current frame video, adopt YOLOv7 to identify the mouse and generate a detection frame, and combine the generated detection frame with the previous frame video After cascade matching and IOU matching are performed on the detection frame with a specific ID number, that is, the trajectory, if there is a trajectory that does not match the detection frame and a detection frame that does not match the detection frame, calculate the Euclidean distance between them, and minimize the Euclidean distance The ID number of the track that does not match the upper detection box is assigned to the detection box that does not match the upper track.

优选地,步骤7中,采用两个深度相机采集的RGB图像和深度图像数据进行分析处理,获取小鼠三维表型参数信息,具体方式如下:Preferably, in step 7, the RGB image and the depth image data collected by two depth cameras are used for analysis and processing, and the three-dimensional phenotype parameter information of the mouse is obtained, the specific method is as follows:

(1)将RGB图像与深度图像对齐,通过深度图像重建出三维点云,通过对齐后的RGB图像赋予三维点云RGB值即颜色,两个深度相机分别重建三维点云;(1) Align the RGB image with the depth image, reconstruct a 3D point cloud through the depth image, assign the RGB value of the 3D point cloud, that is, color, through the aligned RGB image, and reconstruct the 3D point cloud with two depth cameras;

(2)通过两个深度相机之间的外参标定对两个深度相机重建的点云进行配准,合成为一个三维点云;(2) Register the point clouds reconstructed by the two depth cameras through the external parameter calibration between the two depth cameras, and synthesize them into a 3D point cloud;

(3)将重建的三维点云分为小鼠和背景两类,标注数据集,并训练pointnet++网络,从背景中提取小鼠点云;(3) Divide the reconstructed 3D point cloud into mouse and background, mark the data set, and train the pointnet++ network to extract the mouse point cloud from the background;

(4)基于卡尔曼滤波预测小鼠的下一个位置,采用匈牙利算法对预测位置与(3)中分割出的小鼠位置进行匹配并跟踪;(4) Predict the next position of the mouse based on the Kalman filter, and use the Hungarian algorithm to match and track the predicted position with the mouse position segmented in (3);

(5)将小鼠三维点云分割为头部、背部、尾部、尾巴四个部位,标注数据集,并训练pointnet++网络;(5) Segment the three-dimensional point cloud of the mouse into four parts: head, back, tail, and tail, mark the data set, and train the pointnet++ network;

(6)根据小鼠部位位置信息估计每只小鼠的姿态;(6) Estimate the posture of each mouse according to the mouse position information;

(7)根据点云中小鼠的姿态及时间序列计算每只小鼠的行为及小鼠之间的社交行为。(7) Calculate the behavior of each mouse and the social behavior between mice according to the posture and time series of the mice in the point cloud.

优选地,步骤7中,获取小鼠的表型参数信息包括饮食、喝水、睡觉、站立、打架和追逐的行为发生的频次和持续时间,并根据获得的结果参数分析小鼠的健康情况,具体采用如下细化步骤:Preferably, in step 7, the phenotypic parameter information of the mouse is obtained, including the frequency and duration of the behaviors of eating, drinking, sleeping, standing, fighting and chasing, and analyzing the health status of the mouse according to the obtained result parameters, Specifically, the following refinement steps are adopted:

(1)识别并检测小鼠的多种行为:(1) Identify and detect various behaviors of mice:

饮食,小鼠嘴巴位于食物盒内2秒以上,则判断为饮食,并记下小鼠嘴巴位于食物盒内的时间即为持续时间;For eating and drinking, if the mouse mouth is located in the food box for more than 2 seconds, it is judged as eating, and the time when the mouse mouth is located in the food box is recorded as the duration;

喝水,小鼠嘴巴位于水瓶口2秒以上,则判断为喝水,并记下小鼠嘴巴位于水瓶口的时间即为持续时间;To drink water, if the mouse's mouth is located at the mouth of the water bottle for more than 2 seconds, it is judged to be drinking water, and the time when the mouse's mouth is located at the mouth of the water bottle is recorded as the duration;

睡觉,计算小鼠包括头部、背部和尾部在内的关键部位在相邻帧图像中位置的变化量,当变化量小于5个像素,则判断小鼠为静止,当静止的时间大于100秒时,则判断为睡觉,并记下持续的时间;Sleeping, calculate the amount of change in the position of key parts of the mouse, including the head, back and tail, in adjacent frame images. When the change is less than 5 pixels, it is judged that the mouse is still. When the time of stillness is greater than 100 seconds , it is judged as sleeping, and the duration is recorded;

站立,设小鼠嘴巴在图像中的位置为A,背部中心点的位置为B,尾巴根部的位置为C,嘴巴与背部中心点的距离为a,背部中心点与尾巴根部的距离为b,若0.9<a/b<1.1且AB与BC的夹角小于30°,则判断站立,并记下持续的时间;Standing, let the position of the mouse’s mouth in the image be A, the position of the center point of the back be B, the position of the root of the tail be C, the distance between the mouth and the center point of the back is a, the distance between the center point of the back and the root of the tail is b, If 0.9<a/b<1.1 and the angle between AB and BC is less than 30°, judge standing and record the duration;

打架,两只小鼠相对运动的速度大于10cm/s,且后一帧相互接触,则判断为打架,并记下持续的时间;Fighting, the relative movement speed of two mice is greater than 10cm/s, and the next frame is in contact with each other, then it is judged as a fight, and the duration is recorded;

追逐,两只小鼠同相运动,其中一只小鼠的嘴巴在另一只小鼠尾部的后方,且两者速度均大于5cm/s,两者相对速度小于2cm/s,则判断为追逐,并记下持续的时间;Chasing, two mice moving in the same phase, one mouse’s mouth is behind the other mouse’s tail, and both speeds are greater than 5cm/s, and the relative speed of the two is less than 2cm/s, it is judged as chasing, and record the duration;

(2)统计一天24小时所列各种行为发生的次数即为频次,分别累加各种行为的持续时间,记录各种行为发生的频次和持续时间;(2) Counting the occurrence times of various behaviors listed in 24 hours a day is the frequency, respectively accumulating the duration of each behavior, and recording the frequency and duration of each behavior;

(3)根据各种行为及其发生的频次和持续的时间,建立健康指数,根据健康指数分析小鼠的健康状况。(3) Establish a health index according to various behaviors and their frequency of occurrence and duration, and analyze the health status of the mice according to the health index.

(三)有益效果(3) Beneficial effects

相比于现有技术而言,本发明的有益效果至少体现在三个方面。Compared with the prior art, the beneficial effects of the present invention are reflected in at least three aspects.

首先,本发明设计和制作的鼠笼子系统,满足SPF级动物饲养要求,采用倒T字型支架固定深度相机、圆角矩形板固定RGB相机、抽屉放置垫料,便于硬件结构和传感器组件的安装拆卸,使定期对鼠笼进行消毒、更换垫料更加方便快捷,为全生育期获取和分析多品种多目标小鼠的二维和三维表型提供了扎实的硬件保障。First of all, the mouse cage system designed and manufactured by the present invention meets the requirements of SPF level animal feeding. It uses an inverted T-shaped bracket to fix the depth camera, a rounded rectangular plate to fix the RGB camera, and a drawer to place padding, which is convenient for the installation of the hardware structure and sensor components. Disassembly makes it more convenient and quick to regularly disinfect the mouse cage and replace the litter, and provides a solid hardware guarantee for obtaining and analyzing the 2D and 3D phenotypes of multi-species and multi-target mice throughout the growth period.

其次,改进了StrongSORT多目标跟踪算法,在跟踪过程中,进行级联匹配和IOU匹配后,若有未匹配上检测框的轨迹和未匹配上轨迹的检测框,则进行了二次匹配,解决了多目标小鼠跟踪过程中出现空白框及匹配错的问题,有效提高多目标跟踪精度,确保了后期关联小鼠基因-营养-表型的科研数据质量。Secondly, the StrongSORT multi-target tracking algorithm is improved. In the tracking process, after cascade matching and IOU matching, if there are trajectories that do not match the detection frame and detection frames that do not match the detection frame, a secondary match is performed to solve the problem. It solves the problems of blank frames and matching errors in the process of multi-target mouse tracking, effectively improves the accuracy of multi-target tracking, and ensures the quality of scientific research data related to mouse gene-nutrition-phenotype in the later stage.

另外,本发明能同时精确提取多个鼠笼中多只小鼠的二维和三维表型,同时适用于小鼠短期实验和全生命周期实验。采用RGB相机和两个深度相机的方式,精确获取二维和三维表型,表型参数获取更加全面,能够根据小鼠的二维和三维表型评估小鼠的健康状况,对于后期建立基因-营养-表型之间的关联分析有重要的意义。In addition, the present invention can accurately extract the two-dimensional and three-dimensional phenotypes of multiple mice in multiple mouse cages at the same time, and is suitable for both short-term experiments and full-life cycle experiments of mice. RGB camera and two depth cameras are used to accurately obtain two-dimensional and three-dimensional phenotypes, and the acquisition of phenotypic parameters is more comprehensive, and the health status of mice can be evaluated according to the two-dimensional and three-dimensional phenotypes of mice. The association analysis between nutrition and phenotype is of great significance.

最后,本发明提供的鼠笼系统结构设计模块化,成本相对较小,操作方便快捷,具备大规模推广应用的潜力。Finally, the structure design of the squirrel cage system provided by the present invention is modular, the cost is relatively small, the operation is convenient and fast, and it has the potential for large-scale popularization and application.

附图说明Description of drawings

图1为本发明的架子和鼠笼系统的结构示意图。Fig. 1 is a schematic structural view of the shelf and mouse cage system of the present invention.

图2为鼠笼子系统和传感器组件的结构示意图(平视)。Fig. 2 is a structural schematic diagram (head-up view) of the mouse cage system and the sensor assembly.

图3为鼠笼子系统和传感器组件的结构示意图(斜俯视)。Fig. 3 is a structural schematic diagram (slanted top view) of the mouse cage system and sensor components.

图4为本发明的工作流程图实施例。Fig. 4 is the working flowchart embodiment of the present invention.

图5为基于原始StrongSORT的多目标小鼠跟踪结果。Figure 5 shows the results of multi-target mouse tracking based on the original StrongSORT.

图6为基于改进型StrongSORT的多目标小鼠跟踪结果。Figure 6 shows the results of multi-target mouse tracking based on the improved StrongSORT.

具体实施方式Detailed ways

本发明为了解决其技术问题,提供了一种多目标小鼠全生育期高通量表型获取和分析系统及方法。现结合说明书附图对本发明的技术方案进行进一步解释说明。In order to solve the technical problem, the present invention provides a system and method for acquiring and analyzing multi-target high-throughput phenotypes in the whole growth period of mice. The technical solution of the present invention will be further explained in conjunction with the accompanying drawings.

本发明提供的一种多目标小鼠全生育期高通量表型获取和分析系统及方法,系统硬件设计如图1、图2和图3所示,包括鼠笼系统、架子、T字型支架系统、深度相机、RGB相机、笔记本电脑、交换机、录像机、显示屏和工作站。The present invention provides a system and method for obtaining and analyzing high-throughput phenotypes of multi-target mice throughout the growth period. The system hardware design is shown in Figure 1, Figure 2 and Figure 3, including a mouse cage system, a shelf, and a T-shaped Mounting systems, depth cameras, RGB cameras, laptops, switches, recorders, displays and workstations.

鼠笼系统包括多套鼠笼子系统,每一套鼠笼子系统包括鼠笼、抽屉、水瓶和食物盒;鼠笼为定制的,采用长方体箱式设计,由六块透明的PPSU板通过304不锈钢M4螺钉固定,PPSU材料和304不锈钢防腐蚀、耐高温且耐用,鼠笼用于安置实验小鼠,方便实验小鼠在鼠笼内部自由活动;鼠笼的顶面设有26个直径为15mm的圆孔、一个长×宽为96×56mm的圆角矩形孔和二个长×宽为110×40mm的矩形孔,其中26个直径为15mm的孔用于扩散鼠笼中的气味;水瓶和食物盒以可拆卸方式安装于鼠笼的侧壁上,与鼠笼底部的高度分别为150mm和50mm,分别用于为实验小鼠提供水源和食物;抽屉位于鼠笼的正下方,用玉米芯垫料铺满,避免小鼠排泄物污染鼠笼,抽屉结构使更换垫料和人工对小鼠称重更加方便快捷。The squirrel cage system includes multiple sets of squirrel cage systems, and each set of squirrel cage system includes squirrel cages, drawers, water bottles and food boxes; the squirrel cages are custom-made and adopt a rectangular box design, which is composed of six transparent PPSU boards through 304 stainless steel M4 Screw fixed, PPSU material and 304 stainless steel are anti-corrosion, high temperature resistant and durable. The mouse cage is used to house the experimental mice, which is convenient for the experimental mice to move freely inside the mouse cage; there are 26 circles with a diameter of 15mm on the top surface of the mouse cage. Holes, a rounded rectangular hole with a length x width of 96 x 56mm and two rectangle holes with a length x width of 110 x 40mm, of which 26 holes with a diameter of 15mm are used to diffuse the odor in the mouse cage; water bottles and food boxes It is detachably installed on the side wall of the mouse cage, and the height from the bottom of the mouse cage is 150mm and 50mm respectively, which are used to provide water and food for the experimental mice respectively; the drawer is located directly under the mouse cage, and the corn cob pad is used It is fully paved to prevent mouse excrement from polluting the cage, and the drawer structure makes it more convenient and quick to replace the bedding and manually weigh the mice.

架子采用多层置物架式设计,每一层均可等间距并排放置多个鼠笼子系统;架子的每一层均设有多个卡扣,每个鼠笼子系统通过卡扣与架子实现固定位置的可拆卸安装,方便鼠笼定期消毒且每次拆卸安装后的位置是固定的,以利于RGB相机和深度相机采集数据时的视野不变。The shelf adopts a multi-layer shelf design, and each floor can place multiple mouse cage systems side by side at equal intervals; each layer of the shelf is equipped with multiple buckles, and each mouse cage system can be fixed to the shelf through the buckle. The detachable installation is convenient for the regular disinfection of the mouse cage and the position is fixed after each disassembly and installation, so that the field of view of the RGB camera and the depth camera will not change when collecting data.

T字型支架系统包括多个T字型支架,采用倒T字样式固定安装于架子上,使其刚好位于每个鼠笼子系统的正上方。The T-Bracket System consists of multiple T-Brackets fixedly mounted on a shelf in an inverted-T pattern so that it sits just above each mouse cage system.

每个T字型支架的下端横杆的两个末端处,分别安装两个深度相机,两个深度相机均以倾斜方式通过鼠笼顶面的两个矩形孔对鼠笼内的实验小鼠进行观测,倾斜角度均为与水平方向成65°角,深度相机的底部与鼠笼顶部的高度差均为1cm,两深度相机通过音频线相连,以保证两个深度相机采集数据时的时间戳一致,笔记本电脑通过USB线与深度相机连接,用于存储深度相机采集的RGB图像数据和深度图像数据。Two depth cameras are respectively installed at the two ends of the lower crossbar of each T-shaped bracket, and the two depth cameras are oblique to monitor the experimental mice in the cage through the two rectangular holes on the top surface of the cage. Observation, the inclination angle is 65° from the horizontal direction, the height difference between the bottom of the depth camera and the top of the squirrel cage is 1cm, and the two depth cameras are connected by an audio cable to ensure that the time stamps of the two depth cameras are consistent when collecting data , the laptop is connected to the depth camera through a USB cable, and is used to store the RGB image data and depth image data collected by the depth camera.

鼠笼顶面的圆角矩形孔在一侧设有用于穿过线缆的细小凹槽;RGB相机通过可拆卸方式安装于与圆角矩形孔的形状和尺寸相配套的圆角矩形板上,且圆角矩形板也设有与圆角矩形孔相对应的细小凹槽,用于穿过线缆;圆角矩形板被设计为可卡入所述圆角矩形孔中,使得RGB相机位于鼠笼内部空间且朝向小鼠进行观测,RGB相机的线缆通过细小凹槽导出,连接外部设备;观测完毕后,可通过提起线缆将安装有RGB相机的圆角矩形板从圆角矩形孔中取出。The rounded rectangular hole on the top surface of the squirrel cage is provided with a small groove on one side for passing cables; the RGB camera is detachably mounted on a rounded rectangular plate matching the shape and size of the rounded rectangular hole, And the rounded rectangular plate is also provided with a small groove corresponding to the rounded rectangular hole for passing the cable; the rounded rectangular plate is designed to be snapped into the rounded rectangular hole, so that the RGB camera is located on the mouse Observe the inner space of the cage and face the mouse. The cable of the RGB camera is exported through a small groove to connect to the external device; take out.

RGB相机具备红外夜视功能,可对实验小鼠进行24小时连续观测,录像机通过交换机与RGB相机连接,用于实时存储RGB相机采集的视频数据。The RGB camera has an infrared night vision function, which can continuously observe the experimental mice for 24 hours. The video recorder is connected to the RGB camera through a switch to store the video data collected by the RGB camera in real time.

显示屏与录像机连接,用于实时显示和监控所有鼠笼中的小鼠的活动情况。The display screen is connected with a video recorder for real-time display and monitoring of the activities of mice in all cages.

工作站与笔记本电脑和录像机连接,用于处理和分析RGB相机和深度相机获取的所有小鼠的视频和图像文件,获取多目标小鼠全生命周期的二维和三维表型参数,包括饮食、喝水、睡觉、站立、打架和追逐在内的多种行为发生的频次和持续时间,并根据获得的结果参数分析小鼠的健康情况。The workstation is connected with a laptop and a video recorder to process and analyze the video and image files of all mice acquired by the RGB camera and the depth camera, and obtain two-dimensional and three-dimensional phenotypic parameters of the whole life cycle of multi-target mice, including diet, drinking The frequency and duration of various behaviors including water, sleeping, standing, fighting and chasing were analyzed, and the health of the mice was analyzed according to the obtained result parameters.

一种多目标小鼠全生育期高通量表型获取和分析系统的方法,工作流程图如图4所示,按以下步骤进行:(1)将鼠笼、RGB相机、两个深度相机、笔记本电脑、交换机、录像机、显示器连接好。(2)将玉米芯垫料铺满鼠笼抽屉底部。(3)将3只小鼠放于垫料上,并将放有小鼠的抽屉放入鼠笼。(4)启动上电,笔记本电脑和录像机分别采集图像数据和视频数据。(5)工作站定期对图像数据和视频数据进行数字图像处理和分析后,得到小鼠的二维和三维表型,包括活动路径、行为状态及各种行为的频次和持续时间。A method for obtaining and analyzing a multi-target mouse high-throughput phenotype throughout the growth period, the workflow diagram is shown in Figure 4, and the steps are as follows: (1) put a mouse cage, an RGB camera, two depth cameras, Laptops, switches, video recorders, and monitors are connected. (2) Cover the bottom of the squirrel cage drawer with corncob bedding. (3) Put 3 mice on the litter, and put the drawer containing the mice into the mouse cage. (4) Start and power on, and the notebook computer and video recorder collect image data and video data respectively. (5) The workstation regularly performs digital image processing and analysis on the image data and video data to obtain the two-dimensional and three-dimensional phenotypes of the mice, including activity paths, behavioral states, and the frequency and duration of various behaviors.

采用深度学习神经网络YOLOv7和改进型StrongSORT多目标跟踪算法处理分析RGB相机采集的视频数据,获取小鼠二维表型参数信息,具体包括以下几个方面:(1)标注视频图像,制作数据集,离线训练基于YOLOv7的小鼠识别模型;(2)修改基于StrongSORT的多目标小鼠跟踪算法,将当前帧中用YOLOv7生成的检测框与前一帧视频中赋予特定ID号的检测框即轨迹进行级联匹配和IOU匹配后,若有未匹配上检测框的轨迹和未匹配上轨迹的检测框,则计算它们之间的欧式距离,将欧式距离最小的未匹配上检测框的轨迹的ID号分配给未匹配上轨迹的检测框。图5为基于原始StrongSORT的多目标跟踪结果,左图为小鼠爬上铁丝网时的跟踪结果,右图为小鼠从铁丝网上跳到地面的跟踪结果,由图可知,小鼠爬上铁丝网和跳到地面时的ID号从3转换成了4。图6为基于改进型StrongSORT的多目标跟踪结果,左图为小鼠爬上铁丝网,右图为小鼠跳到地面,由图可知,小鼠爬上铁丝网和跳到地面时的ID号未变,即同一只小鼠的跟踪ID号准确;(3)根据YOLOv7小鼠检测结果,识别每只小鼠的嘴巴、耳朵、脖子、背部中心点、尾巴根部在内的关键点,如果有遮挡,则根据前后几帧关键点的信息和修复技术修复关键点;(4)根据关键点位置信息估计每帧视频图像每只小鼠的姿态;(5)根据每帧视频图像中小鼠的姿态及时间序列计算每只小鼠的行为及小鼠之间的社交行为。The deep learning neural network YOLOv7 and the improved StrongSORT multi-target tracking algorithm are used to process and analyze the video data collected by the RGB camera, and obtain the two-dimensional phenotypic parameter information of the mouse, which specifically includes the following aspects: (1) Annotate the video image and make a data set , offline training based on YOLOv7 mouse recognition model; (2) Modify the multi-target mouse tracking algorithm based on StrongSORT, and combine the detection frame generated by YOLOv7 in the current frame with the detection frame assigned a specific ID number in the previous frame video, that is, the trajectory After cascade matching and IOU matching, if there are tracks that do not match the upper detection frame and detection frames that do not match the upper track, calculate the Euclidean distance between them, and set the ID of the track that does not match the upper detection frame with the smallest Euclidean distance Numbers are assigned to detection boxes that do not match the upper trajectory. Figure 5 is the multi-target tracking result based on the original StrongSORT. The left picture shows the tracking result when the mouse climbed the barbed wire, and the right picture shows the tracking result when the mouse jumped from the barbed wire to the ground. It can be seen from the figure that the mouse climbed the barbed wire and ID number changed from 3 to 4 when jumping to the ground. Figure 6 shows the multi-target tracking results based on the improved StrongSORT. The left picture shows the mouse climbing the barbed wire, and the right picture shows the mouse jumping to the ground. It can be seen from the figure that the ID number of the mouse does not change when it climbs the barbed wire and jumps to the ground. , that is, the tracking ID number of the same mouse is accurate; (3) According to the detection results of YOLOv7 mice, identify key points including the mouth, ears, neck, back center, and tail root of each mouse. If there is occlusion, Then repair the key points according to the key point information and repair technology of several frames before and after; (4) estimate the posture of each mouse in each frame of video image according to the key point position information; (5) according to the posture and time of the mouse in each frame of video image The sequence calculates the behavior of each mouse and the social behavior between mice.

采用两个深度相机采集的RGB图像和深度图像数据进行分析处理,获取小鼠三维表型参数信启、,具体包括以下几个方面:(1)将RGB图像与深度图像对齐,通过深度图像重建出三维点云,通过对齐后的RGB图像赋予三维点云RGB值即颜色,两个深度相机分别重建三维点云;(2)通过两个深度相机之间的外参标定对两个深度相机重建的点云进行配准,合成为一个三维点云;(3)将重建的三维点云分为小鼠和背景两类,标注数据集,并训练pointnet++网络,从背景中提取小鼠点云;(4)基于卡尔曼滤波预测小鼠的下一个位置,采用匈牙利算法对预测位置与(3)中分割出的小鼠位置进行匹配并跟踪;(5)将小鼠三维点云分割为头部、背部、尾部、尾巴四个部位,标注数据集,并训练pointnet++网络;(6)根据小鼠部位位置信息估计每只小鼠的姿态;(7)根据点云中小鼠的姿态及时间序列计算每只小鼠的行为及小鼠之间的社交行为。The RGB image and depth image data collected by two depth cameras are used for analysis and processing, and the three-dimensional phenotypic parameters of the mouse are obtained, including the following aspects: (1) Align the RGB image with the depth image, and reconstruct it through the depth image The three-dimensional point cloud is generated, and the RGB value of the three-dimensional point cloud is assigned to the RGB image after the alignment, and the two depth cameras reconstruct the three-dimensional point cloud; (2) the two depth cameras are reconstructed through the external parameter calibration between the two depth cameras (3) Divide the reconstructed 3D point cloud into mouse and background, mark the data set, and train the pointnet++ network to extract the mouse point cloud from the background; (4) Predict the next position of the mouse based on the Kalman filter, and use the Hungarian algorithm to match and track the predicted position with the mouse position segmented in (3); (5) Segment the three-dimensional point cloud of the mouse into head , back, tail, and four parts of the tail, mark the data set, and train the pointnet++ network; (6) estimate the posture of each mouse according to the location information of the mouse; (7) calculate according to the posture and time series of the mouse in the point cloud Behavior of each mouse and social behavior among mice.

本申请中所描述的具体实施例仅仅是对本发明精神作举例说明。本发明所属技术领域的技术人员可以对具体实施例作各种修改或补充或采用类似的方式替代,但并不会偏离本发明的精神或者超越所附权利要求书所定义的范围。The specific embodiments described in this application are merely illustrative of the spirit of the invention. Those skilled in the art to which the present invention belongs may make various modifications or supplements to the specific embodiments or replace them in similar ways, but they will not deviate from the spirit of the present invention or go beyond the scope defined in the appended claims.

Claims (10)

1.多目标小鼠全生育期高通量表型获取和分析系统,其特征在于,包括鼠笼系统、架子、T字型支架系统、深度相机、RGB相机、笔记本电脑、交换机、录像机、显示屏和工作站,其中,1. A multi-target mouse full growth period high-throughput phenotype acquisition and analysis system, characterized in that it includes a mouse cage system, a shelf, a T-shaped bracket system, a depth camera, an RGB camera, a notebook computer, a switch, a video recorder, a display screens and workstations, where, 鼠笼系统包括多套鼠笼子系统,每一套鼠笼子系统包括鼠笼、抽屉、水瓶和食物盒;鼠笼采用长方体箱式设计,用于安置实验小鼠,方便实验小鼠在鼠笼内部自由活动;鼠笼的顶面设有用于通风的多个小圆孔,并且在顶面的两侧分别开有矩形孔;水瓶和食物盒以可拆卸方式安装于鼠笼的侧壁上,分别用于为实验小鼠提供水源和食物;抽屉位于鼠笼的正下方,用玉米芯垫料铺满,避免小鼠排泄物污染鼠笼;The mouse cage system includes multiple sets of mouse cage systems, each set of mouse cage systems includes mouse cages, drawers, water bottles and food boxes; the mouse cages are designed in a rectangular box, which is used to place experimental mice, which is convenient for experimental mice to live in the mouse cage free movement; the top surface of the mouse cage is provided with a plurality of small round holes for ventilation, and there are rectangular holes on both sides of the top surface; water bottles and food boxes are detachably installed on the side walls of the mouse cage, respectively It is used to provide water and food for experimental mice; the drawer is located directly under the mouse cage, and is covered with corncob bedding to prevent mouse excrement from polluting the mouse cage; 架子采用多层置物架式设计,每一层均可等间距并排放置多个鼠笼子系统;架子的每一层均设有多个卡扣,每个鼠笼子系统通过卡扣与架子实现固定位置的可拆卸安装;The shelf adopts a multi-layer shelf design, and each floor can place multiple mouse cage systems side by side at equal intervals; each layer of the shelf is equipped with multiple buckles, and each mouse cage system can be fixed to the shelf through the buckle. detachable installation; T字型支架系统包括多个T字型支架,采用倒T字样式固定安装于架子上,使其刚好位于每个鼠笼子系统的正上方;The T-shaped bracket system includes multiple T-shaped brackets, which are fixedly installed on the shelf in an inverted T-shaped style, so that it is just above each mouse cage system; 每个T字型支架的下端横杆的两侧末端处分别安装深度相机,深度相机通过鼠笼顶面的两个矩形孔正对鼠笼内部,对实验小鼠进行观测;The depth cameras are respectively installed at the ends of both sides of the lower end crossbar of each T-shaped bracket, and the depth cameras are directly facing the inside of the mouse cage through two rectangular holes on the top surface of the mouse cage to observe the experimental mice; 每个鼠笼的顶面中心处以可拆卸方式安装有RGB相机,该RGB相机具备红外夜视功能,可对实验小鼠进行24小时连续观测;An RGB camera is detachably installed at the center of the top surface of each mouse cage. The RGB camera has infrared night vision function and can continuously observe the experimental mice for 24 hours; 笔记本电脑与深度相机连接,用于存储深度相机采集的RGB图像数据和深度图像数据;The laptop is connected to the depth camera to store the RGB image data and depth image data collected by the depth camera; 录像机通过交换机与RGB相机连接,用于实时存储RGB相机采集的视频数据;The video recorder is connected to the RGB camera through a switch to store the video data collected by the RGB camera in real time; 显示屏与录像机连接,用于实时显示和监控所有鼠笼中的小鼠的活动情况;The display screen is connected with the video recorder for real-time display and monitoring of the activities of the mice in all cages; 工作站与笔记本电脑和录像机连接,用于处理和分析RGB相机和深度相机获取的所有小鼠的视频和图像文件,获取多目标小鼠全生命周期的二维和三维表型参数,包括饮食、喝水、睡觉、站立、打架和追逐在内的多种行为发生的频次和持续时间,并根据获得的结果参数分析小鼠的健康情况。The workstation is connected with a laptop and a video recorder to process and analyze the video and image files of all mice acquired by the RGB camera and the depth camera, and obtain two-dimensional and three-dimensional phenotypic parameters of the whole life cycle of multi-target mice, including diet, drinking The frequency and duration of various behaviors including water, sleeping, standing, fighting and chasing were analyzed, and the health of the mice was analyzed according to the obtained result parameters. 2.根据权利要求1所述的多目标小鼠全生育期高通量表型获取和分析系统,其特征在于,鼠笼的顶面中心处开设有圆角矩形孔,圆角矩形孔在一侧设有用于穿过线缆的细小凹槽;RGB相机通过可拆卸方式安装于与所述圆角矩形孔的形状和尺寸相配套的圆角矩形板上,且圆角矩形板也设有与圆角矩形孔相对应的凹槽,用于穿过线缆;所述圆角矩形板被设计为可卡入所述圆角矩形孔中,使得RGB相机位于鼠笼内部空间且朝向小鼠进行观测,RGB相机的线缆通过细小凹槽导出,连接外部设备;观测完毕后,可通过提起线缆将安装有RGB相机的圆角矩形板从圆角矩形孔中取出。2. multi-objective mouse whole growth period high-throughput phenotype acquisition and analysis system according to claim 1, is characterized in that, the center of the top surface of the mouse cage is provided with a rounded rectangular hole, and the rounded rectangular hole is in a The side is provided with a small groove for passing the cable; the RGB camera is detachably installed on the rounded rectangular board matching the shape and size of the rounded rectangular hole, and the rounded rectangular board is also provided with The groove corresponding to the rounded rectangular hole is used to pass the cable; the rounded rectangular plate is designed to be snapped into the rounded rectangular hole, so that the RGB camera is located in the inner space of the mouse cage and carried out towards the mouse. For observation, the cable of the RGB camera is exported through a small groove and connected to external equipment; after the observation is completed, the rounded rectangular plate with the RGB camera installed can be taken out of the rounded rectangular hole by lifting the cable. 3.根据权利要求1所述的多目标小鼠全生育期高通量表型获取和分析系统,其特征在于,所述架子采用304不锈钢材料制作。3. The multi-target mouse full growth period high-throughput phenotype acquisition and analysis system according to claim 1, wherein the shelf is made of 304 stainless steel. 4.根据权利要求1所述的多目标小鼠全生育期高通量表型获取和分析系统,其特征在于,所述鼠笼由6块透明的聚亚苯基砜树脂板组成,长宽高为265×265×310mm。4. The multi-objective mouse full growth period high-throughput phenotype acquisition and analysis system according to claim 1, wherein the mouse cage is composed of 6 transparent polyphenylene sulfone resin plates, and the length and width The height is 265×265×310mm. 5.根据权利要求1所述的多目标小鼠全生育期高通量表型获取和分析系统,其特征在于,鼠笼上方的两个深度相机均以倾斜方式对准鼠笼内部空间,倾斜角度均为与水平方向夹角65°,深度相机的底部与鼠笼顶部的高度差均为1cm。5. The multi-target mouse full growth period high-throughput phenotype acquisition and analysis system according to claim 1, characterized in that, the two depth cameras above the mouse cage are all aimed at the inner space of the mouse cage in an oblique manner, and the oblique The angles are all 65° with the horizontal direction, and the height difference between the bottom of the depth camera and the top of the mouse cage is 1cm. 6.多目标小鼠全生育期高通量表型获取和分析方法,其采用如权利要求1-5中任意一项所述的多目标小鼠全生育期高通量表型获取和分析系统进行作业,具体包括如下步骤:6. The method for obtaining and analyzing high-throughput phenotypes of the whole growth period of multi-target mice, which adopts the high-throughput phenotype acquisition and analysis system for the whole growth period of multi-target mice as claimed in any one of claims 1-5 Carry out the work, including the following steps: 步骤1,将架子和鼠笼子系统进行消毒处理;Step 1, the shelf and rat cage system are disinfected; 步骤2,将多个鼠笼子系统通过卡扣安装到架子上,确保T字型支架上的两个深度相机通过鼠笼顶面两侧的矩形孔对准鼠笼内部空间;Step 2, install multiple squirrel cage systems on the shelf through buckles, and ensure that the two depth cameras on the T-shaped bracket are aligned with the inner space of the squirrel cage through the rectangular holes on both sides of the top surface of the squirrel cage; 步骤3,将装有RGB相机的圆角矩形板卡入鼠笼顶面的圆角矩形孔中,确保RGB相机对准鼠笼内部空间;Step 3, snap the rounded rectangular plate with the RGB camera into the rounded rectangular hole on the top surface of the squirrel cage, and ensure that the RGB camera is aligned with the inner space of the squirrel cage; 步骤4,用玉米芯垫料将鼠笼的抽屉底部铺满,将小鼠放入鼠笼;Step 4, cover the bottom of the drawer of the mouse cage with corncob bedding, and put the mouse into the mouse cage; 步骤5,系统上电,深度相机获取小鼠的RGB图像和深度图像,RGB相机获取小鼠的视频数据,数据实时存储;Step 5, the system is powered on, the depth camera acquires the RGB image and the depth image of the mouse, the RGB camera acquires the video data of the mouse, and the data is stored in real time; 步骤6,工作人员定期将鼠笼子系统取下,将小鼠从鼠笼移出,并对鼠笼子系统进行消毒处理,更换玉米芯垫料,重新安装鼠笼子系统和圆角矩形板,放入小鼠并继续观测;Step 6. The staff regularly removes the mouse cage system, removes the mice from the mouse cage, and disinfects the mouse cage system, replaces the corncob bedding, reinstalls the mouse cage system and the rounded rectangular plate, and puts the mouse cage system into a small Rat and continue to observe; 步骤7,工作站定期对小鼠的图像和视频进行数字图像处理和分析,完成多目标小鼠全生命周期的观测,获取小鼠的表型参数信息,并基于获得的结果参数分析小鼠的健康状况。Step 7, the workstation regularly performs digital image processing and analysis on the images and videos of the mice, completes the observation of the whole life cycle of the multi-objective mice, obtains the phenotypic parameter information of the mice, and analyzes the health of the mice based on the obtained result parameters situation. 7.根据权利要求6所述的多目标小鼠全生育期高通量表型获取和分析方法,其特征在于:步骤7中,采用深度学习神经网络YOLOv7和改进型StrongSORT多目标跟踪算法处理分析RGB相机采集的视频数据,获取小鼠二维表型参数信息,具体方式如下:7. The method for obtaining and analyzing high-throughput phenotypes of multi-target mice throughout the growth period according to claim 6, characterized in that: in step 7, the deep learning neural network YOLOv7 and the improved StrongSORT multi-target tracking algorithm are used for processing and analysis The video data collected by the RGB camera is used to obtain the two-dimensional phenotypic parameter information of the mouse. The specific method is as follows: (1)标注视频图像,制作数据集,离线训练基于YOLOv7的小鼠识别模型;(1) Annotate the video image, make a data set, and train the mouse recognition model based on YOLOv7 offline; (2)输入小鼠视频数据,采用YOLOv7小鼠识别模型识别每帧视频中的多目标小鼠并生成目标检测框,基于改进型StrongSORT的多目标跟踪算法为每个目标检测框分配一个特定的ID号并进行跟踪;(2) Input mouse video data, use YOLOv7 mouse recognition model to identify multi-target mice in each frame of video and generate target detection frames, and assign a specific target detection frame to each target detection frame based on the improved StrongSORT multi-target tracking algorithm ID number and tracking; (3)根据YOLOv7小鼠检测结果,识别每只小鼠的包括嘴巴、耳朵、脖子、背部中心点和尾巴根部在内的多个关键点;如果有遮挡,则根据前后几帧关键点的信息和修复技术修复关键点;(3) According to the detection results of YOLOv7 mice, identify multiple key points of each mouse, including the mouth, ears, neck, back center and tail root; and repair technology to repair key points; (4)根据关键点位置信息估计每帧视频中每只小鼠的姿态;(4) Estimate the posture of each mouse in each frame of video according to the key point position information; (5)根据每帧视频图像中小鼠的姿态及时间序列计算每只小鼠的行为及小鼠之间的社交行为。(5) Calculate the behavior of each mouse and the social behavior between mice according to the posture and time series of mice in each frame of video images. 8.根据权利要求7所述的多目标小鼠全生育期高通量表型获取和分析方法,其特征在于:步骤7中,所述改进型StrongSORT的多目标小鼠跟踪算法的具体改进如下:在当前帧视频中,采用YOLOv7识别小鼠并生成检测框,将生成的检测框与前一帧视频中赋予特定ID号的检测框即轨迹进行级联匹配和IOU匹配后,若有未匹配上检测框的轨迹和未匹配上轨迹的检测框,则计算它们之间的欧式距离,将欧式距离最小的未匹配上检测框的轨迹的ID号分配给未匹配上轨迹的检测框。8. The method for obtaining and analyzing high-throughput phenotypes of multi-target mice throughout the growth period according to claim 7, characterized in that: in step 7, the specific improvement of the multi-target mouse tracking algorithm of the improved StrongSORT is as follows : In the current frame of video, YOLOv7 is used to identify the mouse and generate a detection frame. After cascading matching and IOU matching between the generated detection frame and the detection frame with a specific ID number in the previous frame of video, that is, the trajectory, if there is no match The track of the upper detection frame and the detection frame that does not match the upper track calculate the Euclidean distance between them, and assign the ID number of the track that does not match the upper detection frame with the smallest Euclidean distance to the detection frame that does not match the upper track. 9.根据权利要求6所述的多目标小鼠全生育期高通量表型获取和分析方法,其特征在于:步骤7中,采用两个深度相机采集的RGB图像和深度图像数据进行分析处理,获取小鼠三维表型参数信息,具体方式如下:9. The multi-target mouse full growth period high-throughput phenotype acquisition and analysis method according to claim 6, characterized in that: in step 7, the RGB images and depth image data collected by two depth cameras are used for analysis and processing , to obtain the three-dimensional phenotypic parameter information of the mouse, the specific method is as follows: (1)将RGB图像与深度图像对齐,通过深度图像重建出三维点云,通过对齐后的RGB图像赋予三维点云RGB值即颜色,两个深度相机分别重建三维点云;(1) Align the RGB image with the depth image, reconstruct a 3D point cloud through the depth image, assign the RGB value of the 3D point cloud, that is, color, through the aligned RGB image, and reconstruct the 3D point cloud with two depth cameras; (2)通过两个深度相机之间的外参标定对两个深度相机重建的点云进行配准,合成为一个三维点云;(2) Register the point clouds reconstructed by the two depth cameras through the external parameter calibration between the two depth cameras, and synthesize them into a 3D point cloud; (3)将重建的三维点云分为小鼠和背景两类,标注数据集,并训练pointnet++网络,从背景中提取小鼠点云;(3) Divide the reconstructed 3D point cloud into mouse and background, mark the data set, and train the pointnet++ network to extract the mouse point cloud from the background; (4)基于卡尔曼滤波预测小鼠的下一个位置,采用匈牙利算法对预测位置与(3)中分割出的小鼠位置进行匹配并跟踪;(4) Predict the next position of the mouse based on the Kalman filter, and use the Hungarian algorithm to match and track the predicted position with the mouse position segmented in (3); (5)将小鼠三维点云分割为头部、背部、尾部、尾巴四个部位,标注数据集,并训练pointnet++网络;(5) Segment the three-dimensional point cloud of the mouse into four parts: head, back, tail, and tail, mark the data set, and train the pointnet++ network; (6)根据小鼠部位位置信息估计每只小鼠的姿态;(6) Estimate the posture of each mouse according to the mouse position information; (7)根据点云中小鼠的姿态及时间序列计算每只小鼠的行为及小鼠之间的社交行为。(7) Calculate the behavior of each mouse and the social behavior between mice according to the posture and time series of the mice in the point cloud. 10.根据权利要求6所述的多目标小鼠全生育期高通量表型获取和分析方法,其特征在于:步骤7中,获取小鼠的表型参数信息包括饮食、喝水、睡觉、站立、打架和追逐的行为发生的频次和持续时间,并根据获得的结果参数分析小鼠的健康情况,具体采用如下细化步骤:10. The multi-target mouse full growth period high-throughput phenotype acquisition and analysis method according to claim 6, characterized in that: in step 7, the phenotypic parameter information of the mouse includes diet, drinking water, sleep, The frequency and duration of the behaviors of standing, fighting and chasing, and analyze the health status of the mice according to the obtained result parameters, specifically adopt the following refinement steps: (1)识别并检测小鼠的多种行为:(1) Identify and detect various behaviors of mice: 饮食,小鼠嘴巴位于食物盒内2秒以上,则判断为饮食,并记下小鼠嘴巴位于食物盒内的时间即为持续时间;For eating and drinking, if the mouse mouth is located in the food box for more than 2 seconds, it is judged as eating, and the time when the mouse mouth is located in the food box is recorded as the duration; 喝水,小鼠嘴巴位于水瓶口2秒以上,则判断为喝水,并记下小鼠嘴巴位于水瓶口的时间即为持续时间;To drink water, if the mouse's mouth is located at the mouth of the water bottle for more than 2 seconds, it is judged to be drinking water, and the time when the mouse's mouth is located at the mouth of the water bottle is recorded as the duration; 睡觉,计算小鼠包括头部、背部和尾部在内的关键部位在相邻帧图像中位置的变化量,当变化量小于5个像素,则判断小鼠为静止,当静止的时间大于100秒时,则判断为睡觉,并记下持续的时间;Sleeping, calculate the amount of change in the position of key parts of the mouse, including the head, back and tail, in adjacent frame images. When the change is less than 5 pixels, it is judged that the mouse is still. When the time of stillness is greater than 100 seconds , it is judged as sleeping, and the duration is recorded; 站立,设小鼠嘴巴在图像中的位置为A,背部中心点的位置为B,尾巴根部的位置为C,嘴巴与背部中心点的距离为a,背部中心点与尾巴根部的距离为b,若0.9<a/b<1.1且AB与BC的夹角小于30°,则判断站立,并记下持续的时间;Standing, let the position of the mouse’s mouth in the image be A, the position of the center point of the back be B, the position of the root of the tail be C, the distance between the mouth and the center point of the back is a, the distance between the center point of the back and the root of the tail is b, If 0.9<a/b<1.1 and the angle between AB and BC is less than 30°, judge standing and record the duration; 打架,两只小鼠相对运动的速度大于10cm/s,且后一帧相互接触,则判断为打架,并记下持续的时间;Fighting, the relative movement speed of two mice is greater than 10cm/s, and the next frame is in contact with each other, then it is judged as a fight, and the duration is recorded; 追逐,两只小鼠同相运动,其中一只小鼠的嘴巴在另一只小鼠尾部的后方,且两者速度均大于5cm/s,两者相对速度小于2cm/s,则判断为追逐,并记下持续的时间;Chasing, two mice moving in the same phase, one mouse’s mouth is behind the other mouse’s tail, and both speeds are greater than 5cm/s, and the relative speed of the two is less than 2cm/s, it is judged as chasing, and record the duration; (2)统计一天24小时所列各种行为发生的次数即为频次,分别累加各种行为的持续时间,记录各种行为发生的频次和持续时间;(2) Counting the occurrence times of various behaviors listed in 24 hours a day is the frequency, respectively accumulating the duration of each behavior, and recording the frequency and duration of each behavior; (3)根据各种行为及其发生的频次和持续的时间,建立健康指数,根据健康指数分析小鼠的健康状况。(3) Establish a health index according to various behaviors and their frequency of occurrence and duration, and analyze the health status of the mice according to the health index.
CN202211587793.2A 2022-12-08 2022-12-08 System and method for high-throughput phenotype acquisition and analysis of multi-target mice throughout their growth period Active CN115812612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211587793.2A CN115812612B (en) 2022-12-08 2022-12-08 System and method for high-throughput phenotype acquisition and analysis of multi-target mice throughout their growth period

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211587793.2A CN115812612B (en) 2022-12-08 2022-12-08 System and method for high-throughput phenotype acquisition and analysis of multi-target mice throughout their growth period

Publications (2)

Publication Number Publication Date
CN115812612A true CN115812612A (en) 2023-03-21
CN115812612B CN115812612B (en) 2025-02-07

Family

ID=85546440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211587793.2A Active CN115812612B (en) 2022-12-08 2022-12-08 System and method for high-throughput phenotype acquisition and analysis of multi-target mice throughout their growth period

Country Status (1)

Country Link
CN (1) CN115812612B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117456607A (en) * 2023-11-03 2024-01-26 华中农业大学 A multi-target mouse behavior online recognition and body temperature monitoring method
CN118172796A (en) * 2024-03-08 2024-06-11 华中农业大学 Mouse behavior detection method and system based on three-dimensional tracking
CN119699226A (en) * 2025-02-26 2025-03-28 湘江实验室 Method, device, equipment and storage medium for abnormal monitoring and early warning of pigs
CN120883922A (en) * 2025-09-11 2025-11-04 华中农业大学 A multi-sensor-based cage and method for monitoring fine phenotypic traits in mice

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160150758A1 (en) * 2013-06-28 2016-06-02 The United States Of America, As Represented By The Secretary, Dept. Of Health And Human Services Systems and methods of video monitoring for vivarium cages
US20160192865A1 (en) * 2012-05-10 2016-07-07 President And Fellows Of Harvard College System and method for automatically discovering, characterizing, classifying and semi-automatically labeling animal behavior and quantitative phenotyping of behaviors in animals
CN108471943A (en) * 2015-10-14 2018-08-31 哈佛大学校长及研究员协会 Automatic classification animal behavior
JP2018143112A (en) * 2017-03-01 2018-09-20 国立大学法人鳥取大学 Equipment and method for evaluating animal behavior
CN110740640A (en) * 2017-03-13 2020-01-31 迪格斯公司 retractable animal enclosure assembly
US10959398B1 (en) * 2015-09-30 2021-03-30 Recursion Pharmaceuticals, Inc. Experimental animal behavioral research methods and apparatuses
CN114049477A (en) * 2021-11-16 2022-02-15 中国水利水电科学研究院 A dynamic identification and tracking method for fish pass system, fish quantity and species

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160192865A1 (en) * 2012-05-10 2016-07-07 President And Fellows Of Harvard College System and method for automatically discovering, characterizing, classifying and semi-automatically labeling animal behavior and quantitative phenotyping of behaviors in animals
US20160150758A1 (en) * 2013-06-28 2016-06-02 The United States Of America, As Represented By The Secretary, Dept. Of Health And Human Services Systems and methods of video monitoring for vivarium cages
US10959398B1 (en) * 2015-09-30 2021-03-30 Recursion Pharmaceuticals, Inc. Experimental animal behavioral research methods and apparatuses
CN108471943A (en) * 2015-10-14 2018-08-31 哈佛大学校长及研究员协会 Automatic classification animal behavior
US20180279921A1 (en) * 2015-10-14 2018-10-04 President And Fellows Of Harvard College Automatically classifying animal behavior
JP2018143112A (en) * 2017-03-01 2018-09-20 国立大学法人鳥取大学 Equipment and method for evaluating animal behavior
CN110740640A (en) * 2017-03-13 2020-01-31 迪格斯公司 retractable animal enclosure assembly
CN114049477A (en) * 2021-11-16 2022-02-15 中国水利水电科学研究院 A dynamic identification and tracking method for fish pass system, fish quantity and species

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117456607A (en) * 2023-11-03 2024-01-26 华中农业大学 A multi-target mouse behavior online recognition and body temperature monitoring method
CN117456607B (en) * 2023-11-03 2025-03-14 华中农业大学 Multi-target mouse behavior online identification and body temperature monitoring method
CN118172796A (en) * 2024-03-08 2024-06-11 华中农业大学 Mouse behavior detection method and system based on three-dimensional tracking
CN118172796B (en) * 2024-03-08 2024-09-27 华中农业大学 Mouse behavior detection method and system based on three-dimensional tracking
CN119699226A (en) * 2025-02-26 2025-03-28 湘江实验室 Method, device, equipment and storage medium for abnormal monitoring and early warning of pigs
CN120883922A (en) * 2025-09-11 2025-11-04 华中农业大学 A multi-sensor-based cage and method for monitoring fine phenotypic traits in mice

Also Published As

Publication number Publication date
CN115812612B (en) 2025-02-07

Similar Documents

Publication Publication Date Title
CN115812612A (en) Multi-target mouse whole-growth-period high-throughput phenotype acquisition and analysis system and method
Ott et al. Automated video analysis of pig activity at pen level highly correlates to human observations of behavioural activities
EP2740049B1 (en) Method for automatic behavioral phenotyping
Jorquera-Chavez et al. Modelling and validation of computer vision techniques to assess heart rate, eye temperature, ear-base temperature and respiration rate in cattle
Dawkins et al. Optical flow, flock behaviour and chicken welfare
US11263444B2 (en) System and method for automatically discovering, characterizing, classifying and semi-automatically labeling animal behavior and quantitative phenotyping of behaviors in animals
Nasirahmadi et al. Using machine vision for investigation of changes in pig group lying patterns
Mollah et al. Digital image analysis to estimate the live weight of broiler
Cornou et al. Classifying sows’ activity types from acceleration patterns: an application of the multi-process Kalman filter
Yang et al. Automated video analysis of sow nursing behavior based on fully convolutional network and oriented optical flow
CN105318944B (en) The chicken scene weighing system and method for rod-shaped platform
CN120338722B (en) An intelligent pig farming management and control system based on multimodal data monitoring
Costa et al. The use of image analysis as a new approach to assess behaviour classification in a pig barn
Oczak et al. Dynamics of sows’ activity housed in farrowing pens with possibility of temporary crating might indicate the time when sows should be confined in a crate before the onset of farrowing
CN110447549A (en) A kind of experimental animal Behavior surveillance system
CN116114611A (en) An animal basic biological information recording box
Aydin et al. Automatic identification of activity and spatial use of broiler chickens with different gait scores
CN119721944A (en) An AI-based individual egg production rate identification system for high-density laying hens
Liu et al. Detection and analysis of sow nursing behavior based on the number and location of piglets outside the suckling area using YOLOv5s
Norton et al. Precision livestock farming: the future of livestock welfare monitoring and management?
Charoenpong et al. An experimental setup for measuring distance and duration of rat behavior
Kroese et al. Evaluating the automated measurement of abnormal rising and lying down behaviours in dairy cows using 3D pose estimation
Hui et al. Fine-tuning faster region-based convolution neural networks for detecting poultry feeding behaviors
Leroy et al. Real-time measurement of pig activity in practical conditions
CN207946827U (en) A fixed poultry life information alarm device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant