Electronic component authentication method and system
Through the combination of multi-dimensional data acquisition and decision tree model, efficient batch authentication and data management of electronic components are achieved, the problems of inefficiency and insufficient data security in the existing technology are solved, and the retrieval and management efficiency of authentication information is improved.
Patent Information
- Application Number
- CN202510153634.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-12
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-02-12
AI Technical Summary
The prior art electronic component authentication methods are inefficient, rely on manual detection, are prone to errors, and lack batch efficient authentication and storage methods, which affects data management and query efficiency, and cannot guarantee data security.
Through scanning code, imaging and RFID reading devices, multi-dimensional data collection is carried out for target batch electronic components, dynamically adjusting the number of batch certified components, and multi-dimensional authentication characteristic data and record data are generated. Collect feature data from multiple authentication periods, use the decision tree model to build an authentication classification model, and realize efficient classification and query of batch authentication records of electronic components.
It improves the retrieval efficiency of product certification information, improves the efficiency of certification data management, reduces data processing, and helps to store data on security platforms such as blockchain.
Smart Images

Figure CN120012809A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic component information authentication, and more specifically, to an electronic component authentication method and system. Background Art
[0002] With the rapid development of electronic technology, the types and quantities of electronic components have increased dramatically. How to ensure the quality, safety and compliance of these electronic components during the production process and encryption authentication process has become an urgent problem to be solved. Most traditional electronic component authentication methods rely on manual inspection and review, which is not only time-consuming and labor-intensive, but also prone to errors. In addition, the electronic component authentication process of the prior art is inefficient, often authenticating one by one, and the stored authentication process data is a single data item-by-item storage. There is a lack of efficient batch authentication storage methods, and the records generated by the authentication process are stored in a single manner, which is not conducive to subsequent record maintenance, and the query efficiency is low. At the same time, data security cannot be guaranteed. Therefore, an efficient electronic component authentication method is needed to meet the large-scale authentication and query needs of electronic components and related products. Summary of the invention
[0003] The present invention overcomes the defects of the prior art and proposes an electronic component authentication method and system.
[0004] A first aspect of the present invention provides an electronic component authentication method, comprising: Obtain the testing and certification plan for the target batch of electronic components, and set the initial batch certification component quantity N according to the certification plan; In an authentication period, a code scanning device, a camera device and an RFID reader are used to collect multi-dimensional authentication data of N electronic components, and graphic code data, image data and RFID identification data are obtained respectively; Perform multi-mode data authentication and identification on the graphic code data, image data, and RFID identification data, and judge the authentication result. If the authentication result meets the expected result, generate multi-dimensional authentication feature data and corresponding authentication record data for the graphic code data, image data, and RFID identification data according to the authentication result, and dynamically increase the value N. In the next authentication period, perform data collection and authentication on N electronic components; Collect authentication feature data corresponding to multiple authentication time periods to form an authentication feature set, perform feature selection and feature construction on the feature data in the authentication feature set based on a decision tree model, construct multiple conditional nodes, and construct an authentication classification model based on a decision tree through the multiple conditional nodes; The authentication feature data is associated with the corresponding authentication record data and stored in the system database. The authentication query tag of the electronic component is obtained through the user terminal. The component authentication feature is generated through the authentication query tag. The component authentication feature is imported into the authentication classification model for authentication classification, and the authentication classification result is identified. The user authentication record data is filtered out from the system database through the authentication classification result.
[0005] In this solution, the test and certification plan for the target batch of electronic components is obtained, and the number of initial batch certified components N is set according to the certification plan, specifically: Obtaining a testing and certification plan for a target batch of electronic components, wherein the testing and certification plan includes information on the number of certified electronic components, certification testing frequency, and certification testing mode; Through the testing and certification plan, a feasibility analysis of the certification requirements and certification equipment is conducted, and the initial batch certification component quantity N is set.
[0006] In this solution, during one authentication period, a code scanning device, a camera device and an RFID reader are used to collect multi-dimensional authentication data of N electronic components, and obtain graphic code data, image data and RFID identification data, specifically: Set multiple certification periods based on the testing and certification plan; In an authentication period, the N electronic components in the authentication period are authenticated and scanned and data collected by the code scanning device, the camera device and the RFID reading device, and the graphic code data, the image data and the RFID identification data are obtained respectively; Perform image denoising, enhancement and standardization preprocessing on graphic code data and image data.
[0007] In this solution, the graphic code data, image data, and RFID identification data are subjected to multi-mode data authentication and identification, and the authentication result is judged. If the authentication result meets the expected result, multi-dimensional authentication feature data and corresponding authentication record data are generated for the graphic code data, image data, and RFID identification data according to the authentication result, and the value N is dynamically increased. In the next authentication period, data collection and authentication are performed on N electronic components, specifically: Extracting feature information of the graphic code based on the graphic code data to obtain feature data of the graphic code; Perform contour recognition of electronic components on image data, analyze the grayscale difference of image pixels, extract contour features and texture features through the Prewitt operator, and integrate the contour features and texture features as the appearance feature data of the electronic components; Perform data analysis through RFID identification data to form RFID identification tag data; Perform multi-mode identification authentication of electronic components based on graphic code feature data, appearance feature data and RFID identification tag data, and generate authentication results in three dimensions; If the authentication result meets the expected result, the value N is dynamically increased based on the preset step size; Perform feature analysis on the graphic code feature data, appearance feature data and RFID identification tag data, extract the main features through PCA analysis, and perform feature splicing on the extracted main feature data based on feature splicing to form multi-dimensional authentication feature data; The graphic code data, image data, RFID identification data and authentication results are integrated into authentication record data.
[0008] In this solution, the determination of the authentication result also includes: If the authentication result does not meet the expected result, the value N is dynamically reduced based on the preset step size.
[0009] In this solution, the authentication feature data corresponding to multiple authentication time periods are collected to form an authentication feature set. Based on the decision tree model, feature selection and feature construction are performed on the feature data in the authentication feature set to construct multiple conditional nodes. The authentication classification model based on the decision tree is constructed through the multiple conditional nodes, specifically: Collect authentication feature data corresponding to multiple authentication time periods to form an authentication feature set; For each authentication feature set as a sub-sample set, a preset amount of features are randomly selected from each sub-sample set to transform feature judgment conditions and generate multiple judgment nodes; According to the judgment node, the root node and internal nodes are determined by the CART algorithm, and leaf nodes are gradually generated to obtain the authentication classification model based on the decision tree; Based on the authentication feature data corresponding to the preset K authentication time periods as test data, the authentication classification model is tested and trained.
[0010] In this solution, the authentication feature data is associated with the corresponding authentication record data and stored in the system database, the authentication query tag of the electronic component is obtained through the user terminal, the component authentication feature is generated through the authentication query tag, the component authentication feature is imported into the authentication classification model for authentication classification, and the authentication classification result is identified. According to the authentication classification result, the user authentication record data is screened from the system database, specifically: Associating the authentication feature data with the corresponding authentication record data and storing them in the system database; The user inputs authentication query information through the user terminal, and an authentication query tag is generated according to the authentication query information; Generate component authentication features through authentication query tags, import component authentication features into authentication classification model to perform initial classification of authentication information, and obtain authentication classification results; According to the certification classification results, the corresponding certification record data set is screened out from the system database; Perform secondary retrieval of records from the authentication record data set, and further retrieve user authentication record data.
[0011] The second aspect of the present invention further provides an electronic component authentication system, the system comprising: a memory and a processor, the memory comprising an electronic component authentication program, the electronic component authentication program when executed by the processor implements the following steps: Obtain the testing and certification plan for the target batch of electronic components, and set the initial batch certification component quantity N according to the certification plan; In an authentication period, a code scanning device, a camera device and an RFID reader are used to collect multi-dimensional authentication data of N electronic components, and graphic code data, image data and RFID identification data are obtained respectively; Perform multi-mode data authentication and identification on the graphic code data, image data, and RFID identification data, and judge the authentication result. If the authentication result meets the expected result, generate multi-dimensional authentication feature data and corresponding authentication record data for the graphic code data, image data, and RFID identification data according to the authentication result, and dynamically increase the value N. In the next authentication period, perform data collection and authentication on N electronic components; Collect authentication feature data corresponding to multiple authentication time periods to form an authentication feature set, perform feature selection and feature construction on the feature data in the authentication feature set based on a decision tree model, construct multiple conditional nodes, and construct an authentication classification model based on a decision tree through the multiple conditional nodes; The authentication feature data is associated with the corresponding authentication record data and stored in the system database. The authentication query tag of the electronic component is obtained through the user terminal. The component authentication feature is generated through the authentication query tag. The component authentication feature is imported into the authentication classification model for authentication classification, and the authentication classification result is identified. The user authentication record data is filtered out from the system database through the authentication classification result.
[0012] A third aspect of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes an electronic component authentication program, and when the electronic component authentication program is executed by a processor, the steps of any of the above-mentioned electronic component authentication methods are implemented.
[0013] The present invention discloses an electronic component authentication method and system, which uses code scanning, video recording and RFID reading devices to perform multi-dimensional collection of graphic codes, images and RFID data of target batch electronic components within the authentication period. The number N of batch authentication components is dynamically adjusted according to the authentication results, and multi-dimensional authentication feature data and record data are generated. Feature data of multiple authentication periods are collected to form a feature set, and a certification classification model is constructed using a decision tree. The classification model is used to achieve efficient classification and query of batch authentication records of electronic components. Through the present invention, the retrieval efficiency of product authentication information can be effectively improved, and the efficiency of authentication data management can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A flow chart of an electronic component authentication method of the present invention is shown; Figure 2 A block diagram of an electronic component authentication system according to the present invention is shown. DETAILED DESCRIPTION
[0015] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0016] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0017] Figure 1 A flow chart of an electronic component authentication method of the present invention is shown.
[0018] like Figure 1 As shown, the first aspect of the present invention provides an electronic component authentication method, comprising: S102, obtaining a testing and certification plan for a target batch of electronic components, and setting an initial batch certification component quantity N according to the certification plan; S104, within an authentication period, multi-dimensional authentication data collection is performed on N electronic components through a code scanning device, a camera device, and an RFID reading device to obtain graphic code data, image data, and RFID identification data respectively; S106, perform multi-mode data authentication and identification on the graphic code data, image data, and RFID identification data, and determine the authentication result. If the authentication result meets the expected result, generate multi-dimensional authentication feature data and corresponding authentication record data for the graphic code data, image data, and RFID identification data according to the authentication result, and dynamically increase the value N. In the next authentication period, perform data collection and authentication on N electronic components; S108, collecting authentication feature data corresponding to multiple authentication time periods to form an authentication feature set, performing feature selection and feature construction on the feature data in the authentication feature set based on a decision tree model, constructing multiple conditional nodes, and constructing an authentication classification model based on a decision tree through the multiple conditional nodes; S110, associate the authentication feature data with the corresponding authentication record data and store them in the system database, obtain the authentication query tag of the electronic component through the user terminal, generate the component authentication feature through the authentication query tag, import the component authentication feature into the authentication classification model for authentication classification, and identify the authentication classification result, and filter out the user authentication record data from the system database through the authentication classification result.
[0019] It should be noted that during the production and warehousing process of electronic components, multi-mode certification testing is often required to certify component production and ensure the quality, safety and compliance of electronic components.
[0020] The graphic code data, image data, and RFID identification data are all authentication data, which have a certain degree of confidentiality. In the device-side software platform, multi-CAN port communication technology is used to generate corresponding data encryption schemes based on different component products, and the data generated by different components are classified and managed. Based on different encryption schemes, relevant keys are generated and recorded and saved in the platform. The platform distributes keys based on user terminals with different permissions. The keys are transmitted and distributed through a secure transmission protocol (such as TLS / SSL). The transmission adopts a two-way authentication device authentication mechanism with national secret symmetric encryption to ensure the security of key transmission. The device-side software platform has functions such as key generation, key storage, key distribution, key update, and key destruction. The platform has a remote monitoring function, which can trace the source of abnormal components and save the authentication records of unauthenticated components to define the responsible person.
[0021] According to an embodiment of the present invention, the acquisition of the inspection and certification plan for the target batch of electronic components and setting the initial batch certification component quantity N according to the certification plan are specifically: Obtaining a testing and certification plan for a target batch of electronic components, wherein the testing and certification plan includes information on the number of certified electronic components, certification testing frequency, and certification testing mode; Through the testing and certification plan, a feasibility analysis of the certification requirements and certification equipment is conducted, and the initial batch certification component quantity N is set.
[0022] It should be noted that the initial batch authentication component quantity N is a relatively low value, which is used to set the initial one-time identification quantity of the authentication device. The authentication device includes a code scanning device, a camera device and an RFID reading device, which have the ability to collect and identify data of multiple electronic components at one time for different identification modes. For example, for an RFID reading device, the electronic tags of multiple components can be read and identified simultaneously. By dynamically setting the quantity N, the authentication of batch components can be effectively realized and the authentication efficiency can be maximized.
[0023] In each authentication period, it is a batch recognition process. By dynamically setting the value N, the detection device is used to maximize the use of batch recognition. Subsequently, a classification model is constructed based on the corresponding authentication feature data collected in each authentication period, which effectively realizes the effective classification and efficient query of the authentication data in the system database, and realizes a highly automated authentication process for the electronic component system.
[0024] According to an embodiment of the present invention, during one authentication period, a code scanning device, a camera device and an RFID reading device are used to collect multi-dimensional authentication data of N electronic components, and graphic code data, image data and RFID identification data are obtained respectively, specifically: Set multiple certification periods based on the testing and certification plan; In an authentication period, the N electronic components in the authentication period are authenticated and scanned and data collected by the code scanning device, the camera device and the RFID reading device, and the graphic code data, the image data and the RFID identification data are obtained respectively; Perform image denoising, enhancement and standardization preprocessing on graphic code data and image data.
[0025] It should be noted that the graphic code data is used for the authentication of QR codes and bar codes, the image data is used to analyze the appearance feature data of the product, and the RFID identification data is used to analyze the RFID tag data. All three data are used for product authentication.
[0026] According to an embodiment of the present invention, the multi-mode data authentication and identification is performed on the graphic code data, the image data, and the RFID identification data, and the authentication result is judged. If the authentication result meets the expected result, multi-dimensional authentication feature data and corresponding authentication record data are generated for the graphic code data, the image data, and the RFID identification data according to the authentication result, and the value N is dynamically increased. In the next authentication period, data collection and authentication are performed on N electronic components, specifically: Extracting feature information of the graphic code based on the graphic code data to obtain feature data of the graphic code; Perform contour recognition of electronic components on image data, analyze the grayscale difference of image pixels, extract contour features and texture features through the Prewitt operator, and integrate the contour features and texture features as the appearance feature data of the electronic components; Perform data analysis through RFID identification data to form RFID identification tag data; Perform multi-mode identification authentication of electronic components based on graphic code feature data, appearance feature data and RFID identification tag data, and generate authentication results in three dimensions; If the authentication result meets the expected result, the value N is dynamically increased based on the preset step size; Perform feature analysis on the graphic code feature data, appearance feature data and RFID identification tag data, extract the main features through PCA analysis, and perform feature splicing on the extracted main feature data based on feature splicing to form multi-dimensional authentication feature data; The graphic code data, image data, RFID identification data and authentication results are integrated into authentication record data.
[0027] It should be noted that the multi-mode identification authentication of electronic components based on the graphic code feature data, appearance feature data and RFID identification tag data generates three-dimensional authentication results. There are certain identical identifiers between different mode authentication data. For example, in the graphic code feature data, its authentication process can identify the electronic component ID, specification parameters, manufacturer name, production date and other information, the appearance feature data can identify the electronic component specification parameters, appearance and other information, and the RFID identification tag data can identify the electronic component ID, logistics history, batch information, etc. The corresponding authentication results include the authentication results of the three modes (i.e., three dimensions). If all authentications are successful, it means that the results are in line with expectations. After the value N is dynamically increased, in the next authentication period, data collection and authentication are performed with N electronic components based on the increased N. The authentication record data also includes information such as authentication time, authentication times, and authentication setting mode. In the multi-dimensional authentication feature data, each dimension corresponds to one authentication data.
[0028] Through the process of the present invention, it is possible to quickly query and filter and classify electronic components in multiple batches or in large-scale authentication data, locate and retrieve corresponding authentication records, improve the retrieval efficiency of product information, and improve the efficiency of authentication data management. Compared with traditional authentication records and queries of electronic components one by one, the present invention can greatly reduce the amount of data processing and facilitate data storage on security platforms such as blockchain.
[0029] According to an embodiment of the present invention, the determining of the authentication result further includes: If the authentication result does not meet the expected result, the value N is dynamically reduced based on the preset step size.
[0030] According to an embodiment of the present invention, the authentication feature data corresponding to multiple authentication time periods are collected to form an authentication feature set, and feature selection and feature construction are performed on the feature data in the authentication feature set based on a decision tree model to construct multiple conditional nodes, and an authentication classification model based on a decision tree is constructed through the multiple conditional nodes, specifically: Collect authentication feature data corresponding to multiple authentication time periods to form an authentication feature set; For each authentication feature set as a sub-sample set, a preset amount of features are randomly selected from each sub-sample set to transform feature judgment conditions and generate multiple judgment nodes; According to the judgment node, the root node and internal nodes are determined by the CART algorithm, and leaf nodes are gradually generated to obtain the authentication classification model based on the decision tree; Based on the authentication feature data corresponding to the preset K authentication time periods as test data, the authentication classification model is tested and trained.
[0031] It should be noted that the model training includes node selection optimization, branch point redetermination, etc.
[0032] According to an embodiment of the present invention, the authentication feature data is associated with the corresponding authentication record data and stored in the system database, the authentication query tag of the electronic component is obtained through the user terminal, the component authentication feature is generated through the authentication query tag, the component authentication feature is imported into the authentication classification model for authentication classification, and the authentication classification result is identified. According to the authentication classification result, the user authentication record data is filtered out from the system database, specifically: Associating the authentication feature data with the corresponding authentication record data and storing them in the system database; The user inputs authentication query information through the user terminal, and an authentication query tag is generated according to the authentication query information; Generate component authentication features through authentication query tags, import component authentication features into authentication classification model to perform initial classification of authentication information, and obtain authentication classification results; According to the certification classification results, the corresponding certification record data set is screened out from the system database; Perform secondary retrieval of records from the authentication record data set, and further retrieve user authentication record data.
[0033] It should be noted that the authentication query tag can include multiple types of data, such as QR codes, appearance features, RFID electronic tags, specification parameters, electronic component ID and other information, depending on what type of data the user needs to use to perform authentication query on the electronic component, based on which the tag information can be converted into corresponding feature data. The user authentication record data is the final retrieval result of the authentication electronic component queried by the user.
[0034] According to an embodiment of the present invention, associating the authentication feature data with the corresponding authentication record data and storing them in a system database further includes: In M preset authentication time periods, for each authentication time period, the authentication feature data is associated with the corresponding authentication record data and forms a data block; Through the blockchain network, based on the asymmetric encryption algorithm, M data blocks are encrypted in sequence and uploaded to the authentication center platform; Before the uploading process, the M authentication feature data corresponding to the M data blocks are marked, the M authentication feature data are imported into the authentication classification model for data classification, and a real-time classification result is formed; After the authentication center platform passes the verification data process, it broadcasts the upload information of M data blocks to the remaining terminal network nodes and completes the data block upload of the remaining terminal network nodes; In the remaining terminal network nodes, the M authentication feature data are obtained through the blockchain network, and a second classification result is generated based on the authentication classification model; Through the difference between the real-time classification result and the second classification result, the consistency of the data blocks stored in the blockchain network in the remaining terminal network nodes and the authentication center platform is judged.
[0035] It should be noted that in addition to general database storage of authentication record data, the present invention also includes storage based on a blockchain network for security reasons.
[0036] It is worth mentioning here that when performing blockchain storage, it is often necessary to maintain the data consistency of each network node. In the authentication data platform, data consistency verification is often inefficient, and no efficient data block consistency evaluation method applicable to batch authentication data is considered, resulting in low data processing efficiency when the authentication center platform is combined with the blockchain network, which is not conducive to data security storage. Based on this, the present invention imports the authentication feature data into the authentication classification model for multiple authentication time periods analyzed in real time during the storage process to form a classification result. The classification result includes multiple groups of data, each group of classification corresponds to multiple data blocks identified or multiple authentication feature data, and each data block corresponds to one authentication feature data. Further, through the difference in classification results, the consistency of data blocks in different network nodes is evaluated, and an efficient consistency evaluation process for batch authentication data stored in multiple network nodes is realized, which improves the blockchain storage efficiency and has better practicality for the authentication platform.
[0037] The real-time classification result is consistent with the analysis process of the second classification result. In the blockchain network, the remaining terminal network nodes all include corresponding data blocks, and the data blocks must be consistent with the authentication center platform.
[0038] Figure 2A block diagram of an electronic component authentication system according to the present invention is shown.
[0039] The second aspect of the present invention further provides an electronic component authentication system 2, which includes: a memory 21 and a processor 22, wherein the memory 21 includes an electronic component authentication program, and when the electronic component authentication program is executed by the processor 22, the following steps are implemented: Obtain the testing and certification plan for the target batch of electronic components, and set the initial batch certification component quantity N according to the certification plan; In an authentication period, a code scanning device, a camera device and an RFID reader are used to collect multi-dimensional authentication data of N electronic components, and graphic code data, image data and RFID identification data are obtained respectively; Perform multi-mode data authentication and identification on the graphic code data, image data, and RFID identification data, and judge the authentication result. If the authentication result meets the expected result, generate multi-dimensional authentication feature data and corresponding authentication record data for the graphic code data, image data, and RFID identification data according to the authentication result, and dynamically increase the value N. In the next authentication period, perform data collection and authentication on N electronic components; Collect authentication feature data corresponding to multiple authentication time periods to form an authentication feature set, perform feature selection and feature construction on the feature data in the authentication feature set based on a decision tree model, construct multiple conditional nodes, and construct an authentication classification model based on a decision tree through the multiple conditional nodes; The authentication feature data is associated with the corresponding authentication record data and stored in the system database. The authentication query tag of the electronic component is obtained through the user terminal. The component authentication feature is generated through the authentication query tag. The component authentication feature is imported into the authentication classification model for authentication classification, and the authentication classification result is identified. The user authentication record data is filtered out from the system database through the authentication classification result.
[0040] It should be noted that during the production and warehousing process of electronic components, multi-mode certification testing is often required to certify component production and ensure the quality, safety and compliance of electronic components.
[0041] According to an embodiment of the present invention, the acquisition of the inspection and certification plan for the target batch of electronic components and setting the initial batch certification component quantity N according to the certification plan are specifically: Obtaining a testing and certification plan for a target batch of electronic components, wherein the testing and certification plan includes information on the number of certified electronic components, certification testing frequency, and certification testing mode; Through the testing and certification plan, a feasibility analysis of the certification requirements and certification equipment is conducted, and the initial batch certification component quantity N is set.
[0042] It should be noted that the initial batch authentication component quantity N is a relatively low value, which is used to set the initial one-time identification quantity of the authentication device. The authentication device includes a code scanning device, a camera device and an RFID reading device, which have the ability to collect and identify data of multiple electronic components at one time for different identification modes. For example, for an RFID reading device, the electronic tags of multiple components can be read and identified simultaneously. By dynamically setting the quantity N, the authentication of batch components can be effectively realized and the authentication efficiency can be maximized.
[0043] In each authentication period, it is a batch recognition process. By dynamically setting the value N, the detection device is used to maximize the use of batch recognition. Subsequently, a classification model is constructed based on the corresponding authentication feature data collected in each authentication period, which effectively realizes the effective classification and efficient query of the authentication data in the system database, and realizes a highly automated authentication process for the electronic component system.
[0044] According to an embodiment of the present invention, during one authentication period, a code scanning device, a camera device and an RFID reading device are used to collect multi-dimensional authentication data of N electronic components, and graphic code data, image data and RFID identification data are obtained respectively, specifically: Set multiple certification periods based on the testing and certification plan; In an authentication period, the N electronic components in the authentication period are authenticated and scanned and data collected by the code scanning device, the camera device and the RFID reading device, and the graphic code data, the image data and the RFID identification data are obtained respectively; Perform image denoising, enhancement and standardization preprocessing on graphic code data and image data.
[0045] It should be noted that the graphic code data is used for the authentication of QR codes and bar codes, the image data is used to analyze the appearance feature data of the product, and the RFID identification data is used to analyze the RFID tag data. All three data are used for product authentication.
[0046] According to an embodiment of the present invention, the multi-mode data authentication and identification is performed on the graphic code data, the image data, and the RFID identification data, and the authentication result is judged. If the authentication result meets the expected result, multi-dimensional authentication feature data and corresponding authentication record data are generated for the graphic code data, the image data, and the RFID identification data according to the authentication result, and the value N is dynamically increased. In the next authentication period, data collection and authentication are performed on N electronic components, specifically: Extracting feature information of the graphic code based on the graphic code data to obtain feature data of the graphic code; Perform contour recognition of electronic components on image data, analyze the grayscale difference of image pixels, extract contour features and texture features through the Prewitt operator, and integrate the contour features and texture features as the appearance feature data of the electronic components; Perform data analysis through RFID identification data to form RFID identification tag data; Perform multi-mode identification authentication of electronic components based on graphic code feature data, appearance feature data and RFID identification tag data, and generate authentication results in three dimensions; If the authentication result meets the expected result, the value N is dynamically increased based on the preset step size; Perform feature analysis on the graphic code feature data, appearance feature data and RFID identification tag data, extract the main features through PCA analysis, and perform feature splicing on the extracted main feature data based on feature splicing to form multi-dimensional authentication feature data; The graphic code data, image data, RFID identification data and authentication results are integrated into authentication record data.
[0047] It should be noted that the multi-mode identification authentication of electronic components based on the graphic code feature data, appearance feature data and RFID identification tag data generates three-dimensional authentication results. There are certain identical identifiers between different mode authentication data. For example, in the graphic code feature data, its authentication process can identify the electronic component ID, specification parameters, manufacturer name, production date and other information, the appearance feature data can identify the electronic component specification parameters, appearance and other information, and the RFID identification tag data can identify the electronic component ID, logistics history, batch information, etc. The corresponding authentication results include the authentication results of the three modes (i.e., three dimensions). If all authentications are successful, it means that the results are in line with expectations. After the value N is dynamically increased, in the next authentication period, data collection and authentication are performed with N electronic components based on the increased N. The authentication record data also includes information such as authentication time, authentication times, and authentication setting mode. In the multi-dimensional authentication feature data, each dimension corresponds to one authentication data.
[0048] Through the process of the present invention, it is possible to quickly query and filter and classify electronic components in multiple batches or in large-scale authentication data, locate and retrieve corresponding authentication records, improve the retrieval efficiency of product information, and improve the efficiency of authentication data management. Compared with traditional authentication records and queries of electronic components one by one, the present invention can greatly reduce the amount of data processing and facilitate data storage on security platforms such as blockchain.
[0049] According to an embodiment of the present invention, the determining of the authentication result further includes: If the authentication result does not meet the expected result, the value N is dynamically reduced based on the preset step size.
[0050] According to an embodiment of the present invention, the authentication feature data corresponding to multiple authentication time periods are collected to form an authentication feature set, and feature selection and feature construction are performed on the feature data in the authentication feature set based on a decision tree model to construct multiple conditional nodes, and an authentication classification model based on a decision tree is constructed through the multiple conditional nodes, specifically: Collect authentication feature data corresponding to multiple authentication time periods to form an authentication feature set; For each authentication feature set as a sub-sample set, a preset amount of features are randomly selected from each sub-sample set to transform feature judgment conditions and generate multiple judgment nodes; According to the judgment node, the root node and internal nodes are determined by the CART algorithm, and leaf nodes are gradually generated to obtain the authentication classification model based on the decision tree; Based on the authentication feature data corresponding to the preset K authentication time periods as test data, the authentication classification model is tested and trained.
[0051] It should be noted that the model training includes node selection optimization, branch point redetermination, etc.
[0052] According to an embodiment of the present invention, the authentication feature data is associated with the corresponding authentication record data and stored in the system database, the authentication query tag of the electronic component is obtained through the user terminal, the component authentication feature is generated through the authentication query tag, the component authentication feature is imported into the authentication classification model for authentication classification, and the authentication classification result is identified. According to the authentication classification result, the user authentication record data is filtered out from the system database, specifically: Associating the authentication feature data with the corresponding authentication record data and storing them in the system database; The user inputs authentication query information through the user terminal, and an authentication query tag is generated according to the authentication query information; Generate component authentication features through authentication query tags, import component authentication features into authentication classification model to perform initial classification of authentication information, and obtain authentication classification results; According to the certification classification results, the corresponding certification record data set is screened out from the system database; Perform secondary retrieval of records from the authentication record data set, and further retrieve user authentication record data.
[0053] It should be noted that the authentication query tag can include multiple types of data, such as QR codes, appearance features, RFID electronic tags, specification parameters, electronic component ID and other information, depending on what type of data the user needs to use to perform authentication query on the electronic component, based on which the tag information can be converted into corresponding feature data. The user authentication record data is the final retrieval result of the authentication electronic component queried by the user.
[0054] A third aspect of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes an electronic component authentication program, and when the electronic component authentication program is executed by a processor, the steps of any of the above-mentioned electronic component authentication methods are implemented.
[0055] The present invention discloses an electronic component authentication method and system, which uses code scanning, video recording and RFID reading devices to perform multi-dimensional collection of graphic codes, images and RFID data of target batch electronic components within the authentication period. The number N of batch authentication components is dynamically adjusted according to the authentication results, and multi-dimensional authentication feature data and record data are generated. Feature data of multiple authentication periods are collected to form a feature set, and a certification classification model is constructed using a decision tree. The classification model is used to achieve efficient classification and query of batch authentication records of electronic components. Through the present invention, the retrieval efficiency of product authentication information can be effectively improved, and the efficiency of authentication data management can be improved.
[0056] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0057] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0058] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0059] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0060] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0061] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. An electronic component authentication method, characterized in that: include: Obtain the testing and certification plan for the target batch of electronic components, and set the initial batch certification component quantity N according to the certification plan; In an authentication period, a code scanning device, a camera device and an RFID reader are used to collect multi-dimensional authentication data of N electronic components, and graphic code data, image data and RFID identification data are obtained respectively; Perform multi-mode data authentication and identification on the graphic code data, image data, and RFID identification data, and judge the authentication result. If the authentication result meets the expected result, generate multi-dimensional authentication feature data and corresponding authentication record data for the graphic code data, image data, and RFID identification data according to the authentication result, and dynamically increase the value N. In the next authentication period, perform data collection and authentication on N electronic components; Collect authentication feature data corresponding to multiple authentication time periods to form an authentication feature set, perform feature selection and feature construction on the feature data in the authentication feature set based on a decision tree model, construct multiple conditional nodes, and construct an authentication classification model based on a decision tree through the multiple conditional nodes; The authentication feature data is associated with the corresponding authentication record data and stored in the system database. The authentication query tag of the electronic component is obtained through the user terminal. The component authentication feature is generated through the authentication query tag. The component authentication feature is imported into the authentication classification model for authentication classification, and the authentication classification result is identified. The user authentication record data is filtered out from the system database through the authentication classification result.
2. An electronic component authentication method according to claim 1, characterized in that: The method of obtaining the inspection and certification plan for the target batch of electronic components and setting the initial batch certification component quantity N according to the certification plan is as follows: Obtaining a testing and certification plan for a target batch of electronic components, wherein the testing and certification plan includes information on the number of certified electronic components, certification testing frequency, and certification testing mode; Through the testing and certification plan, a feasibility analysis of the certification requirements and certification equipment is conducted, and the initial batch certification component quantity N is set.
3. The electronic component authentication method according to claim 1, characterized in that: In one authentication period, the scanning device, the camera device and the RFID reader are used to collect multi-dimensional authentication data of N electronic components, and obtain graphic code data, image data and RFID identification data, which are specifically: Set multiple certification periods based on the testing and certification plan; In an authentication period, the N electronic components in the authentication period are authenticated and scanned and data collected by the code scanning device, the camera device and the RFID reading device, and the graphic code data, the image data and the RFID identification data are obtained respectively; Perform image denoising, enhancement and standardization preprocessing on graphic code data and image data.
4. The electronic component authentication method according to claim 1, characterized in that: The multi-mode data authentication and identification is performed on the graphic code data, the image data, and the RFID identification data, and the authentication result is judged. If the authentication result meets the expected result, multi-dimensional authentication feature data and corresponding authentication record data are generated for the graphic code data, the image data, and the RFID identification data according to the authentication result, and the value N is dynamically increased. In the next authentication period, data collection and authentication are performed on N electronic components, specifically: Extracting feature information of the graphic code based on the graphic code data to obtain feature data of the graphic code; Perform contour recognition of electronic components on image data, analyze the grayscale difference of image pixels, extract contour features and texture features through the Prewitt operator, and integrate the contour features and texture features as the appearance feature data of the electronic components; Perform data analysis through RFID identification data to form RFID identification tag data; Perform multi-mode identification authentication of electronic components based on graphic code feature data, appearance feature data and RFID identification tag data, and generate authentication results in three dimensions; If the authentication result meets the expected result, the value N is dynamically increased based on the preset step size; Perform feature analysis on the graphic code feature data, appearance feature data and RFID identification tag data, extract the main features through PCA analysis, and perform feature splicing on the extracted main feature data based on feature splicing to form multi-dimensional authentication feature data; The graphic code data, image data, RFID identification data and authentication results are integrated into authentication record data.
5. An electronic component authentication method according to claim 4, characterized in that: The determination of the authentication result also includes: If the authentication result does not meet the expected result, the value N is dynamically reduced based on the preset step size.
6. The electronic component authentication method according to claim 4, characterized in that: The authentication feature data corresponding to the multiple authentication time periods are collected to form an authentication feature set, and feature selection and feature construction are performed on the feature data in the authentication feature set based on a decision tree model to construct multiple conditional nodes, and an authentication classification model based on a decision tree is constructed through the multiple conditional nodes, specifically: Collect authentication feature data corresponding to multiple authentication time periods to form an authentication feature set; For each authentication feature set as a sub-sample set, a preset amount of features are randomly selected from each sub-sample set to transform feature judgment conditions and generate multiple judgment nodes; According to the judgment node, the root node and internal nodes are determined by the CART algorithm, and leaf nodes are gradually generated to obtain the authentication classification model based on the decision tree; Based on the authentication feature data corresponding to the preset K authentication time periods as test data, the authentication classification model is tested and trained.
7. The electronic component authentication method according to claim 1, characterized in that: The authentication feature data is associated with the corresponding authentication record data and stored in the system database, the authentication query tag of the electronic component is obtained through the user terminal, the component authentication feature is generated through the authentication query tag, the component authentication feature is imported into the authentication classification model for authentication classification, and the authentication classification result is identified. According to the authentication classification result, the user authentication record data is screened from the system database, specifically: Associating the authentication feature data with the corresponding authentication record data and storing them in the system database; The user inputs authentication query information through the user terminal, and an authentication query tag is generated according to the authentication query information; Generate component authentication features through authentication query tags, import component authentication features into authentication classification model to perform initial classification of authentication information, and obtain authentication classification results; According to the certification classification results, the corresponding certification record data set is screened out from the system database; Perform secondary retrieval of records from the authentication record data set, and further retrieve user authentication record data.
8. An electronic component authentication system, characterized in that: The system includes: a memory and a processor, wherein the memory includes an electronic component authentication program, and when the electronic component authentication program is executed by the processor, the following steps are implemented: Obtain the testing and certification plan for the target batch of electronic components, and set the initial batch certification component quantity N according to the certification plan; In an authentication period, a code scanning device, a camera device and an RFID reader are used to collect multi-dimensional authentication data of N electronic components, and graphic code data, image data and RFID identification data are obtained respectively; Perform multi-mode data authentication and identification on the graphic code data, image data, and RFID identification data, and judge the authentication result. If the authentication result meets the expected result, generate multi-dimensional authentication feature data and corresponding authentication record data for the graphic code data, image data, and RFID identification data according to the authentication result, and dynamically increase the value N. In the next authentication period, perform data collection and authentication on N electronic components; Collect authentication feature data corresponding to multiple authentication time periods to form an authentication feature set, perform feature selection and feature construction on the feature data in the authentication feature set based on a decision tree model, construct multiple conditional nodes, and construct an authentication classification model based on a decision tree through the multiple conditional nodes; The authentication feature data is associated with the corresponding authentication record data and stored in the system database. The authentication query tag of the electronic component is obtained through the user terminal. The component authentication feature is generated through the authentication query tag. The component authentication feature is imported into the authentication classification model for authentication classification, and the authentication classification result is identified. The user authentication record data is filtered out from the system database through the authentication classification result.
9. An electronic component authentication system according to claim 8, characterized in that: The method of obtaining the inspection and certification plan for the target batch of electronic components and setting the initial batch certification component quantity N according to the certification plan is as follows: Obtaining a testing and certification plan for a target batch of electronic components, wherein the testing and certification plan includes information on the number of certified electronic components, certification testing frequency, and certification testing mode; Through the testing and certification plan, a feasibility analysis of the certification requirements and certification equipment is conducted, and the initial batch certification component quantity N is set.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes an electronic component authentication program, and when the electronic component authentication program is executed by a processor, the steps of the electronic component authentication method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Object authentication method and object authentication device
CN105574568A
Commodity data processing method and device, electronic equipment and goods handling vehicle
CN111105180A
Multi-technology-fused high-grade clothing supply chain anti-counterfeiting traceability system and method thereof
CN111860013A
Informationized intelligent warehousing management method and system
CN114266514A
Goods transportation method and system
CN115660538A