Animal behavioral analysis method and system based on mouse sweet water preference test

The video data of the mouse sugar water preference test was analyzed through the deep learning model, which solved the problem of false negative or false positive results and single observation level, improved the experimental efficiency and result reliability, and reduced manual intervention.

CN118711104APending Publication Date: 2024-09-27HUNAN PRIMA PHARM RES CENT CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410851197.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing mouse sugar water preference testing methods have problems such as false negative or false positive results, single observation level, and low manual processing efficiency.

Method used

Using a method based on deep learning, by constructing a mouse sugar water intake scene, collecting video data, annotating key point information, constructing a data set, training a deep learning model for transfer learning, tracking the location of mouse key points in real time, and analyzing the movement changes. Identifying sugar water intake behaviors.

Benefits of technology

It reduces the probability of false negative or false positive results, improves experimental efficiency and the reliability of results, and reduces the interference of human subjective factors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711104A
    Figure CN118711104A
Patent Text Reader

Abstract

The invention discloses an animal behavior analysis method and system based on a mouse sweet water preference test, and the behavior analysis method based on the mouse sweet water intake state comprises the steps: constructing a mouse sweet water intake scene which comprises a sweet water intake time and intake frequency scene, and collecting posture video data of a mouse in the sweet water preference test scene; marking coordinate information of key points in the video data; carrying out transfer learning based on the deep learning training model to obtain a deep learning model; performing real-time attitude tracking on the video by using a deep learning training model to obtain key point position information; according to the key point position information, a deep learning model is used to identify the duration and frequency of respective occurrence of a sweet water intake behavior and a standing behavior, and quantitative export of data is supported, so that the problems of relatively large subjective factors and single observation level when the mouse sweet water preference detection behavior state is analyzed at present are effectively improved, and the detection accuracy is improved. The analysis efficiency is improved, and the cost investment is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of animal behavior analysis, and in particular to an animal behavior analysis method and system based on a mouse sugar water preference test. Background Art

[0002] The sugar water preference test is a recognized behavioral experiment for detecting depression, and is usually used to detect anhedonia behavior after chronic unpredictable stress. The principle is to use the rodents' natural strong desire for sweets to design a detection method. After the animals have been fasting from food and water for a period of time, they are given plain water and sucrose water at the same time, and the animals' preference for sweets is used as an indicator to detect whether the animals have anhedonia, a depressive symptom. This experiment is most widely used in depression models, and it is one of the most important behavioral detection methods for studying the onset rate of antidepressant drugs.

[0003] However, the current detection method mainly uses traditional manual methods to detect animal sugar water preference indicators. Traditional manual methods will cause liquid consumption due to animal touch, placement angle, etc., which may lead to false positive or false negative results in the experiment; and manual operation is inefficient and costly.

[0004] Patent No.: "CN202110767576.0" discloses "A method, device, equipment and readable storage medium for quantitative analysis of mouse behavior", which discloses the extraction of mouse behavior pattern characteristics based on posture estimation results and behavior detection results, and quantitative analysis of mouse behavior based on behavior pattern characteristics, but it does not disclose a deep learning model for targeted training of mouse sugar water preference test experiments.

[0005] Therefore, there is an urgent need to design a new animal behavior analysis method and system based on the mouse sugar water preference test. Summary of the invention

[0006] In view of the deficiencies of the prior art, the present invention aims to solve the problems of false negative or false positive results, single observation level and low manual processing efficiency in the analysis of the motor state of sugar water intake in the sugar water preference test of mice.

[0007] The technical solution of the present invention is:

[0008] An animal behavior analysis method based on a mouse sugar water preference test comprises the following steps:

[0009] S1. Construct a sugar water intake scenario for mice, including the sugar water intake time and intake frequency scenarios;

[0010] S2. Collect video data of mice in the sugar water preference test scenario;

[0011] S3, annotating the key point information in the video data, forming the key point coordinate information, and constructing a mouse sugar water intake scene dataset;

[0012] S4. Based on the key point coordinate information in the video data, transfer learning is performed based on the deep learning training model to obtain a deep learning model of the mouse sugar water intake scene;

[0013] S5. Use the deep learning training model of the mouse sugar water intake scene to perform real-time posture tracking on the video to obtain the key point position information of the mouse;

[0014] S6. According to the key point position information of the mouse, the movement change law data of the mouse's sugar water intake is obtained, and the data is exported;

[0015] The recognition determination method is that for each frame, the predicted key point coordinates x and y are:

[0016]

[0017] in, Indicates whether the frame meets a certain behavior. x0, y0 are the coordinates of the center of the bottle mouth, and r is the target radius parameter. If the key point coordinates x, y are located in a circle with the bottle mouth as the center and the target radius as the radius, the frame image is considered to meet the behavior of approaching the bottle mouth or standing.

[0018] Preferably, in step S1, it also includes:

[0019] A1. Construct a rectangular test box made of transparent material;

[0020] A2, presetting the placement of the sugar water and water bottle in the sugar water intake area for the mice, wherein the water bottle is placed above the cage cover and perpendicular to the cage cover, and the sugar water bottle is placed parallel to the water bottle;

[0021] A3. Construct a sugar water detection area for mice, and set a video acquisition device in the sugar water intake area; the video acquisition device is located in front of and on the side of the test box, and is used to obtain posture video data of mice in the test box when taking sugar water.

[0022] Preferably, in step S3: the positions of the key points include: the mouth, left ear and right ear of the mouse; and the coordinate system corresponding to the coordinate values ​​of the key points is set by the resolution of the video acquisition device.

[0023] Preferably, in step S4, the process of performing transfer learning based on the deep learning training model to obtain a deep learning model of the mouse sugar water intake scenario is:

[0024] B1. Annotation data preparation: First, manually annotate some video frames and specify the key points of interest. These annotated datasets xi ,y i Contains the coordinates x of each key point i ,y i and the corresponding key point serial number labels;

[0025] B2. Neural network model: Use convolutional neural network with trained ResNet50 as the basic architecture. The network extracts image features through multiple convolutional layers and pooling layers; the input image is I, the network parameter is θ, then the feature map F can be expressed as: F = CNN (I; θ);

[0026] B3. Heat map generation: For each key point k, CNN outputs a heat map H k , represents the probability that each pixel position in the image is the key point. The generation process of the heat map can be expressed as: H k =fF;θ k ;

[0027] B4. Loss function: Define a loss function L and use mean square error loss to compare the predicted key point heat map H k and ground truth heatmap

[0028]

[0029] Among them, L is the loss function, k is the key point number, H k x,y are the predicted key point k heat maps, is the ground truth heatmap of key point k;

[0030] B5. Training process: By minimizing the loss function L, back propagation and gradient descent are used to update the network parameters θ:

[0031]

[0032] Where η is the learning rate, is the gradient of the loss function with respect to the parameter θ, which is obtained when L is minimized;

[0033] B6. Prediction stage:

[0034] For each input image I, output the coordinates x of the keypoints k ,y k is the corresponding heat map H k The maximum value position of is the predicted key point coordinate value. This process is repeated for each frame in the video to obtain the coordinate information of the key point of the mouse mouth in each frame, which can be expressed as:

[0035]

[0036] Among them, xk ,y k is the predicted key point k coordinate value, H k x,y are the predicted keypoint k heatmaps.

[0037] Preferably, in step S6, the number and duration data of the mouse's sugar water intake include: the number and duration of the mouse's contact with the sugar water bottle mouth or the water bottle mouth, and the number and duration of the mouse's standing in the sugar water placement area or the water placement area.

[0038] The present invention also provides an animal behavior analysis system based on a mouse sugar water preference test, comprising: a video acquisition module, a parameter input module, a model reasoning module, a behavior analysis module, and a result visualization module electrically connected in sequence, and also comprising a data export module electrically connected to the behavior analysis module;

[0039] The video acquisition module is used to capture the video data of the mouse behavior during the experiment and transmit the video data to the model inference module;

[0040] The parameter input module inputs the corresponding parameters, including the bottle mouth position coordinates and target radius, based on the actual experimental scenario and user requirements, to provide parameter support for the model reasoning module and behavior analysis module;

[0041] The model inference module receives the video data obtained by the video acquisition module, tracks the video data frame by frame based on the deep learning training model, and obtains the real-time coordinate information of the mouse's key points;

[0042] The behavior analysis module receives the real-time coordinate information of the key points of the mouse's mouth, and then obtains the duration and number of times the mouse touches the bottle mouth and stands on the bottle according to the coordinates of the key points of the mouth;

[0043] The result visualization module generates and plays video data with key point coordinate information annotations based on the real-time coordinate information of the mouse key points, and simultaneously generates a scatter plot of the coordinate distribution of the mouse key points;

[0044] The data export module is used to store the video data of mouse behavior during the experiment, the real-time coordinate information of mouse key points, the duration and number of mouse contact with the bottle mouth and standing behavior, and to draw the video data annotated with key point coordinate information and the scatter plot of the coordinate distribution of mouse key points to form a data set.

[0045] The present invention also provides a storage device, which stores a plurality of programs, and the programs are loaded and executed by a processor to implement the above-mentioned animal behavior analysis method based on the mouse sugar water preference test.

[0046] The present invention also provides a processing device, including a processor and a storage device: the processor is suitable for executing various programs; the storage device is suitable for storing multiple programs, and the programs are suitable for being loaded and executed by the processor to implement the above-mentioned animal behavior analysis method based on the mouse sugar water preference test.

[0047] Compared with the prior art, the advantages of the present invention are:

[0048] The present invention proposes an animal behavior analysis method and system based on a mouse sugar water preference test. Based on the sugar water intake and other movement modes of the mouse, multiple body joints are identified and tracked, the mouse's fine behavior indicators are captured from multiple dimensions, the mouse's head, trunk, and limb movements are quantified, and the mouse's sugar water intake and other behavior modes are comprehensively analyzed through fine behavior indicators such as the number of contacts or contact time between the mouth and the bottle mouth, so as to evaluate the number and duration of the mouse's sugar water intake, etc., which reduces the operation intensity, reduces the experimental cost, avoids the interference of human subjective factors on the experimental results, reduces the probability of false negative or false positive results, and improves the experimental efficiency and the reliability of the experimental results.

[0049] The detailed structure of the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a schematic diagram of the method flow of the present invention;

[0051] Figure 2 A schematic diagram of the system connection relationship of the present invention;

[0052] Figure 3 The actual pictures of the sugar water test scene of the mouse of the present invention, wherein A is a picture of the sugar water intake scene of the mouse, B is a schematic diagram of the left side standing of the mouse, and C is a schematic diagram of the left side contact of the mouse;

[0053] Figure 4 This is a schematic diagram of error changes during the training process of the present invention;

[0054] Figure 5 A scatter plot of the coordinate distribution of key points marked in the present invention; DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. The following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0056] Example 1

[0057] like Figure 1-5 As shown: The present invention provides an animal behavior analysis method based on a mouse sugar water preference test, which can be used to improve the current problems of large human subjective factors and a single level of observation when analyzing the sugar water intake status of mice. Specifically, a comprehensive and accurate analysis of the sugar water intake behavior of mice is a necessary condition for a comprehensive assessment of the sugar water preference of mice, and is also a prerequisite for linking neuroanatomical changes with functional outcomes. Among them, for the sugar water intake status of mice, it includes the number or time of sugar water intake and pure water intake. By analyzing and processing the behavior of mice, the accuracy of mouse behavior data can be effectively improved.

[0058] An animal behavior analysis method based on a mouse sugar water preference test comprises the following steps:

[0059] First, step S1 is executed to construct a sugar water intake scenario for mice, which includes the number and time of sugar water and pure water intake.

[0060] Specifically, in constructing the sugar water intake scene, it is allowed to include constructing a mouse sugar water intake area, and setting a video acquisition device for acquiring the mouse movement state on one side of the mouse sugar water intake area. The specific signal and category of the video acquisition device can be determined according to actual needs.

[0061] Among them, the sugar water intake scene of mice allows the use of a rectangular PV transparent material as a test box, for example, the length of the test box is 29 cm, the width is 15.8 cm, and the height is 17.8 cm. At the same time, the video acquisition device used to obtain the sugar water intake of mice can be allowed to be located in front of the test box, thereby ensuring that the mouse is within the capture screen of the video acquisition device during the entire process of sugar water intake, and obtaining the posture video data of the mouse in the test box when consuming sugar water. For details, please refer to Figure 3 Actual picture of the mouse sugar water test scene.

[0062] Then, step S2 is performed to obtain the posture video data of the mouse in the sugar water intake scene. After constructing the mouse sugar water intake scene, the mouse is placed in the corresponding scene. When the mouse is in the process of sugar water intake, the sugar water intake behavior of the mouse is filmed by a video acquisition device, thereby obtaining the posture video data of the mouse in the sugar water intake state.

[0063] Furthermore, step S3 is performed to annotate the key point information of the mouse mouth based on the posture video data, and to organize and construct a mouse sugar water intake scene dataset.

[0064] Execute step S4, introduce the ResNet50 neural network, and train a dedicated deep learning model to identify the positions of the key points of the mouse's mouth and mark the coordinate values ​​of the corresponding points at different times.

[0065] The training process of its deep learning training algorithm is:

[0066] B1. Annotation data preparation:

[0067] First, users need to manually annotate some video frames and specify the key points of interest. These annotated datasets x i ,y i Contains the coordinates x of each key point i ,y i and the corresponding label l i ,.

[0068] B2. Neural network model:

[0069] A convolutional neural network (CNN) is used with the trained ResNet50 (residual network) as the base model. The network extracts image features through multiple convolutional layers and pooling layers. Assuming the input image is I and the network parameter is θ, the feature map F can be expressed as:

[0070] F = CNN(I;θ)

[0071] B3. Heat map generation:

[0072] For each keypoint k, CNN outputs a heat map H k , which represents the probability that each pixel position in the image is the key point. The generation process of the heat map can be expressed as:

[0073] H k =fF;θ k

[0074] B4. Loss function:

[0075] To train the model, a loss function L needs to be defined, using the mean squared error (MSE) loss to compare the predicted keypoint heatmap Hk with the ground truth heatmap

[0076]

[0077] B5. Training process:

[0078] By minimizing the loss function L, backpropagation and gradient descent are used to update the network parameters θ:

[0079]

[0080] Where η is the learning rate, is the gradient of the loss function with respect to the parameter θ, which is obtained when L is minimized.

[0081] B6. Prediction stage:

[0082] After training, the model can make predictions for new video frames. For each input image I, the coordinates of the key points x are output. k ,y k is the corresponding heat map H k The maximum value position of is the predicted key point coordinate value. This process is repeated for each frame in the video to obtain the coordinate information of the key point of the mouse mouth in each frame, which can be expressed as:

[0083]

[0084] The change of error during training can be referred to Figure 4 .

[0085] It should be noted that the mouse posture video data can be analyzed and processed through the local analysis system, and the position of the bottle mouth can be specified. Among them, for the position of the mouse mouth and the bottle mouth, a coordinate system can be established based on the image frames of the video captured by the video acquisition device. According to the established coordinate system, the specific coordinates of the bottle mouth and key points in the corresponding coordinate system are further determined.

[0086] When establishing the coordinate system, we assume that the resolution of the video frame is W×H, for example, 1920×1080. We use the width of the video as the X-axis and the height as the Y-axis to establish a two-dimensional coordinate system. In this coordinate system, the position of each key point can be represented by a two-dimensional coordinate x, y, where x and y are the horizontal and vertical coordinates of the key point in the video frame, respectively.

[0087] Furthermore, after executing step S5 and inputting new video data, the real-time coordinate information of the key points of the mouth can be obtained through neural network (deep learning training algorithm) reasoning.

[0088] Specifically, based on the trained model, the video data is inferred frame by frame on the GPU computing platform to obtain the coordinate information of the key points of the mouse mouth in each frame. For details, please refer to Table 1.

[0089] Table 1 Object key point coordinate estimation

[0090]

[0091]

[0092] Finally, step S6 is performed to identify the duration and number of times the corresponding mouse contacts the bottle mouth and stands based on the real-time coordinate information of the key points of the mouse's mouth, compare the differences between the two behaviors, and generate the mouse's movement change law data. Please refer to the behavior analysis results of the embodiment in Table 2.

[0093] The recognition determination method is that for each frame, the predicted key point coordinates x and y are:

[0094]

[0095] in, Indicates whether the frame meets a certain behavior, x0, y0 are the coordinates of the center of the bottle mouth, and r is the target radius parameter. If the key point coordinates x, y are located within the circle with the bottle mouth as the center and the target radius as the radius, we believe that the frame image meets the behavior of approaching the bottle mouth or standing.

[0096] Table 2 Behavioral analysis results

[0097]

[0098] The data on the movement patterns of mice include the patterns of the intake of sugar water (left side) and pure water (right side). " / " indicates that no relevant data was recorded. The data on the changes in the sugar water and pure water mainly include indicators such as intake time and intake frequency.

[0099] In this embodiment, the present invention also provides an animal behavior analysis system based on the mouse sugar water preference test, which is used for local visualization and user interaction, including a video acquisition module, a parameter input module, a model reasoning module, a behavior analysis module, and a result visualization module electrically connected in sequence, and also includes a data export module electrically connected to the behavior analysis module. Figure 2 Specifically, it includes:

[0100] Video acquisition module: used to capture video data of mouse behavior during the experiment and transmit the video data to the model inference module; the user needs to select the video path and output path for analysis, where the video path is the video input path and the output path is the path where the system analysis results are stored;

[0101] Parameter input module: Based on the actual experimental scenario and user requirements, input the corresponding parameters, including the bottle mouth position coordinates and target radius, to provide parameter support for the model reasoning module and behavior analysis module;

[0102] Model reasoning module: receives the video data obtained by the video acquisition module, tracks the video data frame by frame based on the deep learning training model, and obtains the real-time coordinate information of the mouse's key points;

[0103] Behavior analysis module: receives the real-time coordinate information of the mouse's key points, and then obtains the duration and number of times the mouse touches the bottle mouth and stands according to the coordinates of the key points of the mouth;

[0104] Result visualization module: Based on the real-time coordinate information of mouse key points, generate and play video data with key point coordinate information annotations, and simultaneously generate a scatter plot of the mouse key point coordinate distribution. For details, please refer to Figure 5 ;

[0105] Data export module: used to store video data of mouse behavior during the experiment, real-time coordinate information of mouse key points, duration and number of mouse contact with bottle mouth and standing behavior, draw video data annotated with key point coordinate information and scatter plot of mouse key point coordinate distribution, form a data set, and facilitate export of experimental data.

[0106] Working process: After a single experiment, the user connects the video acquisition device to the video acquisition module through the video path, which is used to transmit the video data of the mouse in the sugar water preference test scene in the single experiment to the analysis system for analysis, and then inputs various parameters of the previous experiment into the system through the parameter input module (including selecting the coordinate position of the bottle mouth, setting the target radius, etc.). The model reasoning module tracks the video data frame by frame based on the neural network model that has been trained in advance, and obtains the real-time coordinate information of the key points of the mouse mouth. The behavior analysis module is based on the real-time coordinate information of the key points of the mouse mouth, and then obtains the duration and number of the mouse's contact with the bottle mouth and standing behavior according to the coordinates of the key points of the mouth, compares the behavioral differences during training, and generates the mouse's movement change law data; the result visualization module can draw and play videos with automatically annotated key point information based on the above data, and can also allow users to see the key point coordinate distribution scatter plot; the behavior data of the mouse in the sugar water intake process and the mouse key point trajectory scatter plot generated by the video analysis module will be stored in the output path specified by the user in the video acquisition module, and the various data under the output path can be directly exported to the system through the data export module.

[0107] It should be noted that the above embodiment provides a motion state analysis system based on the mouse sugar water preference test, which is only illustrated by the division of the above functional modules. In practical applications, the above functional distribution can be completed by different functional modules as needed, that is, the modules or steps in the embodiments of the present invention can be decomposed or combined again. For example, the modules in the above embodiments can be combined into one module, or further divided into multiple sub-modules to complete all or part of the functions described above. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing each module or step, and are not regarded as improper limitations of the present invention.

[0108] The present invention provides a storage device, in which a plurality of programs are stored. The programs are suitable for being loaded by a processor and realizing the above-mentioned motion state analysis method based on the mouse sugar water preference test.

[0109] The present invention provides a processing device, comprising a processor and a storage device; the processor is suitable for executing various programs; the storage device is suitable for storing multiple programs; the programs are suitable for being loaded and executed by the processor to implement the above-mentioned movement state analysis method based on the mouse sugar water preference test.

[0110] The computer system is a prior art, including a central processing unit (CPU), a graphics processing unit (GPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage part to a random access memory (RAM). In RAM, various programs and data required for system operation are also stored. CPU, GPU, ROM and RAM are connected to each other through a bus. The input / output (I / O) interface is also connected to the bus. The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. The driver is also connected to the I / O interface as needed. A removable medium, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is mounted on the drive as needed, so that a computer program read therefrom is installed into the storage section as needed.

[0111] The analysis method of the present invention can be written in one or more programming languages ​​or a combination thereof in the prior art to form a computer program code for performing the operations of the present application, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0112] The above is a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field, within the technical scope disclosed by the present invention, can make equivalent replacements or changes according to the technical solutions and concepts of the present invention, which should be covered by the protection scope of the claims of the present invention.

Claims

1. An animal behavior analysis method based on a mouse sugar water preference test, characterized in that: The following steps are involved: S1. Construct a sugar water intake scenario for mice, including the sugar water intake time and intake frequency scenarios; S2. Collect video data of mice in the sugar water preference test scenario; S3, annotating the key point information in the video data, forming the key point coordinate information, and constructing a mouse sugar water intake scene dataset; S4, performing transfer learning based on the deep learning training model for the key point coordinate information in the video data of step S3 to obtain a deep learning model for the mouse sugar water intake scene; S5. Use the deep learning training model of the mouse sugar water intake scene to perform real-time posture tracking on the video to obtain the key point position information of the mouse; S6. According to the key point position information of the mouse, the movement change law data of the mouse's sugar water intake is obtained, and the data is exported; The recognition method is that the predicted key point coordinates (x, y) for each frame are: in, Indicates whether the frame meets a certain behavior. (x0, y0) is the coordinate of the center of the bottle mouth, r is the target radius parameter. If the key point coordinate (x, y) is located in a circle with the bottle mouth as the center and the target radius as the radius, the frame image is considered to meet the behavior of approaching the bottle mouth or standing.

2. The animal behavior analysis method based on the mouse sugar water preference test according to claim 1, characterized in that: In step S1, the method of "constructing a sugar water intake scenario for mice" is: A1. Construct a rectangular test box made of transparent material; A2, presetting the placement of the sugar water and water bottle in the sugar water intake area for the mice, wherein the water bottle is placed above the cage cover and perpendicular to the cage cover, and the sugar water bottle is placed parallel to the water bottle; A3. Construct a sugar water detection area for mice, and set a video acquisition device in the sugar water intake area; the video acquisition device is located in front of and on the side of the test box, and is used to obtain posture video data of mice in the test box when taking sugar water.

3. The behavioral analysis method based on mouse sugar water intake according to claim 1, characterized in that: In step S3: the positions of the key points include: the mouth, left ear and right ear of the mouse; the coordinate system corresponding to the coordinate values ​​of the key points is set by the resolution of the video acquisition device.

4. An animal behavior analysis method based on a mouse sugar water preference test according to any one of claims 1 to 3, characterized in that: In step S4, the process of performing transfer learning based on the deep learning training model to obtain a deep learning model of the mouse sugar water intake scenario is as follows: B1. Annotation data preparation: First, manually annotate some video frames and specify the key points of interest. These annotated data sets (xi, y i ) contains the coordinates of each key point (xi, y i ) and the corresponding key point serial number labels; B2. Neural network model: Use convolutional neural network with trained ResNet50 as the basic architecture. The network extracts image features through multiple convolutional layers and pooling layers; the input image is I, the network parameter is θ, then the feature map F can be expressed as: F = CNN (I; θ); B3. Heat map generation: For each key point k, CNN outputs a heat map H k , represents the probability that each pixel position in the image is the key point. The generation process of the heat map can be expressed as: H k =f(F;θ k ); B4. Loss function: Define a loss function L and use mean square error loss to compare the predicted key point heat map H k and ground truth heatmap Among them, L is the loss function, k is the key point number, H k (x, y) is the predicted key point k heat map, is the ground truth heatmap of key point k; B5. Training process: By minimizing the loss function L, back propagation and gradient descent are used to update the network parameters θ: Where η is the learning rate, is the gradient of the loss function with respect to the parameter θ, which is obtained when L is minimized; B6. Prediction stage: For each input image I, the coordinates of the output key points (x k ,y k ) is the corresponding heat map H k The maximum value position of is the predicted key point coordinate value. This process is repeated for each frame in the video to obtain the coordinate information of the mouse key point in each frame, which can be expressed as: Among them, (x k ,y k ) is the predicted key point k coordinate value, H k (x, y) is the predicted keypoint k heat map.

5. The method for analyzing the behavior of mice based on sugar water intake according to any one of claims 1 to 3, characterized in that: In step S6, the frequency and duration data of the mouse's sugar water intake include: the number and duration of the mouse's contact with the sugar water bottle mouth or the water bottle mouth, and the number and duration of the mouse's standing in the sugar water placement area or the water placement area.

6. An animal behavior analysis system based on a mouse sugar water preference test, characterized in that: An animal behavior analysis method based on a mouse sugar water preference test according to any one of claims 1 to 5 is applied, comprising: a video acquisition module, a parameter input module, a model reasoning module, a behavior analysis module, and a result visualization module electrically connected in sequence, and also comprising a data export module electrically connected to the behavior analysis module; The video acquisition module is used to capture the video data of the mouse behavior during the experiment and transmit the video data to the model inference module; The parameter input module inputs the corresponding parameters, including the bottle mouth position coordinates and target radius, based on the actual experimental scenario and user requirements, to provide parameter support for the model reasoning module and behavior analysis module; The model inference module receives the video data obtained by the video acquisition module, tracks the video data frame by frame based on the deep learning training model, and obtains the real-time coordinate information of the mouse's key points; The behavior analysis module receives the real-time coordinate information of the mouse's key points, and then obtains the duration and number of times the mouse touches the bottle mouth and stands on the bottle according to the coordinates of the key points; The result visualization module generates and plays video data with key point coordinate information annotations based on the real-time coordinate information of the mouse key points, and simultaneously generates a scatter plot of the mouse key point coordinate distribution; The data export module is used to store the video data of mouse behavior during the experiment, the real-time coordinate information of mouse key points, the duration and number of mouse contact with the bottle mouth and standing behavior, and to draw the video data annotated with key point coordinate information and the scatter plot of the coordinate distribution of mouse key points to form a data set.

7. A storage device storing a plurality of programs, characterized in that: The program application is loaded and executed by a processor to implement an animal behavior analysis method based on a mouse sugar water preference test as described in any one of claims 1 to 5.

8. A processing device, comprising a processor and a storage device: the processor is adapted to execute each program; the storage device is adapted to store a plurality of programs, characterized in that: The program is suitable for being loaded and executed by a processor to implement an animal behavior analysis method based on a mouse sugar water preference test as described in any one of claims 1 to 5.