A defect identification and monitoring method and system for macadamia nut production and processing

By constructing a dynamic factor prediction model and multi-dimensional grid registration analysis, combined with the radial basis function classification and identification network and the thermal grid monitoring strategy, the efficiency and accuracy problems of macadamia nut defect identification and monitoring are solved, and the shape and natural characteristics of macadamia nuts are realized. Efficient identification and monitoring of phenotypic defects improves product quality.

CN118429900BActive Publication Date: 2024-09-06SOUTH SUBTROPICAL CROP RES INST CHINA ACAD OF TROPICAL AGRI SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410889624.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-06
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

Existing macadamia nut defect identification methods are difficult to identify shape defects and natural phenotypic defects at the same time. The identification rate is low and identification errors are prone to occur. It is also difficult to trace and monitor defects generated during processing in real time, which affects product quality.

Method used

By acquiring the historical time series image information of industrial cameras, we build a dynamic factor prediction model, draw a vibration transfer point prediction hotspot map, formulate an image shooting strategy, and build a three-dimensional dimensional model in the field of multi-dimensional grid registration for registration analysis, combined with radial Basis function classification identifies network and thermal grid monitoring strategies to identify and monitor defects and abnormal links in macadamia nuts.

Benefits of technology

It improves the accuracy and efficiency of defect identification of macadamia nuts, reduces the rate of defective products, enables precise positioning and monitoring of processing links, and improves product quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118429900B
    Figure CN118429900B
Patent Text Reader

Abstract

The present invention relates to the technical field of macadamia production and processing, and in particular to a defect identification and monitoring method and system for macadamia production and processing. In the field of multidimensional grid registration, the three-dimensional dimensional model of each macadamia nut is registered and analyzed with a quasi-ideal model to preliminarily eliminate macadamia nuts with appearance defects and natural phenotype defects and transport them to the defective production and transportation line for unified treatment, while macadamia nuts without defects continue to be produced and processed; based on the standard processing defect feature vector, a radial basis function classification and recognition network is constructed to identify different actual processing defect feature vectors, and determine the production and processing links that cause macadamia nuts to produce actual processing defect feature vectors. The present invention can identify and locate the defects of macadamia nuts in the production and processing process and the processing links that cause the defects, and reasonably monitor the links with abnormal production and processing to reduce the defect rate of macadamia nut production and processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of macadamia nut production and processing, and in particular to a defect identification and monitoring method and system for macadamia nut production and processing. Background Art

[0002] Macadamia nuts are a type of nut native to Australia. They are spherical in shape, with a hard and smooth shell, a milky white kernel, and are rich in oil. Macadamia nuts are rich in monounsaturated fats and high-quality plant protein, which can help lower cholesterol. They also contain a variety of antioxidants, which help fight aging. Therefore, macadamia nuts are favored by a large number of consumers. In order to increase consumer interest and satisfaction, it is necessary to ensure that macadamia nuts maintain a certain degree of integrity before and after production and processing, and no defects are allowed. Therefore, macadamia nuts need to be identified during the production and processing process; however, the current defect identification method for macadamia nuts is difficult to identify shape defects and natural phenotypic defects at the same time, resulting in a low recognition rate, and the identification of defects still requires comparison and calculation one by one, which is prone to recognition errors and reduced recognition accuracy. At the same time, it is difficult to trace the defects generated during processing and conduct accurate and efficient real-time monitoring, which is not conducive to the high-quality production and processing of macadamia products, resulting in a serious decline in quality. Summary of the invention

[0003] The present invention overcomes the deficiencies of the prior art and provides a method and system for defect identification and monitoring of macadamia nut production and processing.

[0004] To achieve the above object, the technical solution adopted by the present invention is:

[0005] A first aspect of the present invention provides a method for defect identification and monitoring of macadamia nut production and processing, comprising the following steps:

[0006] Acquire several groups of continuous historical time-series image information in the real-time shooting area of ​​the industrial camera, build a dynamic factor prediction model through the historical time-series image information, analyze the vibration transfer landing point of macadamia nuts based on the dynamic factor prediction model, draw a vibration transfer landing point prediction hotspot map, formulate the best shooting decision of the industrial camera according to the vibration transfer landing point prediction hotspot map, and obtain the image shooting strategy;

[0007] Based on the image shooting strategy, a 3D model of macadamia nuts is constructed. In the field of multi-dimensional grid registration, the 3D model of each macadamia nut is registered with the quasi-ideal model to analyze the registration, so as to preliminarily remove macadamia nuts with appearance defects and natural phenotype defects and transport them to the defective production and transportation line for unified treatment, while macadamia nuts without defects continue to be produced and processed;

[0008] Obtaining standard processing defect feature vectors generated by each production and processing link in the production and processing equipment when processing macadamia nuts, constructing a radial basis function classification and recognition network based on the standard processing defect feature vectors, importing different actual processing defect feature vectors generated after processing macadamia nuts into the radial basis function classification and recognition network for identification, and determining the production and processing link that causes the actual processing defect feature vectors of macadamia nuts to be generated;

[0009] The spatial structure layout of each abnormal production and processing link, the setting pattern of the main production and processing machinery, and the preset working condition data are obtained to establish several thermal grids, calculate and analyze the working condition path deviation in each thermal grid, and obtain the monitoring strategy for macadamia nut production and processing.

[0010] Furthermore, in a preferred embodiment of the present invention, the method of obtaining several groups of continuous historical time-series image information of the industrial camera in the real-time shooting area, constructing a dynamic factor prediction model through the historical time-series image information, analyzing the vibration transfer landing point of macadamia nuts based on the dynamic factor prediction model, drawing a vibration transfer landing point prediction hotspot map, formulating the best shooting decision of the industrial camera according to the vibration transfer landing point prediction hotspot map, and obtaining an image shooting strategy specifically includes the following steps:

[0011] Obtaining a preset shooting decision and a preset shooting area of ​​the industrial camera, and obtaining a plurality of shooting control parameters of the industrial camera based on the preset shooting decision;

[0012] Obtaining a preset visual range corresponding to each shooting control parameter, planning in a preset shooting area according to the preset visual range, and obtaining a corresponding real-time shooting area in the preset shooting area when the industrial camera executes each shooting control parameter;

[0013] Acquire several groups of continuous historical time-series image information in the real-time shooting area of ​​the industrial camera, introduce a dynamic factor algorithm to calculate and create the several groups of continuous historical time-series image information, and obtain a dynamic factor prediction model;

[0014] The macadamia nut production and processing equipment is measured by a laser vibrometer to obtain the vibration amplitude of the macadamia nut production and processing equipment, and the vibration transfer landing point of the macadamia nut after a preset time period is predicted in a dynamic factor prediction model based on the vibration amplitude, and several frame model slices within the preset time period are stripped, and a vibration transfer landing point prediction hot spot map is drawn according to the several frame model slices;

[0015] The ideal image resolution is preset, and the center point of the industrial camera is used as the starting point. The central pixel area of ​​the preset visual range corresponding to each shooting control parameter is planned until the ideal image resolution is met, and the ideal central pixel area is generated;

[0016] The vibration transfer point prediction heat map is fitted to the ideal central pixel area. If a shadow image is generated at the boundary of the vibration transfer point prediction heat map, the area value of the shadow image is obtained, and the ideal central pixel area is moved at the same frequency according to the area value of the shadow image until the ideal central pixel area includes all shadow images, thereby generating multiple groups of moving strokes.

[0017] The shooting control parameters of the industrial camera are adjusted according to the multiple groups of moving strokes, and the vibration behavior of the macadamia nut production and processing equipment is optimized to obtain an image shooting strategy, which is then uploaded to the industrial camera control terminal.

[0018] Furthermore, in a preferred embodiment of the present invention, the three-dimensional model of macadamia nuts is constructed based on the image shooting strategy, and the three-dimensional model of each macadamia nut is aligned with the quasi-ideal model in the field of multi-dimensional grid alignment, so as to preliminarily eliminate macadamia nuts with appearance defects and natural phenotype defects and transport them to the defective production and transportation line for unified treatment, and continue to produce and process macadamia nuts without defects, which specifically includes the following steps:

[0019] Based on the image shooting strategy, the industrial camera is controlled to shoot the macadamia nuts to be produced and processed frame by frame to obtain multiple image data of the macadamia nuts and the corresponding image frame rate;

[0020] Constructing a sparse coding dictionary, encoding and learning the image frame rate in the sparse coding dictionary, generating a sparse basis function for each image data, sparsely encoding and reconstructing the representation of multiple image data according to the sparse basis function, and obtaining a three-dimensional model of macadamia nuts;

[0021] Obtaining a production requirement benchmark for macadamia nuts, presetting a quasi-ideal model of macadamia nuts and an allowable registration rate drift threshold range according to the production requirement benchmark, constructing a multi-dimensional grid registration field, and registering the three-dimensional model of each macadamia nut with the quasi-ideal model one by one in the multi-dimensional grid registration field;

[0022] After the registration is completed, the registration drift rate between the three-dimensional model of each macadamia nut and the quasi-ideal model is output. If the registration drift rate exceeds the allowable registration rate drift threshold interval, the macadamia nuts corresponding to the allowable registration rate drift threshold interval are marked with unqualified virtual marks to obtain the first unqualified screening plan;

[0023] If the registration drift rate does not exceed the allowable registration rate drift threshold interval, then the algebraic differential description equation group of the remaining unregistered multidimensional curve region model is constructed, and several natural phenotypic defect feature vector benchmarks of macadamia nuts are converted into algebraic equation solutions, and the algebraic differential description equation group is solved and analyzed based on the algebraic equation solutions to obtain the second unqualified screening plan;

[0024] The first unqualified screening and rejection plan and the second unqualified screening and rejection plan are uploaded to the terminal of the macadamia nut production and processing defective product transportation line, so that the macadamia nuts with unqualified virtual marks are transported to the defective product production and transportation line for unified processing.

[0025] Furthermore, in a preferred embodiment of the present invention, if the registration drift rate does not exceed the allowable registration rate drift threshold interval, an algebraic differential description equation group of the remaining unregistered multidimensional curve region model is constructed, and several natural phenotypic defect feature vector benchmarks of macadamia nuts are converted into algebraic equation solutions, and the algebraic differential description equation group is solved and analyzed based on the algebraic equation solutions to obtain a second unqualified screening plan, which specifically includes the following steps:

[0026] If the registration drift rate does not exceed the allowed registration rate drift threshold range, the registered regional model is eliminated, the remaining unregistered multidimensional curve regional model is retained and output in the multidimensional grid registration field, and the multidimensional curve regional model is discretized into a number of finite units;

[0027] According to the preset discrete curve function of each finite element, the discrete curve function and the multidimensional curve region model are combined to perform calculations to construct an algebraic differential description equation group of the multidimensional curve region model, and obtain an algebraic equation solution set of the algebraic differential description equation group;

[0028] Obtaining several natural phenotypic defect feature vector benchmarks of macadamia nuts through a big data network, extracting the endpoints and endpoint pattern parameters of each natural phenotypic defect feature vector benchmark, and determining the gradient and Hessian matrix of each natural phenotypic defect feature vector benchmark based on the endpoints and endpoint pattern parameters;

[0029] Preset an iteration frequency threshold, and continuously update the fitting parameters of the iterative calculation curve based on the gradient and the Hessian matrix until the preset iteration frequency threshold is reached, so as to obtain an algebraic differential equation curve of each natural phenotypic defect characteristic vector benchmark;

[0030] The Newton-Raphson method is introduced to approximate and solve the algebraic differential equation curve, and the algebraic equation solution corresponding to the algebraic differential equation curve of each natural phenotypic defect characteristic vector benchmark is obtained. If at least one or more of the algebraic equation solutions exist in the algebraic equation solution set, it indicates that the macadamia nuts to be produced and processed have natural phenotypic defect characteristics;

[0031] Determine one by one whether the algebraic equation solution set corresponding to each macadamia nut to be produced and processed has at least one or more algebraic equation solutions. If so, mark the corresponding macadamia nut to be produced and processed with a second unqualified virtual mark to obtain a second unqualified screening and rejection plan, and upload the second unqualified screening and rejection plan to the terminal of the macadamia nut production and processing defective product transportation line;

[0032] If the algebraic equation solution set corresponding to the macadamia nuts to be processed does not have one or more algebraic equation solutions, the macadamia nuts to be processed will be input into the normal production and processing transportation line for further processing.

[0033] Furthermore, in a preferred embodiment of the present invention, the method of obtaining the standard processing defect feature vectors generated by each production and processing link in the production and processing equipment when processing macadamia nuts, constructing a radial basis function classification and recognition network based on the standard processing defect feature vectors, importing different actual processing defect feature vectors generated after processing macadamia nuts into the radial basis function classification and recognition network for identification, and determining the production and processing link that causes the actual processing defect feature vectors of macadamia nuts, specifically includes the following steps:

[0034] When the macadamia nuts to be produced and processed that are input into the normal production and processing transportation line are processed, the processed macadamia nuts are obtained, and the industrial camera is controlled to take a second frame-by-frame photo of the processed macadamia nuts to obtain image data of the processed macadamia nuts;

[0035] Preset an image block size threshold and construct a high-dimensional feature space, divide the image data into N image blocks based on the image block size threshold, import the N image blocks into the high-dimensional feature space for expansion and assigning position codes, and output position code information of each image block;

[0036] The sequence dependency between each image block is determined based on the position coding information of each two adjacent image blocks, and a multi-head self-attention mechanism encoder is created based on the sequence dependency. Finally, the feature vectors of each image block are classified by the multi-head self-attention mechanism encoder to obtain the feature vectors of different actual processing defects generated after macadamia nut processing.

[0037] Obtaining a design drawing of production and processing equipment for macadamia nuts, extracting a number of production and processing links and corresponding production and processing technical principles through the design drawing of production and processing equipment, and searching in a big data network based on the number of production and processing links and corresponding production and processing technical principles;

[0038] After the search, M types of processing defects generated in each production and processing link when processing macadamia nuts are obtained, and the standard processing defect feature vectors that generate each type of processing defect are obtained. The K-Medoids clustering algorithm is introduced to cluster the standard processing defect feature vectors to obtain the Medoids center point, and the radial basis function center is determined according to the Medoids center point;

[0039] Calculate the activation weight value of the radial basis function center for the standard processing defect feature vector generated in each production and processing link when processing macadamia nuts, classify and create the radial basis function network nodes of each standard processing defect feature vector according to the activation weight value, and output the radial basis function classification and recognition network;

[0040] The actual radial basis functions corresponding to different actual processing defect feature vectors generated after macadamia nut processing are obtained, and the actual radial basis functions are imported into the radial basis function classification and recognition network for traversal identification, so as to determine the production and processing links that cause the actual processing defect feature vectors of macadamia nuts, and define them as the production and processing abnormal links.

[0041] Furthermore, in a preferred embodiment of the present invention, the spatial structure layout of each abnormal production and processing link, the setting pattern of the main production and processing machinery, and the preset working condition data are obtained to establish a number of thermal grids, calculate the working condition path deviation in each thermal grid and analyze it, and obtain the monitoring strategy for macadamia production and processing, which specifically includes the following steps:

[0042] Obtain the spatial structure layout of each abnormal production and processing link, and construct a spatial area layout model diagram of each abnormal production and processing link based on the spatial structure layout;

[0043] Acquire the configuration pattern and preset working condition data of the main production and processing machinery in each abnormal production and processing link, and simulate the main production and processing machinery according to the configuration pattern and preset working condition data of the main production and processing machinery to obtain the travel range and working area of ​​the main production and processing machinery;

[0044] Mark and uniformly plan the travel range and working area of ​​the main production and processing machinery in the spatial area layout model diagram, generate a spatial operation area model diagram of the main production and processing machinery, calculate M groups of kernel functions and grid bandwidth based on the spatial operation area model diagram, and establish a number of thermal grids through the M groups of kernel functions and grid bandwidth;

[0045] Acquire actual working condition data of the main production and processing machinery, obtain the actual working condition travel path of the main production and processing machinery by controlling the main production and processing machinery to execute the actual working condition data, calculate the offset between the actual working condition travel path and the standard working condition travel path under the preset working condition data in each thermal grid, and obtain the working condition travel path offset rate of each thermal grid;

[0046] Based on the working condition travel path deviation rate of each thermal grid, the kernel density estimation value of the thermal grid is calculated and integrated to obtain the working condition travel path deviation thermal map;

[0047] Obtain the monitoring equipment installation points of each abnormal production and processing link, divide the working condition travel path deviation thermal map into several sub-thermal area maps according to the monitoring equipment installation points, and monitor and obtain the thermal color coding values ​​of the sub-thermal area maps in real time;

[0048] If the thermal color coding value of the sub-thermal area map exists in the preset thermal color coding table, the monitoring scheduling of the monitoring device for the sub-thermal area map is appropriately reduced to obtain a type of monitoring strategy;

[0049] If the thermal chromaticity encoding value of the sub-thermal area map does not exist in the preset thermal chromaticity encoding table, then the ideal thermal chromaticity encoding value of the sub-thermal area map is queried in the preset thermal chromaticity encoding table, and the coded hash value between the thermal chromaticity encoding value and the ideal thermal chromaticity encoding value is calculated, and the monitoring scheduling of the sub-thermal area map by the monitoring device is incrementally increased based on the coded hash value, so as to obtain a type of monitoring strategy;

[0050] The monitoring strategy for macadamia production and processing was obtained by combining the first and second monitoring strategies.

[0051] A second aspect of the present invention provides a defect recognition and monitoring system for macadamia nut production and processing, the defect recognition and monitoring system for macadamia nut production and processing comprising a memory and a processor, the memory storing a defect recognition and monitoring method program for macadamia nut production and processing, and when the defect recognition and monitoring method program for macadamia nut production and processing is executed by the processor, the following steps are implemented:

[0052] Acquire several groups of continuous historical time-series image information in the real-time shooting area of ​​the industrial camera, build a dynamic factor prediction model through the historical time-series image information, analyze the vibration transfer landing point of macadamia nuts based on the dynamic factor prediction model, draw a vibration transfer landing point prediction hotspot map, formulate the best shooting decision of the industrial camera according to the vibration transfer landing point prediction hotspot map, and obtain the image shooting strategy;

[0053] Based on the image shooting strategy, a 3D model of macadamia nuts is constructed. In the field of multi-dimensional grid registration, the 3D model of each macadamia nut is registered with the quasi-ideal model to analyze the registration, so as to preliminarily remove macadamia nuts with appearance defects and natural phenotype defects and transport them to the defective production and transportation line for unified treatment, while macadamia nuts without defects continue to be produced and processed;

[0054] Obtaining standard processing defect feature vectors generated by each production and processing link in the production and processing equipment when processing macadamia nuts, constructing a radial basis function classification and recognition network based on the standard processing defect feature vectors, importing different actual processing defect feature vectors generated after processing macadamia nuts into the radial basis function classification and recognition network for identification, and determining the production and processing link that causes the actual processing defect feature vectors of macadamia nuts to be generated;

[0055] The spatial structure layout of each abnormal production and processing link, the setting pattern of the main production and processing machinery, and the preset working condition data are obtained to establish several thermal grids, calculate and analyze the working condition path deviation in each thermal grid, and obtain the monitoring strategy for macadamia nut production and processing.

[0056] The present invention solves the technical defects existing in the background technology, and the beneficial technical effects of the present invention are:

[0057] Based on the dynamic factor prediction model, the vibration transfer landing point of macadamia nuts is analyzed, and a vibration transfer landing point prediction hotspot map is drawn. The optimal shooting decision of the industrial camera is made according to the vibration transfer landing point prediction hotspot map, and the image shooting strategy is obtained; based on the image shooting strategy, a three-dimensional model of macadamia nuts is constructed, and the three-dimensional model of each macadamia nut is aligned with the quasi-ideal model in the field of multi-dimensional grid alignment, so as to preliminarily eliminate macadamia nuts with appearance defects and natural phenotype defects and transport them to the defective production and transportation line for unified treatment, and continue to produce and process macadamia nuts without defects; obtain the standard processing defect feature vectors generated by each production and processing link in the production and processing equipment when processing macadamia nuts, and construct a radial basis function classification and recognition network based on the standard processing defect feature vector to identify different actual processing defect feature vectors, and determine the production and processing link that causes the actual processing defect feature vector of macadamia nuts; obtain the spatial structure layout of each abnormal production and processing link, the setting pattern of the main production and processing machinery, and the preset working condition data to establish several thermal grids, calculate and analyze the working condition travel path deviation in each thermal grid, and obtain the monitoring strategy for macadamia nut production and processing. The present invention can identify and locate defects in the production and processing of macadamia nuts and the processing links that cause the defects, and reasonably monitor the links where abnormal production and processing exist, so as to reduce the defective rate of macadamia nut production and processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] 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.

[0059] Figure 1 A first method flow chart of a defect identification and monitoring method for macadamia nut production and processing is shown;

[0060] Figure 2 A second method flow chart of a defect identification and monitoring method for macadamia nut production and processing is shown;

[0061] Figure 3 A third method flow chart of a defect identification and monitoring method for macadamia nut production and processing is shown;

[0062] Figure 4 A system framework diagram of a defect identification and monitoring system for macadamia nut production and processing is shown. DETAILED DESCRIPTION

[0063] 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.

[0064] 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.

[0065] The first aspect of the present invention provides a method for defect identification and monitoring of macadamia nut production and processing, such as Figure 1 As shown, the following steps are included:

[0066] S102: obtaining several groups of continuous historical time-series image information in the real-time shooting area of ​​the industrial camera, constructing a dynamic factor prediction model through the historical time-series image information, analyzing the vibration transfer landing point of macadamia nuts based on the dynamic factor prediction model, drawing a vibration transfer landing point prediction hotspot map, formulating the best shooting decision of the industrial camera according to the vibration transfer landing point prediction hotspot map, and obtaining an image shooting strategy;

[0067] S104: constructing a 3D dimensional model of macadamia nuts based on the image shooting strategy, and performing registration analysis on the 3D dimensional model of each macadamia nut and the quasi-ideal model in the multi-dimensional grid registration field, so as to preliminarily eliminate macadamia nuts with appearance defects and natural phenotype defects and transport them to a defective product production and transportation line for unified treatment, and continue to produce and process macadamia nuts without defects;

[0068] S106: obtaining standard processing defect feature vectors generated by each production and processing link in the production and processing equipment when processing macadamia nuts, constructing a radial basis function classification and recognition network based on the standard processing defect feature vectors, importing different actual processing defect feature vectors generated after processing macadamia nuts into the radial basis function classification and recognition network for identification, and determining the production and processing link that causes the actual processing defect feature vectors of macadamia nuts to be generated;

[0069] S108: Obtain the spatial structure layout of each abnormal production and processing link, the setting pattern of the main production and processing machinery, and the preset working condition data to establish several thermal grids, calculate and analyze the working condition path deviation in each thermal grid, and obtain the monitoring strategy for macadamia nut production and processing.

[0070] Furthermore, in a preferred embodiment of the present invention, the method of obtaining several groups of continuous historical time-series image information of the industrial camera in the real-time shooting area, constructing a dynamic factor prediction model through the historical time-series image information, analyzing the vibration transfer landing point of macadamia nuts based on the dynamic factor prediction model, drawing a vibration transfer landing point prediction hotspot map, formulating the best shooting decision of the industrial camera according to the vibration transfer landing point prediction hotspot map, and obtaining an image shooting strategy specifically includes the following steps:

[0071] Obtaining a preset shooting decision and a preset shooting area of ​​the industrial camera, and obtaining a plurality of shooting control parameters of the industrial camera based on the preset shooting decision;

[0072] Obtaining a preset visual range corresponding to each shooting control parameter, planning in a preset shooting area according to the preset visual range, and obtaining a corresponding real-time shooting area in the preset shooting area when the industrial camera executes each shooting control parameter;

[0073] Acquire several groups of continuous historical time-series image information in the real-time shooting area of ​​the industrial camera, introduce a dynamic factor algorithm to calculate and create the several groups of continuous historical time-series image information, and obtain a dynamic factor prediction model;

[0074] The macadamia nut production and processing equipment is measured by a laser vibrometer to obtain the vibration amplitude of the macadamia nut production and processing equipment, and the vibration transfer landing point of the macadamia nut after a preset time period is predicted in a dynamic factor prediction model based on the vibration amplitude, and several frame model slices within the preset time period are stripped, and a vibration transfer landing point prediction hot spot map is drawn according to the several frame model slices;

[0075] The ideal image resolution is preset, and the center point of the industrial camera is used as the starting point. The central pixel area of ​​the preset visual range corresponding to each shooting control parameter is planned until the ideal image resolution is met, and the ideal central pixel area is generated;

[0076] The vibration transfer point prediction heat map is fitted to the ideal central pixel area. If a shadow image is generated at the boundary of the vibration transfer point prediction heat map, the area value of the shadow image is obtained, and the ideal central pixel area is moved at the same frequency according to the area value of the shadow image until the ideal central pixel area includes all shadow images, thereby generating multiple groups of moving strokes.

[0077] The shooting control parameters of the industrial camera are adjusted according to the multiple groups of moving strokes, and the vibration behavior of the macadamia nut production and processing equipment is optimized to obtain an image shooting strategy, which is then uploaded to the industrial camera control terminal.

[0078] It should be noted that in the production and processing of macadamia nuts, industrial cameras are usually installed on the production and processing equipment to conduct multi-directional shooting and monitoring of the entire process of macadamia nut production and processing, so as to capture the image data of macadamia nuts in the production and processing process, and provide feature analysis basis for the subsequent defect identification and analysis of production and processing; however, due to the differences in the operating conditions of each production and processing link in the production and processing equipment, vibration amplitudes of different frequencies will be generated, and these vibration amplitudes will cause the macadamia nuts to vibrate synchronously, making it difficult for the industrial camera to clearly capture its image, and because the shooting rotation angle and height of the industrial camera are relatively fixed, the image captured will be blurred in pixels and have low resolution, which is not conducive to the extraction and identification of macadamia nut defect features, resulting in large errors in the defect identification output results. Among them, the shooting control parameters include the shooting angle, height and speed of the industrial camera. This method uses the continuous historical time-series image information of the industrial camera in the real-time shooting area to construct a dynamic factor prediction model. The dynamic factor prediction model can dynamically display the vibration conditions of macadamia nuts during production and processing, and can accurately predict the vibration transfer landing points of macadamia nuts in the future time period, and determine whether the vibration transfer landing points in the future time period are within the ideal central pixel area of ​​the industrial camera. If a shadow image is generated at the boundary of the vibration transfer landing point prediction hotspot map, it means that some of the predicted vibration transfer landing points deviate from the ideal central pixel area, which will make it difficult for the captured image to achieve the ideal image resolution. Therefore, the deviated vibration transfer landing points can be adjusted by adjusting the angle and height of the industrial camera so that the deviated vibration transfer landing points are always within the ideal central pixel area, so as to always ensure that the image can achieve the ideal resolution, further improving the shooting quality and shooting accuracy of the industrial camera, eliminating the image shooting blur caused by the vibration of macadamia nuts, and having high reliability.

[0079] Furthermore, in a preferred embodiment of the present invention, the three-dimensional model of macadamia nuts is constructed based on the image shooting strategy, and the three-dimensional model of each macadamia nut is aligned with the quasi-ideal model in the field of multi-dimensional grid alignment, so as to preliminarily eliminate macadamia nuts with appearance defects and natural phenotype defects and transport them to the defective production and transportation line for unified treatment, and continue to produce and process macadamia nuts without defects, such as Figure 2 As shown, the specific steps include:

[0080] S202: Controlling the industrial camera to shoot the macadamia nuts to be produced and processed frame by frame based on the image shooting strategy to obtain multiple image data of the macadamia nuts and corresponding image frame rates;

[0081] S204: constructing a sparse coding dictionary, encoding and learning the image frame rate in the sparse coding dictionary, generating a sparse basis function for each image data, sparsely encoding and reconstructing the representation of the multiple image data according to the sparse basis function, and obtaining a three-dimensional model of macadamia nuts;

[0082] S206: Obtaining a production requirement benchmark for macadamia nuts, presetting a quasi-ideal model of macadamia nuts and a threshold range of allowable registration rate drift according to the production requirement benchmark, constructing a multi-dimensional grid registration field, and registering the three-dimensional model of each macadamia nut with the quasi-ideal model one by one in the multi-dimensional grid registration field;

[0083] S208: After the registration is completed, the registration drift rate between the three-dimensional model of each macadamia nut and the quasi-ideal model is output. If the registration drift rate exceeds the allowable registration rate drift threshold interval, the macadamia nuts corresponding to the macadamia nuts exceeding the allowable registration rate drift threshold interval are marked with unqualified virtual marks to obtain a first unqualified screening plan;

[0084] S210: If the registration drift rate does not exceed the allowable registration rate drift threshold range, then construct an algebraic differential description equation group of the remaining unregistered multidimensional curve region model, and convert several natural phenotypic defect feature vector benchmarks of macadamia nuts into algebraic equation solutions, and solve and analyze the algebraic differential description equation group based on the algebraic equation solutions to obtain a second unqualified screening plan;

[0085] S212: Upload the first unqualified screening and rejection plan and the second unqualified screening and rejection plan to the terminal of the macadamia nut production and processing defective product transportation line, so that the macadamia nuts with unqualified virtual marks are transported to the defective product production and transportation line for unified processing.

[0086] It should be noted that macadamia nuts are usually screened before production and processing, so as to screen out those with natural phenotypic defects and shape defects as defective products; however, traditional defect screening methods usually require the identification of these two defects to be performed in two separate steps. This method greatly limits the rate of defect identification, and the accuracy of defect identification may not be accurate, reducing the quality and efficiency of identifying natural phenotypic defects and shape defects in macadamia nuts. This method can align the three-dimensional model of macadamia nuts with the quasi-ideal model in the field of multidimensional grid registration. The multidimensional grid unit in the field of multidimensional grid registration has certain rigid transformation characteristics and non-rigid transformation characteristics, so that the registration accuracy of the model is greatly improved, so that the calculated registration drift rate can be guaranteed to be in error minimization and high reliability; if the registration drift rate exceeds the allowable registration rate drift threshold interval, it means that the shape of the macadamia nut seriously deviates from the ideal qualified macadamia nut shape, so it is marked as unqualified and screened out; if the registration drift rate does not exceed the allowable registration rate drift threshold interval, it means that the shape of the macadamia nut meets the ideal macadamia nut shape, but at this time it cannot be completely marked as qualified, and further detection and identification of its natural phenotypic defects are required. If the natural phenotypic defects are identified, the corresponding macadamia nuts are transported to the defective production and transportation line for unified processing. This method integrates the shape defect detection and identification steps with the natural phenotypic defect detection and identification steps into one step, greatly improving the rate of defect detection and identification, reducing the error rate of defect identification, and is more efficient, stable and accurate than traditional defect identification methods.

[0087] Furthermore, in a preferred embodiment of the present invention, if the registration drift rate does not exceed the allowable registration rate drift threshold interval, an algebraic differential description equation group of the remaining unregistered multidimensional curve region model is constructed, and several natural phenotypic defect feature vector benchmarks of macadamia nuts are converted into algebraic equation solutions, and the algebraic differential description equation group is solved and analyzed based on the algebraic equation solutions to obtain a second unqualified screening plan, such as Figure 3 As shown, the specific steps include:

[0088] S302: if the registration drift rate does not exceed the allowed registration rate drift threshold range, the registered regional model is eliminated, the remaining unregistered multidimensional curve regional model is retained and output in the multidimensional grid registration field, and the multidimensional curve regional model is discretized into a plurality of finite units;

[0089] S304: Preset discrete curve functions according to each finite element, and perform calculations in combination with the discrete curve functions and the multidimensional curve region model to construct an algebraic differential description equation group of the multidimensional curve region model, and obtain an algebraic equation solution set of the algebraic differential description equation group;

[0090] S306: obtaining a number of natural phenotypic defect feature vector benchmarks of macadamia nuts through a big data network, extracting endpoints and endpoint pattern parameters of each natural phenotypic defect feature vector benchmark, and determining the gradient and Hessian matrix of each natural phenotypic defect feature vector benchmark based on the endpoints and endpoint pattern parameters;

[0091] S308: Preset an iteration frequency threshold, and continuously update the fitting parameters of the iterative calculation curve based on the gradient and the Hessian matrix until the preset iteration frequency threshold is reached, thereby obtaining an algebraic differential equation curve of each natural phenotype defect characteristic vector benchmark;

[0092] S310: Introducing the Newton-Raphson method to approximate and solve the algebraic differential equation curve, and obtaining algebraic equation solutions corresponding to the algebraic differential equation curves of the natural phenotypic defect characteristic vector benchmarks. If at least one or more of the algebraic equation solutions exist in the algebraic equation solution set, it indicates that the macadamia nuts to be produced and processed have natural phenotypic defect characteristics.

[0093] S312: Determine one by one whether the algebraic equation solution set corresponding to each macadamia nut to be produced and processed has at least one or more algebraic equation solutions. If so, mark the corresponding macadamia nut to be produced and processed with a second unqualified virtual mark to obtain a second unqualified screening and rejection plan, and upload the second unqualified screening and rejection plan to the terminal of the macadamia nut production and processing defective product transportation line;

[0094] S314: If the algebraic equation solution set corresponding to the macadamia nuts to be produced and processed does not have one or more algebraic equation solutions, the macadamia nuts to be produced and processed are input into the normal production and processing transportation line for further processing.

[0095] It should be noted that if the registration drift rate does not exceed the allowable registration rate drift threshold range, it means that the shape of the macadamia nut preliminarily meets the ideal macadamia nut shape and there is no shape defect, but there may be natural phenotypic defects. Therefore, this method can determine whether there are naturally formed phenotypic defects in macadamia nuts before production and processing. First, the unregistered multidimensional curve region model is discretized into a number of finite number units, and the algebraic differential description equation group used to describe the contour of the multidimensional curve region model is output according to the finite number of units; then, several natural phenotypic defect feature vector benchmarks of macadamia nuts are calculated as the first-order derivative and second-order derivative form of the function, that is, the gradient and Hessian matrix. According to this first-order The derivative and the second-order derivative describe the algebraic differential equation curve representing the characteristic vector benchmark of each natural phenotypic defect, and the algebraic equation solution of the algebraic differential equation curve of each natural phenotypic defect characteristic vector benchmark is solved by the Newton-Raphson method. The algebraic equation solution represents the curve contour of the natural phenotypic defect characteristic vector benchmark, and can be more quickly and conveniently combined with the algebraic differential description equation group describing the contour of the multidimensional curve regional model for analysis, thereby improving the efficiency of defect determination; if the algebraic equation solution can solve the algebraic differential description equation group of the multidimensional curve regional model contour, it means that the natural phenotypic defect corresponding to the algebraic equation solution exists in the multidimensional curve regional model of macadamia nuts, otherwise there is no natural phenotypic defect. The present invention discretizes the multidimensional curve regional model of macadamia nuts into a group of algebraic differential description equations, and makes the algebraic equation solution representing the natural phenotypic defect solve the group of algebraic differential description equations for analysis and judgment, thereby improving the rate of macadamia nut defect determination, and the defect analysis determination has a high fit rate, which can avoid the phenomenon of misjudgment and omission of defect characteristics.

[0096] Furthermore, in a preferred embodiment of the present invention, the method of obtaining the standard processing defect feature vectors generated by each production and processing link in the production and processing equipment when processing macadamia nuts, constructing a radial basis function classification and recognition network based on the standard processing defect feature vectors, importing different actual processing defect feature vectors generated after processing macadamia nuts into the radial basis function classification and recognition network for identification, and determining the production and processing link that causes the actual processing defect feature vectors of macadamia nuts, specifically includes the following steps:

[0097] When the macadamia nuts to be produced and processed that are input into the normal production and processing transportation line are processed, the processed macadamia nuts are obtained, and the industrial camera is controlled to take a second frame-by-frame photo of the processed macadamia nuts to obtain image data of the processed macadamia nuts;

[0098] Preset an image block size threshold and construct a high-dimensional feature space, divide the image data into N image blocks based on the image block size threshold, import the N image blocks into the high-dimensional feature space for expansion and assigning position codes, and output position code information of each image block;

[0099] The sequence dependency between each image block is determined based on the position coding information of each two adjacent image blocks, and a multi-head self-attention mechanism encoder is created based on the sequence dependency. Finally, the feature vectors of each image block are classified by the multi-head self-attention mechanism encoder to obtain the feature vectors of different actual processing defects generated after macadamia nut processing.

[0100] Obtaining a design drawing of production and processing equipment for macadamia nuts, extracting a number of production and processing links and corresponding production and processing technical principles through the design drawing of production and processing equipment, and searching in a big data network based on the number of production and processing links and corresponding production and processing technical principles;

[0101] After the search, M types of processing defects generated in each production and processing link when processing macadamia nuts are obtained, and the standard processing defect feature vectors that generate each type of processing defect are obtained. The K-Medoids clustering algorithm is introduced to cluster the standard processing defect feature vectors to obtain the Medoids center point, and the radial basis function center is determined according to the Medoids center point;

[0102] Calculate the activation weight value of the radial basis function center for the standard processing defect feature vector generated in each production and processing link when processing macadamia nuts, classify and create the radial basis function network nodes of each standard processing defect feature vector according to the activation weight value, and output the radial basis function classification and recognition network;

[0103] The actual radial basis functions corresponding to different actual processing defect feature vectors generated after macadamia nut processing are obtained, and the actual radial basis functions are imported into the radial basis function classification and recognition network for traversal identification, so as to determine the production and processing links that cause the actual processing defect feature vectors of macadamia nuts, and define them as the production and processing abnormal links.

[0104] It should be noted that after the preliminary screening of macadamia nuts before production and processing is completed, macadamia nuts can be input into the production and processing equipment for production and processing. However, due to the inevitable processing errors in the processing of machinery and equipment, processing defects have occurred in macadamia nuts, and there are multiple production and processing links in the production and processing equipment, so the processing defects that appear are also different. Therefore, in order to improve the product quality of macadamia nuts, it is necessary to trace the production and processing links that produce processing defects according to the processing defect identification and positioning, so as to facilitate subsequent monitoring and optimization. This method can reasonably classify the standard processing defect feature vectors generated by each production and processing link when processing macadamia nuts by constructing a radial basis function classification and recognition network. The classified standard processing defect feature vectors can ensure that the actual processing defects of macadamia nuts can quickly traverse the corresponding target processing defect type in the radial basis function classification and recognition network, improve the recognition accuracy and efficiency of the actual processing defects of macadamia nuts, and replace the steps of one-by-one comparison and calculation in the traditional defect recognition method, saving a lot of time cost, and ensuring the stability and reliability of defect recognition and traceability. The constructed radial basis function network is an artificial neural network that can quickly and accurately perform pattern recognition and classification. It uses radial basis functions as the activation function of the hidden layer to complete complex nonlinear mapping and realize automatic classification and recognition tasks, which has a certain robustness. The Chinese name of the K-Medoids is the K-medoid clustering algorithm, which is a clustering algorithm based on medoids. Compared with traditional K-Means clustering, it is more robust. Since data points are directly used as medoids, it can better handle noise and outliers and ensure the reliability of the radial basis function center.

[0105] Furthermore, in a preferred embodiment of the present invention, the spatial structure layout of each abnormal production and processing link, the setting pattern of the main production and processing machinery, and the preset working condition data are obtained to establish a number of thermal grids, calculate the working condition path deviation in each thermal grid and analyze it, and obtain the monitoring strategy for macadamia production and processing, which specifically includes the following steps:

[0106] Obtain the spatial structure layout of each abnormal production and processing link, and construct a spatial area layout model diagram of each abnormal production and processing link based on the spatial structure layout;

[0107] Acquire the configuration pattern and preset working condition data of the main production and processing machinery in each abnormal production and processing link, and simulate the main production and processing machinery according to the configuration pattern and preset working condition data of the main production and processing machinery to obtain the travel range and working area of ​​the main production and processing machinery;

[0108] Mark and uniformly plan the travel range and working area of ​​the main production and processing machinery in the spatial area layout model diagram, generate a spatial operation area model diagram of the main production and processing machinery, calculate M groups of kernel functions and grid bandwidth based on the spatial operation area model diagram, and establish a number of thermal grids through the M groups of kernel functions and grid bandwidth;

[0109] Acquire actual working condition data of the main production and processing machinery, obtain the actual working condition travel path of the main production and processing machinery by controlling the main production and processing machinery to execute the actual working condition data, calculate the offset between the actual working condition travel path and the standard working condition travel path under the preset working condition data in each thermal grid, and obtain the working condition travel path offset rate of each thermal grid;

[0110] Based on the working condition travel path deviation rate of each thermal grid, the kernel density estimation value of the thermal grid is calculated and integrated to obtain the working condition travel path deviation thermal map;

[0111] Obtain the monitoring equipment installation points of each abnormal production and processing link, divide the working condition travel path deviation thermal map into several sub-thermal area maps according to the monitoring equipment installation points, and monitor and obtain the thermal color coding values ​​of the sub-thermal area maps in real time;

[0112] If the thermal color coding value of the sub-thermal area map exists in the preset thermal color coding table, the monitoring scheduling of the monitoring device for the sub-thermal area map is appropriately reduced to obtain a type of monitoring strategy;

[0113] If the thermal chromaticity encoding value of the sub-thermal area map does not exist in the preset thermal chromaticity encoding table, then the ideal thermal chromaticity encoding value of the sub-thermal area map is queried in the preset thermal chromaticity encoding table, and the coded hash value between the thermal chromaticity encoding value and the ideal thermal chromaticity encoding value is calculated, and the monitoring scheduling of the sub-thermal area map by the monitoring device is incrementally increased based on the coded hash value, so as to obtain a type of monitoring strategy;

[0114] The monitoring strategy for macadamia production and processing was obtained by combining the first and second monitoring strategies.

[0115] It should be noted that after determining the abnormal production and processing link that causes processing defects in the production and processing of macadamia nuts, this abnormal production and processing link must have processing errors or faults that cause processing defects in macadamia nuts, and it is necessary to conduct reasonable real-time monitoring of the abnormal production and processing link. This method can construct several thermal grids for the operating areas of the main production and processing machinery in each abnormal production and processing link, and calculate the working condition travel path deviation rate between the actual working condition travel path and the standard working condition travel path of the main production and processing machinery in each thermal grid. According to the working condition travel path deviation rate, the corresponding thermal chromaticity coding value is dynamically assigned to each thermal grid to generate a working condition travel path deviation thermal map. By real-time monitoring of the working condition travel path deviation thermal map, the real-time production and processing status of macadamia nuts by the main production and processing machinery in each abnormal production and processing link can be obtained; if the thermal chromaticity coding value of the sub-thermal area map exists in the preset thermal chromaticity coding table, it means that the thermal The production and processing conditions corresponding to the sub-thermal area map where the chromaticity coding value is located are not prone to abnormalities, and the monitoring and scheduling can be adjusted accordingly; if the thermal chromaticity coding value of the sub-thermal area map exists in the preset thermal chromaticity coding table, it means that the production and processing behaviors corresponding to the sub-thermal area map where the thermal chromaticity coding value is located frequently have abnormal phenomena such as deviations or failures, which can easily lead to processing defects in macadamia nuts. Therefore, it is necessary to adjust the monitoring and scheduling accordingly to ensure that abnormal processing behaviors in the production and processing links can be observed and warned in time, to avoid the phenomenon of continued processing defects in macadamia nuts in the future, and to further improve the production and processing quality of macadamia nut products.

[0116] In addition, the defect identification and monitoring method for macadamia nut production and processing also includes the following steps:

[0117] Obtaining defect evaluation data of a preset macadamia nut product from a user, extracting a number of defect evaluation index items through the defect evaluation data, and constructing an initial defect evaluation index radar chart using the number of defect evaluation index items as a framework;

[0118] Obtain the ideal defect evaluation result corresponding to each defect evaluation index item of the user, import each of the ideal defect evaluation results into the initial defect evaluation index radar chart for fitting and drawing, and obtain the defect compliance evaluation radar area of ​​the preset macadamia nut product of the user;

[0119] Obtain the actual defect evaluation radar area of ​​the preset macadamia nut product produced by the current production and processing equipment, and fit the defect compliance evaluation radar area and the actual defect evaluation radar area in the initial evaluation index radar map to obtain the area value of the non-overlapping radar area;

[0120] Obtaining actual working parameters of each production and processing link in the production and processing equipment when making a preset macadamia nut product, calculating the correlation between the actual working parameters and the area value, obtaining multiple correlations, extracting the production and processing links corresponding to correlations greater than the preset correlation, and marking them as suspected abnormal production and processing links;

[0121] Obtain the working condition data bundle phrases of each suspected abnormal production and processing link, introduce the Markov Chain Monte Carlo method to estimate the probability of producing unqualified defective rates when producing and processing preset macadamia nuts under the working condition data bundle phrase conditions, and obtain the defective product generation probability value;

[0122] If the defective product generation probability value is greater than the preset defective product generation probability value, then the hash function between the defective product generation probability value and the preset defective product generation probability value is calculated, and the suspected abnormal production and processing links and the corresponding working condition data bundled phrases that are greater than the preset defective product generation probability value are controlled according to the hash function.

[0123] It should be noted that consumers have increasing quality requirements for macadamia nuts, and usually rate the quality of macadamia nuts through evaluation, and the evaluation results are often one of the important bases for manufacturers to improve the quality of macadamia nuts. This method can analyze the gap between the actual evaluation results of consumers for preset macadamia nut products and the ideal defect evaluation results through radar charts, and optimize the operation and maintenance of each production and processing link in the macadamia nut production and processing equipment according to this gap, so as to eliminate or minimize the probability of defective products in the production and processing links, improve the overall quality of macadamia nuts, and enhance users' favorability towards macadamia nut products.

[0124] In addition, the defect identification and monitoring method for macadamia nut production and processing also includes the following steps:

[0125] Obtain the preset transportation starting point and transportation destination of macadamia nut products, mark several transportation routes from the transportation starting point to the transportation destination through the satellite map positioning system, and upload the several transportation routes to the vehicle-mounted transportation display terminal;

[0126] Preset a target update time node, obtain the latest road condition information of each transportation path at the target update time node, and extract road surface satellite image information of each transportation path according to the latest road condition information;

[0127] A local binary pattern algorithm is introduced to calculate the road surface satellite image information of each transport path, obtain the central pixel and the window area, compare each central pixel with the corresponding window neighborhood pixel one by one, generate multiple binary values, replace the central pixel with the multiple binary values, and obtain the local binary pattern of the road surface of each transport path;

[0128] Obtaining texture characteristics of a preset macadamia nut product, searching in a big data network based on the texture characteristics, obtaining a maximum seismic resistance index of a defect of the preset macadamia nut product, and determining an allowable bumpiness of a transportation path according to the maximum seismic resistance index;

[0129] Based on the allowable bumpiness, the ideal road local binary pattern is obtained, and the similarity between the road local binary pattern of each transportation path and the ideal road local binary pattern is calculated. If the similarity is less than the preset similarity, it means that the bumpiness of the transportation path is not conducive to the transportation of the preset macadamia nut products;

[0130] If the similarity is greater than the preset similarity, a similarity division threshold is preset and a descending sorting table is constructed, local binary patterns of the road surface of each transport path are sorted in descending order based on the similarity, and multiple transport paths corresponding to similarities above the similarity division threshold are marked;

[0131] The Floyd-Warshal1 algorithm is introduced to screen multiple transportation paths to obtain the shortest transportation path, and the shortest transportation path is uploaded to the transportation vehicle backend terminal.

[0132] It should be noted that the production and processing of macadamia nuts and the wholesale of goods usually require vehicles for transportation. However, due to the different road conditions of different routes, some roads are bumpy and some are flat. If macadamia nuts are bumped during transportation, it may cause different degrees of bumps and collisions in macadamia nuts, causing defects. Therefore, this method can intelligently screen and exclude bumpy paths for transporting macadamia nuts, so as to display the transportation paths without bumpy roads to the driver, reduce the probability of bumps and collisions of macadamia nuts, and at the same time, this method can further calculate the distance of the selected transportation paths without bumpy roads, screen out the shortest transportation path, ensure that macadamia nuts can be transported to the destination quickly, reduce transportation time, and greatly improve economic benefits.

[0133] A second aspect of the present invention provides a defect recognition and monitoring system for macadamia nut production and processing, the defect recognition and monitoring system for macadamia nut production and processing comprising a memory 41 and a processor 42, the memory 41 storing a defect recognition and monitoring method program for macadamia nut production and processing, and when the defect recognition and monitoring method program for macadamia nut production and processing is executed by the processor 42, Figure 4 As shown, implement the following steps:

[0134] Acquire several groups of continuous historical time-series image information in the real-time shooting area of ​​the industrial camera, build a dynamic factor prediction model through the historical time-series image information, analyze the vibration transfer landing point of macadamia nuts based on the dynamic factor prediction model, draw a vibration transfer landing point prediction hotspot map, formulate the best shooting decision of the industrial camera according to the vibration transfer landing point prediction hotspot map, and obtain the image shooting strategy;

[0135] Based on the image shooting strategy, a 3D model of macadamia nuts is constructed. In the field of multi-dimensional grid registration, the 3D model of each macadamia nut is registered with the quasi-ideal model to analyze the registration, so as to preliminarily remove macadamia nuts with appearance defects and natural phenotype defects and transport them to the defective production and transportation line for unified treatment, while macadamia nuts without defects continue to be produced and processed;

[0136] Obtaining standard processing defect feature vectors generated by each production and processing link in the production and processing equipment when processing macadamia nuts, constructing a radial basis function classification and recognition network based on the standard processing defect feature vectors, importing different actual processing defect feature vectors generated after processing macadamia nuts into the radial basis function classification and recognition network for identification, and determining the production and processing link that causes the actual processing defect feature vectors of macadamia nuts to be generated;

[0137] The spatial structure layout of each abnormal production and processing link, the setting pattern of the main production and processing machinery, and the preset working condition data are obtained to establish several thermal grids, calculate and analyze the working condition path deviation in each thermal grid, and obtain the monitoring strategy for macadamia nut production and processing.

[0138] 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 defect identification and monitoring of macadamia nut production and processing, characterized in that: The steps include: Acquire several groups of continuous historical time-series image information in the real-time shooting area of ​​the industrial camera, build a dynamic factor prediction model through the historical time-series image information, analyze the vibration transfer landing point of macadamia nuts based on the dynamic factor prediction model, draw a vibration transfer landing point prediction hotspot map, formulate the best shooting decision of the industrial camera according to the vibration transfer landing point prediction hotspot map, and obtain the image shooting strategy; Based on the image shooting strategy, a 3D model of macadamia nuts is constructed. In the field of multi-dimensional grid registration, the 3D model of each macadamia nut is registered with the quasi-ideal model to analyze the registration, so as to preliminarily remove macadamia nuts with appearance defects and natural phenotype defects and transport them to the defective production and transportation line for unified treatment, while macadamia nuts without defects continue to be produced and processed; Obtaining standard processing defect feature vectors generated by each production and processing link in the production and processing equipment when processing macadamia nuts, constructing a radial basis function classification and recognition network based on the standard processing defect feature vectors, importing different actual processing defect feature vectors generated after processing macadamia nuts into the radial basis function classification and recognition network for identification, and determining the production and processing link that causes the actual processing defect feature vectors of macadamia nuts to be generated; Obtain the spatial structure layout of each abnormal production and processing link, the setting pattern of the main production and processing machinery, and the preset working condition data to establish several thermal grids, calculate and analyze the working condition path deviation in each thermal grid, and obtain the monitoring strategy for macadamia nut production and processing; Among them, a three-dimensional model of macadamia nuts is constructed based on the image shooting strategy, and the three-dimensional model of each macadamia nut is registered and analyzed with the quasi-ideal model in the field of multi-dimensional grid registration, so as to preliminarily eliminate macadamia nuts with appearance defects and natural phenotype defects and transport them to the defective production and transportation line for unified treatment, and continue to produce and process macadamia nuts without defects, which specifically includes the following steps: Based on the image shooting strategy, the industrial camera is controlled to shoot the macadamia nuts to be produced and processed frame by frame to obtain multiple image data of the macadamia nuts and the corresponding image frame rate; Constructing a sparse coding dictionary, encoding and learning the image frame rate in the sparse coding dictionary, generating a sparse basis function for each image data, sparsely encoding and reconstructing the representation of multiple image data according to the sparse basis function, and obtaining a three-dimensional model of macadamia nuts; Obtaining a production requirement benchmark for macadamia nuts, presetting a quasi-ideal model of macadamia nuts and an allowable registration rate drift threshold range according to the production requirement benchmark, constructing a multi-dimensional grid registration field, and registering the three-dimensional model of each macadamia nut with the quasi-ideal model one by one in the multi-dimensional grid registration field; After the registration is completed, the registration drift rate between the three-dimensional model of each macadamia nut and the quasi-ideal model is output. If the registration drift rate exceeds the allowable registration rate drift threshold interval, the macadamia nuts corresponding to the allowable registration rate drift threshold interval are marked with unqualified virtual marks to obtain the first unqualified screening plan; If the registration drift rate does not exceed the allowable registration rate drift threshold interval, then the algebraic differential description equation group of the remaining unregistered multidimensional curve region model is constructed, and several natural phenotypic defect feature vector benchmarks of macadamia nuts are converted into algebraic equation solutions, and the algebraic differential description equation group is solved and analyzed based on the algebraic equation solutions to obtain the second unqualified screening plan; The first unqualified screening and rejection plan and the second unqualified screening and rejection plan are uploaded to the terminal of the macadamia nut production and processing defective product transportation line, so that the macadamia nuts with unqualified virtual marks are transported to the defective product production and transportation line for unified processing.

2. The defect identification and monitoring method for macadamia nut production and processing according to claim 1, characterized in that: The method of obtaining several groups of continuous historical time-series image information of the industrial camera in the real-time shooting area, building a dynamic factor prediction model through the historical time-series image information, analyzing the vibration transfer landing point of macadamia nuts based on the dynamic factor prediction model, drawing a vibration transfer landing point prediction hotspot map, formulating the best shooting decision of the industrial camera according to the vibration transfer landing point prediction hotspot map, and obtaining an image shooting strategy specifically includes the following steps: Obtaining a preset shooting decision and a preset shooting area of ​​the industrial camera, and obtaining a plurality of shooting control parameters of the industrial camera based on the preset shooting decision; Obtaining a preset visual range corresponding to each shooting control parameter, planning in a preset shooting area according to the preset visual range, and obtaining a corresponding real-time shooting area in the preset shooting area when the industrial camera executes each shooting control parameter; Acquire several groups of continuous historical time-series image information in the real-time shooting area of ​​the industrial camera, introduce a dynamic factor algorithm to calculate and create the several groups of continuous historical time-series image information, and obtain a dynamic factor prediction model; The macadamia nut production and processing equipment is measured by a laser vibrometer to obtain the vibration amplitude of the macadamia nut production and processing equipment, and the vibration transfer landing point of the macadamia nut after a preset time period is predicted in a dynamic factor prediction model based on the vibration amplitude, and several frame model slices within the preset time period are stripped, and a vibration transfer landing point prediction hot spot map is drawn according to the several frame model slices; The ideal image resolution is preset, and the center point of the industrial camera is used as the starting point. The central pixel area of ​​the preset visual range corresponding to each shooting control parameter is planned until the ideal image resolution is met, and the ideal central pixel area is generated; The vibration transfer point prediction heat map is fitted to the ideal central pixel area. If a shadow image is generated at the boundary of the vibration transfer point prediction heat map, the area value of the shadow image is obtained, and the ideal central pixel area is moved at the same frequency according to the area value of the shadow image until the ideal central pixel area includes all shadow images, thereby generating multiple groups of moving strokes. The shooting control parameters of the industrial camera are adjusted according to the multiple groups of moving strokes, and the vibration behavior of the macadamia nut production and processing equipment is optimized to obtain an image shooting strategy, which is then uploaded to the industrial camera control terminal.

3. The defect identification and monitoring method for macadamia nut production and processing according to claim 1, characterized in that: If the registration drift rate does not exceed the allowable registration rate drift threshold interval, an algebraic differential description equation group of the remaining unregistered multidimensional curve region model is constructed, and several natural phenotypic defect feature vector benchmarks of macadamia nuts are converted into algebraic equation solutions, and the algebraic differential description equation group is solved and analyzed based on the algebraic equation solutions to obtain a second unqualified screening plan, which specifically includes the following steps: If the registration drift rate does not exceed the allowed registration rate drift threshold range, the registered regional model is eliminated, the remaining unregistered multidimensional curve regional model is retained and output in the multidimensional grid registration field, and the multidimensional curve regional model is discretized into a number of finite units; According to the preset discrete curve function of each finite element, the discrete curve function and the multidimensional curve region model are combined to perform calculations to construct an algebraic differential description equation group of the multidimensional curve region model, and obtain an algebraic equation solution set of the algebraic differential description equation group; Obtaining several natural phenotypic defect feature vector benchmarks of macadamia nuts through a big data network, extracting the endpoints and endpoint pattern parameters of each natural phenotypic defect feature vector benchmark, and determining the gradient and Hessian matrix of each natural phenotypic defect feature vector benchmark based on the endpoints and endpoint pattern parameters; Preset an iteration frequency threshold, and continuously update the fitting parameters of the iterative calculation curve based on the gradient and the Hessian matrix until the preset iteration frequency threshold is reached, so as to obtain an algebraic differential equation curve of each natural phenotypic defect characteristic vector benchmark; The Newton-Raphson method is introduced to approximate and solve the algebraic differential equation curve, and the algebraic equation solution corresponding to the algebraic differential equation curve of each natural phenotypic defect characteristic vector benchmark is obtained. If at least one or more of the algebraic equation solutions exist in the algebraic equation solution set, it indicates that the macadamia nuts to be produced and processed have natural phenotypic defect characteristics; Determine one by one whether the algebraic equation solution set corresponding to each macadamia nut to be produced and processed has at least one or more algebraic equation solutions. If so, mark the corresponding macadamia nut to be produced and processed with a second unqualified virtual mark to obtain a second unqualified screening and rejection plan, and upload the second unqualified screening and rejection plan to the terminal of the macadamia nut production and processing defective product transportation line; If the algebraic equation solution set corresponding to the macadamia nuts to be processed does not have one or more algebraic equation solutions, the macadamia nuts to be processed will be input into the normal production and processing transportation line for further processing.

4. The defect identification and monitoring method for macadamia nut production and processing according to claim 1, characterized in that: The method comprises the following steps: obtaining standard processing defect feature vectors generated by each production and processing link in the production and processing equipment when processing macadamia nuts, constructing a radial basis function classification and recognition network based on the standard processing defect feature vectors, importing different actual processing defect feature vectors generated after processing macadamia nuts into the radial basis function classification and recognition network for identification, and determining the production and processing link that causes the actual processing defect feature vectors of macadamia nuts to be generated. When the macadamia nuts to be produced and processed that are input into the normal production and processing transportation line are processed, the processed macadamia nuts are obtained, and the industrial camera is controlled to take a second frame-by-frame photo of the processed macadamia nuts to obtain image data of the processed macadamia nuts; Preset an image block size threshold and construct a high-dimensional feature space, divide the image data into N image blocks based on the image block size threshold, import the N image blocks into the high-dimensional feature space for expansion and assigning position codes, and output position code information of each image block; The sequence dependency between each image block is determined based on the position coding information of each two adjacent image blocks, and a multi-head self-attention mechanism encoder is created based on the sequence dependency. Finally, the feature vectors of each image block are classified by the multi-head self-attention mechanism encoder to obtain the feature vectors of different actual processing defects generated after macadamia nut processing. Obtaining a design drawing of production and processing equipment for macadamia nuts, extracting a number of production and processing links and corresponding production and processing technical principles through the design drawing of production and processing equipment, and searching in a big data network based on the number of production and processing links and corresponding production and processing technical principles; After the search, M types of processing defects generated in each production and processing link when processing macadamia nuts are obtained, and the standard processing defect feature vectors that generate each type of processing defect are obtained. The K-Medoids clustering algorithm is introduced to cluster the standard processing defect feature vectors to obtain the Medoids center point, and the radial basis function center is determined according to the Medoids center point; Calculate the activation weight value of the radial basis function center for the standard processing defect feature vector generated in each production and processing link when processing macadamia nuts, classify and create the radial basis function network nodes of each standard processing defect feature vector according to the activation weight value, and output the radial basis function classification and recognition network; The actual radial basis functions corresponding to different actual processing defect feature vectors generated after macadamia nut processing are obtained, and the actual radial basis functions are imported into the radial basis function classification and recognition network for traversal identification, so as to determine the production and processing links that cause the actual processing defect feature vectors of macadamia nuts, and define them as the production and processing abnormal links.

5. The defect identification and monitoring method for macadamia nut production and processing according to claim 1, characterized in that: The spatial structure layout of each abnormal production and processing link, the setting pattern of the main production and processing machinery, and the preset working condition data are obtained to establish a number of thermal grids, calculate and analyze the working condition path deviation in each thermal grid, and obtain the monitoring strategy for macadamia nut production and processing, which specifically includes the following steps: Obtain the spatial structure layout of each abnormal production and processing link, and construct a spatial area layout model diagram of each abnormal production and processing link based on the spatial structure layout; Acquire the configuration pattern and preset working condition data of the main production and processing machinery in each abnormal production and processing link, and simulate the main production and processing machinery according to the configuration pattern and preset working condition data of the main production and processing machinery to obtain the travel range and working area of ​​the main production and processing machinery; Mark and uniformly plan the travel range and working area of ​​the main production and processing machinery in the spatial area layout model diagram, generate a spatial operation area model diagram of the main production and processing machinery, calculate M groups of kernel functions and grid bandwidth based on the spatial operation area model diagram, and establish a number of thermal grids through the M groups of kernel functions and grid bandwidth; Acquire actual working condition data of the main production and processing machinery, obtain the actual working condition travel path of the main production and processing machinery by controlling the main production and processing machinery to execute the actual working condition data, calculate the offset between the actual working condition travel path and the standard working condition travel path under the preset working condition data in each thermal grid, and obtain the working condition travel path offset rate of each thermal grid; Based on the working condition travel path deviation rate of each thermal grid, the kernel density estimation value of the thermal grid is calculated and integrated to obtain the working condition travel path deviation thermal map; Obtain the monitoring equipment installation points of each abnormal production and processing link, divide the working condition travel path deviation thermal map into several sub-thermal area maps according to the monitoring equipment installation points, and monitor and obtain the thermal color coding values ​​of the sub-thermal area maps in real time; If the thermal color coding value of the sub-thermal area map exists in the preset thermal color coding table, the monitoring scheduling of the monitoring device for the sub-thermal area map is appropriately reduced to obtain a type of monitoring strategy; If the thermal chromaticity encoding value of the sub-thermal area map does not exist in the preset thermal chromaticity encoding table, the ideal thermal chromaticity encoding value of the sub-thermal area map is queried in the preset thermal chromaticity encoding table, and the coded hash value between the thermal chromaticity encoding value and the ideal thermal chromaticity encoding value is calculated. Based on the coded hash value, the monitoring device for the sub-thermal area map is incrementally scheduled to obtain the second type of monitoring strategy; The monitoring strategy for macadamia production and processing was obtained by combining the first and second monitoring strategies.

6. A defect identification and monitoring system for macadamia nut production and processing, characterized in that: The defect identification and monitoring system for macadamia nut production and processing includes a memory and a processor, wherein the memory stores a defect identification and monitoring method program for macadamia nut production and processing. When the defect identification and monitoring method program for macadamia nut production and processing is executed by the processor, the steps of the defect identification and monitoring method for macadamia nut production and processing as described in any one of claims 1 to 5 are implemented.