Method and system for judging animal sperm quality based on dynamic trajectory of mechanical vision
Through automated detection and index calculation of animal sperm movement trajectories based on mechanical vision, the problem of relying on naked eye judgment in the prior art is solved, and more efficient and accurate sperm quality assessment is achieved.
Patent Information
- Application Number
- CN202411021219.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-01
AI Technical Summary
The existing technology lacks automated detection of animal sperm motion trajectory and calculation of motion indexes, which mostly rely on naked eye tracking and observation and judgment, resulting in low efficiency and low accuracy.
Using a method based on mechanical vision, automatic quality detection of animal sperm is achieved through preprocessing of image and video data, trajectory detection and motion index judgment. Specific steps include preprocessing of image and video data, trajectory detection and motion index calculation, using sperm detection algorithm to locate sperm location, track its motion trajectory, and evaluating motion indexes such as velocity and activity through calculation formulas.
It improves the accuracy and efficiency of sperm quality detection, reduces the burden of manual operation, and provides a more reliable basis for sperm quality evaluation.
Smart Images

Figure CN118887250A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method and a system for judging animal sperm quality based on dynamic trajectory of machine vision. Background Art
[0002] In the research of biology and reproductive medicine, the detection of animal sperm movement trajectory plays a pivotal role. This is not only related to our understanding of the origin of life and reproductive mechanism, but also directly related to human reproductive health, animal breeding and innovation of reproductive medical technology. Therefore, the development of efficient and accurate detection technology has always been the pursuit of scientific researchers.
[0003] Microscope imaging technology is the basis for detecting the movement trajectory of animal sperm. Through a microscope, researchers can observe the real-time movement of sperm in a liquid environment. With the advancement of science and technology, the application of high-end equipment such as high-magnification microscopes, fluorescence microscopes, and confocal microscopes has greatly improved the accuracy and resolution of observations. These devices can not only capture tiny changes in sperm movement, but also reveal the interactive relationship between sperm and the surrounding environment at the cellular level.
[0004] Image processing technology provides strong support for the analysis of sperm movement trajectory. By preprocessing, enhancing and segmenting the images taken by the microscope, the movement trajectory information of the sperm can be extracted. This information includes key parameters such as sperm movement speed, trajectory length, curvature, etc., which are crucial for evaluating sperm vitality and fertilization potential. In addition, through time series image analysis, the dynamic changes of sperm movement can be revealed, and its movement patterns can be further revealed.
[0005] Data analysis is an indispensable part of sperm movement trajectory detection. Through statistical analysis of a large amount of sperm movement data, we can derive the overall trend and law of sperm movement, providing a strong basis for reproductive medicine research and clinical application. For example, through comparative analysis of sperm movement trajectories of different species and under different physiological conditions, we can gain a deep understanding of the relationship between sperm motility and reproductive ability, and provide guidance for the development of animal breeding and human assisted reproductive technology.
[0006] However, the prior art lacks a means to automatically detect the movement trajectory of animal sperm and calculate the movement index, and most of the methods rely on tracking and observation by the naked eye. Summary of the invention
[0007] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a method for detecting the motion trajectory of animal sperm and calculating the motion indicators, obtaining the motion video of the animal semen sample by instrument scanning to realize automatic detection of semen vitality, eliminating the work of tracking and judging semen vitality with the naked eye, and accurately and automatically realizing the quality detection of animal semen and judging the quality of animal sperm based on dynamic trajectory based on machine vision.
[0008] The technical solution adopted by the present invention to solve its technical problem is: A method for judging animal sperm quality based on dynamic trajectory of machine vision comprises the following steps: Collecting animal sperm image video data, and preprocessing all frames of the image video data; Perform trajectory detection on the processed image and video data to obtain the movement trajectory data of animal sperm; Determine the movement index of animal sperm based on the movement trajectory data.
[0009] Preferably, the method for preprocessing the image video data is: Calculate the average brightness of each frame in the image video data and adjust all frames to the same average brightness level.
[0010] Preferably, the method for performing trajectory detection on the processed image and video data is: Use sperm detection algorithms to locate sperm in images; Classifying the detected spermatozoa; For objects classified as sperm, this is achieved by matching the sperm in the current frame with the sperm in the previous frame, and then updating the sperm's position information based on the matching results; In the process of sperm tracking, the position of the sperm in the next frame is predicted according to the movement direction and speed of the sperm, and the position is corrected in the next frame; The tracked sperm trajectories were analyzed and the motion parameters were extracted.
[0011] Preferably, the method for determining the motion index of animal sperm based on motion trajectory data is: The pixel locations of the centroids of the sperm heads of all frames in the video are stored in a queue in the order in which the video is played; The sperm motility index of the animal is calculated according to the sperm motility index calculation formula.
[0012] Preferably, the method for calculating the sperm motility index of the animal according to the sperm motility index calculation formula is: For each frame of the image, the position coordinates of the sperm are recorded; By fitting a straight line or curve to the sperm trajectory, the difference between the fitted line and the actual trajectory is calculated; The straightness of the trajectory is represented by the average value of the distance between the fitted line and the actual trajectory.
[0013] Preferably, the method for calculating the sperm motility index of the animal according to the sperm motility index calculation formula is: For each frame of the image, the position coordinates of the sperm are recorded; The displacement of sperm between consecutive frames is calculated, and the magnitude of the displacement is computed; The average value of the displacement amplitude was used to represent the motor activity.
[0014] Another technical problem to be solved by the present invention is to provide a system for judging the quality of animal sperm based on dynamic trajectory of machine vision, comprising: A data acquisition module, used for collecting image and video data of animal sperm; Preprocessing module: used to preprocess all frames of collected image and video data; Track detection module: used to perform track detection on the pre-processed image and video data, so as to obtain the movement track data of animal sperm; Motion index judgment module: Based on the acquired motion trajectory data, the motion index of animal sperm is judged.
[0015] Another technical problem to be solved by the present invention is to provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements a method for judging the quality of animal sperm based on dynamic trajectory of machine vision as described in any of the above.
[0016] Another technical problem to be solved by the present invention is to provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method for judging the quality of animal sperm based on dynamic trajectory of machine vision as described in any of the above is implemented.
[0017] The beneficial effects of the present invention are: By preprocessing the image, the overall brightness is made consistent, which is conducive to the subsequent sperm trajectory detection and improves the accuracy and reliability of subsequent analysis; all frames in the video are processed to extract the position information of the sperm head. This positioning can help analysts track the movement trajectory of sperm more accurately and thus evaluate its quality; the use of mechanical vision technology can realize automated analysis of sperm movement trajectory, reduce the burden of manual operation, and improve the efficiency and consistency of analysis; by analyzing the dynamic trajectory of sperm, its quality can be more comprehensively evaluated, including factors such as speed and direction changes, thereby providing a more reliable basis for judging sperm quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is the result diagram of sperm head positioning; Figure 2 This is the result of sperm movement trajectory detection. DETAILED DESCRIPTION
[0019] The principles and features of the present invention are described below, and the examples are only used to explain the present invention and are not used to limit the scope of the present invention. The present invention is described more specifically by way of example in the following paragraphs. According to the following description and claims, the advantages and features of the present invention will become clearer.
[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0021] Example A method for judging animal sperm quality based on dynamic trajectory of machine vision comprises the following steps: Image preprocessing: The scanned images generally have consistent overall brightness, but there may be local overexposure, which is not conducive to subsequent sperm trajectory detection. Therefore, the images need to be preprocessed to make the overall brightness of the images consistent. Extract all frames in the video and locate the sperm head separately. Figure 1 The results of sperm localization are shown. Here, dots are drawn on the sperm head to demonstrate the effect.
[0022] The method for trajectory detection on the processed image video data is: Use sperm detection algorithms to locate sperm in images; Classifying the detected spermatozoa; For objects classified as sperm, this is achieved by matching the sperm in the current frame with the sperm in the previous frame, and then updating the sperm's position information based on the matching results; In the process of sperm tracking, the position of the sperm in the next frame is predicted according to the movement direction and speed of the sperm, and the position is corrected in the next frame; The tracked sperm trajectories were analyzed and the motion parameters were extracted.
[0023] Trajectory detection: all images that have passed through the sperm head are used to determine the direction of movement based on the overall central axis of a sperm in a certain frame, and then the movement route is predicted. The sperm that best meets the conditions is selected in the next frame of the image as the position of the sperm in this frame. Figure 2 The results of sperm motion trajectory detection are shown. In order to facilitate the distinction of different sperm motion trajectories, curves with different color differences are used here to replace the sperm motion trajectory.
[0024] By determining the direction of movement of the sperm's overall central axis and predicting its movement route, continuous tracking and detection of the sperm's movement trajectory can be achieved; based on the overall central axis of a sperm in a certain frame, the sperm's movement direction can be accurately determined, which helps predict its position in the next frame of the image.
[0025] By predicting the movement route of sperm, the sperm position that best meets the conditions can be screened out in the next frame of the image, thereby reducing the traversal search of all sperm in the image and improving detection efficiency; by using curves with different color differences to replace the movement trajectory of sperm, the movement trajectories of different sperm can be easily distinguished, which is helpful for the subsequent analysis and comparison of the movement trajectories of multiple sperm.
[0026] Index detection: 1. Store the pixel locations of the centroid of the sperm head in all frames of the video in a queue in the order in which the video is played; 2. Calculate the sperm motility index of the animal according to the sperm motility index calculation formula.
[0027] Sperm motility indicators usually include speed, straightness of movement trajectory, motility, etc. There are many ways to calculate sperm motility indicators according to different research purposes and data collection methods.
[0028] For example, the following two methods can be used: Motion trajectory straightness (LIN) First, for each frame of the image, the position coordinates of the sperm are recorded; Then, by fitting a straight line or a curve to the sperm trajectory, the difference between the fitted line and the actual trajectory is calculated, such as by fitting the straight line or the curve using a least square method; Finally, a suitable indicator is used to represent the straightness of the trajectory, such as the average or maximum value of the distance between the fitted line and the actual trajectory; Active Living Level (ALH) First, for each frame of the image, the position coordinates of the sperm are recorded; Then, the displacement of sperm between consecutive frames was calculated, and the magnitude of the displacement was computed; Finally, use appropriate indicators to represent the activity level, such as the mean value of the displacement amplitude or the frequency distribution of the amplitude.
[0029] Principle description: It is difficult to obtain the same imaging quality of semen videos scanned by the instrument under different working environments and different semen samples, so all frames of the video need to be preprocessed; In the video obtained by scanning samples with high semen density, there are too many sperm in each field of view, which makes it more difficult to track the trajectory. The traditional tracking algorithm based on sperm area is prone to losing the sperm target. The present invention adds auxiliary judgment conditions such as the prediction of the movement direction of a single sperm to this basis, which can effectively reduce the probability of losing the sperm target.
[0030] This embodiment also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for judging the quality of animal sperm based on dynamic trajectory of machine vision as described above are implemented.
[0031] This embodiment also provides a computer storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for judging the quality of animal sperm based on dynamic trajectory of machine vision as described above are implemented.
[0032] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0033] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above.
[0034] The above embodiments of the present invention are not intended to limit the protection scope of the present invention, and the implementation modes of the present invention are not limited thereto. All other modifications, replacements or changes made to the above structures of the present invention based on the above contents of the present invention, in accordance with common technical knowledge and customary means in the art, without departing from the above basic technical ideas of the present invention, should fall within the protection scope of the present invention.
Claims
1. A method for judging the quality of animal sperm based on dynamic trajectory of machine vision, characterized in that: The following steps are involved: Collecting animal sperm image video data, and preprocessing all frames of the image video data; Perform trajectory detection on the processed image and video data to obtain the movement trajectory data of animal sperm; Determine the movement index of animal sperm based on the movement trajectory data.
2. The method for judging animal sperm quality based on dynamic trajectory of machine vision according to claim 1, characterized in that: The method for preprocessing image video data is: Calculate the average brightness of each frame in the image video data and adjust all frames to the same average brightness level.
3. The method for judging animal sperm quality based on dynamic trajectory of machine vision according to claim 1, characterized in that: The method for trajectory detection on the processed image video data is: Use sperm detection algorithms to locate sperm in images; Classifying the detected spermatozoa; For objects classified as sperm, this is achieved by matching the sperm in the current frame with the sperm in the previous frame, and then updating the sperm's position information based on the matching results; In the process of sperm tracking, the position of the sperm in the next frame is predicted according to the movement direction and speed of the sperm, and the position is corrected in the next frame; The tracked sperm trajectories were analyzed and the motion parameters were extracted.
4. The method for judging animal sperm quality based on dynamic trajectory of machine vision according to claim 3, characterized in that: The method for judging the motion index of animal sperm based on motion trajectory data is: The pixel locations of the centroids of the sperm heads of all frames in the video are stored in a queue in the order in which the video is played; The sperm motility index of the animal is calculated according to the sperm motility index calculation formula.
5. The method for judging animal sperm quality based on dynamic trajectory of machine vision according to claim 4, characterized in that: The method for calculating the sperm motility index of the animal according to the sperm motility index calculation formula is: For each frame of the image, the position coordinates of the sperm are recorded; By fitting a straight line or curve to the sperm trajectory, the difference between the fitted line and the actual trajectory is calculated; The straightness of the trajectory is represented by the average value of the distance between the fitted line and the actual trajectory.
6. The method for judging animal sperm quality based on dynamic trajectory of machine vision according to claim 4, characterized in that: The method for calculating the sperm motility index of the animal according to the sperm motility index calculation formula is: For each frame of the image, the position coordinates of the sperm are recorded; The displacement of sperm between consecutive frames is calculated, and the magnitude of the displacement is computed; The average value of the displacement amplitude was used to represent the motor activity.
7. A system for judging the quality of animal sperm based on dynamic trajectory of machine vision, characterized in that: Included are: A data acquisition module, used for collecting image and video data of animal sperm; Preprocessing module: used to preprocess all frames of collected image and video data; Track detection module: used to perform track detection on the pre-processed image and video data, so as to obtain the movement track data of animal sperm; Motion index judgment module: Based on the acquired motion trajectory data, the motion index of animal sperm is judged.
8. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for judging the quality of animal sperm based on dynamic trajectory of machine vision as described in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for judging the quality of animal sperm based on dynamic trajectory of machine vision as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Sperm motility performance detection method
CN104237121A
Sperm motility characteristic extraction method and detection device
CN113724294A
Sperm activity detection system and method based on micro-fluidic chip composite smart phone
CN114216901A
Sperm posture and motion state control method
CN117470842A
Sperm movement analysis system
CN117911916A
