Leiocassis longirostris parent fish gender identification method based on image color reversal
Through the method based on image color inversion, the characteristics of the genital pores of long-butt veins are extracted for gender identification, which solves the problems of limited accuracy, strong destructiveness, high cost and expensive equipment in the prior art, and achieves more efficient and economical effect of gender identification.
Patent Information
- Application Number
- CN202411579841.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-02-18
AI Technical Summary
The prior art has problems such as limited accuracy, strong destructiveness, high cost and expensive equipment in the gender identification of long-butt parent fish.
The sex identification method of long-butt parent fish based on image color inversion is used, and the characteristics of parent fish reproductive pores are accurately extracted for gender identification through the steps of image acquisition, preprocessing, inversion, feature extraction and classification recognition.
More accurate gender identification is achieved, avoiding the destructiveness of internal anatomy, reducing costs, and low equipment costs, improving the genetic breeding and breeding efficiency of long hip thighs.
Smart Images

Figure CN119478519A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of broodstock sex identification, and in particular to a method for identifying the sex of long-rumped catfish broodstock based on image color inversion. Background Art
[0002] Obtaining information related to fish sex is the basis for achieving the separation and cultivation of male and female broodstock in fish artificial breeding and ensuring the appropriate sex ratio during induced spawning; it is also one of the key technologies for the protection of rare population resources; the identification of fish sex is an important foundation for fish research and production.
[0003] In the genetic breeding and farming of long-rumped catfish, successful identification of sexes is extremely important. At present, the following methods for identifying the sex of long-rump catfish broodstock all have certain defects: among them, observation of external morphological characteristics, this method has limited accuracy, and it may be difficult to accurately judge for some long-rump catfish broodstock with unclear external characteristics or small gender differences; internal anatomical observation, this method is destructive and requires fish dissection, which may not be applicable to precious or endangered long-rump catfish broodstock; molecular biology method, this method is costly, requires professional laboratory equipment and technicians, and has a high detection cost; ultrasonic technology, this method has expensive equipment, requires professional ultrasonic equipment, and has a high cost; therefore, the present invention proposes a method for identifying the sex of long-rump catfish broodstock based on image color inversion. Summary of the invention
[0004] The object of the present invention is to provide a method for identifying the sex of long-rumped catfish broodstock based on image color inversion to solve the problems raised in the above background.
[0005] To achieve the above object, the present invention provides the following technical solution: a method for identifying the sex of long-rumped catfish broodstock based on image color inversion, comprising the following steps: S1. Select and fix the long-rumped catfish broodstock to be sexed; S2. Identify the sex of the broodstock using a sex identification system; S3. Re-identify the broodstock whose sex has not been determined; S4, classifying the broodstock with determined sex into male and female; Among them, Figure 2 As shown, the gender identification system in S2 includes: an image acquisition module, an image preprocessing module, an image inversion module, a feature extraction module and a classification and recognition module.
[0006] Preferably, the image acquisition module can use a camera or other image acquisition equipment to acquire the genital pore image of the long-rumped catfish broodstock.
[0007] Preferably, the image preprocessing module preprocesses the collected image by performing denoising, contrast enhancement, brightness adjustment, etc.
[0008] Preferably, the image inversion module inverts the preprocessed image, that is, reverses the color value of the image, so that the originally black part becomes white, and the originally white part becomes black.
[0009] Preferably, the feature extraction module extracts features such as shape, texture, color, etc. of the reproductive opening of the long-rumped catfish broodstock from the inverted image.
[0010] Preferably, the classification and recognition module can compare the characteristics of the genital pores of the determined male and female broodstock with the characteristics of the broodstock in the identification state to determine the sex of the long-rumped catfish broodstock.
[0011] Preferably, the characteristics of the male genital pore of broodstock determined by analyzing a large number of male and female long-rumped catfish broodstock genital pore images are long stripes, while the characteristics of the female broodstock genital pore are dots.
[0012] Preferably, in S3, for the broodstock that has not been identified by the sex identification system, its genital pore is cleaned by softening feathers, and after confirming that there is no foreign matter, it is identified again by the sex identification system.
[0013] Preferably, in S4, non-toxic fish-specific marking pigment is used for the broodstock whose sex has been confirmed, and green pigment is applied to the tail of the male broodstock, and yellow pigment is applied to the tail of the female broodstock.
[0014] Beneficial effects: The method for identifying the sex of long-rump catfish broodstock based on image color inversion of the present invention has significant effects in many aspects. On the one hand, it solves many defects of existing identification methods, is more accurate than external morphological observation, has no destructiveness to internal anatomy, is lower in cost than molecular biology methods, and has lower equipment costs than ultrasonic technology. On the other hand, the sex identification system accurately extracts the characteristics of the genital pores of the broodstock for sex identification, and classifies and marks the broodstock of determined sex, which facilitates subsequent management and reproduction, and improves the genetic breeding and culture efficiency of long-rump catfish. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 The present invention is a flowchart of the steps of a method for identifying the sex of long-rumped catfish broodstock based on image color inversion; Figure 2 This is a schematic diagram of the gender identification system structure; Figure 3 This is a schematic diagram of the characteristics of the male broodstock's reproductive pore; Figure 4 Schematic diagram of the reproductive pore characteristics of female broodstock DETAILED DESCRIPTION
[0016] The existing methods for identifying the sex of long-rump catfish have certain defects: among them, the external morphological characteristics observation method has limited accuracy, and it may be difficult to accurately judge for some long-rump catfish with unclear external characteristics or small gender differences; the internal anatomical observation method is destructive and requires fish dissection, which may not be applicable to precious or endangered long-rump catfish; the molecular biology method is expensive and requires professional laboratory equipment and technicians, and the detection cost is high; the ultrasonic technology is expensive and requires professional ultrasonic equipment, which is costly; Therefore, the present invention proposes a method for identifying the sex of long-rumped catfish broodstock based on image color inversion, comprising the following steps: S1: Select and fix the long-rumped catfish broodstock to be sexed; Before sex identification of long-rumped catfish broodstock, firstly, it is necessary to select healthy broodstock with no obvious damage from the breeding pond; Use fish clamps to gently secure the broodstock on the operating table, making sure that the genital opening of the broodstock is clearly visible for subsequent image acquisition and identification.
[0017] S2: Identify the sex of broodstock using the sex identification system; The image acquisition module can use a camera or other image acquisition equipment, such as a professional underwater camera, to obtain the reproductive opening image of the long-rumped catfish parent fish. When acquiring the image, it is necessary to ensure sufficient light and accurate focus; The genital pore can be photographed from different angles and distances to obtain more detailed information; at the same time, care should be taken to avoid blurring and distortion of the image to ensure that the image can truly reflect the characteristics of the genital pore of the parent fish; The collected images are denoised through the image preprocessing module. Image filtering algorithms, such as median filtering and Gaussian filtering, can be used to remove noise points in the image. The grayscale histogram of the image can be adjusted to make different areas in the image more distinct and highlight the characteristics of the genital pore. Contrast enhancement algorithms, such as histogram equalization and local contrast enhancement, can be used. According to the actual situation of the image, the brightness of the image can be appropriately adjusted to make the details of the genital pore more clearly visible. Brightness adjustment algorithms, such as linear transformation and gamma correction, can be used. The brightness adjustment is based on the following formula: L′=L×α, Among them, L is the original brightness value, α is the brightness adjustment coefficient, which is selected according to the actual effect of the image; The nonlinear adjustment algorithm is used to optimize the contrast of the image, so that the transition between the light and dark areas of the inverted image is smoother and the details are richer; The preprocessed image is inverted by the image inversion module, that is, the color value of the image is reversed, so that the originally black part becomes white, and the originally white part becomes black, thereby highlighting the characteristics of the genital opening; image inversion can be achieved through mathematical operations, in which each pixel of the input image is processed, and the following operations are performed for the red channel (R), green channel (G), and blue channel (B) of each pixel respectively: Red channel value R′=255−R; Green channel value G′=255−G; Blue channel value B′=255−B; Generate an inverted image through the above inversion calculation; The shape, texture, color and other features of the genital pore of the long-rumped catfish broodstock are extracted from the inverted image by a feature extraction module; the shape features may include the size, shape, outline and the like of the genital pore; the texture features may include the texture structure and roughness around the genital pore; the color features may include the color distribution and hue of the genital pore; Use image processing algorithms, such as edge detection, region segmentation, feature descriptors, etc., to extract these features; for example, edge detection algorithms can be used to extract the contour features of the genital pore; region segmentation algorithms can be used to separate the genital pore from the background and extract its shape and color features; feature descriptors can be used to describe the texture features of the genital pore; The classification and recognition module compares the characteristics of the genital pores of the identified male and female broodstock with the characteristics of the broodstock in the identification state to determine the sex of the long-rumped catfish broodstock; and uses a support vector machine to classify and recognize the characteristics of the broodstock; First, a large number of genital pore images of male and female long-rumped catfish broodstock need to be collected, and feature extraction and annotation are performed to establish a training data set. Then, the classifier is trained using the training data set, and the parameters of the classifier are adjusted so that it can accurately identify the sex of the broodstock. Finally, the features of the broodstock to be identified are input into the trained classifier to obtain the sex prediction results of the broodstock. Among them, the application of support vector machine in parent fish sex identification is as follows: Assume that the collected genital pore characteristic data of broodstock is , ), , ), …, , ),in, =( , , …, ) is a collection of shapes, textures, colors, etc. The feature vector of features, , Indicates the sex label of the broodstock (0 for female, 1 for male); The decision function of the linear SVM is: ( )= +b, in, =( , , …, ) is the weight vector, b is the configuration item; The classification decision is: ( ) ≥ 0, it is predicted to be a male broodstock; if ( )<0, it is predicted to be a female parent fish; For the feature vector of the parent fish to be identified , substitute it into the trained decision function ( )= +b, and get the prediction result.
[0018] S3: Re-identification of unsexed broodstock; For broodstock whose sex has not been determined by the sex identification system, re-identification is required. First, use softened feathers to clean their genital pores to ensure that there are no foreign objects around the genital pores that may affect the identification results. During the cleaning process, be gentle to avoid causing damage to the broodstock. After cleaning, the parent fish are identified again through the sex identification system; according to the steps in S2, image acquisition, preprocessing, inversion, feature extraction and classification recognition are performed in sequence to determine the sex of the parent fish; if the sex still cannot be determined, you can try to adjust the angle and distance of image acquisition, or use different image acquisition equipment to obtain clearer and more accurate images.
[0019] S4, classifying the broodstock with determined sex into male and female; Choose non-toxic fish-specific marking pigments to ensure that the pigments will not have adverse effects on the health of the broodstock; prepare marking spray guns of different colors to accurately apply the pigments to specific parts of the broodstock; According to the sex identification results determined in the above steps, male long-rumped catfish broodstock are selected and marked at the tail of the male broodstock. Green paint is carefully applied to the tail of the male broodstock using a marking tool. When applying, attention should be paid to the uniformity and thickness of the paint to ensure that the mark is clearly visible. At the same time, the paint should be prevented from entering the gills or other sensitive parts of the broodstock to avoid causing damage to the broodstock; According to the results of sex identification, select female long-rumped catfish broodstock, and mark the parts similar to male broodstock, choosing a relatively obvious and not easily worn part for marking, such as the back or side of the female broodstock; use a marking tool to apply yellow paint to the selected parts of the female broodstock, and pay attention to distinguishing the marks from those of male broodstock during the application process to ensure that the color is bright and easy to identify; Place the marked male and female broodstock in different breeding areas or containers respectively; this will facilitate subsequent management and breeding work and avoid confusion; mark the area or container where the broodstock are stored, indicating information such as gender and quantity, so that they can be checked and managed at any time.
[0020] The above-mentioned embodiments only express the implementation methods of the present invention, and cannot be understood as limiting the scope of the invention patent, nor is it any form of limitation on the structure of the present invention. It should be pointed out that for ordinary technicians in this field, several changes and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for identifying the sex of long-rumped catfish broodstock based on image color inversion, characterized in that: The following steps are involved: S1. Select and fix the long-rumped catfish broodstock to be sexed; S2. Identify the sex of the broodstock using a sex identification system; S3. Re-identify the broodstock whose sex has not been determined; S4, classifying the broodstock with determined sex into male and female; The gender identification system in S2 includes: an image acquisition module, an image preprocessing module, an image inversion module, a feature extraction module and a classification and recognition module.
2. The method for identifying the sex of long-rumped catfish broodstock based on image color inversion according to claim 1, characterized in that: The image acquisition module can use a camera or other image acquisition devices to acquire the reproductive pore image of the long-rumped catfish broodstock.
3. The method for identifying the sex of long-rumped catfish broodstock based on image color inversion according to claim 1, characterized in that: The image preprocessing module preprocesses the collected image by removing noise, enhancing contrast, and adjusting brightness.
4. The method for identifying the sex of long-rumped catfish broodstock based on image color inversion according to claim 1, characterized in that: The image inversion module inverts the preprocessed image, that is, reverses the color value of the image, so that the originally black part becomes white, and the originally white part becomes black.
5. The method for identifying the sex of long-rumped catfish broodstock based on image color inversion according to claim 1, characterized in that: The feature extraction module extracts the shape, texture and color features of the reproductive opening of the long-rumped catfish broodstock from the inverted image.
6. The method for identifying the sex of long-rumped catfish broodstock based on image color inversion according to claim 1, characterized in that: The classification and recognition module can compare the characteristics of the confirmed male and female broodstock's reproductive pores with the characteristics of the broodstock in the identification state to determine the sex of the long-rumped catfish broodstock.
7. The method for identifying the sex of long-rumped catfish broodstock based on image color inversion according to claim 6, characterized in that: Through the analysis of the genital pore images of male and female long-rumped catfish broodstock, it was determined that the characteristics of the male genital pore are long strips, while the characteristics of the female genital pore are dots.
8. The method for identifying the sex of long-rumped catfish broodstock based on image color inversion according to claim 1, characterized in that: In S3, for the broodstock that have not been identified by the sex identification system, their genital pores are cleaned with softened feathers, and after confirming that there are no foreign objects, they are identified again by the sex identification system.
9. The method for identifying the sex of long-rumped catfish broodstock based on image color inversion according to claim 1, characterized in that: In S4, non-toxic fish-specific marking paint is used on the broodstock whose sex has been confirmed, and green paint is applied to the tail of male broodstock and yellow paint is applied to the tail of female broodstock.