Disease velvet antler mushroom sorting method based on knowledge graph

Through a dual-modal learning network combining ROS depth camera and knowledge graph, combined with the precise operation of the Delta robot arm, the problem of difficulty in disease detection in traditional antler mushroom sorting is solved, and efficient and accurate disease sorting of antler mushrooms is achieved.

CN119035106APending Publication Date: 2024-11-29SHANDONG AGRICULTURAL UNIVERSITY
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411133725.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

Traditional antler mushroom sorting technology relies on manual or simple sorting robots, making it difficult to accurately detect and classify diseases, resulting in low production efficiency and large errors, and prone to missed inspections and missed inspections.

Method used

The ROS depth camera is used to collect graphics information and locate coordinates, combine knowledge graphs and computer vision for dual-modal learning fusion network for characterization and identification and disease detection, and use the Delta robot arm to accurately sort according to the detection results.

Benefits of technology

The precise disease detection and classification of deer antler mushrooms is realized, the sorting efficiency is improved, the subjective influence of artificiality is reduced, the error is reduced, and the accuracy and efficiency of sorting is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119035106A_ABST
    Figure CN119035106A_ABST
Patent Text Reader

Abstract

The invention discloses a diseased pilose antler mushroom sorting method based on a knowledge graph, and relates to the technical field of agricultural product sorting, and the method comprises the following steps: carrying out graphic information collection and coordinate positioning on pilose antler mushrooms by adopting an ROS depth camera; carrying out characterization identification and disease detection and classification on the velvet antler mushrooms through a bimodal learning fusion network fusing a knowledge graph and computer vision; and a Delta mechanical arm of the sorting device is controlled to clamp the velvet antler mushrooms and place the velvet antler mushrooms on different output conveying belts according to the pattern coordinate positioning and classification result, so that sorting and conveying operation is completed. Image information of the pilose antler mushrooms is acquired and positioned, and then whether the pilose antler mushrooms have diseases or not is effectively classified through the bimodal learning fusion network, so that subsequent sorting operation for removing the diseases is facilitated. And finally, a sorting device is adopted to sort the pilose antler mushrooms with different types of diseases onto different output conveying belts, and accurate sorting according to the disease types of the pilose antler mushrooms is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of agricultural product sorting, and specifically to a method for sorting diseased velvet antler mushrooms based on a knowledge graph. Background Art

[0002] The edible fungus industry plays an important role in China's agriculture. As a kind of edible fungus, velvet mushroom is not only rich in nutrients, but also has powerful pharmacological effects, so it is favored by consumers. Its diverse effects and delicious taste make it a popular agricultural product. Usually, velvet mushrooms often produce different types of diseases such as yellow, white spot bacteria, and redundant buds during the production process. Therefore, it is necessary to detect and classify the diseased velvet mushrooms during the sorting process, and then carry out the sorting operation of velvet mushrooms to achieve the removal of diseases of velvet mushrooms, so as to facilitate the next step of sorting and packaging of velvet mushrooms.

[0003] In the traditional technical field, the sorting of velvet antler mushrooms is carried out on a large scale by manual labor combined with conveyor belts. However, velvet antler mushrooms are mainly grown in bottles and grow in different sizes. It is difficult to accurately pick out diseased velvet antler mushrooms during manual harvesting. The detection process is still mainly based on manual experience judgment. There are no clear disease detection indicators, low production efficiency, and large subjective factors. It is easy to cause problems such as misdetection and missed detection, especially after working for a long time, there will be problems such as low accuracy and relatively high errors.

[0004] In the prior art, sorting robots are also used in some workshops for operation, but the existing sorting robots are also unable to screen the diseases of the velvet antler mushrooms and can only perform simple sorting operations. Summary of the invention

[0005] In order to solve the above technical problems, this application proposes the following technical solutions:

[0006] In a first aspect, the present application embodiment provides a method for sorting diseased velvet antler mushrooms based on a knowledge graph, comprising:

[0007] Use ROS depth camera to collect graphic information and coordinate positioning of velvet antler mushroom;

[0008] A dual-modal learning fusion network that integrates knowledge graph and computer vision is used to characterize and identify Pleurotus eryngii and detect and classify its diseases.

[0009] According to the graphic coordinate positioning and classification results, the Delta robot arm of the sorting device is controlled to clamp the velvet antler mushrooms and place them on different output conveyor belts to complete the sorting and transportation operations.

[0010] In a possible implementation, the use of a ROS depth camera to collect graphic information and coordinately locate the velvet antler mushroom includes:

[0011] Determine the coordinates of the detection target in the pixel coordinate system UV as (u0, v0), then the pixel coordinate system and the image coordinates satisfy the following relationship:

[0012]

[0013] Then, the camera intrinsic parameters are used to calculate the coordinates in the camera coordinate system, and the camera intrinsic parameters are used to normalize the three-dimensional coordinates in the camera coordinate system to make them homogeneous coordinates;

[0014] Finally, the camera's external parameters are used to calculate the three-dimensional coordinates in the world coordinate system.

[0015] In a possible implementation, the normalization process of the three-dimensional coordinates in the camera coordinate system using the camera intrinsic parameters includes: the normalization process is performed using the inverse matrix of the camera intrinsic parameters, and the conversion formula is:

[0016]

[0017] Among them, f x 、f y 、c x 、c y are some parameters of the camera intrinsic matrix, X c , Y c , Z c is the coordinate in the normalized camera coordinate system, where Z c For depth information.

[0018] In a possible implementation, the three-dimensional coordinates in the world coordinate system are finally calculated using the camera external parameters, and the conversion formula is:

[0019]

[0020] Where X w , Y w , Z w is the coordinate in the world coordinate system, R is the 3*3 rotation matrix, t is the 3*1 translation matrix, and the rotation matrix and translation matrix constitute the external parameters of the camera.

[0021] In a possible implementation, the characterization and recognition of Pleurotus eryngii and the disease detection and classification using a dual-modal learning fusion network that integrates knowledge graph and computer vision include:

[0022] In graph learning, we first construct a highly flexible point-to-point semantic space through the knowledge graph to map the relationship between the representation quality of velvet antler mushroom and environmental factors into the graph point space, where each point represents the appearance quality characteristics of velvet antler mushroom or a certain environmental factor, and each edge represents the internal logic and dependency relationship between entities. This representation method can intuitively analyze the key environmental factors that affect the appearance of velvet antler mushroom.

[0023] Use graph attention networks to capture multi-scale features between nodes in the knowledge graph;

[0024] The CBAM attention mechanism module is used to enhance the extraction of subtle features of velvet antler mushroom images;

[0025] Finally, the features in the point space are combined with the visual features through point multiplication to detect and classify the diseases of Pleurotus eryngii.

[0026] In a possible implementation, the use of a graph attention network to capture multi-scale features between nodes in a knowledge graph includes:

[0027] Self-attention learning is performed for each node, and then the attention coefficients of all neighboring nodes j of node i are standardized using the SoftMax function, resulting in the following attention mechanism:

[0028]

[0029] Among them, the vector and They represent the feature vectors of the nodes respectively. The vector a→ represents the weight matrix used to connect the layers of the network. The symbol T is used to indicate the transposition operation of the matrix. The symbol || indicates the cascade combination of the operation results.

[0030] Based on the model, the attention coefficients of different nodes are calculated after regularization, which are then used to estimate the output feature vector of each node:

[0031]

[0032] in, represents the feature vector output by the i-th node, W is the weight matrix multiplied by the feature, and σ is the activation function used to introduce nonlinearity;

[0033] The multi-head attention mechanism is used to obtain the final expression of the graph attention network:

[0034]

[0035] The model integrates K different attention mechanisms, each of which consists of a kIt means that for each attention mechanism k attention, its specific input feature is transformed by a linear transformation, and the weight matrix of the transformation is used by the machine W k To express;

[0036] In representation learning, an improved ResNet network is applied in the network. The primary features of the image are extracted through four different residual convolution layer groups. A dense hole convolution network is used to dynamically adjust the receptive field size. The calculation formula of the receptive field in the modified network is as follows:

[0037]

[0038] Among them, RF l is the receptive field size of the lth layer, RF l―1 is the receptive field size of the l-1 layer, K is the convolution kernel size, D is the dilation rate, S i is the step size to the i-th layer. For the initial layer S0=1, the initial convolutional layer is 7x7, the step size is 2, and the receptive field is 7.

[0039] In a possible implementation, the Delta robot arm of the sorting device is controlled according to the graphic coordinate positioning and classification results to clamp the velvet antler mushrooms and place them on different output conveyor belts to complete the sorting and conveying operation, including:

[0040] According to the three-dimensional coordinates of the velvet antler mushroom in the world coordinate system Perform coordinate transformation to obtain the relative three-dimensional coordinates in the Delta robot arm coordinate system. The transformation formula is as follows:

[0041]

[0042] After obtaining the three-dimensional coordinates of the velvet antler mushroom in the Delta robot arm coordinate system, the variable parameters of each joint of the robot arm are obtained by inversely solving the Delta robot arm kinematics equations;

[0043] Determine the end posture of the robot arm according to the variable parameters of each joint of the Delta robot arm;

[0044] Then, according to the test results, the upper computer will automatically control the classification and clamp the velvet antler mushrooms with different diseases onto different conveyor belts to achieve accurate sorting of velvet antler mushrooms to remove diseases.

[0045] In a possible implementation, the inverse solution of the Delta robot arm kinematics equation to obtain the variable parameters of each joint of the robot arm includes:

[0046] Assume that Op = [xyz] between the moving platform and the static platform T ;

[0047] The position vector between the connection of the two rods and the static platform is:

[0048] in (i=1,2,3)

[0049] The spatial position vector of the connecting rod can be obtained as:

[0050] The kinematic solution equation is:

[0051]

[0052] In this, Substitute them respectively to get:

[0053]

[0054] Thus, the variable parameters of each joint of the Delta robot arm are determined.

[0055] In one possible implementation, the sorting device includes: a Delta robotic arm platform, a camera, a flexible clamp, an output conveyor belt and an input conveyor belt, wherein: the input conveyor belt is placed directly below the Delta robotic arm platform, the camera is installed on the Delta robotic arm platform, and the shooting end is vertically facing the input conveyor belt, the flexible clamp is placed at the end of the Delta robotic arm, and the output conveyor belt is composed of multiple parallel conveyor belts, which are placed in parallel below one side of the Delta robotic arm.

[0056] In one possible implementation, the flexible gripper is made of a flexible material with an air passage inside. Gas is introduced through a cylinder to manipulate the flexible material to produce a specified bending deformation. Driven by the air pressure, the gripper can completely wrap the irregular roots of the antler mushroom to achieve stable grasping of the antler mushroom. The gripper is designed with a circular clamping surface to increase the surface area in contact with the antler mushroom.

[0057] In the embodiment of the present application, the image information of the velvet antler mushroom is acquired and located, and then the dual-modal learning fusion network is used to effectively classify whether the velvet antler mushroom has a disease, so as to perform a subsequent sorting operation to remove the disease. Finally, a sorting device is used to sort the velvet antler mushrooms with different types of diseases onto different output conveyor belts, thereby achieving accurate sorting according to the disease type of the velvet antler mushroom. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A schematic diagram of a process for sorting diseased velvet antler mushrooms based on a knowledge graph provided in an embodiment of the present application;

[0059] Figure 2 A schematic diagram of a camera coordinate system provided in an embodiment of the present application;

[0060] Figure 3 A schematic diagram of a dual-modal learning fusion network provided in an embodiment of the present application;

[0061] Figure 4 A schematic diagram of a knowledge graph provided for an embodiment of the present application;

[0062] Figure 5 A schematic diagram of the structure of a sorting device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0063] The present solution is described below in conjunction with the accompanying drawings and specific implementation methods.

[0064] See also Figure 1 The diseased velvet antler mushroom sorting method based on the knowledge graph provided in the embodiment of the present application includes:

[0065] S101, uses ROS depth camera to collect graphic information and coordinate positioning of velvet antler mushroom.

[0066] In this embodiment, an Intel RealSense D435i binocular camera is used to obtain depth information. The camera consists of an infrared sensor (IR Stereo), an infrared laser transmitter (IR Projector) and a color camera (RGB Camera). The inertial measurement unit (IMU) in the camera is used to obtain data from the accelerometer and gyroscope to perceive and understand the motion state of the object. The Jetson Xavier NX edge computing developer kit is used as a computing platform for depth information processing to calculate and process the depth information. The kalibr_calibrate_cameras package in Kalibr, a calibration tool of the ROS robot operating system, is used for camera calibration. The camera calibration is used to obtain the intrinsic parameters of the camera. The purpose is to obtain accurate camera parameters in order to perform tasks such as accurate visual measurement, three-dimensional reconstruction and image correction. Through camera calibration, applications such as eliminating image distortion, determining the true size of an object, and achieving accurate positioning and posture estimation can be performed.

[0067] Target positioning is achieved by establishing a corresponding relationship between the information of the target object in the image captured by the D435i camera and the points existing on the actual object in space. Cameras generally have four coordinate systems, namely pixel coordinate system, image coordinate system, camera coordinate system, and world coordinate system. Coordinate system conversion can be performed between two adjacent coordinate systems through translation or rotation matrix. This conversion process is actually the conversion of coordinates from pixel coordinate system to world coordinate system. Through coordinate conversion, we can obtain the three-dimensional coordinates of the target object in the world coordinate system.

[0068] like Figure 2As shown, the pixel coordinate system UV is the most basic coordinate system, which belongs to the image coordinate system XY. Generally, the origin of the pixel coordinate system is in the upper left corner of the image, so there is a translation conversion relationship between the two coordinate systems. If the coordinates of the detection target in the pixel coordinate system are (u0, v0), then the pixel coordinate system and the image coordinate system satisfy the following relationship:

[0069]

[0070] Given the coordinates in the image coordinate system, the next step is to use the camera intrinsic parameters to calculate the coordinates in the camera coordinate system. During the calculation process, the camera intrinsic parameters need to be used to normalize the three-dimensional coordinates in the camera coordinate system to make them homogeneous coordinates. This normalization process uses the inverse matrix of the camera intrinsic parameters. The conversion formula is:

[0071]

[0072] Among them, f x 、f y 、c x 、c y are some parameters of the camera intrinsic matrix, X c , Y c , Z c is the coordinate in the normalized camera coordinate system, where Z c The depth information can be obtained by using the camera library function in the program. Finally, the rotation and translation matrix obtained by the joint calibration of the RGB camera and the binocular camera can be used to calculate the three-dimensional coordinates in the world coordinate system. The conversion formula is as follows:

[0073]

[0074] Where X w , Y w , Z w is the coordinate in the world coordinate system, R is the 3*3 rotation matrix, and t is the 3*1 translation matrix. The two together constitute the external parameters of the camera. Through calculation, the three-dimensional coordinates of the velvet antler mushroom in the world coordinate system are obtained.

[0075] S102, characterizes and identifies Pleurotus eryngii and detects and classifies its diseases through a bimodal learning fusion network that integrates knowledge graph and computer vision.

[0076] After the system starts running, it begins to capture the target image of the velvet antler mushroom transported by the transmission module and uploads it to the host computer. After receiving the velvet antler mushroom image information, the host computer pre-processes it, and then extracts the target edge information according to the algorithm, performs matrix operations, and obtains the position coordinates of the target velvet antler mushroom, which are converted into real-time coordinates and displayed on the real-time display video of the host computer.

[0077] Then the image is imported into the velvet antler mushroom characterization recognition and disease detection system to detect the velvet antler mushroom. The main designs in this system are as follows: Figure 3 The bimodal learning fusion network shown in the figure is used to characterize and identify velvet antler mushrooms and trace their environmental influencing factors. The learning fusion network is mainly divided into two parts: graph learning and representation learning.

[0078] like Figure 4 As shown in the figure, in graph learning, a highly flexible point-to-point semantic space is first constructed through the knowledge graph to map the relationship between the representation quality of velvet antler mushroom and environmental factors to the graph point space, where each point represents the appearance quality characteristics of velvet antler mushroom or a certain environmental factor, and each edge represents the internal logic and dependency relationship between entities. This representation method can intuitively analyze the key environmental factors that affect the appearance of velvet antler mushroom.

[0079] Then, the graph attention network is used to capture high-dimensional features between nodes in the knowledge graph. The network uses the attention mechanism to perform weighted summation of the features of adjacent nodes to achieve feature aggregation. Under the framework of the graph attention network, each node in the graph can dynamically assign different attention or weights based on the feature information of its neighboring nodes. Self-attention learning is performed for each node, and then the SoftMax function is used to standardize the attention coefficients of all neighbor nodes j of node i, and the attention mechanism is obtained as:

[0080]

[0081] Among them, the vector and Represent the feature vectors of the nodes, and a is a predefined function. This expression essentially reveals the relative importance of node j to node i. The vector a→ represents the weight matrix used to connect the layers of the network. The symbol T is used to represent the transposition operation of the matrix, and the symbol || represents the cascade combination of the operation results. Based on these operations, the model calculates the attention coefficients of different nodes after regularization, which are then used to estimate the output feature vector of each node:

[0082]

[0083] in, represents the feature vector output by the i-th node, and W is the weight matrix multiplied by the feature. In addition, α represents the attention coefficient obtained in the above calculation, and σ is the activation function used to introduce nonlinearity. In order to improve the stability of the self-attention learning process, the model adopts a multi-head attention mechanism. In this way, the final expression of the graph attention network is obtained:

[0084]

[0085] Among them, the model integrates K different attention mechanisms, each of which consists of a k For each attention mechanism k attention, its specific input feature is transformed through a linear transformation, and the weight matrix of the transformation is represented by machine W k To express.

[0086] In representation learning, an improved ResNet network is applied in the network. The primary features of the image are extracted through four different residual convolution layer groups. A dense hole convolution network is used to dynamically adjust the receptive field size. The calculation formula of the receptive field in the modified network is as follows:

[0087]

[0088] Among them, RF l is the receptive field size of the lth layer, RF l―1 is the receptive field size of the l-1 layer, K is the convolution kernel size, D is the dilation rate, S i is the step length to the i-th layer, and for the initial layer, S0 = 1. The initial convolution layer is 7x7, the step length is 2, and the receptive field is 7. The atrous convolution receptive field ensures that sufficient pixel information can be obtained and the multi-scale features of Pleurotus eryngii can be effectively mined.

[0089] The CBAM attention mechanism module is used to enhance the extraction of subtle features of the velvet antler mushroom image. Finally, the features in the point space are combined with the visual features through point multiplication to achieve effective classification of velvet antler mushroom.

[0090] According to the intelligent detection system of velvet antler mushroom, the deep learning detection model, machine vision algorithm and hardware such as stepper motor driver, stepper motor, camera, and transmission platform are integrated and interacted to realize the function of velvet antler mushroom disease detection and environmental factor tracing. In addition, a binocular camera is used to collect the front and back images of the same bottle of velvet antler mushroom in real time, and each velvet antler mushroom is divided into different diseases such as dry yellow, white spot bacteria, redundant buds, slow growth, normal, and residual value, and the detection results are output to the host computer to realize the next step of accurate sorting of velvet antler mushrooms.

[0091] In the aspect of the robot arm sorting, the control device is based on the three-dimensional coordinates of the world coordinate system spatial position of the target velvet antler mushroom transmitted by the host computer. Perform coordinate transformation to obtain the relative three-dimensional coordinates in the Delta robot arm coordinate system. The transformation formula is as follows:

[0092]

[0093] Then, the relative three-dimensional coordinates in the Delta robot coordinate system are used to determine the joint variables and the terminal posture of the robot arm, and the robot arm is controlled to complete the velvet mushroom sorting operation. The problem of determining the joint variables and the terminal posture is the problem of solving the forward and inverse kinematics of the Delta robot arm, which is usually calculated using the following equations:

[0094] Assume that Op = [xyz] between the moving platform and the static platform T

[0095] The position vector between the connection of the two rods and the static platform is:

[0096] in (i=1,2,3)

[0097] The spatial position vector of the connecting rod can be obtained as:

[0098] Therefore, the kinematic solution equation is

[0099]

[0100] In this, Substitute them respectively to get:

[0101]

[0102] The joint variables and terminal posture of the Delta robot arm are determined in this way. Then, according to the intelligent detection results of antler mushrooms, the host computer automatically classifies and controls the diseased antler mushrooms to different conveyor belts, so as to achieve the purpose of removing the diseased antler mushrooms and accurately sorting them.

[0103] S103, according to the graphic coordinate positioning and classification results, the Delta robot arm of the sorting device is controlled to clamp the velvet antler mushrooms and place them on different output conveyor belts to complete the sorting and transportation operation.

[0104] See also Figure 5 The sorting device in this embodiment includes: a Delta robot arm platform 1, a camera 2, a flexible clamp 3, an output conveyor belt 4, an input conveyor belt 5, a conveyor belt motor 6 and other components. The input conveyor belt 5 is placed directly below the Delta robot arm platform 1, the flexible clamp 3 is placed at the end of the Delta robot arm, and the output conveyor belt 4 is composed of three parallel conveyor belts, which are placed in parallel below one side of the Delta robot arm. When the machine is operating, the velvet mushroom enters the machine system from the input conveyor belt 5 and is output by the output conveyor belt 4. The conveyor belt motor 6 is placed at the end of the conveyor belt to provide transportation power for the conveyor belt.

[0105] The end of the Delta robot arm consists of a chassis and a flexible gripper. The chassis is designed to adjust the gripper spacing according to the size of the velvet mushroom, so that the gripper can grip the target more stably. The gripper is connected to an external air compressor through the air pipe derived from the upper end of the Delta robot arm to provide air pressure. The air compressor is connected to the host computer to receive the host computer signal to apply pressure at the specified position, and the flexible gripper deforms and bends to achieve the purpose of gripping and placing the target velvet mushroom.

[0106] The flexible clamp is made of soft material, with a circular clamping surface to increase the contact area with the velvet antler mushroom, and pneumatic clamping to minimize the damage to the mushroom body caused by mechanical operation. This design makes the clamp more flexible and soft when clamping, which helps to protect the shape and quality of the velvet antler mushroom and reduce the damage to the mushroom body caused by mechanical operation.

[0107] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0108] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for sorting diseased velvet antler mushrooms based on knowledge graph, characterized in that: include: Use ROS depth camera to collect graphic information and coordinate positioning of velvet antler mushroom; A dual-modal learning fusion network that integrates knowledge graph and computer vision is used to characterize and identify Pleurotus eryngii and detect and classify its diseases. According to the graphic coordinate positioning and classification results, the Delta robot arm of the sorting device is controlled to clamp the velvet antler mushrooms and place them on different output conveyor belts to complete the sorting and transportation operations.

2. The diseased velvet mushroom sorting method based on knowledge graph according to claim 1 is characterized in that: The method of using a ROS depth camera to collect graphic information and coordinate position of velvet antler mushrooms includes: Determine the coordinates of the detection target in the pixel coordinate system UV as (u0, v0), then the pixel coordinate system and the image coordinates satisfy the following relationship: Then, the camera intrinsic parameters are used to calculate the coordinates in the camera coordinate system, and the camera intrinsic parameters are used to normalize the three-dimensional coordinates in the camera coordinate system to make them homogeneous coordinates; Finally, the camera's external parameters are used to calculate the three-dimensional coordinates in the world coordinate system.

3. The diseased velvet mushroom sorting method based on knowledge graph according to claim 2 is characterized in that: The process of normalizing the three-dimensional coordinates in the camera coordinate system using the camera intrinsic parameters includes: the normalization process is performed using the inverse matrix of the camera intrinsic parameters, and the conversion formula is: Among them, f x 、f y 、c x 、c y are some parameters of the camera intrinsic matrix, X c , Y c , Z c is the coordinate in the normalized camera coordinate system, where Z c For depth information.

4. The method for sorting diseased velvet antler mushrooms based on knowledge graph according to claim 3 is characterized in that: Finally, the three-dimensional coordinates in the world coordinate system are calculated using the camera external parameters, and the conversion formula is: Where X w , Y w , Z w is the coordinate in the world coordinate system, R is the 3*3 rotation matrix, t is the 3*1 translation matrix, and the rotation matrix and translation matrix constitute the external parameters of the camera.

5. The method for sorting diseased velvet antler mushrooms based on knowledge graph according to claim 1, characterized in that: The method of characterizing and identifying, detecting and classifying diseases of velvet antler mushroom by integrating knowledge graph and computer vision through a dual-modal learning fusion network includes: In graph learning, we first construct a highly flexible point-to-point semantic space through the knowledge graph to map the relationship between the representation quality of velvet antler mushroom and environmental factors into the graph point space, where each point represents the appearance quality characteristics of velvet antler mushroom or a certain environmental factor, and each edge represents the internal logic and dependency relationship between entities. This representation method can intuitively analyze the key environmental factors that affect the appearance of velvet antler mushroom. Use graph attention networks to capture multi-scale features between nodes in the knowledge graph; The CBAM attention mechanism module is used to enhance the extraction of subtle features of velvet antler mushroom images; Finally, the features in the point space are combined with the visual features through point multiplication to detect and classify the diseases of Pleurotus eryngii.

6. The method for sorting diseased velvet antler mushrooms based on knowledge graph according to claim 5 is characterized in that: The use of graph attention networks to capture multi-scale features between nodes in the knowledge graph includes: Self-attention learning is performed for each node, and then the attention coefficients of all neighboring nodes j of node i are standardized using the SoftMax function, resulting in the following attention mechanism: Among them, the vector and They represent the feature vectors of the nodes respectively. The vector a→ represents the weight matrix used to connect the layers of the network. The symbol T is used to indicate the transposition operation of the matrix. The symbol || indicates the cascade combination of the operation results. Based on the model, the attention coefficients of different nodes are calculated after regularization, which are then used to estimate the output feature vector of each node: in, represents the feature vector output by the i-th node, W is the weight matrix multiplied by the feature, and σ is the activation function used to introduce nonlinearity; The multi-head attention mechanism is used to obtain the final expression of the graph attention network: The model integrates K different attention mechanisms, each of which consists of a k It means that for each attention mechanism k attention, its specific input feature is transformed by a linear transformation, and the weight matrix of the transformation is used by the machine W k To express; In representation learning, an improved ResNet network is applied in the network. The primary features of the image are extracted through four different residual convolution layer groups. A dense hole convolution network is used to dynamically adjust the receptive field size. The calculation formula of the receptive field in the modified network is as follows: Among them, RF l is the receptive field size of the lth layer, RF l―1 is the receptive field size of the l-1 layer, K is the convolution kernel size, D is the dilation rate, S i is the step size to the i-th layer. For the initial layer S0=1, the initial convolutional layer is 7x7, the step size is 2, and the receptive field is 7.

7. The method for sorting diseased velvet antler mushrooms based on knowledge graph according to claim 4 is characterized in that: The Delta mechanical arm of the sorting device is controlled according to the graphic coordinate positioning and classification results to clamp the velvet antler mushrooms and place them on different output conveyor belts to complete the sorting and conveying operation, including: According to the three-dimensional coordinates of the velvet antler mushroom in the world coordinate system Perform coordinate transformation to obtain the relative three-dimensional coordinates in the Delta robot arm coordinate system. The transformation formula is as follows: After obtaining the three-dimensional coordinates of the velvet antler mushroom in the Delta robot arm coordinate system, the variable parameters of each joint of the robot arm are obtained by inversely solving the Delta robot arm kinematics equations; Determine the end posture of the robot arm according to the variable parameters of each joint of the Delta robot arm; Then, according to the test results, the upper computer will automatically control the classification and clamp the velvet antler mushrooms with different diseases onto different conveyor belts to achieve accurate sorting of velvet antler mushrooms to remove diseases.

8. The method for sorting diseased velvet antler mushrooms based on knowledge graph according to claim 7 is characterized in that: The variable parameters of each joint of the Delta robot arm are obtained by inversely solving the kinematics equation of the Delta robot arm, including: Assume that Op = [xyz] between the moving platform and the static platform T ; The position vector between the connection of the two rods and the static platform is: in The spatial position vector of the connecting rod can be obtained as: The kinematic solution equation is: In this, Substitute them respectively to get: Thus, the variable parameters of each joint of the Delta robot arm are determined.

9. The method for sorting diseased velvet antler mushrooms based on knowledge graph according to claim 1, characterized in that: The sorting device includes: a Delta robotic arm platform, a camera, a flexible clamp, an output conveyor belt and an input conveyor belt, wherein: the input conveyor belt is placed directly below the Delta robotic arm platform, the camera is installed on the Delta robotic arm platform, and the shooting end is vertically facing the input conveyor belt, the flexible clamp is placed at the end of the Delta robotic arm, and the output conveyor belt is composed of multiple parallel conveyor belts, which are placed in parallel below one side of the Delta robotic arm.

10. The method for sorting diseased velvet antler mushrooms based on knowledge graph according to claim 9, characterized in that: The flexible gripper is made of flexible material and has an airway inside. Gas is introduced through a cylinder to manipulate the flexible material to produce a specified bending deformation. Driven by air pressure, the gripper can completely wrap the irregular roots of the antler mushroom to achieve stable grasping of the antler mushroom. The gripper is designed with an arc clamping surface to increase the surface area in contact with the antler mushroom.

Citation Information

Cited By

  • Garlic seed budding method based on multi-modal learning network

    CN120088698A

  • A garlic seed sprouting method based on multimodal learning network

    CN120088698B

  • Visual inspection-based desert cistanche conveying device for wine desert cistanche processing

    CN121155925A