Commodity inspection method, electronic device, storage medium and program product
By using deep learning models for product feature compliance detection, the problems of lagging rule base updates and missed detections of cross-dimensional correlations in existing technologies have been solved, achieving efficient and accurate product inspection, especially for rapid verification of new product categories.
Patent Information
- Application Number
- CN202611273000.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-20
- Publication Date
- 2026-11-24
AI Technical Summary
Existing product data inspection solutions rely on manually maintained rule bases, which cannot be adaptively adjusted, resulting in lagging rule updates. Furthermore, rules based on a single dimension or simple combinations are difficult to cover cross-dimensional correlation verification, leading to a high rate of missed detections of correlation anomalies.
A deep learning model is used to perform compliance detection of product features, including single-dimensional abnormal fluctuation detection and cross-dimensional correlation detection. The first inspection result is generated using the inspection model, and the second inspection result is generated by differentiating the results through confidence threshold and anomaly judgment type.
It significantly improves the comprehensiveness and accuracy of product inspection, reduces missed detections due to implicit cross-dimensional correlations, and improves inspection efficiency and accuracy, especially in shortening response time for the verification capability of new product categories.
Smart Images

Figure CN123157698A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to data processing technology, and in particular to a product inspection method, electronic equipment, storage medium, and program product. Background Technology
[0002] In the home improvement industry supply chain, managing massive amounts of product data is crucial. This data maintenance involves multi-dimensional information about the products, resulting in high complexity. To ensure the validity of product data, it's essential to conduct inspections to identify defective data. Current inspection solutions largely rely on rule bases for verification, using rules to iterate and match product data to determine compliance. However, these rules depend on manual updates and maintenance. When facing dynamic business scenarios such as fluctuating prices or the introduction of new fulfillment methods, rule updates often lag, failing to adapt and leading to missed detections. Furthermore, complex implicit relationships often exist between product information across different attribute dimensions. Rules based on a single dimension or simple combinations are insufficient to effectively cover these cross-dimensional relationships, resulting in a high rate of missed detections for abnormal correlations. Summary of the Invention
[0003] To address the aforementioned technical problems, embodiments of this disclosure provide a product inspection method, electronic device, storage medium, and program product.
[0004] One aspect of this disclosure provides a product inspection method, comprising: acquiring multi-dimensional product information of a target product; performing product feature compliance detection on the target product using an inspection model based on the product information to obtain a first inspection result, wherein the product feature compliance detection includes single-dimensional abnormal fluctuation detection and cross-dimensional correlation detection; and determining a second inspection result of the target product based on the first inspection result.
[0005] Another aspect of this disclosure provides a commodity inspection device, comprising: an information acquisition model for acquiring multi-dimensional commodity information of a target commodity; an inspection model for performing commodity feature compliance detection on the target commodity based on the commodity information to obtain a first inspection result, wherein the commodity feature compliance detection includes single-dimensional abnormal fluctuation detection and cross-dimensional correlation detection; and an inspection result determination module for determining a second inspection result of the target commodity based on the first inspection result.
[0006] In another aspect of this disclosure, an electronic device is provided, comprising: a memory for storing a computer program; and a processor for executing the computer program stored in the memory, wherein when the computer program is executed, it implements the above-described commodity inspection method.
[0007] In another aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the above-described commodity inspection method.
[0008] In another aspect, this disclosure provides a computer program product including computer program instructions that, when executed by a processor, implement the above-described commodity inspection method.
[0009] The technical solutions of this disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0010] The accompanying drawings, which form part of this specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the disclosure. The present disclosure can be more clearly understood from the following detailed description, referring to the accompanying drawings, in which: Figure 1 This is a flowchart illustrating a product inspection method provided in an exemplary embodiment of this disclosure.
[0011] Figure 2 This is a flowchart illustrating step S120 provided in an exemplary embodiment of this disclosure.
[0012] Figure 3 This is a flowchart illustrating step S110 provided in an exemplary embodiment of this disclosure.
[0013] Figure 4 This is a flowchart illustrating step S121 provided in an exemplary embodiment of this disclosure.
[0014] Figure 5 This is a flowchart illustrating a commodity inspection method provided in another exemplary embodiment of this disclosure.
[0015] Figure 6 This is a schematic diagram of the structure of a federated training system provided in an exemplary embodiment of this disclosure.
[0016] Figure 7 This is a flowchart illustrating a product inspection method provided in yet another exemplary embodiment of this disclosure.
[0017] Figure 8 This is a schematic diagram of a product inspection method provided in an application example of this disclosure.
[0018] Figure 9 This is a structural block diagram of a commodity inspection device provided in an exemplary embodiment of this disclosure.
[0019] Figure 10 This is a schematic diagram of the structure of an application embodiment of the electronic device disclosed herein. Detailed Implementation
[0020] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present disclosure.
[0021] Those skilled in the art will understand that the terms "first," "second," etc., in the embodiments of this disclosure are only used to distinguish different steps, devices, or modules, and do not represent any specific technical meaning, nor do they indicate a necessary logical order between them.
[0022] It should also be understood that in the embodiments disclosed herein, "a plurality of" may refer to two or more, and "at least one" may refer to one, two or more.
[0023] It should also be understood that any component, data or structure mentioned in the embodiments of this disclosure can generally be understood as one or more unless expressly defined or given to the contrary in the context.
[0024] Furthermore, the term "and / or" in this disclosure is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this disclosure generally indicates that the preceding and following related objects have an "or" relationship.
[0025] It should also be understood that the description of the various embodiments in this disclosure emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.
[0026] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.
[0027] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use.
[0028] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0029] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0030] The embodiments disclosed herein can be applied to electronic devices such as terminal devices, computer systems, and servers, and can operate together with a wide range of other general-purpose or special-purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments, and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, and servers include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments including any of the above systems, etc.
[0031] Electronic devices such as terminal devices, computer systems, and servers can be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. Typically, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in distributed cloud computing environments, where tasks are executed by remote processing devices linked through communication networks. In distributed cloud computing environments, program modules can reside on local or remote computing system storage media, including storage devices.
[0032] In implementing this disclosed technology, research revealed that to ensure data validity during commodity data management, a comprehensive inspection of all commodity data is necessary. This includes verifying basic data (existence, format correctness, etc.) and business data (price reasonableness, matching of procurement and sales attributes, etc.). Existing inspection solutions largely rely on centralized rule bases for verification, i.e., using preset rules in the database to traverse and match all commodity data to determine compliance. However, such inspection solutions have the following drawbacks: Firstly, the rules in the rule base rely on continuous manual maintenance. Faced with dynamically changing business scenarios such as price fluctuations and the introduction of new fulfillment methods, rule updates are severely lagging and cannot adaptively adjust. Secondly, there are complex implicit relationships between commodity information of different attribute dimensions, such as the matching of specifications and procurement steps, and the conversion between procurement units and sales units. Rules of a single dimension or simple combinations are difficult to effectively cover such cross-dimensional relationship verification, leading to a high rate of missed detections of abnormal relationships, which in turn triggers supply chain risks such as incorrect procurement orders and inventory chaos.
[0033] Figure 1 This is a flowchart illustrating a product inspection method provided in an exemplary embodiment of this disclosure. This embodiment can be applied to any electronic device, such as a terminal device or a server. Figure 1 As shown, this product inspection method may include the following steps: Step S100: Obtain multi-dimensional product information of the target product.
[0034] The product information includes product characteristics of the target product across multiple attribute dimensions. For example, the product information may include: product characteristics belonging to basic attributes, product characteristics belonging to supply attributes, and product characteristics belonging to operational attributes. Product characteristics belonging to basic attributes may include at least one of the following: category characteristics, brand characteristics, specification characteristics, model characteristics, material characteristics, and color characteristics; category characteristics indicate the category to which the target product belongs, for example, category characteristics could be tiles, flooring, paint, car mats, or bathroom fixtures, etc.; product characteristics belonging to supply attributes may include at least one of the following: purchase price characteristics, purchase unit characteristics, purchase step size characteristics, fulfillment method characteristics, and supply cycle characteristics, where the purchase step size characteristic represents the quantity of the target product purchased, and the sales unit characteristic represents the minimum specification for a single sale; product characteristics belonging to operational attributes may include at least one of the following: channel price characteristics, sales price characteristics, inventory unit characteristics, sales unit characteristics, and front-end display information (such as whether installation is included, whether there are purchase limits, etc.), etc.
[0035] Step S110: Based on the product information of the target product, use the inspection model to perform product feature compliance detection on the target product to obtain the first inspection result.
[0036] The product feature compliance inspection includes: single-dimensional abnormal fluctuation detection and cross-dimensional correlation detection. Single-dimensional abnormal fluctuation detection refers to analyzing the characteristic value of a single product feature in a single attribute dimension of the target product, and determining whether the current value deviating from historical normal levels is a normal business fluctuation or a genuine data error by analyzing the changing trend of the product feature's continuous observation data over time. For example, if the sales price (product feature) in the product information continuously drops from 100 yuan to 79 yuan, it needs to be determined whether it is a promotional price reduction (normal business fluctuation) or a data entry error (genuine anomaly). Cross-dimensional correlation detection refers to checking whether there are deterministic logical contradictions between multiple product features of the target product under at least two different attribute dimensions, based on preset correlation rules. For example, if the procurement unit in the supply attribute dimension of the product information is "box" and the sales unit in the operation attribute dimension is "piece," but the conversion field for "number of pieces per box" is empty, it constitutes a deterministic cross-dimensional logical contradiction. The first inspection result is used to indicate whether the product information is normal.
[0037] The inspection model is a deep learning model used for compliance inspection of product features with multiple attributes. For example, the inspection model can use a convolutional neural network (CNN) or a residual network model (ResNet).
[0038] The first inspection result may include detection labels and anomaly items. Detection labels include normal labels and abnormal labels. When the detection label is an abnormal label, the anomaly items may include product features and / or abnormal description information that the inspection model has determined to be suspected of being abnormal. When the detection label is a normal label, the anomaly items are empty.
[0039] Step S120: Based on the first inspection result, determine the second inspection result of the target product.
[0040] For example, when the detection label in the first inspection result is a normal label, indicating that the product information is normal, the first inspection result is determined as the second inspection result. When the detection label in the first inspection result is an abnormal label, indicating that the product information is abnormal, the confidence level in the first inspection result is compared with a preset threshold. If the confidence level exceeds the preset threshold, the first inspection result is determined as the second inspection result. If the confidence level is less than the preset threshold, the first inspection result can be modified by means of manual re-inspection to obtain the second inspection result.
[0041] In this embodiment of the disclosure, by performing product feature compliance detection on the target product that covers both single-dimensional abnormal fluctuation detection and cross-dimensional correlation detection, it is possible to simultaneously identify the feature value deviation of a single product feature and the logical contradiction between multi-dimensional product features, which significantly improves the comprehensiveness and accuracy of product inspection and effectively overcomes the problem of high missed detection rate of cross-dimensional implicit correlation in existing centralized rule verification.
[0042] Figure 2 This is a flowchart illustrating step S120 provided in an exemplary embodiment of this disclosure. In some alternative embodiments, such as Figure 2 As shown, step S120 may include the following steps: Step S121: In response to the first inspection result indicating that the target product has an abnormal fluctuation error type of an anomaly, obtain the fluctuation information corresponding to the anomaly.
[0043] The fluctuation information is used to indicate whether the current characteristic value corresponding to an anomaly is a normal business fluctuation; the fluctuation information can include normal fluctuations and abnormal fluctuations. For example, assuming the anomaly includes the sales price, if the current characteristic value of the sales price is less than the average of its corresponding historical characteristic values, it is determined to be an abnormal fluctuation; otherwise, it is determined to be a normal fluctuation.
[0044] In one implementation, the anomaly judgment type can be determined based on anomalies. Anomalies may include at least one abnormal product feature judged as potentially abnormal. Anomaly judgment types may include: abnormal fluctuation error type and correlation error type. Abnormal fluctuation error type refers to a suspected anomaly triggered by an unexpected and significant change in the feature value of a single product feature; for example, the selling price of a target product is significantly too low. Correlation error type refers to an anomaly triggered by a definite logical contradiction between multiple different product features; for example, the selling price of a target product is lower than its purchase price, forming a price inversion, or the purchasing unit and selling unit are inconsistent and lack a conversion relationship, etc.
[0045] Step S122: Based on the fluctuation information and the first inspection result, determine the second inspection result of the target product.
[0046] Specifically, when the fluctuation information is abnormal, the first inspection result is determined as the second inspection result; when the fluctuation information includes normal fluctuations, the inspection label in the first inspection result is updated to the normal label to obtain the second inspection result.
[0047] In one example, the second inspection result may include: Product ID: B00XYZ2024, Product Name: Imitation Marble Pattern Ceramic Bathroom Floor Tile, Anomaly: Sales Price 79 Yuan, Anomaly Confidence Level: 99.9%, Inspection Tag: Anomaly Tag.
[0048] Step S123: In response to the first inspection result indicating that the target product has an anomaly of the related error type, the first inspection result is determined as the second inspection result.
[0049] The anomaly items also include anomaly description information. This description information, in the form of natural language or structured fields, explains the logical contradictions between multiple abnormal product characteristics identified by the inspection model. For example, when a suspected anomaly is a cross-dimensional contradiction between a purchasing unit (belonging to the supply attribute) and a sales unit (belonging to the operation attribute), the anomaly description information may include the missing conversion relationship between the purchasing unit (box) and the sales unit (piece).
[0050] For example, the second inspection result may include: Product ID: B00XYZ2024, Product Name: Imitation Marble Pattern Ceramic Bathroom Floor Tile, Anomaly: Missing conversion relationship between purchasing unit (box) and sales unit (piece), Anomaly confidence level: 99.9%, Inspection label: Anomaly label.
[0051] It should be noted that there is no specific order of execution between steps S122 and S123 in the embodiment.
[0052] In this embodiment, the inspection model performs feature compliance detection on the multi-dimensional product information of the target product, which can automatically identify cross-dimensional correlation errors and single-dimensional abnormal fluctuations, effectively reducing missed and false detections of abnormal product features of the target product. In addition, when there are abnormal items of the abnormal fluctuation error type of the target product, trend analysis is performed based on the fluctuation information corresponding to the abnormal item, which can accurately distinguish between normal business fluctuations and real data errors (abnormal fluctuations), thereby improving the accuracy of the second inspection results. At the same time, by differentiating the processing paths between correlation error types and abnormal fluctuation error types, the precise diversion and handling of anomalies of different natures is realized, which further improves the inspection accuracy and significantly improves the inspection efficiency.
[0053] Figure 3 This is a flowchart illustrating step S110 provided in an exemplary embodiment of this disclosure. In some alternative embodiments, such as Figure 3 As shown, step S110 may include the following steps: Step S111: In response to the target product belonging to a new category, extract at least one target product feature from the product information.
[0054] Specifically, the category features of the target product can be extracted from its product information and matched with a pre-stored set of category features. If no category feature in the set matches the category features of the target product, the target product is determined to belong to a new category; otherwise, the target product is determined not to belong to a new category.
[0055] When extracting features of a target product, you can use all the product features contained in the product information as the target product features, or you can randomly select multiple product features belonging to different attributes from the product information as the target product features.
[0056] Step S112: Obtain the k target training samples that have the highest similarity to at least one target product feature.
[0057] In one example, k target training samples can be retrieved and determined from multiple pre-constructed training datasets. Each training dataset includes multiple training samples, and each training sample includes labeled product features, labeled detection labels, and labeled label description information. The labeled product features of each training sample in the same training dataset belong to the same attribute dimension. The attribute described in the labeled product features in the training data can be determined as the attribute corresponding to that training data. When the labeled detection label is an anomaly label, the label description information also includes an anomaly label.
[0058] Algorithms such as k-Nearest Neighbors (k-NN) can be used to select the k most similar training samples from multiple training datasets based on the similarity between the target product features and the labeled product features of each training sample. Here, k is an integer greater than 1. For example, k can be 3, 4, 5, etc.
[0059] Step S113: Use k target training samples to adjust the model parameters of the inspection model to obtain a specific inspection model.
[0060] Specifically, the model parameters of the inspection model can be adjusted based on the Model-Agnostic Meta-Learning (MAML) framework. MAML is a "learn how to learn" meta-learning algorithm whose core idea is to find a set of initial parameters sensitive to task distribution, allowing the model to quickly adapt and achieve good performance when facing new tasks with only a small number of gradient updates. In particular, the current model parameters of the inspection model... As initial parameters, a small number of gradient descent steps (e.g., 1 to 5 steps) are performed on the inspection model on a support set consisting of k target training samples to update the model parameters. After this small-step fine-tuning, the model parameters change from... Updated to specialized model parameters The specialized model parameters These are the model parameters for the special inspection model, and the parameters for running this specialized model. This yields the special inspection model.
[0061] Step S114: Input the product information into the special inspection model, and the special inspection model outputs the first inspection result.
[0062] Step S115: In response to the fact that the target product does not belong to the new category, the product information is input into the inspection model, and the inspection model outputs the first inspection result.
[0063] It should be noted that there is no specific order of execution between steps S114 and S115 in this embodiment.
[0064] In this embodiment, by determining whether the target product belongs to a new category and applying differentiated processing, the problem of missing verification rules during the cold start phase of new products is effectively solved. For new category products, the inspection model is quickly fine-tuned using a small number of similar samples to generate a specific inspection model, enabling it to output reliable first inspection results in the early stages when data accumulation is insufficient. This significantly shortens the response time from the launch of a new product to having effective verification capabilities and reduces the risk of missed inspections due to rule gaps.
[0065] Figure 4 This is a flowchart illustrating step S121 provided in an exemplary embodiment of this disclosure. In some alternative embodiments, such as Figure 4 As shown, step S121 may include the following steps: Step S1211: Extract abnormal product features from abnormal items.
[0066] Step S1212: Based on the characteristics of abnormal products, use the fluctuation detection model to detect fluctuations in abnormal items and obtain fluctuation information.
[0067] Among them, the fluctuation detection model is used to determine whether abnormal product characteristics are real business errors or normal business fluctuations.
[0068] In one implementation, the fluctuation detection model can employ a pre-trained deep learning model, such as a CNN or a recurrent neural network (RNN). Abnormal product features can be input into the fluctuation detection model, which then outputs fluctuation information. Alternatively, The fluctuation detection model can use a Bayesian model, specifically: Obtain multiple historical feature values and prior distribution parameters corresponding to the abnormal product features. Multiple historical feature values corresponding to the abnormal product features refer to multiple feature values that belong to the same product and the same monitoring indicator, and are collected in chronological order within a preset historical time window. For example, if the abnormal product feature is the "sales price" of product A, then its multiple historical feature values are the daily sales prices of product A over the past 7 days, such as [100, 99, 95, 92, 88, 82].
[0069] Each product feature corresponds to a pre-set prior distribution parameter, which is a probability distribution parameter used to describe the reasonable fluctuation range of that product feature. The prior distribution parameter includes the prior mean. Prior variance and the standard deviation of observation noise In one example, the prior distribution parameters for each product feature can be pre-set and stored for later retrieval when that product feature is identified as an outlier. Specifically, the prior distribution parameters for each product feature can be determined as follows: Prior mean can be set based on industry experience. and prior variance and the standard deviation of observation noise Alternatively, it can be based on the past characteristics of the product. The historical characteristic value of the day is used to calculate the sample mean of the commodity characteristic based on formulas (1)-(5). Sample variance and the standard deviation of observation noise , sample mean as prior mean Sample variance As prior variance , and These are historical characteristic values.
[0070] (1) (2) (3) (4) (5) Based on the current feature value, multiple historical feature values, and prior distribution parameters corresponding to the abnormal product characteristics, a fluctuation detection model is used to detect fluctuations in abnormal items and obtain fluctuation information.
[0071] The current feature value corresponding to the abnormal product feature refers to the latest feature value that triggered the fluctuation detection in this inspection.
[0072] In one example, based on a preset two-sided critical value, as well as multiple historical feature values and prior distribution parameters corresponding to the abnormal product feature, the prior prediction interval of the abnormal product feature can be calculated, and a preliminary fluctuation judgment can be made accordingly. Specifically, this includes: calculating the prediction standard deviation based on formula (6). Then, a priori prediction intervals are constructed. ,in, To preset the two-sided threshold, it can be based on the confidence level required by the business, for example, when selecting a 95% confidence level. ; (6) When the current feature value corresponding to the abnormal product feature falls within the prior prediction range, the fluctuation information is determined to be a normal fluctuation, and the operation ends; otherwise, Bayesian deep analysis is triggered. Bayesian deep analysis includes: Determine the feature data sequence corresponding to the abnormal product characteristics. This feature data sequence includes all historical feature values and current feature values arranged in chronological order. This feature data sequence is denoted as... ; For multiple historical feature values, Given the current feature value; generate two opposing hypotheses, namely the anomaly hypothesis. and normal assumptions Abnormal assumptions Indicates the true level of abnormal product characteristics Still The current feature value is caused only by random noise or input error; normal assumption Indicates the true level of abnormal product characteristics The value has changed; the average of multiple historical feature values can be used. As the true level ; Calculate the Bayesian factor using formulas (7)-(9) ; (7) (8) (9) Obtain the prior probability of normal fluctuations corresponding to the characteristics of abnormal products. and prior probability of abnormal fluctuations The prior probability of abnormal fluctuations is The prior probability of normal fluctuations can be set according to the actual situation, or it can be obtained by statistically analyzing historical feature values. For example, when the abnormal item is the sales price, the frequency of promotions can be statistically analyzed based on historical sales data, or it can be set by business experience. The posterior probability is determined using formulas (10)-(11). ; (10) (11) When the posterior probability If the probability is greater than or equal to a preset probability threshold (e.g., 99%), the fluctuation information is determined to include normal fluctuations; otherwise, the fluctuation information is determined to include abnormal fluctuations.
[0073] In this embodiment of the disclosure, by obtaining multiple historical feature values and prior distribution parameters corresponding to the abnormal product features in the anomaly items, the fluctuation detection model can perform comprehensive analysis based on the overall trend of multiple historical feature values, which significantly improves the accuracy and robustness of anomaly judgment.
[0074] In some optional implementations, step S1212 in this embodiment of the present disclosure may further include: in response to the fluctuation information including normal fluctuations, updating the fluctuation detection model based on a preset scaling threshold and the current feature value and multiple historical feature values corresponding to the abnormal product features, so as to perform the next fluctuation detection using the updated fluctuation detection model.
[0075] Specifically, when the fluctuation information includes normal fluctuations, the prior distribution parameters are updated based on a preset scaling threshold, the current feature value corresponding to the abnormal product feature, and multiple historical feature values. The updated prior distribution parameters are then used to update the fluctuation detection model so that the next fluctuation detection can be performed using the updated prior distribution parameters.
[0076] Preset scaling threshold The specific value can be set according to the actual business requirements for fluctuation sensitivity. The posterior mean can be calculated using formulas (12)-(13). and posterior variance The posterior mean is used as the updated prior mean, and the posterior variance is used as the updated prior variance. The updated prior mean, updated prior variance, and observation noise standard deviation are then used as the basis for the analysis. The updated prior experience distribution parameters are then constructed.
[0077] (12) (13) In formulas (12) and (13), For effective prior accuracy, it is , The mean of the feature data sequence (containing multiple historical feature values and the current feature value) is given. The total number of data points in the feature data sequence. For observation accuracy, it is , For posterior accuracy, it is .
[0078] In this embodiment, the prior distribution parameters corresponding to the fluctuation detection model are updated using the current feature value and historical feature value to update the fluctuation detection model. This allows the fluctuation detection model's tolerance threshold for normal business changes to dynamically adapt to the actual environment, thereby effectively reducing similar false alarms in the next detection and continuously improving the inspection accuracy.
[0079] In some optional implementations, step S110 in this embodiment of the present disclosure may further include: when the inspection confidence level is greater than or equal to a preset confidence threshold and the detected label is an abnormal label, determining the abnormality judgment type based on the abnormal items in the label description information.
[0080] The first inspection result includes: inspection label, label description information, and inspection confidence level. The inspection label indicates whether the target product has passed compliance inspection, and includes normal and abnormal labels. When the inspection label is normal, the label description information includes a description of the target product's multi-dimensional product characteristics passing compliance inspection; when the inspection label is abnormal, the label description information includes at least one abnormal item. The inspection confidence level indicates the reliability of the first inspection result, and its value ranges from 0 to 1. A higher inspection confidence level indicates a higher certainty of the first inspection result.
[0081] Anomaly determination types include: abnormal fluctuation error type and correlation error type. The anomaly determination type can be determined manually or otherwise; alternatively, when an anomaly item includes at least two abnormal product features belonging to different attribute dimensions, and the anomaly description information indicates a cross-dimensional logical contradiction between these abnormal product features, it is determined to be a correlation error type; when an anomaly item includes only one or more abnormal product features, it is determined to be an abnormal fluctuation error type. When the anomaly determination type is determined to be an abnormal fluctuation error type, step S121 is executed; when the anomaly determination type is determined to be a correlation error type, step S123 is executed.
[0082] When the inspection confidence level is less than the preset confidence threshold and the detected label is an anomalous label, it indicates that the inspection model has low certainty in judging this anomaly, and the anomaly may be a model misjudgment. In this case, the detected label is updated to a normal label, and a second inspection result is obtained. When the detected label is a normal label, it indicates that the inspection model determines that the target product has passed the compliance inspection. In this case, the first inspection result is directly used as the second inspection result.
[0083] In this embodiment of the disclosure, by introducing a linkage mechanism between the inspection confidence threshold and the anomaly judgment type in the first inspection result, the accurate diversion of anomalies is achieved. Deterministic logical contradictions are directly classified as correlation errors, while numerical deviations that require further confirmation are classified as abnormal fluctuation errors. This provides a reliable basis for subsequent differentiated processing, effectively avoiding misjudgments while improving inspection efficiency.
[0084] In some optional implementations, before determining the inspection confidence level and the preset confidence threshold, this embodiment of the present disclosure may further include: calibrating the inspection confidence level in the first inspection result using a preset order-preserving scaler to obtain a target calibration confidence level, and then updating the inspection confidence level in the first inspection result using the target calibration confidence level.
[0085] The preset order-preserving scaler includes multiple original confidence intervals and corresponding calibration confidence levels for each original confidence interval. Each original confidence interval is defined by its upper and lower limits. The original confidence interval into which the inspection confidence level falls is determined, and the calibration confidence level corresponding to that original confidence interval is used as the target calibration confidence level. The inspection confidence level in the first inspection result is then replaced with the target calibration confidence level.
[0086] The target calibration confidence level can be compared with the preset confidence threshold. Specifically, if the target calibration confidence level is greater than or equal to the preset confidence threshold and the detected label is an abnormal label, the abnormality judgment type is determined based on the abnormal items in the label description information. If the target calibration confidence level is less than the preset confidence threshold and the detected label is an abnormal label, the detected label is corrected to a normal label, and the second inspection result is obtained.
[0087] In one implementation, the preset order-preserving scaler can be obtained by: collecting the inspection confidence scores from multiple first inspection results within a preset historical time window as raw confidence scores, and obtaining the true labels of each raw confidence score after manual verification to construct a calibration dataset. ,in, For the first One original confidence level, For the corresponding real labels ( This indicates that an error has been confirmed. (Indicates a confirmed false alarm). A confirmed anomaly indicates that the first inspection result corresponding to the original confidence level of the true label was correctly determined, while a confirmed false alarm indicates that the first inspection result corresponding to the original confidence level of the true label was incorrectly determined. The total number of prediction pairs constructed from the original confidence scores and the true labels; Based on the calibration dataset, the Pool Adjacent Violators (PAV) algorithm is used to solve the order-preserving regression, resulting in multiple original confidence intervals and the corresponding calibration confidence scores for each original confidence interval.
[0088] In this embodiment, a preset order-preserving scaler is introduced to calibrate the inspection confidence level output by the inspection model, correcting the bias of overconfidence or underconfidence that may exist in the inspection model, providing a more reliable basis for subsequent anomaly triage and judgment, and effectively reducing the risk of misjudgment caused by confidence distortion.
[0089] Figure 5 This is a flowchart illustrating a product inspection method provided in another exemplary embodiment of this disclosure. In some alternative embodiments, such as... Figure 5 As shown, the inspection model can be obtained in the following way: Step S200: Obtain multiple training data sets.
[0090] Each training sample includes labeled product features, labeled detection labels, and labeled label description information. The labeled product features of each training sample in the same training data belong to the same attribute dimension.
[0091] Step S210: For multiple training data sets, iteratively train the local model to be trained corresponding to the training data using the training data until a preset training stopping condition is met, thereby obtaining the sub-model parameters and the local model corresponding to the training data. The local model to be trained can be, for example, a CNN or ResNet.
[0092] Step S220: Aggregate the sub-model parameters corresponding to multiple training data to obtain the inspection model.
[0093] In one implementation, the inspection model can be trained using a federated learning framework. Specifically, Figure 6 This is a schematic diagram of the structure of a federated training system provided in an exemplary embodiment of this disclosure. For example... Figure 6 As shown, the federated learning framework can be deployed on a federated training system, which includes basic attribute nodes (federated nodes), supply attribute nodes (federated nodes), operational attribute nodes (federated nodes), and an aggregation module. Each federated node deploys a local model to be trained and training data corresponding to its own attribute dimensions. That is, the labeled product features of the training samples in the basic attribute nodes all belong to basic attributes, the labeled product features of the training samples in the supply attribute nodes all belong to supply attributes, and the labeled product features of the training samples in the operational attribute nodes all belong to operational attributes.
[0094] For any federated node, its local training process is as follows: each training sample in the training data of the federated node is input into the local model to be trained, and the local model to be trained outputs the predicted detection label of each training sample; based on the difference between the predicted detection label and the sample labeled detection label, the loss value is calculated using a preset loss function (such as cross-entropy loss function or mean squared error loss function), and the parameters of the local model to be trained are adjusted through backpropagation to minimize the loss value. The above process is iteratively executed until the preset training stopping condition is met (such as the loss value converges or the preset number of iterations is reached), and the trained local model is obtained. The parameters of the local model are the sub-model parameters corresponding to the training data in the federated node.
[0095] After each federated node completes its local training, it only uploads its own sub-model parameters to the aggregation module, while the original training data remains locally and does not leave the domain. The aggregation module uses the Federated Averaging Algorithm (FedAvg) to aggregate the received sub-model parameters, generating global model parameters as the model parameters for the inspection model. These model parameters are then deployed to the model to be deployed in the aggregation module to obtain the inspection model.
[0096] In this embodiment of the disclosure, training data of different attribute dimensions are used to train local models, and then the sub-model parameters obtained from the training of each local model are aggregated to generate the model parameters of the inspection model. This enables the inspection model to integrate the annotation information of each attribute dimension without centrally aggregating multi-dimensional raw data, thereby enabling it to have the ability to detect compliance of multi-dimensional attribute product features.
[0097] Figure 7 This is a flowchart illustrating a product inspection method provided in yet another exemplary embodiment of this disclosure. In some alternative implementations, such as... Figure 7As shown, the merchandise inspection method may also include the following steps: Step S300: Obtain target product information.
[0098] This system can retrieve multiple historical first inspection results and / or multiple historical second inspection results generated over a past period at preset intervals. Through manual verification, the accuracy of each historical first and second inspection result is determined, identifying any missed or misjudged results. Historical first and second inspection results with missed or misjudged results are designated as erroneous detection results, and the product information corresponding to these erroneous detection results is identified as the target product information.
[0099] Step S310: Based on the target product information, determine at least one new training sample.
[0100] Specifically, based on attribute dimensions, the target product information is broken down into product features belonging to basic attributes, product features belonging to supply attributes, and product features belonging to operational attributes. For each attribute dimension, the product features under that attribute dimension are used as labeled product features, and corresponding label detection labels and label description information are generated for the labeled product features. New training samples are constructed from the labeled product features and their corresponding label detection labels and label description information.
[0101] Step S320: Based on the attribute to which the labeled product features of each new training sample in at least one new training sample belong, update the corresponding training data to obtain updated training data.
[0102] For each new training sample, based on the attribute to which its labeled product feature belongs, the new training sample is routed to the corresponding federated node (such as a basic attribute node, supply attribute node, or operational attribute node). Each federated node appends the received new training sample to its local training data to update the training data for the corresponding attribute dimension, thus obtaining updated training data. For example, a new training sample labeled as a basic attribute is distributed to the basic attribute node and added to its locally stored training data; a new training sample labeled as a supply attribute is distributed to the supply attribute node and added to its local training data; and a new training sample labeled as an operational attribute is distributed to the operational attribute node and added to its local training data.
[0103] Step S330: Train the inspection model using the updated training data to obtain an updated inspection model, so as to perform the next product feature compliance inspection based on the updated inspection model.
[0104] For any federated node, each training sample in its updated training data is input into the current local model, which outputs the predicted detection label. The loss value is calculated based on the difference between the predicted detection label and the labeled detection label, and the parameters of the local model are adjusted through backpropagation until the preset training stopping condition is met, thus obtaining the updated local model and the corresponding updated sub-model parameters.
[0105] After each federation node completes its local model update, it only uploads its updated sub-model parameters to the aggregation module. The aggregation module uses a federated averaging algorithm to aggregate the received updated sub-model parameters, generate updated model parameters, and deploy these updated model parameters to the model to be deployed in the aggregation module to obtain the updated inspection model.
[0106] In this embodiment of the disclosure, by converting the erroneous detection results in the historical second inspection results into new training samples, and incrementally updating and federating the local training data according to the attribute dimension, the inspection model can continuously absorb the feedback information from missed detections and misjudgments, realize the continuous self-evolution of the model, and thus effectively avoid the reproduction of the same error in the next inspection, and continuously improve the accuracy and adaptability of multi-dimensional commodity feature compliance detection.
[0107] Figure 8 This is a schematic diagram of a product inspection method provided in an application example of this disclosure. For example... Figure 8 As shown, it includes: Data partitioning and federated node initialization: The federated nodes are divided into basic attribute nodes, supply attribute nodes, and operational attribute nodes. The basic attribute nodes, supply attribute nodes, and operational attribute nodes are initialized. Then, the training data corresponding to the basic attributes, the supply attributes, and the operational attributes are deployed to the basic attribute nodes, supply attribute nodes, and operational attribute nodes, respectively. The local model to be trained is also deployed on each of the above nodes.
[0108] Meta-learning constructs a new product verification task: When the target product belongs to a new category, at least one target product feature is extracted from the product information, and k target training samples with the highest similarity to at least one target product feature are obtained. The model parameters of the inspection model are adjusted using the k target training samples to obtain a special inspection model. The product information is input into the special inspection model, and the special inspection model outputs the first inspection result.
[0109] Bayesian online rule update: When the first inspection result indicates that the target product has an anomaly of the abnormal fluctuation type, the abnormal product features are extracted from the anomaly, and multiple historical feature values and prior distribution parameters corresponding to the abnormal product features are obtained. Based on the current feature value, multiple historical feature values and prior distribution parameters corresponding to the abnormal product features, the fluctuation detection model is used to detect the fluctuation of the anomaly to obtain fluctuation information. If the fluctuation information includes normal fluctuation, the prior distribution parameters are updated based on the preset scaling threshold and the current feature value and multiple historical feature values corresponding to the abnormal product features to obtain the updated prior distribution parameters.
[0110] Multi-dimensional verification and calibration: Using a preset order-preserving scaler, the inspection confidence in the first inspection result is calibrated to obtain the target calibration confidence. The inspection confidence in the first inspection result is then updated using the target calibration confidence.
[0111] Feedback iteration and optimization: Obtain the target product information corresponding to the error detection results. Based on the target product information, determine multiple new training samples. Based on the attributes to which the product features in each new training sample belong, update the corresponding training data to obtain updated training data. Use each updated training data to train the inspection model to obtain an updated inspection model.
[0112] Figure 9 This is a structural block diagram of a commodity inspection device provided in an exemplary embodiment of this disclosure. Figure 9 As shown, the merchandise inspection device includes: Information Acquisition Model 400 is used to acquire multi-dimensional product information of the target product. Inspection model 410 is used to perform product feature compliance detection on the target product based on the product information and obtain a first inspection result. The product feature compliance detection includes single-dimensional abnormal fluctuation detection and cross-dimensional correlation detection. The inspection result determination module 420 is used to determine the second inspection result of the target product based on the first inspection result.
[0113] In some embodiments, the inspection result determination module 420 of this disclosure includes: The fluctuation detection submodule is used to obtain the fluctuation information corresponding to the abnormal item in response to the first inspection result indicating that the target product has an abnormal fluctuation error type. The first result determination submodule is used to determine the second inspection result of the target product based on the fluctuation information and the first inspection result; The second result determination submodule is used to determine the first inspection result as the second inspection result in response to the first inspection result indicating that the target product has an anomaly of the type of correlation error.
[0114] In some embodiments, the inspection model 410 of this disclosure includes: The feature extraction submodule is used to extract at least one target product feature from the product information in response to the target product belonging to a new category. The sample acquisition submodule is used to acquire the k target training samples that have the highest similarity to at least one of the target product features; The parameter adjustment submodule is used to adjust the model parameters of the inspection model using k target training samples to obtain a specific inspection model. The first inspection submodule is used to input the product information into the special inspection model, and the special inspection model outputs the first inspection result. The second inspection submodule is used to respond to the fact that the target product does not belong to a new category, input the product information into the inspection model, and output the first inspection result by the inspection model.
[0115] In some embodiments, the fluctuation detection submodule of this disclosure is specifically used to extract abnormal product features from the abnormal items; based on the abnormal product features, fluctuation detection is performed on the abnormal items using a fluctuation detection model to obtain the fluctuation information.
[0116] In some embodiments, the commodity inspection device of this disclosure further includes: The parameter update module is used to update the fluctuation detection model in response to the fluctuation information, which includes normal fluctuations, based on a preset scaling threshold, and the current feature value and multiple historical feature values corresponding to the abnormal product features, so as to perform the next fluctuation detection using the updated fluctuation detection model.
[0117] In some embodiments, the first inspection result of this disclosure includes a detection label, label description information, and inspection confidence level; the commodity inspection device of this disclosure further includes: An anomaly type determination module is used to determine the anomaly determination type based on the anomaly items in the label description information when the inspection confidence level is greater than or equal to a preset confidence threshold and the detection label is an anomaly label. The anomaly determination type includes the abnormal fluctuation error type and the correlation error type.
[0118] In some embodiments, the commodity inspection device of this disclosure further includes: The confidence update module is used to calibrate the inspection confidence in the first inspection result using a preset order-preserving scaler to obtain a target calibration confidence. The preset order-preserving scaler includes multiple original confidence intervals and calibration confidence corresponding to each of the multiple original confidence intervals. The inspection confidence in the first inspection result is updated using the target calibration confidence.
[0119] In some embodiments, the commodity inspection device of this disclosure further includes: The training module is used to acquire multiple training data sets. Each training sample includes labeled product features, labeled detection labels, and labeled label description information. The labeled product features of each training sample in the same training data set belong to the same attribute dimension. For the multiple training data sets, the local model to be trained corresponding to the training data set is iteratively trained using the training data set until a preset training stopping condition is met, thereby obtaining the sub-model parameters and local model corresponding to the training data set. The sub-model parameters corresponding to the multiple training data sets are aggregated to obtain the inspection model.
[0120] In some embodiments, the commodity inspection device of this disclosure further includes: The model update module is used to obtain target product information corresponding to the error detection results; determine at least one new training sample based on the target product information; update the corresponding training data based on the attributes to which the labeled product features of each of the at least one new training sample belongs, to obtain updated training data; and train the inspection model using the updated training data to obtain an updated inspection model, so as to perform the next product feature compliance detection based on the updated inspection model.
[0121] The commodity inspection device disclosed herein corresponds to the embodiments of the commodity inspection methods described above, and the relevant contents can be referred to each other, which will not be repeated here.
[0122] The beneficial technical effects of the exemplary embodiment of the commodity inspection device disclosed herein can be found in the corresponding beneficial technical effects of the exemplary method section above, and will not be repeated here.
[0123] In addition, this disclosure also provides an electronic device, including: Memory, used to store computer programs; A processor is configured to execute a computer program stored in the memory, and when the computer program is executed, to implement the commodity inspection method described in any of the above embodiments of this disclosure.
[0124] Figure 10 This is a schematic diagram illustrating the structure of an application embodiment of the electronic device disclosed herein. Below, reference is made to… Figure 10This describes an electronic device according to embodiments of the present disclosure. The electronic device may be either or both of a first device and a second device, or a standalone device independent of them, which may communicate with the first device and the second device to receive acquired input signals from them.
[0125] like Figure 10 As shown, the electronic device includes one or more processors and memory.
[0126] A processor can be a central processing unit (CPU) or other form of processing unit with data processing and / or instruction execution capabilities, and can control other components in an electronic device to perform desired functions.
[0127] The memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and a processor may execute the program instructions to implement the commodity inspection methods of the various embodiments of this disclosure described above and / or other desired functions.
[0128] In one example, the electronic device may also include input devices and output devices, which are interconnected via a bus system and / or other forms of connection mechanism (not shown).
[0129] In addition, the input device may include, for example, a keyboard, a mouse, etc.
[0130] This output device can output various information to the outside, including determined distance information, direction information, etc. The output device may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.
[0131] Of course, for the sake of simplicity, Figure 10 Only some of the components of the electronic device relevant to this disclosure are shown, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device may include any other suitable components depending on the specific application.
[0132] In addition to the methods and apparatus described above, embodiments of this disclosure may also be computer program products, including computer program instructions that, when executed by a processor, cause the processor to perform the steps in the commodity inspection methods according to various embodiments of this disclosure as described in the foregoing portion of this specification.
[0133] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this disclosure. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on a user's computing device, partially on a user's computing device, as a standalone software package, partially on a user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0134] Furthermore, embodiments of this disclosure may also be computer-readable storage media storing computer program instructions that, when executed by a processor, cause the processor to perform the steps in the commodity inspection methods according to various embodiments of this disclosure as described in the foregoing portion of this specification.
[0135] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.
[0136] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as ROM, RAM, magnetic disk, or optical disk.
[0137] The basic principles of this disclosure have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this disclosure are merely examples and not limitations, and should not be considered as essential features of each embodiment of this disclosure. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the scope of this disclosure to the necessity of employing the aforementioned specific details for implementation.
[0138] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For system embodiments, since they largely correspond to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0139] The block diagrams of devices, apparatuses, devices, and systems disclosed herein are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.
[0140] The methods and apparatus of this disclosure may be implemented in many ways. For example, they may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order of steps for the methods is for illustrative purposes only, and the steps of the methods of this disclosure are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, this disclosure may also be implemented as a program recorded on a recording medium, the program including machine-readable instructions for implementing the methods according to this disclosure. Thus, this disclosure also covers recording media storing programs for performing the methods according to this disclosure.
[0141] It should also be noted that in the apparatus, devices, and methods of this disclosure, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions to this disclosure.
[0142] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of this disclosure. Therefore, this disclosure is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.
[0143] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this disclosure to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations therein.
Claims
1. A commodity inspection method, characterized in that, include: Obtain multi-dimensional product information for the target product; Based on the product information, the inspection model is used to perform product feature compliance detection on the target product to obtain the first inspection result. The product feature compliance detection includes single-dimensional abnormal fluctuation detection and cross-dimensional correlation detection. Based on the first inspection result, the second inspection result of the target product is determined.
2. The method according to claim 1, characterized in that, The step of determining the second inspection result of the target product based on the first inspection result includes: In response to the first inspection result indicating that the target product has an abnormal fluctuation error type of an anomaly, the fluctuation information corresponding to the anomaly is obtained; Based on the fluctuation information and the first inspection result, the second inspection result of the target product is determined; In response to the first inspection result indicating that the target product has an anomaly of the type of related error, the first inspection result is determined as the second inspection result.
3. The method according to claim 1, characterized in that, Based on the product information, the inspection model is used to perform product feature compliance detection on the target product to obtain a first inspection result, including: In response to the target product belonging to a new category, at least one target product feature is extracted from the product information; Obtain the k target training samples that have the highest similarity to at least one of the target product features; The inspection model is adjusted by using k target training samples to obtain a specific inspection model. The product information is input into the special inspection model, and the special inspection model outputs the first inspection result. In response to the fact that the target product does not belong to a new category, the product information is input into the inspection model, and the inspection model outputs the first inspection result.
4. The method according to claim 2, characterized in that, The step of obtaining the fluctuation information corresponding to the anomaly includes: Extract the abnormal product features from the anomalies; Based on the characteristics of the abnormal goods, a fluctuation detection model is used to detect fluctuations in the abnormal items to obtain the fluctuation information.
5. The method according to claim 4, characterized in that, After obtaining the fluctuation information, the process also includes: In response to the fluctuation information including normal fluctuations, the fluctuation detection model is updated based on a preset scaling threshold and the current feature value and multiple historical feature values corresponding to the abnormal product features, so as to perform the next fluctuation detection using the updated fluctuation detection model.
6. The method according to any one of claims 1-5, characterized in that, The first inspection result includes the inspection label, label description information, and inspection confidence level; the method further includes: If the inspection confidence level is greater than or equal to a preset confidence threshold and the detection label is an abnormal label, the abnormality judgment type is determined based on the abnormal items in the label description information. The abnormality judgment type includes the abnormal fluctuation error type and the correlation error type.
7. The method according to claim 6, characterized in that, After determining the first inspection result, the following is also included: Using a preset order-preserving scaler, the inspection confidence in the first inspection result is calibrated to obtain the target calibration confidence. The inspection confidence in the first inspection result is updated using the target calibration confidence.
8. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing a computer program stored in the memory, wherein when the computer program is executed, it implements the method described in any one of claims 1-7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1-7.
10. A computer program product comprising computer program instructions, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1-7.
