A method, device and equipment for detecting threshing effect and threshing particle size of mulberry
The Canny and SURF algorithms are used to detect the characteristics of mulberries, and the knowledge graph and Euclidean distance algorithm are combined to evaluate the threshing effect, and are regulated according to the operating status of the equipment. This solves the problems of light, angle interference and wear and aging of the mulberry threshing equipment, and improves the threshing efficiency. efficiency and automation levels.
Patent Information
- Application Number
- CN202411060920.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-05
AI Technical Summary
Existing mulberry threshing equipment has problems with illumination, angle and impurity interference in terms of threshing effect and particle size detection, and equipment wear and aging lead to abnormal operation, affecting efficiency and effects.
The Canny edge detection algorithm and SURF algorithm are used to extract and detect mulberry features, build a three-dimensional model, combine the knowledge graph and Euclidean distance algorithm to evaluate the threshing effect, and analyze the operating status of the equipment through a preset time period for automatic control processing. .
It achieves accurate detection of mulberry fruit grains and real-time assessment of threshing effect, improves automation level and quality control capabilities, and ensures the stability and efficiency of the threshing process.
Smart Images

Figure CN118566083B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of mulberry detection, in particular to a method, a device and equipment for detecting threshing effect and threshing particle size of mulberry. Background Art
[0002] Mulberry threshing is to separate the mulberry fruit from the stalk and axis. Traditional manual threshing is labor-intensive and inefficient, and cannot meet the needs of large-scale commercial production. To this end, researchers have designed a threshing device that integrates optical recognition, mechanical separation and intelligent control by drawing on automation and information technology. The device can identify and locate mulberries in real time by using high-precision image processing technology, and thresh quickly and non-destructively through precision mechanical devices. It is also equipped with sensors and algorithms to achieve automated operation. Although the existing mulberry threshing equipment has improved efficiency to a certain extent, its threshing effect and particle size detection method still face some technical challenges: First, the existing optical detection method may be affected by light, angle and impurities, affecting the recognition accuracy. Furthermore, how to achieve real-time and accurate particle size detection to ensure that mulberries of different particle size levels can be effectively separated is still a technical problem. In addition, due to the wear and aging of the equipment, it is inevitable that the equipment will have abnormal operation during operation. When the equipment is abnormal, if the equipment is not regulated and processed in time, it will have a great impact on the threshing efficiency and effect. Therefore, the development of more intelligent, stable and efficient detection methods and the use of threshing equipment is a key technical issue that needs to be urgently solved. Summary of the invention
[0003] The invention overcomes the shortcomings of the prior art and provides a method, a device and equipment for detecting the threshing effect and threshing particle size of mulberries.
[0004] To achieve the above-mentioned purpose, the technical solution adopted by the present invention is:
[0005] The first aspect of the present invention discloses a method for detecting threshing effect and threshing particle size of mulberries, comprising the following steps:
[0006] After threshing the target mulberries, an actual state feature image of the target mulberries is obtained, and feature extraction processing is performed on the actual state feature image based on a Canny edge detection algorithm to obtain an edge feature contour of the target mulberries;
[0007] Based on the SURF algorithm, the edge feature contour of the target mulberry is detected, and the detected feature points are reduced in redundancy. The actual feature model diagram of the target mulberry is constructed according to the three-dimensional model of the reduced feature points.
[0008] The threshing effect of the target mulberries is detected according to the actual characteristic model diagram of the target mulberries. If the threshing of the target mulberries is successful, the particle size of the target mulberries is obtained; if the threshing of the target mulberries is not successful, the threshing equipment is controlled to perform threshing operation on the target mulberries again;
[0009] The threshing equipment is analyzed according to the threshing conditions of the target mulberries within a preset time period to obtain the operating status of the threshing equipment; if the operating status of the threshing equipment is normal, the threshing equipment is not adjusted; if the operating status of the threshing equipment is abnormal, the threshing equipment is adjusted.
[0010] More specifically, the actual state feature image is subjected to feature extraction processing based on the Canny edge detection algorithm to obtain the edge feature contour of the target mulberry, specifically:
[0011] Performing gray value conversion and Gaussian filtering on the actual state feature image to obtain a pre-processed actual state feature image;
[0012] The Sobel operator is used to calculate the gradient information of the actual state feature image after preprocessing; the gradient information includes the gradient amplitude and direction, the gradient amplitude represents the intensity of the grayscale change of the pixel in the image, and the direction represents the direction of the grayscale change;
[0013] Performing non-maximum suppression on the gradient amplitude to remove false edge responses; presetting a first gradient amplitude threshold and a second gradient amplitude threshold; wherein the first gradient amplitude threshold is greater than the second gradient amplitude threshold;
[0014] Mark the pixel points whose gradient amplitude is greater than the first gradient amplitude threshold as strong edges, and mark the pixel points whose gradient amplitude is less than the second gradient amplitude threshold as weak edges; mark the pixel points whose gradient amplitude is between the first gradient amplitude threshold and the second gradient amplitude threshold as invalid edges;
[0015] The weak edge is refined through morphological operation to make it an edge with a single pixel width, thus forming a strong edge; the extracted strong edge is output to obtain the edge feature contour of the target mulberry.
[0016] More specifically, the edge feature contour of the target mulberry is detected based on the SURF algorithm, and the detected feature points are reduced in redundancy. The actual feature model diagram of the target mulberry is constructed according to the three-dimensional model of the feature points after redundancy reduction, which is specifically:
[0017] Obtaining the edge feature contour of the target mulberry, and performing feature detection on the edge feature contour of the target mulberry based on the SURF algorithm, detecting a number of feature points, and generating a feature point three-dimensional model according to the detected feature points;
[0018] The feature point three-dimensional model is divided into a plurality of sub-regions, and the number of feature points in each sub-region is counted; if the number of feature points in a sub-region is greater than a preset value, the sub-region is marked as a redundant sub-region; if the number of feature points in a sub-region is not greater than the preset value, the sub-region is marked as a normal sub-region;
[0019] Calculate the cosine similarity between the feature points in the redundant sub-region based on the cosine similarity algorithm. If the cosine similarity between two feature points is greater than a preset cosine similarity threshold, merge the two feature points. Similarly, after all feature points with cosine similarities greater than the preset cosine similarity threshold are merged, a reduced-redundancy sub-region is obtained.
[0020] Form a reduced-redundancy feature point three-dimensional model by combining each reduced-redundancy sub-region with a normal sub-region; obtain relative coordinate information between each feature point in the reduced-redundancy feature point three-dimensional model, and generate a feature point coordinate collection according to the relative coordinate information;
[0021] The feature point coordinate collection is imported into a three-dimensional modeling software for model reconstruction to obtain an actual feature model diagram of the target mulberry.
[0022] More specifically, the threshing effect of the target mulberry is detected according to the actual characteristic model diagram of the target mulberry. If the threshing of the target mulberry is successful, the particle size of the target mulberry is obtained; if the threshing of the target mulberry is not successful, the threshing device is controlled to perform threshing operation on the target mulberry again, specifically:
[0023] Prefabricate in advance the fruit particle characteristic model diagrams corresponding to the mulberry fruit particles of various preset particle size ranges after being destemmed and de-shafted;
[0024] Constructing a knowledge graph, dividing the knowledge graph into a plurality of sub-graph spaces, and assigning a particle size label to each sub-graph space according to a corresponding preset particle size range; and importing a fruit particle feature model graph corresponding to mulberry fruit particles of various preset particle size ranges after being destemmed and de-axled into the corresponding sub-graph space;
[0025] Obtaining an actual feature model graph of the target mulberry, importing the actual feature model graph of the target mulberry into the knowledge graph, and calculating the degree of overlap between the actual feature model graph and the fruit particle feature model graphs in each sub-graph space based on the Euclidean distance algorithm;
[0026] If the overlap between the actual feature model graph and the fruit grain feature model graphs in each sub-atlas space is not greater than the preset overlap, it means that the target mulberries have not been threshed successfully, and the threshing device is controlled to thresh the target mulberries again until the threshing is completed;
[0027] If the degree of overlap between the actual feature model graph and the fruit particle feature model graph in one or more sub-graph space is greater than the preset overlap, it means that the target mulberry is threshed successfully, then the fruit particle feature model graphs with overlap greater than the preset overlap are sorted, and the fruit particle feature model graph with the largest overlap is extracted; and the particle size label corresponding to the sub-graph space in the fruit particle feature model graph with the largest overlap is obtained, and the fruit particle size of the target mulberry is obtained according to the particle size label.
[0028] More specifically, the threshing equipment is analyzed according to the threshing conditions of the target mulberries within a preset time period to obtain the operating status of the threshing equipment, specifically:
[0029] Construct a statistical table, and whenever the target mulberries are threshed, determine whether the threshing of the target mulberries is successful; if the threshing is successful, fill in 0 at the corresponding statistical position in the statistical table; if the threshing is unsuccessful, fill in 1 at the corresponding statistical position in the statistical table;
[0030] The threshing success rate of the threshing equipment within a preset time period is calculated according to the statistical table; wherein the threshing success rate is the ratio of the number of unsuccessful threshing times to the total number of threshing times within the preset time period;
[0031] If the threshing success rate of the threshing device within the preset time period is greater than the preset threshing success rate, it means that the operation state of the threshing device is normal;
[0032] If the threshing success rate of the threshing device within the preset time period is greater than the preset threshing success rate, it indicates that the operating state of the threshing device is abnormal.
[0033] More specifically, if the operating state of the threshing equipment is abnormal, the threshing equipment is regulated and processed, specifically:
[0034] If the operating state of the threshing equipment is abnormal, then various real-time working parameters of the threshing equipment are obtained, and various preset working parameters of the threshing equipment are obtained based on preset process parameters;
[0035] Calculate the difference between each real-time working parameter and the corresponding preset working parameter to obtain the parameter deviation value of each real-time working parameter; and compare the parameter deviation value of each real-time working parameter with the preset deviation threshold;
[0036] If the parameter deviation value of a certain real-time working parameter is greater than the preset deviation threshold, the real-time working parameter is corrected based on the corresponding parameter deviation value.
[0037] The second aspect of the present invention discloses a mulberry threshing effect and threshing granularity detection device, comprising a memory and a processor, wherein the memory stores a mulberry threshing effect and threshing granularity detection method program, and when the mulberry threshing effect and threshing granularity detection method program is executed by the processor, the following steps are implemented:
[0038] After threshing the target mulberries, an actual state feature image of the target mulberries is obtained, and feature extraction processing is performed on the actual state feature image based on a Canny edge detection algorithm to obtain an edge feature contour of the target mulberries;
[0039] Based on the SURF algorithm, the edge feature contour of the target mulberry is detected, and the detected feature points are reduced in redundancy. The actual feature model diagram of the target mulberry is constructed according to the three-dimensional model of the reduced feature points.
[0040] The threshing effect of the target mulberries is detected according to the actual characteristic model diagram of the target mulberries. If the threshing of the target mulberries is successful, the particle size of the target mulberries is obtained; if the threshing of the target mulberries is not successful, the threshing equipment is controlled to perform threshing operation on the target mulberries again;
[0041] The threshing equipment is analyzed according to the threshing conditions of the target mulberries within a preset time period to obtain the operating status of the threshing equipment; if the operating status of the threshing equipment is normal, the threshing equipment is not adjusted; if the operating status of the threshing equipment is abnormal, the threshing equipment is adjusted.
[0042] The third aspect of the present invention discloses a mulberry threshing effect and threshing particle size detection device, the mulberry threshing effect and threshing particle size detection device comprises:
[0043] A feature extraction module, after threshing the target mulberries, obtains an actual state feature image of the target mulberries, and performs feature extraction processing on the actual state feature image based on a Canny edge detection algorithm to obtain an edge feature contour of the target mulberries;
[0044] The feature detection module detects the edge feature contour of the target mulberry based on the SURF algorithm, reduces the redundancy of the detected feature points, and constructs the actual feature model diagram of the target mulberry according to the three-dimensional model of the reduced feature points;
[0045] The recognition module detects the threshing effect of the target mulberry according to the actual characteristic model diagram of the target mulberry. If the threshing of the target mulberry is successful, the particle size of the target mulberry is obtained; if the threshing of the target mulberry is not successful, the threshing equipment is controlled to perform threshing operation on the target mulberry again;
[0046] The control module analyzes the threshing equipment according to the threshing conditions of the target mulberries within a preset time period to obtain the operating status of the threshing equipment; if the operating status of the threshing equipment is normal, the threshing equipment is not controlled; if the operating status of the threshing equipment is abnormal, the threshing equipment is controlled.
[0047] The present invention solves the technical defects existing in the background technology, and has the following beneficial effects: after threshing the target mulberries, the actual state characteristic image of the target mulberries is obtained, and the actual state characteristic image is subjected to feature extraction processing based on the Canny edge detection algorithm to obtain the edge characteristic contour of the target mulberries; the edge characteristic contour of the target mulberries is subjected to feature detection based on the SURF algorithm, and the detected characteristic points are subjected to redundancy reduction processing, and the actual characteristic model diagram of the target mulberries is constructed according to the three-dimensional model of the characteristic points after redundancy reduction; the threshing effect of the target mulberries is detected according to the actual characteristic model diagram of the target mulberries If the target mulberries are threshed successfully, the particle size of the target mulberries is obtained; if the target mulberries are not threshed successfully, the threshing device is controlled to perform threshing operation on the target mulberries again; the threshing device is analyzed according to the threshing situation of the target mulberries within a preset time period to obtain the operating status of the threshing device; if the operating status of the threshing device is normal, the threshing device is not adjusted and processed; if the operating status of the threshing device is abnormal, the threshing device is adjusted and processed. The present invention realizes the accurate detection of the particle size of mulberries and the real-time evaluation of the threshing effect, and improves the automation level and quality control capability in the threshing process of mulberries. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, drawings of other embodiments can be obtained based on these drawings without paying creative work.
[0049] Figure 1 The present invention is a flow chart of an overall method for detecting mulberry threshing effect and threshing particle size;
[0050] Figure 2 It is a partial method flow chart of a method for detecting mulberry threshing effect and threshing particle size;
[0051] Figure 3 The present invention is a system block diagram of a mulberry threshing effect and threshing particle size detection system. DETAILED DESCRIPTION
[0052] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0053] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0054] like Figure 1 As shown, the first aspect of the present invention discloses a method for detecting threshing effect and threshing particle size of mulberry, comprising the following steps:
[0055] S102: after threshing the target mulberries, obtaining an actual state feature image of the target mulberries, and performing feature extraction processing on the actual state feature image based on a Canny edge detection algorithm to obtain an edge feature contour of the target mulberries;
[0056] S104: performing feature detection on the edge feature contour of the target mulberry based on the SURF algorithm, performing redundancy reduction processing on the detected feature points, and constructing an actual feature model diagram of the target mulberry according to the three-dimensional model of the feature points after redundancy reduction;
[0057] S106: threshing effect detection is performed on the target mulberries according to the actual characteristic model diagram of the target mulberries. If the target mulberries are threshed successfully, the particle size of the target mulberries is obtained; if the target mulberries are not threshed successfully, the threshing equipment is controlled to perform threshing operation on the target mulberries again;
[0058] S108: Analyze the threshing equipment according to the threshing conditions of the target mulberries within a preset time period to obtain the operating status of the threshing equipment; if the operating status of the threshing equipment is normal, do not adjust the threshing equipment; if the operating status of the threshing equipment is abnormal, adjust the threshing equipment.
[0059] More specifically, if Figure 2 As shown, the actual state feature image is subjected to feature extraction processing based on the Canny edge detection algorithm to obtain the edge feature contour of the target mulberry, specifically:
[0060] S202: graying and Gaussian filtering the actual state feature image to obtain a pre-processed actual state feature image;
[0061] S204: using the Sobel operator to calculate the gradient information of the actual state feature image after preprocessing; the gradient information includes the gradient amplitude and direction, the gradient amplitude represents the intensity of the grayscale change of the pixel point in the image, and the direction represents the direction of the grayscale change;
[0062] S206: performing non-maximum suppression on the gradient amplitude to remove false edge responses; presetting a first gradient amplitude threshold and a second gradient amplitude threshold; wherein the first gradient amplitude threshold is greater than the second gradient amplitude threshold;
[0063] S208: marking pixel points whose gradient amplitude is greater than a first gradient amplitude threshold as strong edges, marking pixel points whose gradient amplitude is less than a second gradient amplitude threshold as weak edges; marking pixel points whose gradient amplitude is between the first gradient amplitude threshold and the second gradient amplitude threshold as invalid edges;
[0064] S210: thinning the weak edge through morphological operation to make the weak edge an edge with a single pixel width, thereby forming a strong edge; outputting the extracted strong edge to obtain an edge feature contour of the target mulberry.
[0065] It should be noted that the original image is first grayed and Gaussian filtered to reduce the impact of noise, and then the Sobel operator is used to calculate the gradient information of the image, including the gradient amplitude and direction. Next, the false edges are removed by non-maximum suppression, and two gradient thresholds are set to distinguish strong edges from weak edges. Finally, the weak edges are refined by morphological operations to form clear strong edges, thereby obtaining the edge feature contour of the target; the strong edges finally output as the edge features of the target are helpful to accurately identify and locate the target in the image. This method can effectively extract the edge features of the target mulberry from the image, providing a reliable basis for the subsequent construction of the feature model diagram of the target mulberry, which can effectively improve the subsequent model construction speed and ensure the model restoration, thereby improving the detection efficiency and the reliability of the detection results.
[0066] More specifically, the edge feature contour of the target mulberry is detected based on the SURF algorithm, and the detected feature points are reduced in redundancy. The actual feature model diagram of the target mulberry is constructed according to the three-dimensional model of the feature points after redundancy reduction, which is specifically:
[0067] Obtaining the edge feature contour of the target mulberry, and performing feature detection on the edge feature contour of the target mulberry based on the SURF algorithm, detecting a number of feature points, and generating a feature point three-dimensional model according to the detected feature points;
[0068] The feature point three-dimensional model is divided into a plurality of sub-regions, and the number of feature points in each sub-region is counted; if the number of feature points in a sub-region is greater than a preset value, the sub-region is marked as a redundant sub-region; if the number of feature points in a sub-region is not greater than the preset value, the sub-region is marked as a normal sub-region;
[0069] Calculate the cosine similarity between the feature points in the redundant sub-region based on the cosine similarity algorithm. If the cosine similarity between two feature points is greater than a preset cosine similarity threshold, merge the two feature points. Similarly, after all feature points with cosine similarities greater than the preset cosine similarity threshold are merged, a reduced-redundancy sub-region is obtained.
[0070] Form a reduced-redundancy feature point three-dimensional model by combining each reduced-redundancy sub-region with a normal sub-region; obtain relative coordinate information between each feature point in the reduced-redundancy feature point three-dimensional model, and generate a feature point coordinate collection according to the relative coordinate information;
[0071] The feature point coordinate collection is imported into a three-dimensional modeling software for model reconstruction to obtain an actual feature model diagram of the target mulberry.
[0072] It should be noted that the SURF algorithm is a widely used feature point detection method, and its main purpose is to quickly and accurately extract key points from an image. However, when the SURF algorithm detects the edge feature contour of a target, redundant feature points may be generated for the following reasons: (1) The SURF algorithm may detect more feature points than are actually needed in the edge area of the target mulberry, especially in areas with complex textures or unclear edges. (2) Noise or uneven illumination in the image may cause the algorithm to mistakenly identify these interferences as feature points. (3) There may be local repetitions of texture or shape on the surface of mulberry, causing the algorithm to repeatedly detect multiple feature points in the same area. The existence of these redundant feature points not only increases the complexity and computational requirements of the model, but also introduces errors in the subsequent feature matching and three-dimensional reconstruction processes, reducing the accuracy and consistency of the model. Therefore, effective screening and deduplication of feature points is a key step to improve the quality of edge feature detection and subsequent model construction. In view of this, in the present invention, after obtaining the edge feature contour of the target mulberry, the SURF algorithm is used to detect feature points on the contour, and a three-dimensional feature point model is constructed based on these feature points. By dividing the model into multiple sub-regions and counting the number of feature points in each region, redundant and normal sub-regions are distinguished. In the redundant region, the cosine similarity algorithm is used to merge similar feature points to reduce redundancy. Finally, the reduced-redundancy sub-region is combined with the normal sub-region to form a reduced-redundancy feature point model, and the feature point coordinate collection is exported for 3D modeling software to reconstruct the actual feature model of the target mulberry. Based on the reduced-redundancy feature point model and relative coordinate information, the actual feature model of the mulberry is reconstructed using 3D modeling software to achieve an accurate representation of the mulberry morphology, which can effectively improve the accuracy of model reconstruction and thus improve the reliability of the detection results.
[0073] More specifically, the threshing effect of the target mulberry is detected according to the actual characteristic model diagram of the target mulberry. If the threshing of the target mulberry is successful, the particle size of the target mulberry is obtained; if the threshing of the target mulberry is not successful, the threshing device is controlled to perform threshing operation on the target mulberry again, specifically:
[0074] Prefabricate in advance the fruit particle characteristic model diagrams corresponding to the mulberry fruit particles of various preset particle size ranges after being destemmed and de-shafted;
[0075] Constructing a knowledge graph, dividing the knowledge graph into a plurality of sub-graph spaces, and assigning a particle size label to each sub-graph space according to a corresponding preset particle size range; and importing a fruit particle feature model graph corresponding to mulberry fruit particles of various preset particle size ranges after being destemmed and de-axled into the corresponding sub-graph space;
[0076] Obtaining an actual feature model graph of the target mulberry, importing the actual feature model graph of the target mulberry into the knowledge graph, and calculating the degree of overlap between the actual feature model graph and the fruit particle feature model graphs in each sub-graph space based on the Euclidean distance algorithm;
[0077] If the overlap between the actual feature model graph and the fruit grain feature model graphs in each sub-atlas space is not greater than the preset overlap, it means that the target mulberries have not been threshed successfully, and the threshing device is controlled to thresh the target mulberries again until the threshing is completed;
[0078] If the degree of overlap between the actual feature model graph and the fruit particle feature model graph in one or more sub-graph space is greater than the preset overlap, it means that the target mulberry is threshed successfully, then the fruit particle feature model graphs with overlap greater than the preset overlap are sorted, and the fruit particle feature model graph with the largest overlap is extracted; and the particle size label corresponding to the sub-graph space in the fruit particle feature model graph with the largest overlap is obtained, and the fruit particle size of the target mulberry is obtained according to the particle size label.
[0079] It should be noted that, through the use of 3D software such as CAD by relevant technical personnel to draw the mulberry fruit feature model diagram within various preset particle size ranges, and to construct a knowledge map, the map is divided into multiple sub-map spaces, each space corresponding to a different particle size range and assigned a particle size label. Then the mulberry fruit feature model diagram after the stem and axis are removed is imported into the knowledge map, and the Euclidean distance algorithm is used to calculate the overlap between the actual feature model diagram and the preset feature model diagram in each sub-map space. By comparing the overlap with the preset threshold, the threshing effect is evaluated. If the threshing is successful, the fruit feature model diagram with the highest overlap and its corresponding particle size label are further extracted to determine the fruit particle size of the target mulberry. If the threshing effect is not good, the threshing equipment can be controlled in real time to thresh again until the expected effect is achieved. By extracting the fruit particle feature model map with the highest overlap and its particle size label, accurate feedback on the target mulberry fruit particle size is achieved, accurate detection of the mulberry fruit particle size and real-time evaluation of the threshing effect are achieved, and the automation level and quality control capability in the mulberry threshing process are improved.
[0080] More specifically, the threshing equipment is analyzed according to the threshing conditions of the target mulberries within a preset time period to obtain the operating status of the threshing equipment, specifically:
[0081] Construct a statistical table, and whenever the target mulberries are threshed, determine whether the threshing of the target mulberries is successful; if the threshing is successful, fill in 0 at the corresponding statistical position in the statistical table; if the threshing is unsuccessful, fill in 1 at the corresponding statistical position in the statistical table;
[0082] The threshing success rate of the threshing equipment within a preset time period is calculated according to the statistical table; wherein the threshing success rate is the ratio of the number of unsuccessful threshing times to the total number of threshing times within the preset time period;
[0083] If the threshing success rate of the threshing device within the preset time period is greater than the preset threshing success rate, it means that the operation state of the threshing device is normal;
[0084] If the threshing success rate of the threshing device within the preset time period is greater than the preset threshing success rate, it indicates that the operating state of the threshing device is abnormal.
[0085] It should be noted that due to the wear and aging of the equipment, as well as long-term work, it is inevitable that the equipment will have abnormal operation during operation. When the equipment is abnormal, it may lead to incomplete threshing or damage to the fruit, thereby affecting the commercial value of mulberries and having a greater impact on the threshing efficiency of mulberries. Therefore, during the operation of the equipment, the success or failure of each threshing operation is recorded, and 0 and 1 are used to represent successful and unsuccessful threshing respectively, to achieve real-time monitoring of the threshing process. By analyzing the statistical data within the preset time period, the threshing success rate is calculated, that is, the ratio of the number of unsuccessful threshing times to the total number of threshing times. If the threshing success rate is lower than the preset threshing success rate, it is determined that the equipment is operating normally; conversely, if the threshing success rate is higher than the preset value, it indicates that the equipment is operating abnormally and needs maintenance or adjustment. This method can track the results of each threshing operation in real time, discover problems in time, objectively evaluate the operating status of the threshing equipment, provide data support for maintenance and optimization, and provide an effective quality control and fault warning mechanism for the mulberry threshing process, which helps to improve production efficiency, ensure product quality, and reduce maintenance costs.
[0086] More specifically, if the operating state of the threshing equipment is abnormal, the threshing equipment is regulated and processed, specifically:
[0087] If the operating state of the threshing equipment is abnormal, then various real-time working parameters of the threshing equipment are obtained, and various preset working parameters of the threshing equipment are obtained based on preset process parameters;
[0088] Calculate the difference between each real-time working parameter and the corresponding preset working parameter to obtain the parameter deviation value of each real-time working parameter; and compare the parameter deviation value of each real-time working parameter with the preset deviation threshold;
[0089] If the parameter deviation value of a certain real-time working parameter is greater than the preset deviation threshold, the real-time working parameter is corrected based on the corresponding parameter deviation value.
[0090] It should be noted that when the operating state of the threshing equipment is abnormal, the system will obtain various real-time working parameters of the threshing equipment, and at the same time obtain various preset working parameters of the threshing equipment based on the preset process parameters. Then, the system will calculate the difference between each real-time working parameter and the corresponding preset working parameter to obtain the parameter deviation value of each real-time working parameter. Then, the system compares the parameter deviation value of each real-time working parameter with the preset deviation threshold. If the parameter deviation value of a real-time working parameter is greater than the preset deviation threshold, the system will correct the real-time working parameter based on the corresponding parameter deviation value to ensure that the operating state of the threshing equipment returns to normal. On the contrary, if the parameter deviation value of a real-time working parameter is not greater than the preset deviation threshold, the system will not correct the real-time working parameter. Through this monitoring and processing method, the abnormal operating state of the threshing equipment can be effectively detected and corrected, and the stability and reliability of the threshing equipment can be improved. At the same time, this method can also reduce production losses caused by equipment failures, improve production efficiency and economic benefits. In addition, by comparing and correcting the real-time working parameters and the preset working parameters, the operating parameters of the threshing equipment can be optimized, the threshing quality can be improved, and different process requirements can be met.
[0091] In addition, the method further comprises the following steps:
[0092] Acquire operation log information of the threshing device, acquire historical operation data before various operation fault events of the threshing device occur according to the operation log information, define the historical operation data before various operation fault events of the threshing device occur as pre-fault feature data, and obtain pre-fault feature data sets of various operation fault events;
[0093] If the parameter deviation value of a real-time working parameter is not greater than the preset deviation threshold, the real-time working parameter is obtained and defined as a suspicious working parameter; a Bayesian network model is constructed to list the pre-fault feature data sets of various operating fault events as several source independent events, and the suspicious working parameters of the threshing equipment are listed as cause independent events;
[0094] The source independent events and the cause independent events are imported into the Bayesian network model, and each source independent event and each cause independent event is regarded as a network node; a genetic algorithm is introduced, and a genetic algebra is set, and each network node is optimized and iterated by the genetic algorithm, and when the number of optimization iterations reaches the genetic algebra, the optimized Bayesian network model is output;
[0095] Obtaining the correlation between the suspicious working parameters and each previous fault feature data set according to the optimized Bayesian network model;
[0096] If the correlation between the suspicious working parameter and a previous fault feature data set is greater than a preset threshold, the real-time working parameter is corrected based on the corresponding parameter deviation value.
[0097] It should be noted that by using the Bayesian network model, the fault feature data is taken as the source independent event, and the suspicious working parameters are taken as the cause independent event to form the network node. The network structure is optimized and iterated by the genetic algorithm to improve the prediction accuracy of the model. After the optimization is completed, the model is used to evaluate the correlation between the suspicious parameters and the fault feature data. If the correlation exceeds the preset threshold, it means that the probability of the operating parameter transferring from the normal state to the abnormal state is high. At this time, the system will correct the real-time parameters according to the deviation value to prevent potential equipment failures. This method can effectively use historical data to predict and manage the maintenance needs of threshing equipment, thereby improving the equipment operation efficiency and stability.
[0098] like Figure 3 As shown, the second aspect of the present invention discloses a mulberry threshing effect and threshing granularity detection device, comprising a memory 20 and a processor 60, wherein the memory 20 stores a mulberry threshing effect and threshing granularity detection method program, and when the mulberry threshing effect and threshing granularity detection method program is executed by the processor 60, the following steps are implemented:
[0099] After threshing the target mulberries, an actual state feature image of the target mulberries is obtained, and feature extraction processing is performed on the actual state feature image based on a Canny edge detection algorithm to obtain an edge feature contour of the target mulberries;
[0100] Based on the SURF algorithm, the edge feature contour of the target mulberry is detected, and the detected feature points are reduced in redundancy. The actual feature model diagram of the target mulberry is constructed according to the three-dimensional model of the reduced feature points.
[0101] The threshing effect of the target mulberries is detected according to the actual characteristic model diagram of the target mulberries. If the threshing of the target mulberries is successful, the particle size of the target mulberries is obtained; if the threshing of the target mulberries is not successful, the threshing equipment is controlled to perform threshing operation on the target mulberries again;
[0102] The threshing equipment is analyzed according to the threshing conditions of the target mulberries within a preset time period to obtain the operating status of the threshing equipment; if the operating status of the threshing equipment is normal, the threshing equipment is not adjusted; if the operating status of the threshing equipment is abnormal, the threshing equipment is adjusted.
[0103] The third aspect of the present invention discloses a mulberry threshing effect and threshing particle size detection device, the mulberry threshing effect and threshing particle size detection device comprises:
[0104] A feature extraction module, after threshing the target mulberries, obtains an actual state feature image of the target mulberries, and performs feature extraction processing on the actual state feature image based on a Canny edge detection algorithm to obtain an edge feature contour of the target mulberries;
[0105] The feature detection module detects the edge feature contour of the target mulberry based on the SURF algorithm, reduces the redundancy of the detected feature points, and constructs the actual feature model diagram of the target mulberry according to the three-dimensional model of the reduced feature points;
[0106] The recognition module detects the threshing effect of the target mulberry according to the actual characteristic model diagram of the target mulberry. If the threshing of the target mulberry is successful, the particle size of the target mulberry is obtained; if the threshing of the target mulberry is not successful, the threshing equipment is controlled to perform threshing operation on the target mulberry again;
[0107] The control module analyzes the threshing equipment according to the threshing conditions of the target mulberries within a preset time period to obtain the operating status of the threshing equipment; if the operating status of the threshing equipment is normal, the threshing equipment is not controlled; if the operating status of the threshing equipment is abnormal, the threshing equipment is controlled.
[0108] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0109] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0110] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0111] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0112] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0113] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for detecting threshing effect and threshing particle size of mulberry, characterized in that: The following steps are involved: After threshing the target mulberries, an actual state feature image of the target mulberries is obtained, and feature extraction processing is performed on the actual state feature image based on a Canny edge detection algorithm to obtain an edge feature contour of the target mulberries; Based on the SURF algorithm, the edge feature contour of the target mulberry is detected, and the detected feature points are reduced in redundancy. The actual feature model diagram of the target mulberry is constructed according to the three-dimensional model of the reduced feature points. The threshing effect of the target mulberries is detected according to the actual characteristic model diagram of the target mulberries. If the threshing of the target mulberries is successful, the particle size of the target mulberries is obtained; if the threshing of the target mulberries is not successful, the threshing equipment is controlled to perform threshing operation on the target mulberries again; Analyzing the threshing equipment according to the threshing conditions of the target mulberries within a preset time period to obtain the operating status of the threshing equipment; If the operating state of the threshing device is normal, the threshing device is not regulated, and if the operating state of the threshing device is abnormal, the threshing device is regulated; Among them, the threshing effect of the target mulberry is detected according to the actual characteristic model diagram of the target mulberry. If the threshing of the target mulberry is successful, the particle size of the target mulberry is obtained; if the threshing of the target mulberry is not successful, the threshing equipment is controlled to perform threshing operation on the target mulberry again, specifically: Prefabricate in advance the fruit particle characteristic model diagrams corresponding to the mulberry fruit particles of various preset particle size ranges after being destemmed and de-shafted; Constructing a knowledge graph, dividing the knowledge graph into a plurality of sub-graph spaces, and assigning a particle size label to each sub-graph space according to a corresponding preset particle size range; and importing a fruit particle feature model graph corresponding to mulberry fruit particles of various preset particle size ranges after being destemmed and de-axled into the corresponding sub-graph space; Obtaining an actual feature model graph of the target mulberry, importing the actual feature model graph of the target mulberry into the knowledge graph, and calculating the degree of overlap between the actual feature model graph and the fruit particle feature model graphs in each sub-graph space based on the Euclidean distance algorithm; If the overlap between the actual feature model graph and the fruit grain feature model graphs in each sub-atlas space is not greater than the preset overlap, it means that the target mulberries have not been threshed successfully, and the threshing device is controlled to thresh the target mulberries again until the threshing is completed; If the degree of overlap between the actual feature model graph and the fruit particle feature model graph in one or more sub-graph space is greater than the preset overlap, it means that the target mulberry is threshed successfully, then the fruit particle feature model graphs with overlap greater than the preset overlap are sorted, and the fruit particle feature model graph with the largest overlap is extracted; and the particle size label corresponding to the sub-graph space in the fruit particle feature model graph with the largest overlap is obtained, and the fruit particle size of the target mulberry is obtained according to the particle size label.
2. A method for detecting threshing effect and threshing particle size of mulberry according to claim 1, characterized in that: Based on the Canny edge detection algorithm, feature extraction processing is performed on the actual state feature image to obtain the edge feature contour of the target mulberry, which is specifically: Performing gray value conversion and Gaussian filtering on the actual state feature image to obtain a pre-processed actual state feature image; The Sobel operator is used to calculate the gradient information of the actual state feature image after preprocessing; the gradient information includes the gradient amplitude and direction, the gradient amplitude represents the intensity of the grayscale change of the pixel in the image, and the direction represents the direction of the grayscale change; Perform non-maximum suppression on the gradient amplitude to remove false edge responses; Preset a first gradient amplitude threshold and a second gradient amplitude threshold; wherein the first gradient amplitude threshold is greater than the second gradient amplitude threshold; Mark the pixel points whose gradient amplitude is greater than the first gradient amplitude threshold as strong edges, and mark the pixel points whose gradient amplitude is less than the second gradient amplitude threshold as weak edges; mark the pixel points whose gradient amplitude is between the first gradient amplitude threshold and the second gradient amplitude threshold as invalid edges; The weak edge is refined through morphological operation to make it an edge with a single pixel width, thus forming a strong edge; the extracted strong edge is output to obtain the edge feature contour of the target mulberry.
3. A method for detecting threshing effect and threshing particle size of mulberry according to claim 2, characterized in that: Based on the SURF algorithm, the edge feature contour of the target mulberry is detected, and the detected feature points are reduced in redundancy. The actual feature model diagram of the target mulberry is constructed according to the three-dimensional model of the reduced feature points, which is as follows: Obtaining the edge feature contour of the target mulberry, and performing feature detection on the edge feature contour of the target mulberry based on the SURF algorithm, detecting a number of feature points, and generating a feature point three-dimensional model according to the detected feature points; The feature point three-dimensional model is divided into a plurality of sub-regions, and the number of feature points in each sub-region is counted; if the number of feature points in a sub-region is greater than a preset value, the sub-region is marked as a redundant sub-region; if the number of feature points in a sub-region is not greater than the preset value, the sub-region is marked as a normal sub-region; Calculate the cosine similarity between the feature points in the redundant sub-region based on the cosine similarity algorithm. If the cosine similarity between two feature points is greater than a preset cosine similarity threshold, merge the two feature points. Similarly, after all feature points with cosine similarities greater than the preset cosine similarity threshold are merged, a reduced-redundancy sub-region is obtained. Form a reduced-redundancy feature point three-dimensional model by combining each reduced-redundancy sub-region with a normal sub-region; obtain relative coordinate information between each feature point in the reduced-redundancy feature point three-dimensional model, and generate a feature point coordinate collection according to the relative coordinate information; The feature point coordinate collection is imported into a three-dimensional modeling software for model reconstruction to obtain an actual feature model diagram of the target mulberry.
4. A method for detecting threshing effect and threshing particle size of mulberry according to claim 1, characterized in that: The threshing equipment is analyzed according to the threshing conditions of the target mulberries within a preset time period, and the operating status of the threshing equipment is obtained, specifically: Construct a statistical table, and whenever the target mulberries are threshed, determine whether the threshing of the target mulberries is successful; if the threshing is successful, fill in 0 at the corresponding statistical position in the statistical table; If threshing is unsuccessful, fill in 1 at the corresponding statistical position in the statistical table; The threshing success rate of the threshing equipment within a preset time period is calculated according to the statistical table; wherein the threshing success rate is the ratio of the number of unsuccessful threshing times to the total number of threshing times within the preset time period; If the threshing success rate of the threshing device within the preset time period is not greater than the preset threshing success rate, it means that the operating state of the threshing device is normal; If the threshing success rate of the threshing device within the preset time period is greater than the preset threshing success rate, it indicates that the operating state of the threshing device is abnormal.
5. A method for detecting threshing effect and threshing particle size of mulberry according to claim 1, characterized in that: If the operating state of the threshing equipment is abnormal, the threshing equipment is regulated and processed, specifically: If the operating state of the threshing equipment is abnormal, then various real-time working parameters of the threshing equipment are obtained, and various preset working parameters of the threshing equipment are obtained based on preset process parameters; Calculate the difference between each real-time working parameter and the corresponding preset working parameter to obtain the parameter deviation value of each real-time working parameter; and comparing the parameter deviation value of each real-time working parameter with the preset deviation threshold; If the parameter deviation value of a certain real-time working parameter is greater than the preset deviation threshold, the real-time working parameter is corrected based on the corresponding parameter deviation value.
6. A device for detecting threshing effect and threshing particle size of mulberry, characterized in that: It comprises a memory and a processor, wherein the memory stores a program of a method for detecting threshing effect and threshing granularity of mulberries, and when the program of the method for detecting threshing effect and threshing granularity of mulberries is executed by the processor, the steps of the method for detecting threshing effect and threshing granularity of mulberries as claimed in any one of claims 1 to 5 are implemented.
7. A mulberry threshing effect and threshing particle size detection device, characterized in that: The mulberry threshing effect and threshing particle size detection equipment comprises: A feature extraction module, after threshing the target mulberries, obtains an actual state feature image of the target mulberries, and performs feature extraction processing on the actual state feature image based on a Canny edge detection algorithm to obtain an edge feature contour of the target mulberries; The feature detection module detects the edge feature contour of the target mulberry based on the SURF algorithm, reduces the redundancy of the detected feature points, and constructs the actual feature model diagram of the target mulberry according to the three-dimensional model of the reduced feature points; The recognition module detects the threshing effect of the target mulberry according to the actual characteristic model diagram of the target mulberry. If the threshing of the target mulberry is successful, the particle size of the target mulberry is obtained; if the threshing of the target mulberry is not successful, the threshing equipment is controlled to perform threshing operation on the target mulberry again; A control module analyzes the threshing equipment according to the threshing conditions of the target mulberries within a preset time period to obtain the operating status of the threshing equipment; if the operating status of the threshing equipment is normal, the threshing equipment is not controlled; if the operating status of the threshing equipment is abnormal, the threshing equipment is controlled; Among them, the threshing effect of the target mulberry is detected according to the actual characteristic model diagram of the target mulberry. If the threshing of the target mulberry is successful, the particle size of the target mulberry is obtained; if the threshing of the target mulberry is not successful, the threshing equipment is controlled to perform threshing operation on the target mulberry again, specifically: Prefabricate in advance the fruit particle characteristic model diagrams corresponding to the mulberry fruit particles of various preset particle size ranges after being destemmed and de-shafted; Constructing a knowledge graph, dividing the knowledge graph into a plurality of sub-graph spaces, and assigning a particle size label to each sub-graph space according to a corresponding preset particle size range; and importing a fruit particle feature model graph corresponding to mulberry fruit particles of various preset particle size ranges after being destemmed and de-axled into the corresponding sub-graph space; Obtaining an actual feature model graph of the target mulberry, importing the actual feature model graph of the target mulberry into the knowledge graph, and calculating the degree of overlap between the actual feature model graph and the fruit particle feature model graphs in each sub-graph space based on the Euclidean distance algorithm; If the overlap between the actual feature model graph and the fruit grain feature model graphs in each sub-atlas space is not greater than the preset overlap, it means that the target mulberries have not been threshed successfully, and the threshing device is controlled to thresh the target mulberries again until the threshing is completed; If the degree of overlap between the actual feature model graph and the fruit particle feature model graph in one or more sub-graph space is greater than the preset overlap, it means that the target mulberry is threshed successfully, then the fruit particle feature model graphs with overlap greater than the preset overlap are sorted, and the fruit particle feature model graph with the largest overlap is extracted; and the particle size label corresponding to the sub-graph space in the fruit particle feature model graph with the largest overlap is obtained, and the fruit particle size of the target mulberry is obtained according to the particle size label.
Citation Information
Patent Citations
Grain parameter automatic measuring equipment and method
CN101339118A
Threshing cylinder bearing vibration fault analysis method and system and combine harvester
CN113945380A
High-speed article visual detection method based on artificial intelligence
CN118134923A
Method, device and equipment for separating zoeae of macrobrachium rosenbergii
CN118266424A
