A method and system for identifying and sorting fertilizer granules by spectrum
By establishing a continuous correspondence between the continuous identity of fertilizer particles and continuous observation of anomalous areas, the changes before and after contact with the source of the anomaly can be identified and interpreted. This solves the problem of inaccurate judgment of the source of anomalous spectral evidence in existing technologies, and enables more accurate particle quality determination and sorting.
Patent Information
- Application Number
- CN202611307064.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-24
AI Technical Summary
In the process of identifying fertilizer granules using hyperspectral images, existing technologies struggle to effectively utilize changes in local anomalous regions before and after particle contact in continuous images, thus failing to maintain the source correspondence between anomalous spectral evidence and particle targets, leading to inaccurate determination of the source of anomalous materials.
By establishing a continuous identity of fertilizer particles and a continuous observation correspondence between abnormal areas, the source of anomalies is identified and the changes before and after contact are determined. The candidate propagation direction is used to explain the anomalies after contact, and non-transfer interpretation and transfer interpretation are constructed. The reconstruction error is corrected to confirm the source of anomalies, thereby achieving accurate particle quality judgment and sorting.
It improves the accuracy and reliability of anomaly source identification and particle-level sorting results in scenarios involving short-term particle contact and surface material migration. It can distinguish whether the abnormal material belongs to the particles before contact, thus improving the accuracy of the sorting results.
Smart Images

Figure CN123149168A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image recognition technology, specifically to a method and system for spectral recognition, sorting, and detection of fertilizer particles. Background Technology
[0002] With the application of machine vision technology in fertilizer production and inspection, hyperspectral imaging can record the spectral response at different locations while acquiring spatial images of fertilizer particles. This allows for the identification and sorting of fertilizer particles in transport by utilizing particle outlines, local regional features, and motion relationships in continuous images.
[0003] In actual production, fertilizer granules are continuously conveyed through the imaging area by a conveying device. Adjacent granules will roll and move closer together due to the vibration of the conveyor. Taking organic fertilizer granules as an example, when there is locally enriched material or weakly bonded surface particles on the surface of a granule, after the granule comes into short contact with an adjacent granule, a small amount of surface material may transfer and attach to the other granule. The two granules then separate again, and two independent granule targets can still be formed in the hyperspectral image. The transferred material appears as a newly appearing local abnormal spectral region inside the recipient granule. Current machine vision detection usually determines the boundary of the granule target based on image segmentation, and performs abnormal region identification by combining the spectral image features inside the granule. Then, the correspondence between the granule targets is maintained by the position and motion relationship in consecutive frames to form a particle-level identification result for subsequent sorting.
[0004] In the absence of material transfer between particles, an abnormal region located within a particle image and moving continuously with the particle can serve as an important visual basis for determining the correspondence between the abnormal region and the particle. However, in the particle contact scenario described above, the transferred material has already actually adhered to the recipient particle. Therefore, its spatial position and subsequent motion state in the image are consistent with the recipient particle. Based solely on the current particle outline and cross-frame motion relationship, it is difficult to further reflect the source of the abnormal region before the contact occurred.
[0005] For example, a particle may have a stable local anomalous spectral region before contact, and the area of this region may change after contact. At the same time, another particle that did not originally show a corresponding anomalous region may form a new region with similar spectral characteristics on the contact side. In this case, the current image can reflect the location of the anomalous material, but it cannot directly indicate whether the anomalous material belongs to the current carrier particle itself. If this local region is directly used as the basis for quality identification of the recipient particle, the current carrier relationship of the particle surface material and its original source relationship may be merged.
[0006] Therefore, in the process of hyperspectral image recognition of fertilizer particles, how to utilize the changes in local abnormal regions before and after particle contact in continuous images to maintain the source correspondence between abnormal spectral evidence and particle targets, and to make this source correspondence participate in particle-level visual recognition and sorting result determination, is a technical problem that needs to be further solved in this application scenario. Summary of the Invention
[0007] To achieve the above objectives, the present invention provides the following technical solution: A method for spectral identification, sorting, and detection of fertilizer particles, comprising: Acquire continuous hyperspectral images of fertilizer particles, associate particle identities, establish local continuous observation correspondence under observable conditions, identify abnormal regions based on local reference spectra, and form anomaly sources with pre-contact observation history; Based on the continuous change of adjacent particles from independent and indistinguishable to separated, candidate contact events and contact areas are determined, and the anomaly source is judged to enter the contact area and the candidate propagation direction is determined by the correspondence of continuous observations. When the contact candidate event ends and the two particles become observable again, the changes after contact are first explained by the pre-contact spectral state of the candidate propagation direction pointing to the particle. Then, the remaining anomalies are explained by the anomaly source entering the contact area. The explanation decrease of the same anomaly source on the particle side where the anomaly source is located and the explanation generation on the particle side where the candidate propagation direction points to the particle are determined. When the explanation decrease and explanation generation are within the joint allowable range of material transfer formed by the calibration of the confirmed material transfer event, the candidate source transfer relationship is formed. For candidate source transfer relationships, we establish a transfer-free interpretation and a transfer interpretation with cross-particle connections of anomalous sources in the same observation area, compare reconstruction errors, and correct the fitting gain of additional source degrees of freedom by non-material transfer calibration events. Based on the corrected reconstruction advantages and the transfer interpretation of the sources of reconstruction errors, the results were confirmed. When the corrected reconstruction advantage exceeds the normal competitive range formed by the absence of material transfer calibration events and the transfer interpretation reconstruction error is within the allowable range of transfer reconstruction error formed by the confirmed material transfer event calibration, the source confirmation result is source migration confirmation. Based on the source confirmation result, the particle quality judgment admission type of the anomalous evidence is determined and the sorting result is output.
[0008] Furthermore, the specific operations for associating particle identities and establishing continuous observation correspondences in local areas under observable conditions are as follows: The particle identity is determined based on the position, outline, and main spectral characteristics of particles at adjacent times, and a continuous observation correspondence is established based on the normalized position, spectral shape, and adjacency relationship of local regions. The observation status is updated when the local area meets the observable conditions and the continuous observation correspondence is established. The most recent valid observation status is maintained when the local area is out of the observable range or the continuous observation correspondence is interrupted.
[0009] Furthermore, the specific steps for identifying anomalous regions and forming anomaly sources with pre-contact observation history based on local reference spectra are as follows: A local reference spectrum is formed from the normal region adjacent to the local region to be detected that meets the observable conditions. An abnormal residual spectrum is formed based on the actual spectrum of the local region to be detected and the local reference spectrum. When the abnormal residual spectrum exceeds the allowable range of the normal residual formed by calibration, the abnormal region is identified. The local correspondence of the abnormal region and the continuity of the abnormal residual spectrum are verified along the continuous observation correspondence. When the effective observation time reaches the minimum observation time formed by calibration, the source of the anomaly is formed. When the particle enters the non-independent observable state, the last effective state of the source of the anomaly is maintained.
[0010] Furthermore, the specific operation for determining candidate contact events and contact regions based on the continuous change of adjacent particles from independent and indistinguishable to separated is as follows: The continuous approach process is determined based on the boundary spacing of adjacent particles after identity association. When the boundary spacing enters the indistinguishable distance range of the boundary formed by the spatial resolution calibration of the imaging system and is subsequently re-separated and the original particle identity is restored, a contact candidate event is formed. The local boundary region that continuously approaches and maintains a continuous observation correspondence before entering the indistinguishable distance range of the boundary is defined as the contact region.
[0011] Furthermore, the specific steps for determining whether the anomaly source has entered the contact area and identifying candidate propagation directions based on the continuous observation correspondence are as follows: The positional change of the anomaly source relative to the contact area is traced along the correspondence of continuous observations. The entry of the anomaly source into the contact area is determined based on the state maintained by continuous observations and the process of approaching the contact area. When the source of the anomaly enters the contact area before the continuous observation correspondence is interrupted, a candidate propagation direction is established. After the candidate propagation direction is established, the continuous observation correspondence is interrupted due to particle proximity.
[0012] Furthermore, the specific steps for explaining post-contact changes by first analyzing the pre-contact spectral state of the candidate propagation direction pointing towards the particle, and then analyzing the source of the anomaly entering the contact region to explain the remaining anomalies are as follows: The candidate propagation direction pointing to the particle's own spectral state before contact, corresponding to the position of the contact area and the observation conditions, is selected, and the anomaly after contact is explained by its own spectral state. When the residual anomaly formed by the self-spectral state interpretation exceeds the allowable range of the self-interpretation formed by the event without material transfer calibration, the source is interpreted as the anomaly source that enters the contact area and corresponds to the candidate propagation direction.
[0013] Furthermore, the specific operations for determining the explanation descent and explanation generation of the same anomaly source and forming candidate source transitivity relationships are as follows: The same source interpretation rule is applied to the corresponding regions before and after the contact between the particle where the anomaly source is located and the particle whose candidate propagation direction points, to determine the interpretation decrease and interpretation generation of the same anomaly source respectively; The source descent threshold and source generation threshold are determined by the absence of material transfer calibration events. When the explained descent exceeds the source descent threshold, the explained generation exceeds the source generation threshold, and the explained descent and explained generation are within the joint allowable range of material transfer formed by the calibration of confirmed material transfer events, a candidate source transfer relationship is formed.
[0014] Furthermore, the specific steps for establishing non-transfer interpretations and transfer interpretations for candidate source transitivity and comparing reconstruction errors are as follows: The observation area used to form candidate source transit relationships is fixed, and the same parameter constraints and reconstruction rules are used for both non-transfer interpretation and transfer interpretation. The no-transfer interpretation is based on the spectral state of the particle itself for reconstruction, while the transfer interpretation sets up cross-particle connections for the source of anomalies in the same observation area. The reconstruction error of the no-transfer interpretation and the reconstruction error of the transfer interpretation are determined according to the reconstruction results of the corresponding areas of the two particles, respectively.
[0015] Furthermore, the specific steps for correcting the fitting gain of the additional source degrees of freedom by the absence of material transfer calibration events and forming source confirmation results are as follows: Additional source degrees of freedom are determined based on the additional independent source interpretation parameters included in the transfer interpretation, and the fit benefit and normal competition range are determined by the no-material transfer calibration event; The reconstruction advantage is formed by the reconstruction error without transfer explanation and the reconstruction error with transfer explanation, and the corrected reconstruction advantage is obtained by subtracting the fitting gain. Source migration confirmation is formed when the corrected reconstruction advantage exceeds the normal competitive range and the transfer interpretation reconstruction error is within the allowable range of transfer reconstruction error formed by the calibration of the confirmed material transfer event. A no-transfer confirmation is formed when the no-transfer interpretation reconstruction error is within the allowable range of no-transfer reconstruction error formed by a no-material transfer calibration event, the interpretation decrease and interpretation generation are within the joint allowable range of no-transfer formed by a no-material transfer calibration event, and the transfer interpretation reconstruction error exceeds the allowable range of transfer reconstruction error. When the non-transfer interpretation reconstruction error is within the allowable range of non-transfer reconstruction error and the transfer interpretation reconstruction error is within the allowable range of transfer reconstruction error, and the corrected reconstruction advantage is within the normal competitive range, the source is not confirmed. Based on the source confirmation result, the particle quality judgment admission type and sorting result of the abnormal evidence are determined.
[0016] A fertilizer particle spectral identification, sorting, and detection system includes: The anomaly source establishment module acquires continuous hyperspectral images of fertilizer particles, associates particle identities, establishes a local continuous observation correspondence under observable conditions, identifies anomaly areas based on local reference spectra, and forms anomaly sources with pre-contact observation history. The candidate propagation direction determination module determines contact candidate events and contact areas based on the continuous change of adjacent particles from independent and indistinguishable to separated. It also determines whether the source of the anomaly has entered the contact area and determines the candidate propagation direction based on the correspondence of continuous observations. The candidate source transfer relationship formation module first interprets the post-contact changes based on the pre-contact spectral state of the candidate propagation direction pointing towards the particle when the contact candidate event ends and the two particles become observable again. Then, it interprets the remaining anomalies based on the anomaly source entering the contact area. It determines the interpretation decrease of the same anomaly source on the particle side where the anomaly source is located and the interpretation generation on the particle side where the candidate propagation direction points towards the particle. When the interpretation decrease and interpretation generation are within the joint allowable range of material transfer formed by the calibration of the confirmed material transfer event, the candidate source transfer relationship is formed. The source confirmation and sorting module, for candidate source transfer relationships, establishes non-transfer interpretations and transfer interpretations with cross-particle connections of anomalous sources in the same observation area, compares reconstruction errors, and corrects the fitting gain of additional source degrees of freedom by non-material transfer calibration events. Based on the corrected reconstruction advantage and the reconstruction error of the transfer interpretation, a source confirmation result is formed. When the corrected reconstruction advantage exceeds the normal competition range formed by non-material transfer calibration events and the reconstruction error of the transfer interpretation is within the allowable range of transfer reconstruction error formed by confirmed material transfer event calibration, the source confirmation result is source migration confirmation. Based on the source confirmation result, the particle quality judgment admission type of anomalous evidence is determined and the sorting result is output.
[0017] This invention provides a method and system for spectral identification, sorting, and detection of fertilizer particles, which has the following beneficial effects: 1. This invention establishes a continuous identity of fertilizer particles and a continuous observation correspondence between abnormal regions, so that the abnormal spectral evidence formed before contact has a stable historical source. By combining the candidate events of particle contact and the contact area, it limits the abnormal source to only have the qualification to be a candidate for propagation after actually entering the contact area. Thus, the source judgment of abnormal spectral evidence no longer depends solely on its spatial location and movement attribution after contact.
[0018] 2. After contact, this invention first uses the spectral state of the candidate propagation direction pointing to the particle before contact to explain the changes after contact. Then, for the remaining anomalies, it jointly judges the decrease in the explanation of the same anomaly source on the original particle side and the generation of the explanation on the other particle side, and establishes the candidate source transfer relationship based on the joint allowable range formed by the confirmed material transfer event. In this way, it can distinguish between the particle's own anomaly and the migration of the anomaly source caused by contact in special scenarios where the anomalous material has been attached to another particle, but its historical source still belongs to the particle before contact.
[0019] 3. Furthermore, this invention constructs a non-transfer interpretation and a transfer interpretation within the same observation area, and uses a non-material transfer calibration event to correct the fitting gain of the transfer interpretation due to the additional source freedom. Then, based on the corrected reconstruction advantage and transfer reconstruction error, a source confirmation result is formed, so that the current carrying relationship and historical source relationship of the anomalous spectral evidence participate in particle quality determination and sorting respectively. Therefore, it can improve the accuracy and reliability of anomalous source determination and particle-level sorting results in scenarios of short-term particle contact and surface material migration. Attached Figure Description
[0020] Figure 1 This is a schematic diagram illustrating the contact propagation of abnormal sources according to the present invention; Figure 2 This is a schematic diagram illustrating the source migration confirmation of the present invention. Detailed Implementation
[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0022] Please see Figure 1 and Figure 2 This embodiment provides a method for spectral identification, sorting, and detection of fertilizer particles, including the following specific steps: This method is used for the identification, determination and sorting of hyperspectral anomalies in fertilizer particles under continuous conveying conditions. The hyperspectral imaging device continuously acquires hyperspectral images of fertilizer particles, and the image processing device performs particle identity association, local spectral processing, contact candidate event analysis, anomaly source interpretation and source confirmation. The sorting execution device performs sorting based on the particle quality determination results. Dark reference correction, white reference correction, particle basic segmentation and mechanical sorting are performed using conventional methods in the field.
[0023] This implementation method is executed in the following sequential processing order: Acquire continuous hyperspectral images of fertilizer particles, associate particle identities, establish local continuous observation correspondences under observable conditions, identify anomalous regions based on local reference spectra, and form anomalous sources with pre-contact observation history; determine contact candidate events and contact regions based on the continuous changes of adjacent particles from independent and indistinguishable to separated, determine whether the anomalous source enters the contact region and determine the candidate propagation direction along the continuous observation correspondences; when the contact candidate event ends and two particles become observable again, first interpret the post-contact changes based on the pre-contact spectral state of the particles with the candidate propagation direction pointing to them, then interpret the remaining anomalies based on the anomalous sources entering the contact region, determine the interpretation decrease and interpretation generation, and form candidate source transfer relationships; for candidate source transfer relationships, establish non-transfer interpretations and transfer interpretations with cross-particle connections of anomalous sources in the same observation area, compare reconstruction errors, correct the fitting gain of additional source degrees of freedom by non-material transfer calibration events, form source confirmation results based on the corrected reconstruction advantage and transfer interpretation reconstruction errors, and determine the particle quality judgment admission type and sorting results of anomalous evidence based on the source confirmation results. The particle identity, continuous observation correspondences, contact regions, candidate propagation directions, and source interpretation results formed in the previous stage are directly used as inputs for the next stage.
[0024] When acquiring continuous hyperspectral images of fertilizer granules, a hyperspectral imaging device set up on the continuous conveying path continuously acquires hyperspectral images of fertilizer granules and corresponding timestamps according to the sampling time, forming a continuous hyperspectral image sequence. Perform dark reference correction and white reference correction on the acquired images, and remove bands that are calibrated as invalid by the equipment; After correction, the negative reflection value caused by noise is treated as 0, forming a set of effective bands that are fixed for the current detection batch. When the timestamp does not meet the increasing relationship, the dark reference or white reference correction result fails, or the current set of effective bands is inconsistent with the corresponding calibration configuration, the observation is recorded as an invalid observation and will not participate in particle identity association, establishment of continuous observation correspondence, or subsequent threshold statistics. The median value of the interval between adjacent effective timestamps within the stable acquisition interval is taken as the effective sampling period. The continuity breakpoint is preferably 1.5 to 2.5 times the effective sampling period, preferably 2 times. It is corrected according to the separation position between the upper boundary of normal sampling jitter and the lower boundary of frame loss interval in the equipment debugging data. When the interval between adjacent effective timestamps is greater than the continuity breakpoint, the current continuous observation interval ends and subsequent effective observations are used as new continuous observation intervals. The minimum observation duration and subsequent time statistics do not cross the continuity breakpoint accumulation. When only a single particle spectrum observation can be obtained in the current acquisition segment, the correspondence between continuous observations in the local area is not established, and the particle does not enter the cross-particle source migration judgment.
[0025] When identifying particles, the location, contour, and main spectral features of the particle region at adjacent sampling times are extracted. Candidate particles are formed based on the motion direction and displacement range of the previous valid time. The contour correspondence and main spectral differences of the candidate particles are calculated. Forward and reverse associations are performed respectively. When both directions uniquely point to the same particle, the original particle identity is continued. When the association results are not unique, the identity of the most recent valid particle is retained, and the use of the current observation to update the anomaly source is paused. The particle identity record synchronously saves the sampling time, particle boundary, and centroid position for subsequent contact candidate event processing.
[0026] The specific operation for identifying particles and establishing continuous observation correspondence in local areas under observable conditions is as follows: Within the area where the particle identity has been determined, local areas are divided according to local spectral boundaries and spatial connectivity. Each local area is associated with the image spatial range, actual reflectance spectrum, sampling time, and observation status. After compensating for the overall particle displacement in the local areas at adjacent effective times, normalized position change, local spectral shape change, and adjacent structure change are formed respectively. Normalized position change is formed by calculating the image distance between the centers of two local areas and dividing it by the diameter of the equal-area circle obtained by converting the visible area of the current particle. When the result is greater than 1, it is taken as 1. Local spectral shape change is formed by first dividing the effective band reflectance spectra of the two local areas by the sum of their respective effective band reflectance values, and then calculating 1 / 2 of the sum of the absolute differences of the normalized spectrum band by band, forming a spectral shape change in the range of 0 to 1. When the sum of the effective band reflectance values of any local area is 0, the local area is recorded as an invalid local observation, and no local spectral shape change is calculated.
[0027] The change in adjacency structure is formed by the difference in the number of adjacencies and the difference in the adjacency distance sequence: First, divide the absolute value of the difference in the number of adjacent regions between the two local regions by the larger of the two adjacent quantities. If both adjacent quantities are 0, this term is set to 0. Then, take the three adjacent regions closest to the center of the current local region, divide the center distance by the diameter of the circle with equal area of the particle, and sort them in ascending order of distance. If there are fewer than three, fill in the gaps with 1. Calculate the average of the absolute differences of the corresponding terms of the two distance sequences. Take the average of the difference in the number of adjacent regions and the difference in the adjacent distance sequence and limit it to the range of 0 to 1. This is taken as the change in the adjacent structure. Multiply the normalized results of the three terms by their corresponding weights and sum them to form the local corresponding cost. The preferred weights for position change are 0.35 to 0.5, for spectral change are 0.3 to 0.45, and for adjacent structure change are 0.15 to 0.3. These values are only taken in combinations where the sum of the three weights is 1. The preferred values are 0.4, 0.35, and 0.25, respectively.
[0028] Using the correct corresponding local regions confirmed by continuous images in non-contact rolling calibration and the non-corresponding candidate local regions that do not belong to the same continuous region, the local correspondence cost is calculated for each candidate weight combination. The 5th percentile of the non-correspondence cost minus the 95th percentile of the correct correspondence cost is used as the separation value. The weight combination with the largest separation value is selected and fixed under the current imaging and transport configuration without online adaptive updates. For each local region in the previous effective time, the region with the smallest local correspondence cost and within the allowable range of local correspondence cost is selected from the candidate regions to form a positive candidate. Then, the reverse correspondence is performed according to the same rules. A continuous observation correspondence is established when the positive and negative candidates are uniquely closed. The upper limit of the local correspondence cost is preferably 0.2 to 0.35, and preferably 0.28. During calibration, the interval between the 95th percentile of the correct correspondence cost and the 5th percentile of the non-correspondence cost is taken as the allowable value interval, preferably the midpoint between the two boundaries. A continuous observation correspondence is not established for the local area when there is no separation interval between the two types of cost distributions.
[0029] Continuous observation correspondence allows local regions to exit the current visible range due to particle rolling. It is preferable to use unbalanced optimal transmission that allows local regions to exit the matching set to form the correspondence weights of local regions at adjacent time points. Only candidate region pairs whose local correspondence cost does not exceed the upper limit of the local correspondence cost are considered as transportable edges. The local correspondence cost is used as the unit transport cost, and the normalized effective observation area obtained by dividing the area of each local region by the area of the visible region of the current particle is used as the transportable quality. The remaining candidate region pairs remain unmatched. The solution aims to minimize the sum of transportation costs and the sum of penalties for mismatched quality. Simultaneously, it restricts the output and input transportation quality of each local region to not exceed the normalized effective observation area of that local region. The penalty cost per unit of mismatched quality is preferably taken as the upper limit of the corresponding local cost. The transportation quality between local regions obtained from the solution is used as the corresponding weight. For the current local region, the corresponding weights of each candidate region are summed and then divided by the normalized effective observation area of that local region. When the ratio is greater than 1, it is taken as 1, forming a carrying capacity within the range of 0 to 1.
[0030] The acceptance threshold is preferably between 0.75 and 0.9, with 0.8 being the most preferred. During calibration, the acceptance and retention distributions of the same region and non-corresponding regions, which have been confirmed by continuous observation, are formed respectively. The threshold is determined by the separation interval between the 5th percentile of the acceptance and retention of the same region and the 95th percentile of the acceptance and retention of the non-corresponding region, which have been confirmed by continuous observation. The midpoint between the two boundaries is preferred. When the two types of distributions overlap, the region corresponding to the overlapping interval is kept in an unobservable state. When the acceptance and retention reaches the acceptance threshold and passes through the reverse unique closure, the local region meets the observable condition. When the local region does not meet the observable condition or the continuous observation correspondence is interrupted, the state of the most recent valid observation is maintained.
[0031] Before anomaly is judged, the observable conditions are determined. When a local anomaly area moves out of the effective imaging range as the particle rolls away, the most recent effective observation results and existing anomaly source records are maintained. After the local area meets the observable conditions again, the verification is restored based on the correspondence of continuous observations. Only when the same local area continuously meets the observable conditions and the correspondence of continuous observations is established, the anomaly response change is written into the pre-contact observation history of the anomaly source. The observation interruption caused by contact occlusion and rolling out of the field of view only changes the observation state.
[0032] The specific operation of identifying anomalous regions and forming anomalous sources with pre-contact observation history based on local reference spectra is as follows: For the local region to be detected that meets the observable conditions, select local regions that are spatially adjacent, have similar contour normalization depths, are not currently identified as anomalous regions, and are not associated with existing anomalous sources from the same particle as normal reference regions. For each effective band, sort the actual reflectance values of each normal reference region in that band according to their numerical values and take the median value. Arrange the median reflectance values of all effective bands in order to form a local reference spectrum. The minimum number of valid normal reference areas is preferably 5 to 12, with 8 being the most preferred. The preferred range is verified value by value through non-contact repeated observation data without material anomalies. The middle value is taken from the number of candidates in which the local reference spectrum remains stable when the perturbation of a single reference region is stable and the reference region is still within the same local curvature range. When the current number of normal reference regions is lower than the minimum effective number, the observation record of the local region to be detected is maintained and abnormal residual spectrum is not formed temporarily.
[0033] When forming the abnormal residual spectrum, a positive numerical stabilization parameter is added to the actual reflectance spectrum and local reference spectrum of the local area to be detected in each effective band. Then, the ratio of the actual reflectance spectrum to the local reference spectrum is calculated and the natural logarithm is taken to obtain the abnormal residual value of the corresponding band. The abnormal residual spectrum is composed of the abnormal residual values of all effective bands. The effective noise floor is formed by repeatedly acquiring and correcting the standard reference surface under the current light source, exposure, and imaging distance. The number of repeated acquisitions is preferably 20 to 50 times, preferably 30 times. For each effective band, the absolute deviation of each reflectance value relative to the median value of the time in that band is calculated. The absolute deviations formed by all effective bands and all repeated acquisitions are sorted by value, and the 95th percentile value is taken as the effective noise floor. The numerical stabilization parameter is preferably 1 to 2 times the effective noise floor, preferably 1.5 times. The final value is updated synchronously with the equipment noise floor. The abnormal residual spectrum calculation is performed when the number of normal reference areas reaches the minimum effective number.
[0034] Using non-contact particle calibration data without material anomalies, normal residual samples are obtained according to the same local reference spectrum and the rules for forming abnormal residual spectra. For each normal residual sample, a fixed number of samples with the closest distance are selected from the normal residual samples formed by other independent calibration units according to the spectral distance. The current sample and samples belonging to the same independent calibration unit as the current sample are excluded, and the median value of the spectral distance is taken as the non-consistency quantity. The number of recent samples is preferably 5 to 15, with 7 being the most preferred. The inconsistencies of all normal residual samples are sorted by value, and the upper quantile boundary is obtained according to the allowable misjudgment ratio, thus forming the upper limit of allowable inconsistency of normal residuals. The allowable misjudgment ratio is preferably 0.03 to 0.08, with 0.05 being the most preferred. This ratio is only used as a calibration ratio for empirical quantile boundaries. Abnormal residual spectra with non-inconsistency not exceeding the upper limit of normal residual non-inconsistency are determined to be within the allowable range of normal residuals; when the non-inconsistency of the current abnormal residual spectrum exceeds the upper limit of normal residual non-inconsistency, the current abnormal residual spectrum is determined to be outside the allowable range of normal residuals.
[0035] During formal testing, the inconsistency amount is calculated for the current abnormal residual spectrum according to the same nearest neighbor distance rule. When the current inconsistency amount exceeds the upper limit of the normal residual inconsistency, the abnormal region is identified, and the continuity of the abnormal residual spectrum is verified along the correspondence of continuous observations. The spectral distance is formed according to the following textual calculation logic: Calculate the residual changes of the two anomaly residual spectra to be compared between adjacent effective bands, calculate the sum of the absolute values of the differences between the corresponding residual changes, and then divide by the sum of the absolute values of the residual changes of the two anomaly residual spectra. When the denominator is 0, both residual change sequences are 0, the spectral distance is 0, and the upper limit of the source continuity is preferably 0.1 to 0.25, preferably 0.15. The actual value is taken as the separation condition that the 95th quantile of the non-contact rolling continuous observation distance of the same local anomaly is lower than the 5th quantile of the distance between the different source residual spectra. The value is taken between the two quantile boundaries, preferably the midpoint.
[0036] In this embodiment, empirical quantiles are all formed using ordinal statistics, without relying on normal distribution or other parameter distributions. Non-contact calibration uses a continuous effective observation of one particle as an independent calibration unit, while contact calibration uses a pair of candidate contact events as an independent calibration unit. Multiple local samples within the same independent calibration unit are first aggregated according to corresponding rules before entering event-level statistics. When the allowable ratio is 0.05, the number of independent calibration units of the same type is preferably 60 to 120, preferably 100. When there are fewer than 60 independent calibration units, the 0.05 tail quantile is not used to form the final decision boundary, and no definite decision dependent on this boundary is formed.
[0037] An anomaly source is considered to have a pre-contact observation history when the anomaly region maintains local correspondence during continuous effective observations, the anomaly residual spectrum is within the allowable range of source continuity, and the effective observation duration accumulated based on actual timestamps reaches the minimum observation duration. The effective observation duration only accumulates the actual time interval within the same continuous observation interval and does not cross continuity discontinuities. The minimum observation duration is preferably 3 to 8 effective sampling periods, with 5 effective sampling periods being preferred. When formally determining the minimum observation duration, the effective observation interval is gradually extended according to the actual time sequence using non-contact continuous observation calibration data of stable anomalies. A representative anomaly residual spectrum is formed within each candidate duration, and the spectral distance is calculated with the representative anomaly residual spectrum formed after further extending the observation. Starting from a certain candidate duration, if the subsequent continuous comparison results are all within the allowable range of source continuity, the candidate duration is taken as the minimum observation duration. The representative residual spectrum of the anomaly source is selected from the effective observation history with the smallest cumulative spectral distance to the other effective anomaly residual spectra.
[0038] After an anomaly source is formed, the particle identity, representative residual spectrum, last effective local region, last effective observation time, observation history before contact, and current observation status are preserved. When the anomaly source enters a temporarily unobservable state, the unobservable physical duration is accumulated from the last effective observation time. Using non-contact rolling calibration data, the duration for which a continuous observation correspondence can be re-established after the same local area has exited the observable range is statistically analyzed. The 95th percentile of the reliably re-identified duration is used as the calibration boundary for the source retention time. The upper limit of the source retention time is preferably 3 to 6 times the minimum observation duration, with 4 times being the preferred value. When the calibration boundary is within this range, the upper limit of the source retention time is corrected based on the calibration boundary. When the calibration boundary exceeds this range, the imaging field of view, transport speed, and particle rolling cycle are reviewed, and a new upper limit of the source retention time suitable for the current configuration is formed. The calibration boundary is not forcibly limited to the preferred range. When the duration of unobservable physical events does not exceed the upper limit of the source retention time, the abnormal source is retained for subsequent analysis. When the duration exceeds the upper limit of the source retention time, the observation history before contact is retained, and the abnormal source is terminated from participating in the new candidate propagation direction judgment.
[0039] When a particle enters a non-independent observable state, the last valid state of the anomaly source is retained. In particular, after the particle boundary enters the boundary indistinguishable state, it is treated as a non-independent observable state. The mixed spectrum formed during the contact is not written into the representative residual spectrum of the anomaly source and the observation history before contact. The particle identity, the correspondence of continuous observations, and the anomaly source are then used as inputs for the contact candidate event analysis.
[0040] The specific operation for determining contact candidate events and contact areas based on the continuous change of adjacent particles from independent and indistinguishable to separated is as follows: read the identity records of adjacent particles, calculate the minimum distance between the boundaries of two particles at each time step, and form the spatial sampling size based on the actual length of a single pixel determined by the imaging plane calibration ruler; the effective point diffusion diameter is formed by converting the full width at half maximum (FWHM) of the point diffusion response obtained by the point target or edge calibration under the current focal plane; the single-sided boundary recognition error is formed by the normal distance between the segmentation boundary of the known boundary reference particle and the reference boundary, and the 95th percentile of the absolute value of the normal distance is taken. The maximum value among the spatial sampling size, the effective point diffusion diameter, and twice the single-sided boundary recognition error is taken as the equivalent spatial resolution scale of the current imaging configuration; the boundary indistinguishable distance is preferably 1 to 1.5 times the equivalent spatial resolution scale, preferably 1.2 times. The actual value is determined by progressively reducing the interval through the particle boundary calibration data with known physical intervals, determining the actual boundary when the independent background interval changes from stable and identifiable to unstable and identifiable, and using it fixedly under the same imaging configuration.
[0041] Within a continuous valid timeframe before entering the indistinguishable boundary distance range, if the distance between the end boundaries of the current adjacent particles is less than the distance between the starting boundaries, and the number of valid timeframes in which the boundary distance decreases is greater than the number of valid timeframes in which the boundary distance increases, a continuous approach trend is determined. Short-term reverse fluctuations caused by particle rolling are processed according to the allowable local swing amount formed by subsequent calibration. If adjacent particles have a continuous approach trend, and then the boundary distance enters the indistinguishable boundary distance range and local background intervals disappear, contours connect, or local occlusion occurs, and a contact candidate event is formed when the particles are subsequently separated again and their original particle identities are restored, the moment when the particles first enter the indistinguishable boundary state is taken as the contact start moment, and the first valid moment when the independent particle identity is restored is taken as the contact end moment. The contact candidate event is closed only at the contact end moment. The temporary results formed before the closure are not used as source confirmation results, nor do they drive sorting execution.
[0042] When determining the contact area, we trace back to the consecutive moments before the start of the contact when the two particles could still be observed independently. For each traced moment, we first obtain the global minimum boundary distance between the two particles, and then select the local boundary region whose local boundary distance is no greater than the sum of the global minimum boundary distance and the indistinguishable boundary distance as the candidate boundary region at that moment. After eliminating the joint translation of two particles, only candidate boundary regions whose local boundary spacing converges to the boundary indistinguishable distance over time and whose time correspondence can be maintained through continuous observation are retained. The retained local boundary regions are continuously organized according to the sampling time to obtain the contact region of the current contact candidate event. Each local region of the contact region is bound to the original particle identity and the corresponding sampling time. After the particle enters the boundary indistinguishable state, the addition of new contact region local correspondences is stopped to avoid writing the mixed region in the fusion contour back into the contact region before contact.
[0043] The specific operation for determining whether an anomaly source has entered the contact area and determining the candidate propagation direction along the continuous observation correspondence is as follows: For each anomaly source that is still within the effective holding time, starting from the last effective local area, trace along the existing continuous observation correspondence to the current contact area, without re-establishing another set of local correspondences in the contact processing stage, and for each effective time in the tracing path, calculate the intraparticle normalized geodesic distance from the local area where the anomaly source is located to the contact area at the same time.
[0044] The normalized geodesic distances at adjacent moments in the tracking path are compared sequentially. The normalized geodesic distance is formed by dividing the intraparticle geodesic distance from the local area to the contact area by half of the circumference of the current particle's equal area circle. When the result is greater than 1, it is taken as 1. When the later moment changes away from the contact area relative to the previous moment, the allowable local swing amount formed by the non-contact rolling calibration is first deducted, and only the part exceeding the allowable local swing amount is retained. The excess part corresponding to all effective adjacent observation pairs is summed and divided by the number of effective adjacent observation pairs to form the average approach violation amount in the range of 0 to 1. The tracking path is terminated when the number of effective adjacent observation pairs is 0. The allowable local swing amount is preferably 0.02 to 0.08, preferably 0.05. The actual value is taken as the 95th percentile of the reverse normalized displacement within a single effective sampling period of a local area in the non-contact rolling calibration sequence, and corrected within the candidate range. Then, the minimum value of the bearing and holding amount of each local area in the tracking path is taken. The average approach violation amount is multiplied by the positive approach violation suppression parameter and the negative exponent value is taken as the attenuation coefficient. Then, the minimum bearing and holding amount is multiplied by the attenuation coefficient to form the path holding amount. The approach violation suppression parameter is preferably 2 to 5, preferably 3. Using synchronized high-resolution images, the paths to the contact side and the unreached paths are identified. A path retention distribution is formed for each candidate parameter. The candidate value with the largest interval between the 5th percentile of the independently confirmed reached path and the 95th percentile of the unreached path is selected and fixed for use under the current imaging and transport configuration.
[0045] When there are multiple feasible tracking paths for the same anomaly source, the path with the largest retention value is selected to form the contact reachability value. When there is no continuous observation path that can enter the contact area, the contact reachability value is set to 0. When the local area corresponding to the anomaly source spatially overlaps with the contact area at the same time, it is determined that the anomaly source has entered the contact area, and the first entry time is recorded. If the continuous observation correspondence is interrupted before the anomaly source enters the contact area, the tracking path is terminated. If the anomaly source has already entered the contact area and the continuous observation correspondence is interrupted due to the continued approach of particles, the already formed contact arrival record is maintained.
[0046] Candidate propagation directions are established when an anomaly source enters the contact area before the continuous observation correspondence is interrupted, the contact reachability reaches the contact reachability threshold, and the anomaly source is still within the source retention upper limit. The contact reachability threshold is preferably 0.65 to 0.85, preferably 0.75. During calibration, the reached path and the unreached path are confirmed using synchronous high-resolution images to form a contact reachability distribution. When the 5th percentile of the contact reachability of the confirmed reached path is higher than the 95th percentile of the contact reachability of the unreached path, the threshold value interval is taken between the two percentile boundaries, preferably the midpoint. When the two types of distributions overlap, the path corresponding to the overlapping interval is kept in the unconfirmed arrival state, and a candidate propagation direction is formed without adjusting the threshold. The same judgment is performed on the two possible propagation directions. After the candidate propagation direction is established, if the continuous observation correspondence is interrupted due to particle proximity, the candidate propagation direction is maintained, and the contact candidate event, contact area, anomaly source, candidate propagation direction, and the time when the anomaly source enters the contact area are transmitted to the source interpretation processing after contact.
[0047] When three or more particles simultaneously enter the same indistinguishable boundary region without being able to determine the order of their approach, and the images before the start of contact cannot uniquely identify the paired contact region, the complex contact state is recorded and the process is entered into the unconfirmed source processing stage. If the original particle identity cannot be restored after the contact ends, no effective paired candidate propagation direction is formed, and this processing does not change the pre-contact observation history that has already been formed.
[0048] When the candidate contact event ends and the two particles become observable again, the changes after contact are first explained by the pre-contact spectral state of the candidate particles whose propagation direction points to the particles, and then the remaining anomalies are explained by the source of the anomalies entering the contact region. The effective observations after contact begin from the first effective moment when the particles regain their independent identity. The verification interval ends when any particle enters a new contact candidate event, when the maximum effective verification time is reached, or when all candidate propagation directions in the current contact candidate event have obtained the effective observations required to complete the comparison. The maximum effective verification time is preferably 2 to 4 times the minimum observation time, preferably 3 times, and is corrected with the 95th percentile of the duration at which the local changes after contact in the confirmed material transfer calibration event can still uniquely correspond to the current contact candidate event. If this upper limit is shorter than the minimum effective observation time required to complete the pre- and post-contact interpretation contribution, the current anomaly source remains unconfirmed. When the effective observation time of a single anomaly source reaches the minimum effective observation time required to form the pre- and post-contact interpretation contribution, the continued accumulation of observations for that anomaly source is stopped, without changing the verification of other anomaly sources in the same contact candidate event.
[0049] On the particle side where the anomaly originates, only the post-contact region that can re-establish a continuous observational correspondence with the local region of the anomaly origin before contact is used; if the observable conditions of this region cannot be restored, no interpretation decline is formed. On the particle side where the candidate propagation direction points, starting from the contact region, a local region that re-satises the observable conditions after contact and maintains a continuous spatial correspondence with the contact region is selected. Post-contact anomalies that do not have a continuous spatial correspondence with the current contact region do not enter the source interpretation of the current candidate propagation direction.
[0050] The candidate propagation direction points to the particle's own spectral state before contact, corresponding to the position and observation conditions of the contact area. The anomaly after contact is interpreted by its own spectral state. In the specific calculation, historical local areas that can be traced back to the current contact side area along the continuous observation correspondence are selected from the effective local area of the particle before contact begins. When the particle rolling cannot form a direct traceback, according to the actual time interval between the candidate historical local area and the current contact side area, only historical local areas whose normalized position change does not exceed the 95% quantile boundary of the same area confirmed by the continuous observation correspondence under non-contact conditions and whose position change is in an effective observable state are selected. The anomaly residual spectrum of the selected historical local area is formed according to the same local reference spectrum rule, which constitutes the set of its own spectral states. The post-contact anomaly residual spectrum is reconstructed using non-negative combinations of its own spectral state. All combination coefficients are not less than 0 and the sum of the coefficients is 1. By solving for the combination coefficients that minimize the total absolute difference between the reconstructed spectrum and the post-contact anomaly residual spectrum in the effective band, the interpretation result of the self-spectral state is obtained. The post-contact anomaly residual spectrum is subtracted from the reconstructed spectrum band by band to form the residual anomaly. When a historical local area that meets the location and observation conditions cannot be obtained, no effective self-spectral state interpretation is formed.
[0051] Using independently confirmed contact calibration events where no material transfer occurred, residual anomaly calibration samples are formed according to the interpretation process of the same spectral state. When comparing two residual anomalies, the absolute values of the differences in the corresponding effective bands are summed and then divided by the sum of the absolute values of the two residual anomalies. When the denominator is 0, both residual anomalies are 0, and the normalized spectral absolute difference distance is set to 0. For each residual anomaly calibration sample, a fixed number of samples with the closest distance are selected from the residual anomaly calibration samples formed by other independent contact events, excluding samples formed by the current event, and the median distance is calculated as the median value. Non-inconsistency quantity; the number of recent samples is preferably 5 to 15, preferably 7, and fixed within the same calibration batch. The non-inconsistency quantities of all non-material transfer calibration samples are sorted by value, and the upper quantile boundary is obtained according to the allowable false rejection ratio, thereby forming the self-interpretation allowable range. The allowable false rejection ratio is preferably 0.03 to 0.08, preferably 0.05. When the current remaining abnormal non-inconsistency quantity is within the self-interpretation allowable range, the self-spectral state interpretation is maintained; when it exceeds the self-interpretation allowable range, the source is interpreted based on the abnormal source that has entered the contact area and corresponds to the candidate propagation direction.
[0052] Before anomaly sources are interpreted, a spectral shape identification check is performed on the residual spectrum representing the anomaly source and the spectral state of the candidate propagation direction pointing to the particle. The same check is performed on multiple anomaly sources within the same candidate propagation direction. Co-source residual spectrum pairs consist of two valid observations confirmed to belong to the same anomaly source under non-contact conditions along a continuous observation correspondence. Heterogeneous residual spectrum pairs consist of different local anomaly sources, and each anomaly source has an independent pre-contact observation history. The co-source and heterogeneous residual spectrum pairs under the current valid band are then used to further analyze the results. A spectral distance distribution is formed. When the 95th percentile of the same source distance is lower than the 5th percentile of the different source distance, the range between the two quantile boundaries is taken as the value range of the source identification threshold. The midpoint is preferred. Under the normalized spectral distance condition, the preferred range of the source identification threshold is 0.1 to 0.25, preferably 0.15. This is only used when the calibration distribution intersects with this preferred range. When the spectral distance to be compared is not higher than the source identification threshold, the source remains unconfirmed. When the two types of distance distributions overlap, the source within the overlapping range remains in a non-uniquely identifiable state.
[0053] For the remaining anomalies that pass the identifiability check, only anomaly sources that have entered the contact area and have the current candidate propagation direction are invoked. As one implementation method, the residual spectra representing each anomaly source are combined with non-negative coefficients, where all source coefficients are not less than 0 and the sum of the coefficients is not greater than 1. The total absolute value of the reconstructed residuals corresponding to each group of source coefficients is calculated. This total source coefficient is multiplied by a positive source contribution contraction parameter and then added to the total absolute value of the reconstructed residuals. The source coefficient combination that minimizes this sum is selected to form the anomaly source interpretation result. This process ensures that the source contribution contraction parameter is consistent with the number of effective bands and the residual amplitude. To achieve the desired fit, the median of the total absolute value of the remaining anomalies after interpreting the spectral state of events without material transfer calibration is first taken as the residual scale benchmark. Then, the source contribution shrinkage parameter is set to 0.05 to 0.2 times the residual scale benchmark, preferably 0.1 times. The final value is calibrated value by value within the candidate range. For each candidate value, the number of events that form external source interpretations and the number of events that do not form corresponding source interpretations in events without material transfer are counted according to the same source interpretation rules. The candidate value with the smallest sum of the two types of event numbers is selected. When there are ties, the candidate value with the larger value is selected.
[0054] When determining the explanation decline and explanation generation of the same anomaly source and forming candidate source transit relationships, the same source explanation rules are applied to the corresponding regions before and after contact between the particle where the anomaly source is located and the candidate propagation direction pointing to the particle. For each region to be compared, the local anomaly residual is first explained using the current particle's own spectral state before contact, and then the remaining anomaly formed in the first stage is explained using the current anomaly source to be evaluated. When calculating the explanation contribution of the particle where the anomaly source is located, the state corresponding to the current anomaly source is excluded from the particle's own spectral state set. The candidate propagation direction pointing to the particle's own spectral state set does not include anomaly sources from the particle where the anomaly source is located.
[0055] The pre-contact interpretation contribution is formed in the last effective observation area before contact with the particle where the anomaly source is located. The post-contact interpretation contribution is formed in the area that becomes observable after contact and establishes a continuous observation correspondence with the pre-contact local area. For each effective local observation participating in the comparison, the non-negative coefficient of the current anomaly source obtained from the source interpretation solution is taken as the single source interpretation coefficient. The normalized effective observation area of the local area is multiplied by the holding quantity to form the original observation weight. Then, the sum of all original observation weights in the same comparison state is normalized to obtain the observation weight with a total sum of 1. The explanation contribution for a given state is formed by multiplying the explanation coefficients of each single source by their corresponding observation weights and summing the results. No explanation contribution is formed when the sum of the original observation weights is 0. If the explanation contribution before contact with the particle where the anomaly source is located is greater than 0, the explanation contribution before contact is subtracted from the explanation contribution after contact. If the difference is negative, it is counted as 0. The difference is then divided by the explanation contribution before contact to obtain the explanation decrease in the range of 0 to 1. No explanation decrease is formed when the explanation contribution before contact is 0. For candidate propagation directions pointing towards the particle side, explanation contributions before contact and after contact are formed respectively. The explanation contribution after contact is subtracted from the explanation contribution before contact. If the difference is negative, it is counted as 0 to form the explanation generation in the range of 0 to 1. If any valid observations before or after contact are missing, the corresponding explanation decrease or explanation generation is not calculated.
[0056] The apparent explanation decrease sample and apparent explanation generation sample are generated from the no-material-transfer calibration event, and the two sets of samples are sorted by value. The upper quantile boundary of each is obtained according to the allowable false confirmation ratio, which is used as the source decrease threshold and the source generation threshold, respectively. The allowable false confirmation ratio is preferably 0.03 to 0.08, preferably 0.05. The source decrease threshold and the source generation threshold do not deviate from the preset fixed value of the calibration data. When the 95th quantile value of the no-material-transfer sample is lower than the 5th quantile value of the corresponding change of the confirmed material-transfer sample, the threshold value range is taken between the two quantile boundaries, preferably the midpoint. When the two types of distribution cannot be separated, the source is kept unconfirmed. When the explained decrease exceeds the source decrease threshold and the explained generation exceeds the source generation threshold, the joint change of explained decrease and explained generation is judged.
[0057] Using confirmed material transfer events, two-dimensional calibration samples for interpretation decline and interpretation generation are formed under the same fertilizer specifications, imaging parameters, transport speed range, and transport configuration, following the same processing. For each two-dimensional calibration sample, 5 to 15 samples with the closest two-dimensional Euclidean distance are selected from the two-dimensional samples formed by other independent material transfer events, preferably 7. Samples formed by the current event are excluded. The median of the nearest neighbor distance is calculated as the two-dimensional inconsistency quantity, and the upper boundary of the two-dimensional inconsistency is obtained according to the allowable mismatch ratio, thereby forming the joint allowable range of material transfer. The joint allowable range of material transfer is limited to the two-dimensional region where the interpretation decline exceeds the source decline threshold and the interpretation generation exceeds the source generation threshold. During formal testing, the median of the nearest neighbor distance of the two-dimensional point formed by the current interpretation decline and interpretation generation is calculated relative to the material transfer calibration sample according to the same rules. If the median does not exceed the upper boundary of the two-dimensional inconsistency, the current two-dimensional point is determined to be within the joint allowable range of material transfer. The allowable mismatch ratio is preferably 0.03 to 0.08, preferably 0.05.
[0058] When the explained descent exceeds the source descent threshold, the explained generation exceeds the source generation threshold, and the two-dimensional point formed by the explained descent and explained generation is within the joint allowable range of material transfer, a candidate source transfer relationship is formed. The candidate source transfer relationship saves the current contact candidate event, candidate propagation direction, anomalous source, explained descent, explained generation, effective observation area before and after contact, its own spectral state interpretation results, and source interpretation results. Subsequent non-transfer interpretations and transfer interpretations directly read these fixed data without changing the contact area, candidate propagation direction, and anomalous source set. A candidate source transfer relationship is not formed when there is unilateral change, insufficient observation, unidentifiable source, or joint change that exceeds the joint allowable range of material transfer.
[0059] For candidate source transfer relationships, non-transfer interpretation and transfer interpretation are established in the same observation area, and the reconstruction errors are compared. The specific operation is as follows: the observation area before and after the contact of the two particles is actually used when the candidate source transfer relationship is formed, and the effective band, the spectral state of the particle itself, the boundary of the source interpretation parameters, and the identifiable state of the source are fixed at the same time. The non-transfer interpretation is reconstructed based on the spectral state of the particle itself; the transfer interpretation sets the cross-particle connection of the current anomaly source under the same observation area, the same parameter constraints, and the same reconstruction rules. The observation area and common parameters are not changed between the two interpretations.
[0060] For each local area within a fixed observation area, the actual anomaly residual spectrum and the reconstructed residual spectrum formed by the current interpretation are obtained respectively. The local reconstruction error is formed by the combined amplitude deviation and spectral shape deviation: First, the absolute values of the differences between the actual anomaly residuals and the reconstructed residuals of each effective band are taken and summed, and then divided by the sum of the absolute values of the actual anomaly residuals and the sum of the absolute values of the reconstructed residuals. When the denominator is 0, both the actual anomaly residual spectrum and the reconstructed residual spectrum are 0, and the amplitude deviation is 0. Then, according to the spectral shape distance rule used for the continuity verification of the anomaly residual spectrum, the difference in the first-order band variation between the actual anomaly residual spectrum and the reconstructed residual spectrum is calculated. The amplitude deviation and the spectral shape distance are multiplied by two non-negative complementary weights respectively and summed to form the local reconstruction error in the range of 0 to 1, and the sum of the two complementary weights is 1.
[0061] The amplitude deviation weight is preferably between 0.45 and 0.65, with 0.55 being the most preferred. The spectral deviation weight is the value obtained by subtracting the amplitude deviation weight from 1. The final weight is obtained by comparing the repeated observation samples that have been confirmed to be in the same physical state with the heterogeneous calibration samples that are reconstructed using non-corresponding anomaly sources. Under the condition of ensuring the stability of the repetition error in the same state, the candidate value with the largest separation degree of reconstruction error between the two types of samples is selected.
[0062] When multiple local regions exist on the same particle side, the rule of forming observation weights using the effective observation area and the retention amount is followed: the normalized effective observation area of each local region is multiplied by the retention amount to form the original observation weight, and then divided by the sum of all original observation weights on that particle side to obtain a non-negative observation weight with a total sum of 1; when the sum of the original observation weights is 0, no reconstruction error is formed on that particle side, and the particle side reconstruction error is calculated using logarithmic exponential aggregation: each local reconstruction error is multiplied by the positive high residual emphasis parameter, the exponent is taken, and then the sum is weighted according to the observation weights, and the natural logarithm of the weighted sum is taken. Divide by the high residual emphasis parameter, which is preferably 3 to 6, and more preferably 4. For each candidate value, calculate the particle-side reconstruction error fluctuation of repeated measurements of the same non-material transfer contact event, and at the same time calculate the aggregation error difference between the calibration area containing persistent local high residuals and the normal area. Among the candidate values where the repeated fluctuation is within the allowable range of independent verification data formation, select the candidate value with the largest aggregation error difference. The reconstruction error without transfer interpretation is the larger of the two particle-side aggregation values under non-transfer interpretation, and the reconstruction error with transfer interpretation is the larger of the two particle-side aggregation values under transfer interpretation.
[0063] When a reconstruction advantage is formed based on the reconstruction error without transfer interpretation and the reconstruction error with transfer interpretation, the error difference is formed by subtracting the reconstruction error with transfer interpretation from the reconstruction error without transfer interpretation. When the sum of the reconstruction error without transfer interpretation and the reconstruction error with transfer interpretation is greater than 0, the original reconstruction advantage is obtained by dividing the error difference by the sum of the two reconstruction errors. When both reconstruction errors are 0, the original reconstruction advantage is set to 0, so that the two interpretations remain indistinguishable by the reconstruction error. The original reconstruction advantage is then corrected for the fitting gain of the additional source degrees of freedom.
[0064] When correcting the fitting gain of additional source freedom for calibration events without material transfer and forming source confirmation results, the additional source freedom is determined based on the number of additional independent source interpretation parameters actually included in the transfer interpretation relative to the no-transfer interpretation. Material transfer-free calibration events that have been independently confirmed not to have occurred, but still form candidate source transfer relationships according to the same particle identity association as formal detection, contact candidate event analysis, and dual particle source interpretation, are selected as difficult material transfer-free calibration events. The same no-transfer interpretation and transfer interpretation competition as formal detection is performed on difficult material transfer-free calibration events under different additional source freedom levels to form the original reconstruction advantage samples for each additional source freedom level.
[0065] For each additional source degree of freedom level with valid, difficult, and non-material-transferable calibration samples, the median of the original reconstructed dominant samples for that level is taken; if the median is less than 0, it is taken as 0, forming the initial fitting gain for that level. Then, a non-decreasing envelope is formed on the initial fitting gain according to the additional source degree of freedom from low to high, obtaining the fitting gain corresponding to each level. The current event prioritizes the use of the fitting gain that is consistent with its additional source degree of freedom. If there are insufficient calibration samples for the current level, the nearest calibrated level with an additional source degree of freedom not lower than the current level is used. Since the fitting gain has already formed a non-decreasing envelope according to the additional source degree of freedom, this substitution only maintains or increases the fitting gain correction intensity undertaken by the current event. If no usable calibration level is formed, the source confirmation result is set to source unconfirmed.
[0066] The original reconstruction advantage of each difficult calibration event without material transfer is subtracted from the corresponding fitting gain to form the corrected calibration reconstruction advantage. The corrected calibration reconstruction advantages of the same additional source degree of freedom level are sorted by value, and the upper quantile boundary is obtained according to the allowable misconfirmation ratio. A unified conservative upper boundary is taken for each additional source degree of freedom level that has been calibrated to form a normal competition range. The allowable misconfirmation ratio is preferably 0.03 to 0.08, preferably 0.05. For the current event, the original reconstruction advantage is subtracted from the fitting gain corresponding to the current additional source degree of freedom to obtain the corrected reconstruction advantage. If the effective calibration sample size of the current additional source degrees of freedom level is insufficient to stably form the tail fraction, then a calibration level no lower than the current additional source degrees of freedom is invoked. If no available grade exists, keep the source unconfirmed.
[0067] Using confirmed material transfer events, under the same fixed observation area and parameter constraints as formal testing, transfer interpretation reconstruction error calibration samples are formed. The calibration samples are sorted according to reconstruction error, and the upper quantile boundary is obtained according to the allowable rejection ratio to form the allowable range of transfer reconstruction error. Using difficult material transfer-free calibration events, no transfer interpretation reconstruction error calibration samples are formed according to the same statistical scale, and the allowable range of no transfer reconstruction error is obtained according to the allowable rejection ratio. Then, the interpretation descent and interpretation generation of difficult material transfer-free calibration events are used to form a two-dimensional sample. For each two-dimensional sample, select 5 to 15 samples with the closest two-dimensional Euclidean distance from the remaining two-dimensional samples formed by other independent difficult material transfer events, preferably 7 samples, exclude samples formed by the current event, calculate the median of the nearest neighbor distance as the two-dimensional inconsistency quantity, and obtain the upper boundary of the two-dimensional inconsistency according to the allowable mismatch ratio; the two-dimensional points formed by the interpretation decrease and interpretation generation of the formal event are within the joint allowable range of no transfer when their inconsistency quantity does not exceed the upper boundary. The allowable false rejection ratios for both transfer interpretation and no transfer interpretation are preferably 0.03 to 0.08, preferably 0.05. The allowable mismatch ratio for the joint allowable range of no transfer is preferably 0.03 to 0.08, preferably 0.05. Each allowable range is fixed and used while the product type, imaging configuration, and delivery status remain unchanged.
[0068] When the corrected reconstruction advantage exceeds the normal competitive range, and the transfer interpretation reconstruction error is within the allowable range of transfer reconstruction error formed by the confirmed material transfer event calibration, the source confirmation result is source migration confirmation. When no source migration confirmation is formed, and the no-transfer interpretation reconstruction error is within the allowable range of no-transfer reconstruction error formed by the difficult no-material transfer calibration event, and the combined change of the explanation decrease and the explanation generation is within the allowable range of no-transfer joint change formed by the difficult no-material transfer calibration event, and the transfer interpretation reconstruction error exceeds the allowable range of transfer reconstruction error, the source confirmation result is no transfer confirmation. When no source migration confirmation is formed or no transfer confirmation is formed, the source confirmation result is uniformly unconfirmed. Among them, when the non-transfer interpretation reconstruction error is within the allowable range of non-transfer reconstruction error, the transfer interpretation reconstruction error is within the allowable range of transfer reconstruction error, and the corrected reconstruction advantage is within the normal competition range, the source remains unconfirmed and does not form a definite source.
[0069] The following conditions constitute source unconfirmation: incomplete fixed observation area; inability to restore observable conditions in the corresponding area after contact with the particle from the anomalous source; inability to form an effective spectral state for the particle pointing to the candidate propagation direction; inability to uniquely identify the anomalous source; simultaneous fulfillment of source migration confirmation conditions by multiple conflicting source combinations; non-transfer interpretation reconstruction error exceeding the allowable range of non-transfer reconstruction error and transfer interpretation reconstruction error exceeding the allowable range of transfer reconstruction error; and lack of available calibration levels for the additional source degrees of freedom. After a new contact candidate event occurs, the effective verification of the current contact candidate event terminates, and the new event re-forms the contact area and candidate propagation direction. The data of the latter event is not written into the already completed source confirmation results.
[0070] Based on the source confirmation results, the particle quality assessment admission type for abnormal evidence is determined and the sorting results are output. The particle quality assessment admission type is the routing result of the abnormal identification result into the existing product quality rules, and is not directly used as a qualified or unqualified conclusion. The existing product quality rules are pre-set according to the current fertilizer product inspection standards and production line quality configuration, and remain fixed during the source confirmation process. When the source confirmation result is source migration confirmation, the current abnormal identification result is written into the corresponding quality item as the external attachment abnormal evidence of the current carrying particle, while retaining the particle affiliation record of the abnormal source before contact. When the source confirmation result is no transfer confirmation, each particle enters the corresponding quality item according to the currently determined abnormal identification result. When the source confirmation result is source unconfirmed, the abnormal identification result and the current carrying particle remain unchanged, and the abnormal evidence is written into the pre-configured re-inspection process or conservative sorting rules. Abnormal sources that have not formed contact candidate events within the entire observation period, as well as abnormal sources that have formed contact candidate events but have not established candidate propagation directions, retain the current particle affiliation and enter the particle quality assessment according to the abnormal identification result.
[0071] The sorting execution device receives particle identity, source confirmation result, particle quality judgment access type, and particle quality judgment result. It reads the current conveying position, sorting execution position, current conveying speed, and equipment execution delay of the corresponding execution channel. When the current conveying speed is greater than 0 and the sorting execution position is downstream of the particle's current conveying direction, the estimated time when the particle arrives at the sorting execution position is determined based on the remaining conveying distance and the current conveying speed. The estimated time is then advanced by the equipment execution delay to obtain the execution trigger time. When the current conveying speed is not greater than 0 or the sorting execution position is not downstream of the particle's current conveying direction, no execution trigger time is generated. The equipment execution delay directly reads the equipment calibration value of the current sorting execution channel under the current conveying speed configuration, and each execution channel uses its own calibration value. When the execution channel or conveying speed configuration changes, the corresponding calibration value is reread. When the current conveying speed is updated before the execution trigger, the execution trigger time is recalculated based on the latest conveying position and conveying speed. After the execution trigger time is formed, the source confirmation result is allowed to enter the automatic sorting of the current particle only if the source confirmation has been completed, the particle identity is continuously valid, and the execution trigger time is later than the current time. If the execution trigger time has passed or the particle identity is interrupted after the source confirmation, the source confirmation record is retained, but the automatic sorting action of the current particle is not driven by the result, and it enters the pre-configured re-inspection or conservative processing.
[0072] If an anomaly after source migration is confirmed continues to meet the observable conditions and maintains a continuous observation correspondence on the current carrier particle, after the particle re-enters an independent observable range, an anomaly source with a pre-contact observation history is re-formed according to the same local reference spectrum, the continuity of the anomaly residual spectrum, and the minimum observation duration rules. When the current carrier particle subsequently enters a new contact candidate event, the new anomaly source continues to perform source analysis according to the new contact area and candidate propagation direction, while retaining the confirmed historical migration relationship.
[0073] The aforementioned numerical ranges are all preferred ranges under the current normalization definition and current equipment configuration. These preferred values are used for initial calibration, and the final values are determined by the corresponding independent calibration data. The calibration set used to form thresholds, allowable ranges, and empirical quantiles, and the verification set used to verify the direction of judgment, use different independent calibration units. The same contact event or the same non-contact continuous observation interval should not be simultaneously included in the calibration set and verification set. The allowable false positive rate, allowable false rejection rate, allowable mismatch rate, and allowable false confirmation rate are all preferably between 0.03 and 0.08, with 0.05 being the preferred value. When 0.05 is used, the same type of independent calibration unit... The number of quantiles is preferably 60 to 120, with 100 being the most preferred. 60 independent calibration units correspond to approximately 3 tail sequence statistical positions, and 100 independent calibration units correspond to approximately 5 tail sequence statistical positions. This is used to reduce the influence of a single extreme sample directly determining the 5% tail quantile boundary. When the calibration data cannot support the candidate value range, the quantile boundary cannot be stably formed, or the two types of calibration distributions cannot form a separation relationship in the predetermined direction, the determination of the direction is not determined by expanding the threshold, lowering the threshold, or reversing the determination, and the affected object remains unobservable, unidentifiable, or has an unconfirmed source.
[0074] When changes occur in the light source configuration, exposure parameters, imaging distance, effective band set, spatial sampling conditions, conveying speed, or fertilizer particle surface structure, the normal residual distribution, continuous observation corresponding error distribution, particle boundary identification error distribution, contact reachability distribution, and source interpretation error distribution are reviewed. If any review result exceeds the allowable range of the original calibration data, the affected calibration parameters are regenerated. Material transfer calibration events and non-material transfer calibration events are generated using controlled contact tests, and whether material transfer across particles occurs is confirmed through independent synchronous high-resolution imaging or offline surface verification. When two independent verification methods are used simultaneously and the conclusions are inconsistent, the contact event is not included in the material transfer or no material transfer calibration set. The calibration label is not generated using the source verification results formed by this method. After recalibration, the established mathematical meaning and judgment direction of each parameter are maintained: a decrease in the local correspondence cost value indicates that the correspondence is closer; an increase in the values of the retention quantity and the contact reach quantity indicates that the evidence of continuous observation and contact reach is more sufficient; a decrease in the spectral distance value indicates that the spectral shape is closer; a decrease in the reconstruction error value indicates that the interpretation result is closer to the actual observation; an increase in the corrected reconstruction advantage value indicates that the advantage of the transfer interpretation is more obvious compared to the no-transfer interpretation. When the calibration result is inconsistent with the established judgment direction, the corresponding parameters are stopped and recalibrated.
[0075] In addition to the aforementioned unbalanced optimal transmission, continuous observation correspondence can also employ sparse graph matching that allows local regions to remain unmatched, or bidirectional nearest neighbor matching that sets an upper limit on the allowable cost of local correspondence. When using the alternative matching method, the aforementioned normalized position change, local spectral shape change, and adjacent structure change are still used to form candidate correspondences, and forward and reverse unique closure verification is performed. The candidate propagation direction is still formed according to the aforementioned normalized geodesic distance within the particle, allowable local swing amount, path retention amount, and contact reachability threshold. The interpretation of the spectral state and the interpretation of the anomaly source are performed according to the aforementioned non-negative coefficient constraints. The alternative implementation does not change the processing order of anomaly source entering the contact area, candidate propagation direction, priority interpretation of spectral state, joint judgment of interpretation decline and interpretation generation, and no transfer interpretation and transfer interpretation competition in the same observation area.
[0076] The processing chain uses the anomaly sources formed by continuous observations before contact as a historical benchmark, and uses the entry of the anomaly source into the current contact area as the admission condition for the candidate propagation direction. After contact, it generates an explanation decrease on the particle side where the anomaly source is located and an explanation that the candidate propagation direction points to the particle side. Then, it compares the no-transfer explanation and the transfer explanation in the same observation area, and corrects the fitting gain corresponding to the additional source degrees of freedom, so that the source confirmation results and the particle quality determination admission type maintain a continuous data correlation.
[0077] This invention also discloses a fertilizer particle spectral identification, sorting, and detection system, comprising: The anomaly source establishment module acquires continuous hyperspectral images of fertilizer particles, associates particle identities, establishes a local continuous observation correspondence under observable conditions, identifies anomaly areas based on local reference spectra, and forms anomaly sources with pre-contact observation history. The candidate propagation direction determination module determines contact candidate events and contact areas based on the continuous change of adjacent particles from independent and indistinguishable to separated. It also determines whether the source of the anomaly has entered the contact area and determines the candidate propagation direction based on the correspondence of continuous observations. The candidate source transfer relationship formation module first interprets the post-contact changes based on the pre-contact spectral state of the candidate propagation direction pointing towards the particle when the contact candidate event ends and the two particles become observable again. Then, it interprets the remaining anomalies based on the anomaly source entering the contact area. It determines the interpretation decrease of the same anomaly source on the particle side where the anomaly source is located and the interpretation generation on the particle side where the candidate propagation direction points towards the particle. When the interpretation decrease and interpretation generation are within the joint allowable range of material transfer formed by the calibration of the confirmed material transfer event, the candidate source transfer relationship is formed. The source confirmation and sorting module, for candidate source transfer relationships, establishes non-transfer interpretations and transfer interpretations with cross-particle connections of anomalous sources in the same observation area, compares reconstruction errors, and corrects the fitting gain of additional source degrees of freedom by non-material transfer calibration events. Based on the corrected reconstruction advantage and the reconstruction error of the transfer interpretation, a source confirmation result is formed. When the corrected reconstruction advantage exceeds the normal competition range formed by non-material transfer calibration events and the reconstruction error of the transfer interpretation is within the allowable range of transfer reconstruction error formed by confirmed material transfer event calibration, the source confirmation result is source migration confirmation. Based on the source confirmation result, the particle quality judgment admission type of anomalous evidence is determined and the sorting result is output.
[0078] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented in software, the above embodiments can be implemented, in whole or in part, as a computer program product. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution.
[0079] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0080] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A method for spectral identification, sorting, and detection of fertilizer particles, characterized in that, include: Acquire continuous hyperspectral images of fertilizer particles, associate particle identities, establish local continuous observation correspondence under observable conditions, identify abnormal regions based on local reference spectra, and form anomaly sources with pre-contact observation history; Based on the continuous change of adjacent particles from independent and indistinguishable to separated, candidate contact events and contact areas are determined, and the anomaly source is judged to enter the contact area and the candidate propagation direction is determined by the correspondence of continuous observations. When the contact candidate event ends and the two particles become observable again, the changes after contact are first explained by the pre-contact spectral state of the candidate propagation direction pointing to the particle. Then, the remaining anomalies are explained by the anomaly source entering the contact area. The explanation decrease of the same anomaly source on the particle side where the anomaly source is located and the explanation generation on the particle side where the candidate propagation direction points to the particle are determined. When the explanation decrease and explanation generation are within the joint allowable range of material transfer formed by the calibration of the confirmed material transfer event, the candidate source transfer relationship is formed. For candidate source transfer relationships, we establish a transfer-free interpretation and a transfer interpretation with cross-particle connections of anomalous sources in the same observation area, compare reconstruction errors, and correct the fitting gain of additional source degrees of freedom by non-material transfer calibration events. Based on the corrected reconstruction advantages and the transfer interpretation of the sources of reconstruction errors, the results were confirmed. When the corrected reconstruction advantage exceeds the normal competitive range formed by the absence of material transfer calibration events and the transfer interpretation reconstruction error is within the allowable range of transfer reconstruction error formed by the confirmed material transfer event calibration, the source confirmation result is source migration confirmation. Based on the source confirmation result, the particle quality judgment admission type of the anomalous evidence is determined and the sorting result is output.
2. The method for spectral identification, sorting, and detection of fertilizer particles according to claim 1, characterized in that, The specific operations for associating particle identities and establishing continuous observation correspondences in local areas under observable conditions are as follows: The particle identity is determined based on the position, outline, and main spectral characteristics of particles at adjacent times, and a continuous observation correspondence is established based on the normalized position, spectral shape, and adjacency relationship of local regions. The observation status is updated when the local area meets the observable conditions and the continuous observation correspondence is established. The most recent valid observation status is maintained when the local area is out of the observable range or the continuous observation correspondence is interrupted.
3. The method for spectral identification, sorting, and detection of fertilizer particles according to claim 2, characterized in that, The specific steps for identifying anomalous regions and establishing anomalous sources with pre-contact observation history based on local reference spectra are as follows: A local reference spectrum is formed from the normal region adjacent to the local region to be detected that meets the observable conditions. An abnormal residual spectrum is formed based on the actual spectrum of the local region to be detected and the local reference spectrum. When the abnormal residual spectrum exceeds the allowable range of the normal residual formed by calibration, the abnormal region is identified. The local correspondence of the abnormal region and the continuity of the abnormal residual spectrum are verified along the continuous observation correspondence. When the effective observation time reaches the minimum observation time formed by calibration, the source of the anomaly is formed. When the particle enters the non-independent observable state, the last effective state of the source of the anomaly is maintained.
4. The method for spectral identification, sorting, and detection of fertilizer particles according to claim 1, characterized in that, The specific operation for determining candidate contact events and contact regions based on the continuous change of adjacent particles from independent and indistinguishable to separated is as follows: The continuous approach process is determined based on the boundary spacing of adjacent particles after identity association. When the boundary spacing enters the indistinguishable distance range of the boundary formed by the spatial resolution calibration of the imaging system and is subsequently re-separated and the original particle identity is restored, a contact candidate event is formed. The local boundary region that continuously approaches and maintains a continuous observation correspondence before entering the indistinguishable distance range of the boundary is defined as the contact region.
5. The method for spectral identification, sorting, and detection of fertilizer particles according to claim 4, characterized in that, The specific steps for determining whether an anomaly source has entered the contact area and identifying candidate propagation directions based on the correspondence of continuous observations are as follows: The positional change of the anomaly source relative to the contact area is traced along the correspondence of continuous observations. The entry of the anomaly source into the contact area is determined based on the state maintained by continuous observations and the process of approaching the contact area. When the source of the anomaly enters the contact area before the continuous observation correspondence is interrupted, a candidate propagation direction is established. After the candidate propagation direction is established, the continuous observation correspondence is interrupted due to particle proximity.
6. The method for spectral identification, sorting, and detection of fertilizer particles according to claim 1, characterized in that, The specific steps for explaining post-contact changes by first analyzing the pre-contact spectral state of the candidate propagation direction pointing towards the particle, and then analyzing the source of the anomaly entering the contact region to explain the remaining anomalies are as follows: The candidate propagation direction pointing to the particle's own spectral state before contact, corresponding to the position of the contact area and the observation conditions, is selected, and the anomaly after contact is explained by its own spectral state. When the residual anomaly formed by the self-spectral state interpretation exceeds the allowable range of the self-interpretation formed by the event without material transfer calibration, the source is interpreted as the anomaly source that enters the contact area and corresponds to the candidate propagation direction.
7. The method for spectral identification, sorting, and detection of fertilizer particles according to claim 6, characterized in that, The specific operations for determining the explanatory descent and explanatory generation of the same anomaly source and forming candidate source transitivity relationships are as follows: The same source interpretation rule is applied to the corresponding regions before and after the contact between the particle where the anomaly source is located and the particle whose candidate propagation direction points, to determine the interpretation decrease and interpretation generation of the same anomaly source respectively; The source descent threshold and source generation threshold are determined by the absence of material transfer calibration events. When the explained descent exceeds the source descent threshold, the explained generation exceeds the source generation threshold, and the explained descent and explained generation are within the joint allowable range of material transfer formed by the calibration of confirmed material transfer events, a candidate source transfer relationship is formed.
8. The method for spectral identification, sorting, and detection of fertilizer particles according to claim 1, characterized in that, The specific steps for establishing no-transfer and transfer interpretations based on candidate source transitivity and comparing reconstruction errors are as follows: The observation area used to form candidate source transit relationships is fixed, and the same parameter constraints and reconstruction rules are used for both non-transfer interpretation and transfer interpretation. The no-transfer interpretation is based on the spectral state of the particle itself for reconstruction, while the transfer interpretation sets up cross-particle connections for the source of anomalies in the same observation area. The reconstruction error of the no-transfer interpretation and the reconstruction error of the transfer interpretation are determined according to the reconstruction results of the corresponding areas of the two particles, respectively.
9. The method for spectral identification, sorting, and detection of fertilizer particles according to claim 8, characterized in that, The specific steps for correcting the fitting gain of additional source degrees of freedom from calibration events without material transfer and forming source confirmation results are as follows: Additional source degrees of freedom are determined based on the additional independent source interpretation parameters included in the transfer interpretation, and the fit benefit and normal competition range are determined by the no-material transfer calibration event; The reconstruction advantage is formed by the reconstruction error without transfer explanation and the reconstruction error with transfer explanation, and the corrected reconstruction advantage is obtained by subtracting the fitting gain. Source migration confirmation is formed when the corrected reconstruction advantage exceeds the normal competitive range and the transfer interpretation reconstruction error is within the allowable range of transfer reconstruction error formed by the calibration of the confirmed material transfer event. A no-transfer confirmation is formed when the no-transfer interpretation reconstruction error is within the allowable range of no-transfer reconstruction error formed by a no-material transfer calibration event, the interpretation decrease and interpretation generation are within the joint allowable range of no-transfer formed by a no-material transfer calibration event, and the transfer interpretation reconstruction error exceeds the allowable range of transfer reconstruction error. When the non-transfer interpretation reconstruction error is within the allowable range of non-transfer reconstruction error and the transfer interpretation reconstruction error is within the allowable range of transfer reconstruction error, and the corrected reconstruction advantage is within the normal competitive range, the source is not confirmed. Based on the source confirmation result, the particle quality judgment admission type and sorting result of the abnormal evidence are determined.
10. A fertilizer particle spectral identification, sorting, and detection system, employing the fertilizer particle spectral identification, sorting, and detection method as described in any one of claims 1-9, comprising: The anomaly source establishment module acquires continuous hyperspectral images of fertilizer particles, associates particle identities, establishes a local continuous observation correspondence under observable conditions, identifies anomaly areas based on local reference spectra, and forms anomaly sources with pre-contact observation history. The candidate propagation direction determination module determines contact candidate events and contact areas based on the continuous change of adjacent particles from independent and indistinguishable to separated. It also determines whether the source of the anomaly has entered the contact area and determines the candidate propagation direction based on the correspondence of continuous observations. The candidate source transfer relationship formation module first interprets the post-contact changes based on the pre-contact spectral state of the candidate propagation direction pointing towards the particle when the contact candidate event ends and the two particles become observable again. Then, it interprets the remaining anomalies based on the anomaly source entering the contact area. It determines the interpretation decrease of the same anomaly source on the particle side where the anomaly source is located and the interpretation generation on the particle side where the candidate propagation direction points towards the particle. When the interpretation decrease and interpretation generation are within the joint allowable range of material transfer formed by the calibration of the confirmed material transfer event, the candidate source transfer relationship is formed. The source confirmation and sorting module, for candidate source transfer relationships, establishes non-transfer interpretations and transfer interpretations with cross-particle connections of anomalous sources in the same observation area, compares reconstruction errors, and corrects the fitting gain of additional source degrees of freedom by non-material transfer calibration events. Based on the corrected reconstruction advantage and the reconstruction error of the transfer interpretation, a source confirmation result is formed. When the corrected reconstruction advantage exceeds the normal competition range formed by non-material transfer calibration events and the reconstruction error of the transfer interpretation is within the allowable range of transfer reconstruction error formed by confirmed material transfer event calibration, the source confirmation result is source migration confirmation. Based on the source confirmation result, the particle quality judgment admission type of anomalous evidence is determined and the sorting result is output.
