A method and device for intelligently determining the grade of blue crabs
Patent Information
- Application Number
- CN202511829189.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-05
- Publication Date
- 2026-08-18
- Estimated Expiration
- 2045-12-05
AI Technical Summary
[0003]然而,现有技术识别黄油蟹的准确度较低且成本较高
本申请提供一种黄油蟹等级智能判定方法和装置,本申请方案通过将待判定蟹置于标准白光拍摄装置内,利用相机在标准白光下通过第一通孔对待判定蟹的腹部拍摄得到对应的待测腹部照片;将待判定蟹置于强光灯拍摄装置内,利用相机在强光灯下通过第二通孔对待判定蟹的两侧拍摄得到对应的待测透光照片;计算待判定蟹的肥满度;利用经过预训练的第一YOLO模型根据待测腹部照片判定待判定蟹的性别与成熟类型;根据肥满度判定待判定蟹的饱满类型;利用经过预训练的第二YOLO模型根据待测腹部照片判定待判定蟹的油性类型;利用经过预训练的第三YOLO模型根据待测透光照片中阴影的形状和宽度判定待判定蟹的卵巢发育程度;综合性别与成熟类型、饱满类型、油性类型以及卵巢发育程度判定待判定蟹的等级。本申请通过将待判定蟹分别置于标准白光、强光灯拍摄装置,进而获得不同光照和不同部位的照片,根据特定光照条件下的照片区分待判定蟹的性别与成熟类型、饱满类型、油性类型、卵巢发育程度,进而综合划分黄油蟹的等级,可准确识别黄油蟹等级,且利用拍摄装置和YOLO模型能低成本、不损伤、不解剖地识别黄油蟹等级。
Smart Images

Figure CN121963185B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image recognition technology, and in particular to a method and apparatus for intelligently determining the grade of a yellow croaker. Background Technology
[0002] Butter crabs are an extremely rare and prized delicacy. Female mud crabs, under specific environmental conditions, undergo abnormal ovarian development, causing lipid substances to permeate their entire body, resulting in an orange-yellow color – hence the name "butter crab." Butter crabs are extremely rare in the wild; only two or three out of every thousand mud crabs can transform into butter crabs. Due to their scarcity, their market price is usually much higher than that of ordinary mud crabs. Different grades of butter crabs have significantly different prices; therefore, accurately determining the grade of butter crabs without damaging or dissecting them is crucial for market sales.
[0003] However, existing technologies for identifying butter crabs are not very accurate and are costly. Summary of the Invention
[0004] The main objective of this application is to propose an intelligent method and apparatus for determining the grade of butter crabs, so as to determine the grade of butter crabs in a low-cost and accurate manner.
[0005] To achieve the above objectives, one aspect of this application proposes an intelligent method for judging the grade of yellow crab. The standard white light shooting device used in the method includes a first light-shielding box and a first light-shielding cover plate. The first light-shielding cover plate is placed on top of the first light-shielding box, and a standard white light lamp is connected below the first light-shielding cover plate. The first light-shielding cover plate is provided with a first through hole. The high-intensity light shooting device used in the method includes a second light-shielding box, a second light-shielding cover plate, a third light-shielding box, and a high-intensity light lamp. The high-intensity light lamp is placed inside the third light-shielding box. The bottom of the second light-shielding box is connected to the top of the third light-shielding box. The bottom of the second light-shielding box is a transparent plate. The illumination of the high-intensity light lamp is set to shine on the transparent plate and the light direction is adjustable. The second light-shielding cover plate is provided with a second through hole. The method includes the following steps: The crab to be judged is placed in a standard white light imaging device, and the camera is used to take a picture of the abdomen of the crab under standard white light through the first through hole to obtain the corresponding picture of the abdomen to be judged. The crab to be judged is placed in a high-intensity light shooting device, and the camera is used to take pictures of both sides of the crab under the high-intensity light through the second through hole to obtain corresponding translucent photos. Calculate the plumpness of the crab to be judged; The sex and maturity type of the crab to be tested are determined using a pre-trained YOLO model based on the abdominal photograph. The plumpness level is compared with the plumpness threshold to determine the plumpness type of the crab to be judged; The oiliness type of the crab to be tested is determined based on the abdominal photograph using a pre-trained second YOLO model. The ovarian development degree of the crab to be judged is determined by the shape and width of the shadow in the translucent photograph under test using a pre-trained third YOLO model. The grade of the crab to be judged is determined by combining the sex and maturity type, the plumpness type, the oiliness type, and the degree of ovarian development.
[0006] In some embodiments, the step of using a pre-trained third YOLO model to determine the ovarian development level of the crab to be judged based on the shape and width of the shadow in the translucent photograph to be tested, and classifying it into immature ovarian crabs, nascent ovarian crabs, and mature ovarian crabs, includes the following steps: If the pre-trained third YOLO model identifies that the shape of the shadow in the translucent photograph being tested is gradually narrowing from the center to both sides, then the ovary development of the crab is determined to be immature. If the pre-trained third YOLO model identifies that the width of the shadow in the translucent photograph to be tested is uniform and less than a set width threshold, then the ovarian development level of the crab is determined to be the initial maturity of the ovary. If the pre-trained third YOLO model identifies that the width of the shadow in the translucent photograph to be tested is uniform and reaches the set width threshold, then the ovarian development level of the crab is determined to be ovarian maturity.
[0007] In some embodiments, determining the grade of the crab to be judged by comprehensively considering its sex and maturity type, its plumpness type, its oiliness type, and its ovarian development level includes the following steps: If the stated sex and maturity type are male crab, then the crab to be determined is determined to be male crab; If the sex and maturity type are both that of a young crab, then the crab to be determined is a young crab. If the sex and maturity type are described as a mature female crab, then the crab to be determined is preliminarily identified as a mature female crab. If the plumpness type of the mature female crab is that of a water crab, then the crab to be judged is determined to be a water crab. If the plumpness type of the mature female crab is non-water crab, then the crab to be judged is preliminarily determined to be a normal mature female crab. If the oiliness type of the normal mature female crab is non-oily, then the crab to be judged is determined to be an ordinary crab; If the oily type of the normal mature female crab is oily, then the crab to be identified is preliminarily determined to be a butter crab. If the degree of ovarian development of the butter crab is immature ovary, it is determined that the to-be-determined crab is a full-oil butter crab; If the degree of ovarian development of the butter crab is initial maturity of the ovary, it is determined that the to-be-determined crab is a first-hand butter crab; If the degree of ovarian development of the butter crab is mature ovary, it is determined that the to-be-determined crab is a paste-oil butter crab.
[0008] In some embodiments, the method further comprises the following steps: Place multiple sample crabs in the standard white light photographing device, and use a camera to photograph the abdomen of each sample crab through the first through hole under standard white light to obtain corresponding sample abdominal photos; Place each sample crab in the strong light photographing device, and use a camera to photograph both sides of each sample crab through the second through hole under strong light to obtain corresponding sample light-transmitting photos; Calculate the fatness of each sample crab; Determine the gender, maturity type, fullness type, oiliness type and ovarian development degree of each sample crab by measurement and dissection; Utilize the abdominal carapace shape and color characteristics in the sample abdominal photos of each sample crab, as well as the corresponding gender and maturity type, to construct the first YOLO model; Utilize the fatness of each sample crab and the corresponding fullness type to determine the fatness thresholds of water crabs and non-water crabs; Utilize the color of the joint membrane in the sample abdominal photos of each sample crab, as well as the corresponding oiliness type, to construct the second YOLO model; Utilize the shape and width of the shadow in the sample light-transmitting photos of each sample crab, as well as the corresponding ovarian development degree, to construct the third YOLO model; Train the first YOLO model, the second YOLO model and the third YOLO model.
[0009] In some embodiments, the determining the gender, maturity type, fullness type, oiliness type and ovarian development degree of each sample crab by measurement and dissection includes the following steps: Determine the gender and maturity type according to the abdominal carapace shape; among them, the long and pointed triangular abdominal carapace is a male crab, the wide triangular and lighter-colored abdominal carapace is a young crab, and the broad and round and darker-colored abdominal carapace is a mature female crab; Determine the oiliness type according to the yellow-blue value b of the swimming leg joint membrane, and if b≥X, it is determined to be oily, and if b<X, it is determined to be non-oily; where X is a preset oiliness threshold; Determine the fullness type according to the condition of the crab body after dissection, and the one with more water and less meat is a water crab, and vice versa is a non-water crab; The degree of ovarian development is determined based on the stage of ovarian development and the ovarian index. Ovarian development at stage I-II is considered immature. For individuals with ovarian development at stage III or above, the ovarian weight is measured, and the ovarian index is calculated based on the body weight. An ovarian index ≤ Y is considered primordial ovarian development, and an ovarian index > Y is considered mature ovarian development. The ovarian index is calculated as ovarian weight / body weight, where Y is a preset threshold for the ovarian index.
[0010] In some embodiments, the method further includes the following steps: The first YOLO model is periodically retrained using the abdominal photographs of the test subjects that have been correctly classified according to the sex and maturity type. The second YOLO model is periodically retrained using the abdominal photographs of the test subjects that have been correctly classified as oily; The third YOLO model is periodically retrained using the translucent photographs of the test subjects, which are determined to be correctly classified based on the degree of ovarian development.
[0011] To achieve the above objectives, another aspect of this application proposes an intelligent determination device for the grade of yellow croaker, the device comprising: The first imaging unit is used to place the crab to be judged in a standard white light imaging device and use a camera to take a picture of the abdomen of the crab to be judged through the first through hole under standard white light to obtain a corresponding picture of the abdomen to be tested. The second shooting unit is used to place the crab to be judged inside the high-intensity light shooting device, and use the camera to take pictures of both sides of the crab to be judged under the high-intensity light through the second through hole to obtain corresponding translucent photos to be tested. A plumpness calculation unit is used to calculate the plumpness of the crab to be judged; A sex and maturity type identification unit is used to determine the sex and maturity type of the crab to be identified based on the abdominal photograph of the crab using a pre-trained first YOLO model. A plumpness recognition unit is used to determine the plumpness type of the crab to be judged based on the plumpness. An oiliness identification unit is used to determine the oiliness type of the crab to be identified based on the abdominal photograph of the crab using a pre-trained second YOLO model. The ovary recognition unit is used to determine the degree of ovarian development of the crab to be judged based on the shape and width of the shadow in the translucent photograph to be tested using a pre-trained third YOLO model. The grading unit is used to determine the grade of the crab to be judged by comprehensively considering its sex and maturity type, its plumpness type, its oiliness type, and its ovarian development level.
[0012] To achieve the above objectives, another aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described method.
[0013] To achieve the above objectives, another aspect of the embodiments of this application proposes a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.
[0014] To achieve the above objectives, another aspect of this application provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0015] The embodiments of this application include at least the following beneficial effects: This application provides an intelligent method and apparatus for judging the grade of yellow crab. The method involves placing the crab to be judged in a standard white light imaging device, using a camera to take a picture of the crab's abdomen through a first through-hole under standard white light to obtain a corresponding abdominal image; placing the crab to be judged in a strong light imaging device, using a camera to take pictures of both sides of the crab under a strong light through a second through-hole to obtain corresponding translucent images; calculating the crab's plumpness; using a pre-trained first YOLO model to determine the crab's sex and maturity type based on the abdominal images; determining the crab's fullness type based on its plumpness; using a pre-trained second YOLO model to determine the crab's oiliness type based on the abdominal images; using a pre-trained third YOLO model to determine the crab's ovarian development level based on the shape and width of shadows in the translucent images; and comprehensively judging the crab's grade based on its sex, maturity type, fullness type, oiliness type, and ovarian development level. This application obtains photos of crabs under different lighting conditions and different parts by placing them under standard white light and strong light photography devices. Based on the photos under specific lighting conditions, the sex, maturity type, plumpness type, oiliness type, and ovarian development degree of the crabs under test are distinguished, and the grade of the yellow oil crabs is comprehensively classified. The grade of yellow oil crabs can be accurately identified. Moreover, the grade of yellow oil crabs can be identified at low cost, without damage or dissection, by using the photography device and YOLO model. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1A flowchart illustrating an intelligent method for determining the grade of butter crabs provided in this application embodiment; Figure 2 An example flowchart of an intelligent method for determining the grade of butter crab provided in this application embodiment; Figure 3 A logic diagram for comprehensively determining the grade of butter crab provided in this application embodiment; Figure 4 Example diagrams of the shooting device and intelligent recognition system provided in the embodiments of this application; Figure 5 Training data diagram of the first YOLO model provided in the embodiments of this application; Figure 6 A recognition result diagram of the first YOLO model provided in the embodiments of this application; Figure 7 Training data diagram of the second YOLO model provided in the embodiments of this application; Figure 8 The recognition result diagram of the second YOLO model provided in the embodiments of this application; Figure 9 Training data diagram of the third YOLO model provided in the embodiments of this application; Figure 10 The recognition result diagram of the third YOLO model provided in the embodiments of this application; Figure 11 Example result diagram of the grade identification of butter crab provided in the embodiments of this application; Figure 12 This is a schematic diagram of the structure of an intelligent determination device for the grade of butter crab provided in an embodiment of this application; Figure 13 An example diagram of an intelligent determination device for the grade of butter crab provided in this application embodiment; Figure 14 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit it. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with those of this application; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.
[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0020] Before providing a detailed description of the embodiments of this application, some related technologies involved in the embodiments of this application will be described first, as follows: Butter crabs are distinguished from ordinary roe crabs by the color of their joint membranes. On the market, butter crabs are further divided into three grades based on the degree of ovarian development, from low to high: full-oil butter crab, head-and-hand butter crab, and roe-oil butter crab.
[0021] According to relevant standards, yellow oil crabs are classified into top-grade, extra-grade, and first-grade, based on the amount of light-transmitting area along the serrated edge of their carapace. Based on extensive sample dissection, the inventors of this application believe that yellow oil crabs should be graded into three categories: fully oily, head-and-hand (with ovaries and roe), and oily with roe. Full-oil yellow oil crabs are those whose ovaries have not yet developed to stage III; head-and-hand yellow oil crabs are those whose ovaries have developed to stage III with an ovarian index ≤5%; and oily with roe yellow oil crabs are those with an ovarian index >5%. The group standard specifies that top-grade yellow oil crabs have a large area of light-transmitting light along the serrated edge of their carapace, extra-grade yellow oil crabs have a partial area of light-transmitting light along the serrated edge of their carapace, and first-grade yellow oil crabs have a small area of light-transmitting light along the serrated edge of their carapace. The inventors of this application discovered through dissection that the shadows of the yellow crab include not only the ovaries but also the hepatopancreas. The translucent parts at the serrated edge of the cephalothorax reflect the number of ovaries and hepatopancreas, but cannot accurately reflect the development of the ovaries. Therefore, this basis cannot distinguish between the full-oil yellow crab and the head-and-hand yellow crab. Moreover, this basis for classifying the head-and-hand yellow crab and the roe-oil yellow crab is highly subjective.
[0022] In the prior art, CN119322028A discloses a method and apparatus for evaluating the quality of Chinese mitten crabs (Eriocheir sinensis) based on spectral information. This method involves using a spectrometer to measure the spectrum of the crab, acquiring spectral data, extracting characteristic parameters from this data, calculating similarity, and selecting the quality grade corresponding to the maximum similarity as the preliminary quality grade of the crab. Grades include top-grade, premium-grade, first-grade, and unqualified. These characteristic parameters are further combined to calculate the yellow-blue value and light transmittance of the crab, while also considering plumpness and ovarian index to form a comprehensive evaluation index. Finally, this evaluation index is compared with a preset quality range, and the determined quality grade is corrected based on the comparison results to ultimately determine the actual quality grade of the crab.
[0023] Insufficiency of existing technology: Acquiring spectral data can provide a precise criterion for classifying crabs by ovarian area percentage, but this method faces challenges such as expensive equipment and radiation risks. Furthermore, the process of extracting feature parameters and using X-ray 3D reconstruction to obtain ovarian volume information is cumbersome, time-consuming, and technically demanding, requiring significant manpower and increasing costs, which hinders rapid assessment and widespread adoption. In addition, infrared imaging technology has limited ability to differentiate between the ovaries and hepatopancreas of mud crabs and cannot be used as a basis for classifying them as either fully oily or head-and-hand yellow oil crabs.
[0024] In summary, there is currently no accurate basis for distinguishing between fully oily yellow crabs and top-grade yellow crabs. The distinction between top-grade yellow crabs and roe-rich yellow crabs relies on experience or complex software calculations. Furthermore, there is currently no complete intelligent method to differentiate between common mud crabs, fully oily yellow crabs, top-grade yellow crabs, and roe-rich yellow crabs. Therefore, it is necessary to provide an intelligent method and device for judging the grade of yellow crabs to accurately and objectively determine their quality.
[0025] This application provides a method and apparatus for intelligently determining the grade of yellow crabs, relating to the field of image recognition technology. The method and apparatus provided in this application can be applied to a terminal, a server, or software running on a terminal or server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, or vehicle terminal, but is not limited thereto; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application implementing an intelligent method for determining the grade of yellow crabs, but is not limited to the above forms.
[0026] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0027] Reference Figure 1 This application provides an intelligent method for judging the grade of yellow crab. The standard white light shooting device used in this method includes a first light-shielding box and a first light-shielding cover. The first light-shielding cover is placed on the top of the first light-shielding box, and a standard white light is connected below the first light-shielding cover. The first light-shielding cover has a first through hole. The high-intensity light shooting device used in this method includes a second light-shielding box, a second light-shielding cover, a third light-shielding box, and a high-intensity light. The high-intensity light is placed inside the third light-shielding box. The bottom of the second light-shielding box is connected to the top of the third light-shielding box. The bottom of the second light-shielding box is a transparent plate. The illumination of the high-intensity light is set to shine on the transparent plate and the light direction is adjustable. The second light-shielding cover has a second through hole. This method may include, but is not limited to, S100 to S160, as detailed below: S100: Place the crab to be judged in a standard white light shooting device, and use a camera to take a picture of the abdomen of the crab to be judged through the first through hole under standard white light to obtain a corresponding picture of the abdomen to be tested. S110: Place the crab to be judged in a high-intensity light shooting device, and use a camera to take pictures of both sides of the crab to be judged through the second through hole under the high-intensity light to obtain corresponding light transmission photos. S120: Calculate the plumpness of the crab to be judged; S130: Using a pre-trained first YOLO model, determine the sex and maturity type of the crab to be tested based on the abdominal photograph; S140: Compare the plumpness with the plumpness threshold to determine the plumpness type of the crab to be judged; S150: Using a pre-trained second YOLO model, determine the oiliness type of the crab to be tested based on the abdominal photograph; S160: Using a pre-trained third YOLO model, determine the degree of ovarian development of the crab to be tested based on the shape and width of the shadow in the translucent photograph to be tested; S170: Determine the grade of the crab to be judged based on the sex and maturity type, the plumpness type, the oiliness type, and the degree of ovarian development.
[0028] Optionally, the step of using a pre-trained third YOLO model to determine the ovarian development level of the crab to be judged based on the shape and width of the shadow in the translucent photograph to be tested, classifying it into immature ovarian crabs, nascent ovarian crabs, and mature ovarian crabs, includes the following steps: If the pre-trained third YOLO model identifies that the shape of the shadow in the translucent photograph being tested is gradually narrowing from the center to both sides, then the ovary development of the crab is determined to be immature. If the pre-trained third YOLO model identifies that the width of the shadow in the translucent photograph to be tested is uniform and less than a set width threshold, then the ovarian development level of the crab is determined to be the initial maturity of the ovary. If the pre-trained third YOLO model identifies that the width of the shadow in the translucent photograph to be tested is uniform and reaches the set width threshold, then the ovarian development level of the crab is determined to be ovarian maturity.
[0029] Optionally, determining the grade of the crab to be judged by comprehensively considering its sex and maturity type, its plumpness type, its oiliness type, and its ovarian development level includes the following steps: If the stated sex and maturity type are male crab, then the crab to be determined is determined to be male crab; If the sex and maturity type are both that of a young crab, then the crab to be determined is a young crab. If the sex and maturity type are described as a mature female crab, then the crab to be determined is preliminarily identified as a mature female crab. If the plumpness type of the mature female crab is that of a water crab, then the crab to be judged is determined to be a water crab. If the plumpness type of the mature female crab is non-water crab, then the crab to be judged is preliminarily determined to be a normal mature female crab. If the oiliness type of the normal mature female crab is non-oily, then the crab to be judged is determined to be an ordinary crab; If the oily type of the normal mature female crab is oily, then the crab to be identified is preliminarily determined to be a butter crab. If the ovaries of the butter crab are underdeveloped, then the crab to be judged is determined to be a full-oil butter crab. If the ovaries of the butter crab are in the early stages of ovarian development, then the crab to be identified is a head-hand butter crab. If the degree of ovarian development of the butter crab is ovarian maturity, then the crab to be determined is determined as a paste oil butter crab.
[0030] Optionally, the method further includes the following steps: Place multiple sample crabs in the standard white light photographing device, and use a camera to photograph the abdomen of each sample crab through the first through hole under standard white light to obtain corresponding sample abdominal photos; Place each sample crab in the strong light photographing device, and use a camera to photograph both sides of each sample crab through the second through hole under strong light to obtain corresponding sample light transmission photos; Calculate the fatness of each sample crab; Determine the gender, maturity type, fullness type, oiliness type and ovarian development degree of each sample crab by measurement and dissection; Use the abdominal carapace morphology and color characteristics in the sample abdominal photos of each sample crab, as well as the corresponding gender and maturity type, to construct the first YOLO model; Use the fatness of each sample crab and the corresponding fullness type to determine the fatness thresholds of water crabs and non-water crabs; Use the color of the joint membrane in the sample abdominal photos of each sample crab, as well as the corresponding oiliness type, to construct the second YOLO model; Use the shape and width of the shadow in the sample light transmission photos of each sample crab, as well as the corresponding ovarian development degree, to construct the third YOLO model; Train the first YOLO model, the second YOLO model and the third YOLO model.
[0031] Optionally, the determining the gender, maturity type, fullness type, oiliness type and ovarian development degree of each sample crab by measurement and dissection includes the following steps: Determine the gender and maturity type according to the abdominal carapace morphology; among them, the long and pointed triangular abdominal carapace is a male crab, the wide triangular abdominal carapace with a lighter color is a young crab, and the broad and round abdominal carapace with a darker color is a mature female crab; Determine the oiliness type according to the yellow-blue value b of the swimming leg joint membrane, and if b≥X, it is determined as having oiliness, and if b<X, it is determined as having no oiliness; where X is a preset oiliness threshold; Determine the fullness type according to the condition of the crab body after dissection, and the one with more water and less meat is a water crab, and vice versa is a non-water crab; The degree of ovarian development is determined based on the stage of ovarian development and the ovarian index. Ovarian development at stage I-II is considered immature. For individuals with ovarian development at stage III or above, the ovarian weight is measured, and the ovarian index is calculated based on the body weight. An ovarian index ≤ Y is considered primordial ovarian development, and an ovarian index > Y is considered mature ovarian development. The ovarian index is calculated as ovarian weight / body weight, where Y is a preset threshold for the ovarian index.
[0032] Optionally, the method further includes the following steps: The first YOLO model is periodically retrained using the abdominal photographs of the test subjects that have been correctly classified according to the sex and maturity type. The second YOLO model is periodically retrained using the abdominal photographs of the test subjects that have been correctly classified as oily; The third YOLO model is periodically retrained using the translucent photographs of the test subjects, which are determined to be correctly classified based on the degree of ovarian development.
[0033] The following sections will provide a detailed description and explanation of some optional embodiments of this application, using specific application examples.
[0034] Reference Figure 2 This embodiment provides a method for intelligently determining the grade of butter crabs. Figure 3 This is a logic diagram for comprehensively determining the grade of butter crabs. Figure 4 This is an example diagram of a camera device and an intelligent recognition system.
[0035] This embodiment may include: 1. Ovarian development is differentiated based on the shape and width of shadows in translucent photographs of mud crabs. When the ovary is immature, the shadow gradually narrows from the center to both sides; when the ovary is initially mature, the shadow is uniformly narrow; and when the ovary is mature, the shadow is uniformly wide. Sex and maturity type are determined based on the morphology and color of the crab's abdominal carapace under standard white light. Oiliness type is determined based on the color of the crab's articular membrane under standard white light. Based on this, three machine vision and deep learning YOLO classification models are trained using a large number of translucent images, standard white light images, and classification information. The accuracy exceeds 90%, and the model accuracy continues to improve with an increased training image set. For crabs to be judged, the three YOLO classification models and plumpness thresholds are used to determine ovarian development, sex and maturity type, oiliness type, and plumpness type based on abdominal photographs, translucent photographs, and plumpness, respectively. A comprehensive assessment of the yellow crab's grade is then made.
[0036] 2. The specific steps are as follows: Step 1: Tie the large claws of the mud crab and place it abdomen-up inside the first light-shielding box. Place a D65 standard white light above the first light-shielding box with a color temperature of 6500K and a color rendering index (CRI) of ≥98. Under the standard white light, use a standard gray card to calibrate the camera's white balance and take a photo of the mud crab's abdomen to obtain the shape and color characteristics of the abdominal carapace and the color characteristics of the articular membrane.
[0037] Step 2: In a dark environment, illuminate the left side of the crab's carapace from below with a strong light, and take a photo of the left side from above. Repeat the same method to take a photo of the right side, thus obtaining the shape and width characteristics of the shadows. The strong light should be a downlight with a power of 2000 lm or higher.
[0038] Step 3: Measure the weight and carapace length of the mud crab, and calculate the condition factor (CF). The carapace length is the horizontal distance from the tip of the foremost serration to the rearmost end of the carapace. Condition factor = weight / (carapace length) 3 .
[0039] Step 4: Determine sex and maturity type based on plastron characteristics, including male crabs, immature crabs, and mature female crabs. Male crabs have a long, pointed triangular plastron; immature crabs have a wide, light-colored, triangular plastron; and mature female crabs have a wide, round, dark-colored plastron. Determine oiliness based on the yellow-blue value (b) of the swimming leg joint membrane: b ≥ 10 indicates an oily type, and b < 10 indicates a non-oily type. Dissect the crab to determine if it is a water crab; crabs with more water and less meat are water crabs, and vice versa. Determine ovarian development stage and ovarian index. Ovarian development stages I–II indicate immature ovaries. For individuals with ovarian development stage III and above, weigh the ovaries and calculate the gonadosomatic index (GSI) based on body weight. An ovarian index ≤ 5% indicates ovarian prematurity, and an ovarian index > 5% indicates ovarian maturity. Ovarian index = ovarian weight / body weight.
[0040] Step 5: Perform steps 1-4 on 200 mud crab samples of different sex-maturity, oily type, and ovarian development levels, including photography, measurement, dissection, and determination.
[0041] Step 6: Select the latest YOLO11n-cls classification model and train the first YOLO model using abdominal photographs of blue crab samples with different sexes and maturity types. (Refer to...) Figure 5 The model achieved a peak accuracy of 1.0 during training and 100% accuracy during validation. For details, please refer to [link / reference]. Figure 5 , Figure 6 .
[0042] The plumpness threshold of 0.50 was obtained by using plumpness samples of different plumpness types.
[0043] A second YOLO model was trained using abdominal photographs of blue crabs with different oil content types. The model achieved a peak accuracy (accuracy_top1) of 0.9 during training and a validation accuracy of 90%. Only a small number of cases resulted in misclassification between oily and non-oily crabs; details can be found in [reference needed]. Figure 7 , Figure 8 .
[0044] A third YOLO model was trained using translucent photographs of mud crabs at different stages of ovarian development. The model achieved a peak accuracy (accuracy_top1) of 0.946 during training and a validation accuracy of 94.6%. The model achieved 100% accuracy in identifying ovarian maturity types, with only a small number of misclassifications between immature and nascent ovarian types. For details, please refer to [link / reference]. Figure 9 , Figure 10 .
[0045] Step 7, still refer to Figure 1 Steps S100-S120 are performed on the crab to be judged. The crab's plumpness is 0.55. A pre-trained first YOLO model is used to determine the sex-maturity type based on the abdominal photograph of the crab, including male crabs, immature crabs, and mature female crabs. A plumpness threshold is used to determine the fullness type based on the crab's plumpness, including water crabs and non-water crabs. A pre-trained second YOLO model is used to determine the oiliness type based on the abdominal photograph, including oily and non-oily. A pre-trained third YOLO model is used to determine the ovarian development level based on two translucent photographs, including immature ovaries, early-maturing ovaries, and mature ovaries. (Refer to...) Figure 11 The three pre-trained YOLO models classified the crab instance as a mature female crab, an oily crab, or a crab with early ovarian maturity, respectively, and classified it as a non-water crab based on the plumpness threshold.
[0046] Step 8, still refer to Figure 3 The grade of yellow crab is determined by combining sex-maturity type, plumpness type, oiliness type, and ovarian development level. The comprehensive determination method is as follows: The crab to be judged is determined by sex-maturity type using the first YOLO model, including male crabs, immature crabs, and mature female crabs; among mature female crabs, plumpness threshold is used to determine plumpness type: if it is a water crab, the crab to be judged is classified as a water crab; if it is not a water crab, it is initially classified as a normal mature female crab; among normally mature female crabs, the second YOLO model is used to determine oiliness type: if it is not oily, the crab to be judged is classified as a normal crab; if it is oily, the crab to be judged is initially classified as a yellow crab; among yellow crabs, the third YOLO model is used to determine ovarian development level: if the ovary is immature, the crab to be judged is classified as a full-oil yellow crab; if the ovary is just beginning to mature, the crab to be judged is classified as a head-and-hand yellow crab; if the ovary is mature, the crab to be judged is classified as a roe-oil yellow crab. Example: The crab to be judged was determined to be a head-and-hand full-oil crab based on the comprehensive determination.
[0047] Step 9: Determine the correct photos and accumulate them in the photo set for model training. Regularly retrain the model to continuously improve its accuracy.
[0048] Reference Figure 12 This application also provides an intelligent determination device for the grade of yellow crabs, which can implement the above-mentioned intelligent determination method for the grade of yellow crabs. The device includes: The first imaging unit is used to place the crab to be judged in a standard white light imaging device and use a camera to take a picture of the abdomen of the crab to be judged through the first through hole under standard white light to obtain a corresponding picture of the abdomen to be tested. The second shooting unit is used to place the crab to be judged inside the high-intensity light shooting device, and use the camera to take pictures of both sides of the crab to be judged under the high-intensity light through the second through hole to obtain corresponding translucent photos to be tested. A plumpness calculation unit is used to calculate the plumpness of the crab to be judged; A sex and maturity type identification unit is used to determine the sex and maturity type of the crab to be identified based on the abdominal photograph of the crab using a pre-trained first YOLO model. A plumpness recognition unit is used to determine the plumpness type of the crab to be judged based on the plumpness. An oiliness identification unit is used to determine the oiliness type of the crab to be identified based on the abdominal photograph of the crab using a pre-trained second YOLO model. The ovary recognition unit is used to determine the degree of ovarian development of the crab to be judged based on the shape and width of the shadow in the translucent photograph to be tested using a pre-trained third YOLO model. The grading unit is used to determine the grade of the crab to be judged by comprehensively considering its sex and maturity type, its plumpness type, its oiliness type, and its ovarian development level.
[0049] Figure 13 An example diagram of a smart device for determining the grade of butter crabs is shown, specifically including the following: The first shooting unit includes a first light-shielding box 1, a first light-shielding cover 2, a standard white light fixture 3, and a camera 4.
[0050] The first light-shielding box 1 is uncovered and black, and can be a cuboid, cube, or cylinder. The first light-shielding cover 2 is placed on top of the first light-shielding box 1, ensuring that the first light-shielding cover 2 completely covers the first light-shielding box 1, making it airtight and preventing external light from interfering with the standard white light and affecting the color of the image. The first light-shielding cover 2 has a central opening 5, the size of which is adapted to the size of the lens of the camera 4. The camera 4 takes pictures of the inside of the box through the central opening 5 of the first light-shielding cover 2.
[0051] The standard white light fixture 3 has a color temperature of 6500K and a color rendering index (CRI) ≥ 98. It is ring-shaped and adhered to the underside of the first light-shielding cover 2. The inner diameter of the standard white light fixture 3 is larger than the central hole 5 of the first light-shielding cover 2 to ensure it does not block the central hole 5; its outer diameter is smaller than the first light-shielding housing 1. The standard white light fixture 3 is powered by a power cord 6. A small groove 7 is provided on the lower side of the first light-shielding cover 2 to allow the power cord 6 to pass through, preventing light leakage from the device due to exposed power cord.
[0052] The second shooting unit includes a second light-shielding box 8, a third light-shielding box 9, a second light-shielding cover 10, a high-intensity light 11, and a camera 19.
[0053] The second light-shielding box 8 is bottomless and lidless, cylindrical in shape, and made of acrylic sheet or other rigid material. Its thickness must be sufficient to prevent a live crab from moving the rigid tube inside. Its diameter should be 2-4 cm larger than the top opening of the third light-shielding box 9 to ensure that it can cover the circular hole 16 at the top of the third light-shielding box 9.
[0054] The third light-shielding enclosure 9 is made of opaque black acrylic sheet, thick enough to withstand a certain weight. The third light-shielding enclosure 9 has a side door 12, which is connected to the third light-shielding enclosure 9 via hinges 13, and is equipped with a door handle 14 and a magnetic closure 15. The top center of the third light-shielding enclosure 9 has a circular hole 16 with a diameter of 18cm, through which a transparent panel 17 is inlaid using glue or other processes. The transparent panel 17 can be made of a high-transmittance material such as transparent acrylic sheet or quartz glass.
[0055] The second light-shielding cover 10 covers the second light-shielding box 8, and the diameter of the second light-shielding cover 10 is larger than the diameter of the second light-shielding box 8. The second light-shielding cover 10 has a central opening 18, the size of which is adapted to the size of the lens of the camera 19. The camera 19 takes pictures of the interior of the second light-shielding box 8 through the central opening 18 of the second light-shielding cover 10.
[0056] A high-intensity light 11 is placed inside the third light-shielding box 9, with the light 11 facing upwards and the light opening close to the top of the third light-shielding box 9. If necessary, the high-intensity light can be raised from the bottom.
[0057] The body fat percentage calculation unit includes an electronic balance and vernier calipers. It should be noted that... Figure 13 The fatness calculation unit is not shown in the figure.
[0058] The intelligent recognition unit is primarily a computer with built-in software containing three pre-trained YOLO models. The camera can connect to the computer via wired or wireless means. The software includes units for gender and maturity type recognition, crab-like (water crab) recognition, oily (oily) recognition, and grading.
[0059] The specific operating method of the shooting device is as follows: First shooting unit: Before shooting, turn on the power of the standard white light fixture 3, place the standard gray card under the light, and calibrate the white balance of the camera 4 by aligning it with the standard gray card through the central hole 5 of the first light-shielding cover 2. During shooting, tie the large claws of the mud crab with cable ties or rope to prevent it from turning over. Place the mud crab belly-up in the box, turn on the light of the standard white light fixture 3, and use the camera 4 to take a picture of the mud crab's belly.
[0060] Second shooting unit: During shooting, place the blue crab with its back facing up above the transparent plate 17, inside the second light-shielding box 8. Cover with the second light-shielding cover 10 and position the camera. Open the side door 12, reach your arm into the third light-shielding box 9, adjust the position of the strong light 11 so that it is aimed at the left side of the blue crab's carapace, close the side door 12 and take a photo of the blue crab with light shining through its left side; adjust the position of the strong light again and take a photo of the blue crab with light shining through its right side.
[0061] After shooting, the first light-shielding box 1, the first light-shielding cover 2, the standard white light fixture 3 and the camera 4, the second light-shielding box 8, the second light-shielding cover 10, the high-intensity light 11 and the camera 19 can be stored inside the third light-shielding box 9 to reduce storage space.
[0062] Body fatness calculation unit: The weight of the mud crab is measured using an electronic balance, and the length of the carapace is measured using vernier calipers to calculate the body fatness. The carapace length is the horizontal distance from the tip of the foremost serrated tooth to the rearmost end of the carapace. Body fatness = weight / (carapace length) 3 .
[0063] Intelligent Recognition Unit: Camera 4 captures one abdominal photo of the crab to be judged, and camera 19 captures two translucent photos of the crab. These photos are transmitted via wired or wireless means to computer software, which also inputs the crab's plumpness level. The software uses a first YOLO model to determine sex-maturity type, plumpness to determine fullness type, a second YOLO model to determine oiliness type, and a third YOLO model to determine ovarian development level, comprehensively determining the crab's grade. Photos with correct judgment results are accumulated in the model training photo set, allowing for periodic retraining and continuous improvement of the model's accuracy.
[0064] The advantages of this device are as follows: The first imaging unit blocks external light interference, using standard white light to accurately capture and record the color of the crab's plastron and articular membranes, which is crucial for distinguishing between immature female crabs and mature female crabs, and for determining their oily type. The second imaging unit blocks external light from entering, ensuring the penetration effect of the strong light 11; the second light-shielding box 8 limits the crab's activity range, and the small, dark, enclosed space allows the crab to lie down comfortably, preventing it from standing upright in defense and thus affecting the imaging. The entire device can be stored in the third light-shielding box 9 for easy portability. The intelligent recognition unit can be continuously optimized and its accuracy improved as the photo set increases.
[0065] This device provides high-quality and accurate image acquisition support for the intelligent identification method of butter crab grades. Conversely, this method also guides the structural design and functional optimization of this device. The two complement each other, rely on each other, and are inseparable in the research and application process, together forming the complete technical system of the intelligent butter crab grade determination method.
[0066] It is understood that the content of the above method embodiments is applicable to the present device embodiments. The specific functions implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0067] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the method of this application. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.
[0068] It is understood that the content of the above method embodiments is applicable to the device embodiments. The specific functions implemented by the device embodiments are the same as those of the methods of this application, and the beneficial effects achieved are the same as those achieved by the methods of this application.
[0069] Please see Figure 14 , Figure 14 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes: The processor 1401 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 1402 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1402 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1402 and is called and executed by the processor 1401. The input / output interface 1403 is used to implement information input and output; The communication interface 1404 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 1405 transmits information between various components of the device (e.g., processor 1401, memory 1402, input / output interface 1403, and communication interface 1404); The processor 1401, memory 1402, input / output interface 1403 and communication interface 1404 are connected to each other within the device via bus 1405.
[0070] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method of this application.
[0071] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0072] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0073] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0074] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0075] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0076] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0077] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0078] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0079] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0080] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0081] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0082] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0083] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0084] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.
Claims
1. A method for intelligently determining the grade of butter crab, characterized in that, The standard white light shooting device used in the method includes a first light-shielding box and a first light-shielding cover plate. The first light-shielding cover plate is placed on top of the first light-shielding box, and a standard white light lamp is connected below the first light-shielding cover plate. The first light-shielding cover plate is provided with a first through hole. The high-intensity light shooting device used in the method includes a second light-shielding box, a second light-shielding cover plate, a third light-shielding box, and a high-intensity light lamp. The high-intensity light lamp is placed inside the third light-shielding box. The bottom of the second light-shielding box is connected to the top of the third light-shielding box. The bottom of the second light-shielding box is a transparent plate. The illumination of the high-intensity light lamp is set to shine on the transparent plate and the light direction is adjustable. The second light-shielding cover plate is provided with a second through hole. The method includes the following steps: The crab to be judged is placed in a standard white light imaging device, and the camera is used to take a picture of the abdomen of the crab under standard white light through the first through hole to obtain the corresponding picture of the abdomen to be judged. The crab to be judged is placed in a high-intensity light shooting device, and the camera is used to take pictures of both sides of the crab under the high-intensity light through the second through hole to obtain corresponding translucent photos. Calculate the plumpness of the crab to be judged; The sex and maturity type of the crab to be tested are determined using a pre-trained YOLO model based on the abdominal photograph. The plumpness level is compared with the plumpness threshold to determine the plumpness type of the crab to be judged; The oiliness type of the crab to be tested is determined based on the abdominal photograph using a pre-trained second YOLO model. The ovarian development degree of the crab to be judged is determined by the shape and width of the shadow in the translucent photograph under test using a pre-trained third YOLO model. The grade of the crab to be judged is determined by combining the sex and maturity type, the plumpness type, the oiliness type, and the degree of ovarian development.
2. The intelligent method for determining the grade of butter crab according to claim 1, characterized in that, The process of using a pre-trained third YOLO model to determine the ovarian development level of the crab to be judged based on the shape and width of the shadows in the translucent photograph to be tested, classifying them into immature ovarian crabs, crabs with early-maturing ovarian crabs, and mature ovarian crabs, includes the following steps: If the pre-trained third YOLO model identifies that the shape of the shadow in the translucent photograph being tested is gradually narrowing from the center to both sides, then the ovary development of the crab is determined to be immature. If the pre-trained third YOLO model identifies that the width of the shadow in the translucent photograph to be tested is uniform and less than a set width threshold, then the ovarian development level of the crab is determined to be the initial maturity of the ovary. If the pre-trained third YOLO model identifies that the width of the shadow in the translucent photograph to be tested is uniform and reaches the set width threshold, then the ovarian development level of the crab is determined to be ovarian maturity.
3. The intelligent method for determining the grade of butter crab according to claim 1, characterized in that, The method of determining the grade of the crab to be judged by comprehensively considering its sex and maturity type, its plumpness type, its oiliness type, and its ovarian development level includes the following steps: If the stated sex and maturity type are male crab, then the crab to be determined is determined to be male crab; If the sex and maturity type are both that of a young crab, then the crab to be determined is a young crab. If the gender and maturity type is a mature female crab, it is preliminarily determined that the crab to be determined is a mature female crab; If the fullness type of the mature female crab is a watery crab, it is determined that the crab to be determined is a watery crab; If the fullness type of the mature female crab is a non-watery crab, it is preliminarily determined that the crab to be determined is a normal mature female crab; If the oiliness type of the normal mature female crab is oil-free, it is determined that the crab to be determined is an ordinary crab; If the oiliness type of the normal mature female crab is oily, it is preliminarily determined that the crab to be determined is a buttery crab; If the ovarian development degree of the buttery crab is immature ovary, it is determined that the crab to be determined is a full-oil buttery crab; If the ovarian development degree of the buttery crab is initially mature ovary, it is determined that the crab to be determined is a first-stage buttery crab; If the ovarian development degree of the buttery crab is mature ovary, it is determined that the crab to be determined is a paste-oil buttery crab.
4. The intelligent method for determining the grade of butter crab according to claim 1, characterized in that, The method further includes the following steps: Placing a plurality of sample crabs in the standard white light shooting device, and using a camera to take corresponding sample abdominal photos of each sample crab's abdomen through the first through hole under standard white light; Placing each sample crab in the strong light shooting device, and using a camera to take corresponding sample light-transmitting photos of both sides of each sample crab through the second through hole under strong light; Calculating the fatness of each sample crab; Determining the gender, maturity type, fullness type, oiliness type and ovarian development degree of each sample crab through measurement and dissection; Using the abdominal carapace morphology and color characteristics in the sample abdominal photos of each sample crab, as well as the corresponding gender and maturity type, to construct the first YOLO model; Using the fatness of each sample crab and the corresponding fullness type, determining the fatness thresholds of watery crabs and non-watery crabs; Using the color of the joint membrane in the sample abdominal photos of each sample crab, as well as the corresponding oiliness type, to construct the second YOLO model; Using the shape and width of the shadow in the sample light-transmitting photos of each sample crab, as well as the corresponding ovarian development degree, to construct the third YOLO model; Training the first YOLO model, the second YOLO model and the third YOLO model.
5. The intelligent method for determining the grade of butter crab according to claim 4, characterized in that, The determining the gender, maturity type, fullness type, oiliness type and ovarian development degree of each sample crab through measurement and dissection includes the following steps: Determining the gender and maturity type according to the abdominal carapace morphology; among them, the long and pointed triangular abdominal carapace is a male crab, the wide triangular and lighter-colored abdominal carapace is a young crab, and the broad and round and darker-colored abdominal carapace is a mature female crab; Determining the oiliness type according to the yellow-blue value b of the swimming leg joint membrane, and determining it as oily when b≥X, and determining it as oil-free when b<X; where X is a preset oiliness threshold; Determining the fullness type according to the condition of the crab body after dissection, and the one with more water and less meat is a watery crab, and vice versa is a non-watery crab; The degree of ovarian development is determined based on the stage of ovarian development and the ovarian index. Ovarian development at stage I-II is considered immature. For individuals with ovarian development at stage III or above, the ovarian weight is measured, and the ovarian index is calculated based on the body weight. An ovarian index ≤ Y is considered primordial ovarian development, and an ovarian index > Y is considered mature ovarian development. The ovarian index is calculated as ovarian weight / body weight, where Y is a preset threshold for the ovarian index.
6. A method for intelligently determining the grade of butter crab according to any one of claims 1 to 5, characterized in that, The method further includes the following steps: The first YOLO model is periodically retrained using the abdominal photographs of the test subjects that have been correctly classified according to the sex and maturity type. The second YOLO model is periodically retrained using the abdominal photographs of the test subjects that have been correctly classified as oily; The third YOLO model is periodically retrained using the translucent photographs of the test subjects, which are determined to be correctly classified based on the degree of ovarian development.
7. A smart device for determining the grade of butter crabs, characterized in that, The device includes: The first imaging unit is used to place the crab to be judged in a standard white light imaging device and use a camera to take a picture of the abdomen of the crab to be judged through the first through hole under standard white light to obtain a corresponding picture of the abdomen to be tested. The second shooting unit is used to place the crab to be judged inside the high-intensity light shooting device, and use the camera to take pictures of the two sides of the crab to be judged through the second through hole under the high-intensity light to obtain corresponding translucent photos to be tested. A plumpness calculation unit is used to calculate the plumpness of the crab to be judged; A sex and maturity type identification unit is used to determine the sex and maturity type of the crab to be identified based on the abdominal photograph of the crab using a pre-trained first YOLO model. A plumpness recognition unit is used to determine the plumpness type of the crab to be judged based on the plumpness. An oiliness identification unit is used to determine the oiliness type of the crab to be identified based on the abdominal photograph of the crab using a pre-trained second YOLO model. The ovary recognition unit is used to determine the degree of ovarian development of the crab to be judged based on the shape and width of the shadow in the translucent photograph to be tested using a pre-trained third YOLO model. The grading unit is used to determine the grade of the crab to be judged by comprehensively considering its sex and maturity type, its plumpness type, its oiliness type, and its ovarian development level.
8. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Eriocheir sinensis grade rapid identification method based on symmetry degree feature identification
CN118115812A
Method and device for evaluating grade of butter crab based on spectral information
CN119322028A