Substitute search method and system for electronic components
By receiving component model and image information, calculating similarity, and using deep learning algorithms for feature extraction, it solves the retrieval difficulty problem caused by users' unfamiliarity with attribute information, achieves fast and accurate alternative retrieval of electronic components, and improves retrieval efficiency. and accuracy.
Patent Information
- Application Number
- CN202311372018.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-10-20
AI Technical Summary
In the existing electronic component replacement retrieval technology, if the user is not familiar with component attribute information, it is difficult to quickly and accurately retrieve suitable replacement components, and the existing database may not be able to include the latest information in a timely manner, resulting in inaccurate search results or inability to find suitable replacement components. replacement components.
By receiving the model and image information of components, scheduling attribute information, calculating the similarity of each component in the database, using the weight values of character information, numerical information, relational attribute information and image information, using deep learning algorithms for feature extraction and comparison , enabling quick and accurate retrieval of replacement components without being familiar with attribute information.
It realizes the search for the most matching alternative components in a billion-level database in seconds, reduces user development or selection time, improves work efficiency, and improves the accuracy and reliability of retrieval.
Smart Images

Figure CN117609529B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of computer software development, and in particular relates to a replacement retrieval method for electronic components and a system thereof. Background Art
[0002] At present, China's manufacturing industry is booming. In terms of electronic components, with the increase in component manufacturers and models, component replacement has become an important topic. At present, electronic component replacement retrieval relies on database technology, data mining technology and artificial intelligence technology. Database technology provides a large-scale electronic component database, which contains information such as technical parameters, specifications and replacement relationships of various components, making efficient component retrieval and matching possible. Data mining technology analyzes a huge component database, extracts useful information and rules, helps engineers understand the characteristics and performance of components, and find possible replacement electronic components.
[0003] However, the current electronic component replacement retrieval technology still has some defects and deficiencies. Retrieving suitable electronic components from massive data is an important challenge. It requires a thorough understanding of all the attribute information of electronic components in order to quickly and accurately complete the electronic component replacement retrieval. Since not everyone is familiar with all the attribute information of all electronic components, when searching, if you are not familiar with the attribute information of electronic components, it often leads to inaccurate replacement retrieval results or failure to find suitable replacement electronic components. Summary of the invention
[0004] In order to overcome the deficiencies of the prior art, the present invention provides an alternative search method and system for electronic components to solve the problem in the prior art that, during search, the user is unfamiliar with the attribute information of electronic components, which often leads to inaccurate alternative search results or inability to find suitable alternative electronic components.
[0005] One embodiment of the present invention provides a replacement search method for electronic components, comprising the following steps:
[0006] Receive request information, and determine the electronic components to be replaced that match the request information; wherein the electronic components to be replaced include original electronic components to be replaced and similar electronic components to be replaced, and the request information includes the model of the original electronic components to be replaced and the image of the original electronic components to be replaced;
[0007] Scheduling the attribute information of the electronic components to be replaced, and calculating the similarity of each electronic component in the database based on the scheduling result; wherein the attribute information of the electronic components to be replaced includes character information, relationship attribute information and image information;
[0008] The similarities of the electronic components are ranked, and a ranking table of similarities of the electronic components is output, so that a replacement electronic component for the electronic component to be replaced can be determined from the ranking table of similarities.
[0009] In this embodiment, by receiving the model and image of the original electronic component to be replaced, the original electronic component to be replaced or a similar electronic component to be replaced is quickly found in the database; and by scheduling the attribute information of the original electronic component to be replaced or the similar electronic component to be replaced, and calculating the similarity of each electronic component in the database according to the obtained scheduling result (i.e. the direction of the desired replacement), since this scheme performs replacement retrieval based on the electronic components to be replaced existing in the database, it is not necessary to be familiar with the attribute information of the electronic components, and it is also possible to quickly and accurately retrieve suitable replacement electronic components in the database, and the most matching replacement electronic components can be retrieved from the database of billions within seconds and returned, helping users obtain electronic components with reference value, thereby greatly reducing user development or selection time and improving work efficiency.
[0010] In one embodiment, the receiving request information and determining the electronic components to be replaced that match the request information includes:
[0011] Receiving the model of the original electronic component to be replaced, and acquiring the original electronic component to be replaced from a database:
[0012] If the original electronic component to be replaced is not obtained from the database, receiving an image of the original electronic component to be replaced;
[0013] The feature information of the image is extracted, and the similar electronic components to be replaced that match the feature information of the image are acquired from a database according to the feature information of the image.
[0014] In one embodiment, scheduling the attribute information of the electronic components to be replaced, and calculating the similarity of each electronic component in the database based on the scheduling result, includes:
[0015] Extracting character information, relationship attribute information and image information of the electronic component to be replaced to obtain the scheduling result, wherein the character information includes category information and value information, and the scheduling result includes category information scheduling result, value information scheduling result, relationship attribute information scheduling result and image information scheduling result;
[0016] Calculate the weight value of the type information, value information, relationship attribute information and image information of each electronic component in the database according to the scheduling result;
[0017] The weight values of the type information, numerical value information, relationship attribute information and image information of the electronic components are added together to obtain the similarity of the electronic components.
[0018] In one embodiment, the step of calculating the weight values of the type information, value information, relationship attribute information and image information of each electronic component in the database according to the scheduling result includes:
[0019] Calculating the weight value of the type information of each electronic component in the database according to the type information scheduling result to obtain the weight value of the type information of each electronic component in the database;
[0020] Calculating weight values of the numerical information of each electronic component in the database according to the numerical information scheduling result to obtain weight values of the numerical information of each electronic component in the database; wherein the numerical information scheduling result includes determining numerical information and numerical interval information;
[0021] Calculate the weight value of the relationship attribute information of each electronic component in the database according to the relationship attribute information scheduling result to obtain the weight value of the relationship attribute information of each electronic component in the database;
[0022] The weight value of the image information of each electronic component in the database is calculated according to the image information scheduling result to obtain the weight value of the image information of each electronic component in the database.
[0023] In one embodiment, weight values of the numerical information of each electronic component in the database are calculated according to the numerical information scheduling result, including:
[0024] When the numerical information scheduling result is determined numerical information;
[0025] Extract data of each electronic component defined as numerical information by category;
[0026] Draw a histogram and a density curve to determine the distribution of data; wherein the histogram is used to display the frequency distribution of data, and the density curve is used to display the probability density distribution of data, and the distribution of data includes uniform distribution and normal distribution;
[0027] When the distribution of the data is normally distributed, if the value of the electronic component to be replaced and the value compared with it are within a preset confidence interval, the similarity of the two values is calculated according to the Euclidean distance to obtain the numerical similarity, and the weight value of the numerical information is obtained by multiplying the value by the assigned corresponding ratio; if the value of the electronic component to be replaced and the value compared with it are not within the preset confidence interval, the weight value of the numerical information is not calculated, and the weight value of the numerical information is 0.
[0028] In one embodiment, weight values of the numerical information of each electronic component in the database are calculated according to the numerical information scheduling result, and further includes:
[0029] When the numerical information scheduling result is numerical interval information;
[0030] The intersection and union ratio of the value intervals of the electronic components to be replaced is calculated using the following formula:
[0031]
[0032] in, It represents the intersection-union ratio of the numerical intervals between electronic components i and j;
[0033] A Ii : The value range of the electronic component i to be replaced;
[0034] A Ij : The numerical range of electronic component j in the database.
[0035] The weight value of the numerical information is obtained by multiplying the intersection-union ratio calculation result by the assigned corresponding ratio value.
[0036] In one embodiment, calculating the weight value of the image information of each electronic component in the database according to the image information scheduling result includes:
[0037] Using a deep learning classification algorithm to convert the image of the electronic component to be replaced into features, and obtain an image information scheduling result of the electronic component to be replaced;
[0038] Comparing the image information scheduling result of the electronic component to be replaced with the image information of each electronic component in the database;
[0039] The comparison result is normalized to a similarity distance value in the range of 0 to 1, and multiplied by the assigned corresponding ratio value to obtain the weight value of the image information.
[0040] In one embodiment, it also includes:
[0041] When entering electronic components into the database; obtaining images and information of electronic components, and using a deep learning algorithm model to perform offline training on the images and information of the electronic components, outputting vector features of the electronic components, and obtaining image information of the electronic components;
[0042] When a new electronic component is entered into the database; the image and information of the new electronic component are obtained, and the image and information of the new electronic component are trained offline using a deep learning algorithm model, and the vector features of the new electronic component are output to obtain the image information of the electronic component.
[0043] One embodiment of the present invention further provides an electronic component replacement retrieval system, comprising:
[0044] A receiving module, configured to receive request information to determine an electronic component to be replaced that matches the request information; wherein the request information includes a model of the original electronic component to be replaced and an image of the original electronic component to be replaced;
[0045] A scheduling calculation module, used for scheduling the attribute information of the electronic components to be replaced, and calculating the similarity of each electronic component in the database based on the scheduling result; wherein the attribute information of the electronic components to be replaced includes character information, relationship attribute information and image information;
[0046] The sorting output module is used to sort the similarities of the electronic components and output a similarity sorting table of the electronic components, so as to determine the electronic components that replace the electronic components to be replaced from the similarity sorting table.
[0047] In this embodiment, the advantages and beneficial effects of the alternative retrieval method for electronic components have been explained above and will not be repeated here. Moreover, since the electronic component alternative retrieval system uses the alternative retrieval method for electronic components, the electronic component alternative retrieval system also has the same advantages and beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0049] Figure 1 A schematic flow chart of a method for replacing electronic components provided by one embodiment of the present invention;
[0050] Figure 2 A schematic diagram of a process for determining an electronic component to be replaced in a replacement search method for an electronic component provided in one embodiment of the present invention;
[0051] Figure 3A schematic diagram of a flow chart of calculating the similarity of each electronic component in a database in a replacement search method for electronic components provided in one embodiment of the present invention;
[0052] Figure 4 A schematic diagram of a flow chart of calculating the weight value of an electronic component in a replacement search method for an electronic component provided in one embodiment of the present invention;
[0053] Figure 5 A schematic diagram of a flow chart of calculating a weight value of electronic component image information in a replacement search method for electronic components provided in one embodiment of the present invention;
[0054] Figure 6 A schematic diagram of a process of entering electronic components into a database in a replacement search method for electronic components provided in one embodiment of the present invention;
[0055] Figure 7 A schematic diagram of the structure of an electronic device provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0058] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or solutions that satisfy both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0059] At present, China's manufacturing industry is booming. In terms of electronic components, with the increase in component manufacturers and models, component replacement has become an important topic. At present, electronic component replacement retrieval relies on database technology, data mining technology and artificial intelligence technology. Database technology provides a large-scale electronic component database, which contains information such as technical parameters, specifications and replacement relationships of various components, making efficient component retrieval and matching possible. Data mining technology analyzes a huge component database, extracts useful information and rules, helps engineers understand the characteristics and performance of components, and find possible replacement components.
[0060] However, the current electronic component alternative retrieval technology still has some defects and shortcomings. First, retrieving suitable components from massive data is an important challenge. If you are not familiar with the properties of the components, it may lead to inaccurate alternative retrieval results or inability to find suitable alternative components. Secondly, due to the rapid changes in the electronic component market, existing databases may not be able to include the latest component information in a timely manner, lack comprehensiveness and real-time performance, and thus limit the accuracy and reliability of alternative retrieval. In addition, the current alternative retrieval technology still requires manual intervention and judgment, and has a lot of time costs. With the development of deep learning AI technology, artificial intelligence technology plays a key role in component alternative retrieval. By establishing alternative models through machine learning and deep learning algorithms, more accurate alternative retrieval can be provided, which can greatly improve the retrieval effect.
[0061] See also Figure 1 One embodiment of the present invention provides a replacement search method for electronic components, comprising the following steps:
[0062] S100, receiving request information, and determining the electronic components to be replaced that match the request information; wherein the electronic components to be replaced include original electronic components to be replaced and similar electronic components to be replaced, and the request information includes the model of the original electronic components to be replaced and the image of the original electronic components to be replaced;
[0063] See also Figure 2 In one embodiment, the receiving request information and determining the electronic components to be replaced that match the request information includes:
[0064] S111, receiving the model of the original electronic component to be replaced, and acquiring the original electronic component to be replaced from a database:
[0065] S112: if the original electronic component to be replaced is not obtained from the database, receiving an image of the original electronic component to be replaced;
[0066] S113: extracting feature information of the image, and acquiring, from a database according to the feature information of the image, the similar electronic components to be replaced that match the feature information of the image.
[0067] In this embodiment, based on the model of the original electronic component to be replaced input by the user, a search will be first performed in the database to check whether there is an original electronic component to be replaced of the corresponding model in the database. When the user fails to retrieve the original electronic component to be replaced of the corresponding model, the user inputs an image of the original electronic component to be replaced (such as a physical image of the original electronic component to be replaced), and compares the text information on the image of the original electronic component to be replaced with the description information of the electronic component in the database through OCR recognition, thereby retrieving similar electronic components to be replaced; ensuring that the search is performed based on the electronic components stored in the database, thereby achieving efficient, fast and accurate search.
[0068] If the corresponding component of the input model is retrieved, the attribute information of the component is divided into three categories, namely type information, numerical information, and image information. Each type of information is refined and assigned different proportions according to the user's business needs, and the total is 1. For details, see formula (1):
[0069]
[0070] Among them, ωt: represents the proportional value of the component type attribute;
[0071] ωd: represents the proportional value of the numerical attribute of the component;
[0072] ωi: represents the proportional value of the component interval attribute;
[0073] ωr: represents the proportional value of the component relationship attribute;
[0074] ωp: represents the proportional value of the component image attribute.
[0075] The sum of all the proportions in formula (1) is a total value of 1, and the specific value of each proportion is set by the business personnel according to the actual situation.
[0076] S200, scheduling the attribute information of the electronic components to be replaced, and calculating the similarity of each electronic component in the database based on the scheduling result; wherein the attribute information of the electronic components to be replaced includes character information, relationship attribute information and image information;
[0077] See also Figure 3 In one embodiment, scheduling the attribute information of the electronic components to be replaced, and calculating the similarity of each electronic component in the database based on the scheduling result, includes:
[0078] S210, extracting character information, relationship attribute information and image information of the electronic component to be replaced, and obtaining the scheduling result, wherein the character information includes category information and value information, and the scheduling result includes category information scheduling result, value information scheduling result, relationship attribute information scheduling result and image information scheduling result;
[0079] S220, respectively calculating the weight value of the type information, value information, relationship attribute information and image information of each electronic component in the database according to the scheduling result;
[0080] See also Figure 4 In one embodiment, the weight values of the type information, value information, relationship attribute information and image information of each electronic component in the database are calculated according to the scheduling result, including:
[0081] S221, calculating the weight value of the type information of each electronic component in the database according to the type information scheduling result, to obtain the weight value of the type information of each electronic component in the database;
[0082] Specifically, extract the type information of the model to be replaced, compare it with the type information of other electronic components in the database, and take the value of 1 if it is consistent, otherwise take 0, to obtain the similarity of the type attribute, and multiply it by the assigned corresponding ratio to obtain the weight value of the type information. For example, in the database, the installation type information of the electronic component is defined as the type information. Assuming that the installation type of the electronic component to be replaced is surface mount type, if the installation type of the electronic component in the database is surface mount type, Sti,j = 1, and if the installation type is through hole or other, Sti,j = 0.
[0083] The specific formula is as follows:
[0084]
[0085] Among them, Sti,j: the similarity of the type attributes between electronic components i and j,
[0086] Ki: type attribute of the electronic component i to be replaced,
[0087] Kj: the type attribute of electronic component j in the database,
[0088] X(ki,kj): symbolic variable for judging the similarities and differences between the types and attributes k of electronic components i and j. i and j represent the electronic component to be replaced and the electronic component in the database to be compared with the electronic component to be replaced, respectively.
[0089] S222, calculating the weight value of the numerical information of each electronic component in the database according to the numerical information scheduling result, and obtaining the weight value of the numerical information of each electronic component in the database; wherein the numerical information scheduling result includes determining the numerical information and the numerical interval information;
[0090] In one embodiment, weight values of the numerical information of each electronic component in the database are calculated according to the numerical information scheduling result, including:
[0091] S222-11, when the numerical information scheduling result is determined numerical information;
[0092] S222-12, extracting data of each electronic component defined as numerical information by category;
[0093] S222-13. Draw a histogram and a density curve to determine the distribution of the data; wherein the histogram is used to display the frequency distribution of the data, and the density curve is used to display the probability density distribution of the data. The distribution of the data includes uniform distribution and normal distribution;
[0094] S222-14. When the distribution of data is normally distributed, if the value of the electronic component to be replaced and the value compared with it are within a preset confidence interval, the similarity of the two values is calculated according to the Euclidean distance to obtain the numerical similarity, and multiplied by the assigned corresponding ratio to obtain the weight value of the numerical information; if the value of the electronic component to be replaced and the value compared with it are not within the preset confidence interval, the weight value of the numerical information is not calculated, and the weight value of the numerical information is 0.
[0095] In this embodiment, the attributes of electronic components include two types: determined numerical attributes (i.e. determined numerical information) and numerical intervals (i.e. numerical interval information). For example, voltage is determined numerical information, and resistance is numerical interval information. For determined numerical information, the system will analyze in advance whether the numerical information distribution of key categories of electronic components in the library that meet the type information of the model to be replaced is uniformly distributed or normally distributed. The specific processing flow is as follows:
[0096] ① Extract the data of each component defined as numerical information by category. For example, if you need to retrieve the voltage of a component, extract the voltage data of each component in each library.
[0097] ② Draw a histogram and density curve to observe the distribution of data. The histogram shows the frequency distribution of data, and the density curve shows the probability density distribution of data.
[0098] ③ Uniform distribution judgment: If the distribution of each column in the histogram is roughly equal, and the distance between the maximum and minimum values of the data is calculated at the same time, if the data is distributed relatively evenly within the range, it is judged to be uniformly distributed.
[0099] ④ Normal distribution judgment: Observe the density curve and histogram. The normal distribution has the characteristics of a bell-shaped curve, with the center point being the mean, and the undulations at both ends of the curve gradually decreasing and tending to be horizontal; calculate the mean and standard deviation of the data at the same time. If the mean of the data is close to the center of the normal distribution and the standard deviation is moderate (the judgment criteria are that the kurtosis of the data is close to 3 and the skewness of the data is close to 0), then calculate according to the Euclidean distance.
[0100] The specific calculation formula is as follows:
[0101]
[0102] in, Indicates the similarity of the value type between components i and j;
[0103] A i : The value type and value of the electronic component i to be replaced;
[0104] A i,j : The distance between the electronic component i to be replaced and the electronic component j in the database;
[0105] Max(A i ): the maximum distance between the electronic component i to be replaced and the electronic component in the database;
[0106] Min(A i ): The minimum distance between the electronic component i to be replaced and the electronic components in the database.
[0107] If the data is normally distributed, then according to the set confidence level, if the value of the electronic component to be replaced and the value compared with it are within the confidence interval, the similarity of the two values is calculated according to the Euclidean distance to obtain the numerical similarity, and multiplied by the assigned corresponding ratio to obtain the weight value of the numerical information; otherwise, the weight is not calculated. Specifically, if the value of the electronic component to be replaced and the value compared with it are outside the confidence interval, the weight of the corresponding value is 0.
[0108] If the values are evenly distributed, the corresponding values are compared with those of all electronic components in the database, and the similarity between the two values is calculated to obtain the value similarity, which is then multiplied by the assigned corresponding ratio to obtain the weight value of the value information.
[0109] In one embodiment, weight values of the numerical information of each electronic component in the database are calculated according to the numerical information scheduling result, and further includes:
[0110] S222-21, when the numerical information scheduling result is numerical interval information;
[0111] S222-22, calculating the intersection and union ratio of the value intervals of the electronic components to be replaced, the calculation formula is as follows:
[0112]
[0113] in, It represents the intersection-union ratio of the numerical intervals between electronic components i and j;
[0114] A Ii : The value range of the electronic component i to be replaced;
[0115] A Ij : The numerical range of electronic component j in the database;
[0116] The result of the intersection-union ratio calculation is multiplied by the assigned corresponding ratio value.
[0117] For the numerical interval information, the intersection and union ratio of the numerical intervals of the electronic components to be replaced is calculated, as shown in formula (4), and finally multiplied by the assigned corresponding ratio value to obtain the weight value of the numerical information;
[0118] S223, calculating the weight value of the relationship attribute information of each electronic component in the database according to the relationship attribute information scheduling result, to obtain the weight value of the relationship attribute information of each electronic component in the database;
[0119] Among them, the relationship attribute information scheduling result is obtained through the specific attributes defined by the user, and the relationship retrieval is performed according to the relationship attribute information scheduling result. If the value is 1, otherwise it is 0. The discrimination value of the relationship attribute between the two electronic components is obtained, and it is multiplied by the corresponding ratio value assigned to obtain the weight value of the relationship attribute information. For example, the ADC of the electronic component to be replaced has 5 pins. If the ADC of the electronic component in the database is greater than or equal to 5, it is a valid search, otherwise it is invalid. For details, see formula (5);
[0120]
[0121] Sri,j: the discriminant value of the relationship attribute between electronic components i and j,
[0122] ri: the relationship attribute of the electronic component i to be replaced,
[0123] rj: the relational attribute of electronic component j in the database,
[0124] X(ri,rj): symbolic variable used to determine the similarities and differences between the relationship attributes r of electronic components i and j.
[0125] S224: Calculate the weight value of the image information of each electronic component in the database according to the image information scheduling result to obtain the weight value of the image information of each electronic component in the database.
[0126] See also Figure 5 In one embodiment, weight values of image information of each electronic component in the database are calculated according to the image information scheduling result, including:
[0127] S224-1. Use a deep learning classification algorithm to convert the image of the electronic component to be replaced into features to obtain the image information scheduling result of the electronic component to be replaced; wherein the deep learning classification algorithm includes but is not limited to YOLO series, ResNet series, GoogleNet, convolutional neural network (CNN) and autoencoder, etc.
[0128] The image of the electronic component to be replaced can be converted into features using a deep learning classification algorithm, which includes the following steps:
[0129] Data collection and preprocessing: First, it is necessary to collect a sufficient amount of image data of the electronic components to be replaced and perform preprocessing. Preprocessing may include image resizing, grayscale, denoising, and other operations.
[0130] Feature extraction: Next, use a deep learning model to extract features from the image. Deep learning models are usually composed of multiple layers of neural networks, which can extract useful features from images through operations such as convolution and pooling. Commonly used deep learning models include convolutional neural networks (CNNs) and autoencoders.
[0131] Among them, the YOLO series feature extraction step: Use the YOLO series model (such as YOLOv3) to detect the target of the image. The model can simultaneously detect multiple electronic components to be replaced in the image and give their location information. According to the detected location information of the electronic components to be replaced, the features of these areas are extracted from the original image. Convolutional neural network (CNN) can be used for feature extraction, for example, by extracting the feature vector of the ROI area or using a pre-trained CNN model to obtain a more advanced feature representation.
[0132] ResNet series feature extraction steps: Use the ResNet series model (such as ResNet50, ResNet101, etc.) as a pre-trained model and input the image of the electronic component to be replaced into the model. At the bottom layer of the model, lower-level features such as edges and textures are extracted. As the number of layers increases, more advanced feature representations such as shape and structure can be obtained.
[0133] GoogleNet feature extraction step: Use the GoogleNet model (also known as Inception-v1) to extract features from the images of the electronic components to be replaced. In the GoogleNet model, rich feature representations are extracted through multi-scale convolution operations and parallel network branches. From the lower level to the higher level of the model, features with different levels of abstraction are gradually extracted.
[0134] Once the features are extracted, they can also be used for further classification tasks. These feature vectors can be used as inputs, and supervised learning can be performed with the corresponding labels in the training phase to train classification models such as support vector machines (SVM), random forests, or other deep learning models to classify the images of the electronic components to be replaced into the correct categories. Finally, model training and tuning are required to improve the accuracy of classification.
[0135] Feature representation: The extracted features need to be represented in an appropriate way. A common way is to represent the features in vector form, that is, mapping each feature to a real value or a set of real values.
[0136] Classification model training: Pair the feature vectors with the corresponding labels (also called categories) and use these paired data to train a classification model. Common classification algorithms include support vector machines (SVM), decision trees, random forests, etc. For large-scale data and complex tasks, deep learning models such as convolutional neural networks (CNN) are also an effective choice.
[0137] Classification prediction: Use the trained classification model to classify and predict the new images of electronic components to be replaced. Combining feature extraction and classification models, the category to which the input image belongs can be obtained based on its feature vector.
[0138] S224-2, comparing the image information scheduling result of the electronic component to be replaced with the image information of each electronic component in the database;
[0139] S224-3. Normalize the comparison result to a similarity distance value in the range of 0 to 1 (ie, [0, 1)), and multiply it by the corresponding weight assigned.
[0140] In this embodiment, a deep learning classification algorithm is used to convert the image of the component to be replaced into features, and compare them with the features of the components in the library. Finally, it is normalized to a similarity distance value in the range of 0 to 1 (i.e., [0,1)), and finally multiplied by the corresponding assigned ratio value to obtain the weight value of the image information.
[0141] S230 , adding weight values of the type information, numerical value information, relationship attribute information and image information of the electronic components to obtain the similarity of the electronic components.
[0142] The final similarity is the sum of all weights, as shown in formula (6). The final results are arranged in descending order according to the final similarity.
[0143]
[0144] Among them, Ps i,j : The comprehensive similarity between electronic components i and j;
[0145] Similarity between images of electronic components i and j; Similarity between images of electronic components i and j The above-mentioned deep learning algorithm is used to represent the image as a vector, and the cosine distance between the vectors is calculated to characterize the similarity between the two images.
[0146] S300, ranking the similarities of the electronic components, and outputting a ranking table of similarities of the electronic components, so as to determine a replacement electronic component for the electronic component to be replaced from the ranking table of similarities.
[0147] In this embodiment, by receiving the model and image of the original electronic component to be replaced, the original electronic component to be replaced or a similar electronic component to be replaced is quickly found in the database; and by scheduling the attribute information of the original electronic component to be replaced or the similar electronic component to be replaced, and calculating the similarity of each electronic component in the database according to the obtained scheduling result (i.e. the direction of the desired replacement), since this scheme performs replacement retrieval based on the electronic components to be replaced existing in the database, it is possible to quickly and accurately retrieve suitable replacement electronic components in the database without being familiar with the attribute information of the electronic components.
[0148] See also Figure 6 , in one embodiment, further comprising:
[0149] S400, when entering electronic components into the database; obtain images and information of electronic components, and use a deep learning algorithm model to perform offline training on the images and information of the electronic components, output vector features of the electronic components, and obtain image information of the electronic components; wherein the images of electronic components include one or more of physical images and pin diagrams, and the information of electronic components includes one or more of voltage, resistance, and packaging of the electronic components; as needed, images or information of electronic components can be obtained, and a deep learning algorithm model can be used to perform offline training on the images or information of the electronic components, output vector features of the electronic components, and obtain image information of the electronic components.
[0150] S500, when entering a new electronic component into the database; obtaining the image and information of the new electronic component, and using a deep learning algorithm model to perform offline training on the image and information of the new electronic component, outputting the vector features of the new electronic component, and obtaining the image information of the electronic component.
[0151] The industrial electronic component retrieval system based on multi-dimensional retrieval and deep learning provided by the present invention has greatly improved the retrieval accuracy and applicability compared with traditional methods based on models, values, etc., and can better select alternative models of electronic components input by users from massive component models.
[0152] The present invention uses the Faiss feature retrieval engine to achieve the return of the most similar component model from billions of massive component data in seconds in terms of component image retrieval, and the retrieval speed is greatly improved compared with traditional methods.
[0153] One embodiment of the present invention further provides an electronic component replacement retrieval system, comprising:
[0154] A receiving module, configured to receive request information to determine an electronic component to be replaced that matches the request information; wherein the request information includes a model of the original electronic component to be replaced and an image of the original electronic component to be replaced;
[0155] A scheduling calculation module, used for scheduling the attribute information of the electronic components to be replaced, and calculating the similarity of each electronic component in the database based on the scheduling result; wherein the attribute information of the electronic components to be replaced includes character information, relationship attribute information and image information;
[0156] The sorting output module is used to sort the similarities of the electronic components and output a similarity sorting table of the electronic components, so as to determine the electronic components that replace the electronic components to be replaced from the similarity sorting table.
[0157] In this embodiment, the advantages and beneficial effects of the alternative retrieval method for electronic components have been explained above and will not be repeated here. Moreover, since the electronic component alternative retrieval system uses the alternative retrieval method for electronic components, the electronic component alternative retrieval system also has the same advantages and beneficial effects.
[0158] One embodiment of the present invention further provides an electronic component replacement search device, comprising:
[0159] The user side is used to receive request information input by the user.
[0160] The query section is used to query the attribute information corresponding to the input request information, including character information, relationship attribute information and image information.
[0161] The retrieval calculation section is used to query the character information of each electronic component in the database and perform weight calculation.
[0162] The feature section is mainly used to extract features of electronic components to be replaced. Specifically, it extracts component image vector features based on a pre-trained AI model, performs feature retrieval, and selects the most similar topK component models from a large number of electronic component model feature vectors. Among them, selecting the most similar topK component models from a large number of component model feature vectors includes extracting the vector feature information of electronic components stored in the database through a script during the retrieval, and comparing it with the electronic components to be replaced.
[0163] The output module is used to output a similarity ranking table of electronic components, so as to determine the electronic components that replace the electronic components to be replaced from the similarity ranking table, and to display the electronic components and their information that are most similar to the original electronic components to be replaced.
[0164] In one embodiment, the present invention further provides a computer-readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes a method as described above in any possible implementation manner.
[0165] In one embodiment, the present invention further provides an electronic device, comprising: a processor, a sending device, an input device, an output device and a memory, the memory being used to store computer program code, the computer program code comprising computer instructions, and when the processor executes the computer instructions, the electronic device executes a method as described in any possible implementation manner.
[0166] See also Figure 7 , Figure 7A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
[0167] The electronic device 2 includes a processor 21, a memory 24, an input device 22, and an output device 23. The processor 21, the memory 24, the input device 22, and the output device 23 are coupled via a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiments of the present invention. It should be understood that in various embodiments of the present invention, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, through various interfaces, transmission lines, buses, etc.
[0168] The processor 21 may be one or more graphics processing units (GPUs). When the processor 21 is a GPU, the GPU may be a single-core GPU or a multi-core GPU. Optionally, the processor 21 may be a processor group consisting of multiple GPUs, and the multiple processors are coupled to each other via one or more buses. Optionally, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present invention.
[0169] The memory 24 can be used to store computer program instructions and various computer program codes including program codes for executing the scheme of the present invention. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), which is used for related instructions and data.
[0170] The input device 22 is used to input data and / or signals, and the output device 23 is used to output data and / or signals. The output device 23 and the input device 22 may be independent devices or an integrated device.
[0171] It is understandable that in the embodiment of the present invention, the memory 24 can be used not only to store relevant instructions, and the embodiment of the present invention does not limit the specific data stored in the memory.
[0172] Understandably, Figure 7Only a simplified design of an electronic device is shown. In practical applications, the electronic device may also include other necessary components, including but not limited to any number of input / output devices, processors, memories, etc., and all video analysis devices that can implement the embodiments of the present invention are within the protection scope of the present invention.
[0173] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0174] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those skilled in the art can also clearly understand that the descriptions of the various embodiments of the present invention have different focuses. For the convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, for parts not described or not described in detail in a certain embodiment, refer to the records of other embodiments.
[0175] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, 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 integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0176] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, 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 solution of this embodiment.
[0177] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0178] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program to be sealed. The computer program to be sealed includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0179] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0180] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A method for alternative search of electronic components, characterized in that: The following steps are involved: Receive request information, and determine the electronic components to be replaced that match the request information; wherein the electronic components to be replaced include original electronic components to be replaced and similar electronic components to be replaced, and the request information includes the model of the original electronic components to be replaced and the image of the original electronic components to be replaced; Scheduling the attribute information of the electronic components to be replaced, and calculating the similarity of each electronic component in the database based on the scheduling result, wherein the attribute information of the electronic components to be replaced includes character information, relationship attribute information and image information; including: Extracting character information, relationship attribute information and image information of the electronic component to be replaced to obtain the scheduling result, wherein the character information includes category information and value information, and the scheduling result includes category information scheduling result, value information scheduling result, relationship attribute information scheduling result and image information scheduling result; The weight values of the type information, value information, relationship attribute information and image information of each electronic component in the database are calculated respectively according to the scheduling result, including: Calculating the weight value of the type information of each electronic component in the database according to the type information scheduling result to obtain the weight value of the type information of each electronic component in the database; According to the numerical information scheduling result, weight values of the numerical information of each electronic component in the database are calculated to obtain weight values of the numerical information of each electronic component in the database; wherein the numerical information scheduling result includes determining numerical information and numerical interval information; including: When the numerical information scheduling result is determined numerical information; Extract data of each electronic component defined as numerical information by category; Draw a histogram and a density curve to determine the distribution of data; wherein the histogram is used to display the frequency distribution of data, and the density curve is used to display the probability density distribution of data, and the distribution of data includes uniform distribution and normal distribution; When the distribution of the data is normally distributed, if the value of the electronic component to be replaced and the value compared therewith are within a preset confidence interval, the similarity of the two values is calculated according to the Euclidean distance to obtain the value similarity, and the value is multiplied by the assigned corresponding ratio to obtain the weight value of the value information; if the value of the electronic component to be replaced and the value compared therewith are not within the preset confidence interval, the weight value of the value information is not calculated, and the weight value of the value information is 0; Calculate the weight value of the relationship attribute information of each electronic component in the database according to the relationship attribute information scheduling result to obtain the weight value of the relationship attribute information of each electronic component in the database; Calculate the weight value of the image information of each electronic component in the database according to the image information scheduling result to obtain the weight value of the image information of each electronic component in the database; Adding weight values of the type information, numerical information, relationship attribute information and image information of the electronic components to obtain the similarity of the electronic components; The similarities of the electronic components are ranked, and a ranking table of similarities of the electronic components is output, so that a replacement electronic component for the electronic component to be replaced can be determined from the ranking table of similarities.
2. The electronic component replacement search method according to claim 1, characterized in that: The receiving request information and determining the electronic components to be replaced that match the request information includes: Receiving the model of the original electronic component to be replaced, and acquiring the original electronic component to be replaced from a database; If the original electronic component to be replaced is not obtained from the database, receiving an image of the original electronic component to be replaced; The feature information of the image is extracted, and the similar electronic components to be replaced that match the feature information of the image are acquired from a database according to the feature information of the image.
3. The electronic component replacement search method according to claim 1, characterized in that: Calculating weight values of the numerical information of each electronic component in the database according to the numerical information scheduling result also includes: When the numerical information scheduling result is numerical interval information; The intersection and union ratio of the value intervals of the electronic components to be replaced is calculated using the following formula: in, It represents the intersection-union ratio of the numerical intervals between electronic components i and j; A Ii : The value range of the electronic component i to be replaced; A Ij : The numerical range of electronic component j in the database; The weight value of the numerical information is obtained by multiplying the intersection-union ratio calculation result by the assigned corresponding ratio value.
4. The electronic component replacement search method according to claim 1, characterized in that: Calculating the weight value of the image information of each electronic component in the database according to the image information scheduling result includes: Using a deep learning classification algorithm to convert the image of the electronic component to be replaced into features, and obtain an image information scheduling result of the electronic component to be replaced; Comparing the image information scheduling result of the electronic component to be replaced with the image information of each electronic component in the database; The comparison result is normalized to a similarity distance value in the range of 0 to 1, and multiplied by the assigned corresponding ratio value to obtain the weight value of the image information.
5. The electronic component replacement search method according to any one of claims 1 to 4, characterized in that: Also includes: When entering electronic components into the database; obtaining images and information of the electronic components, and using a deep learning algorithm model to perform offline training on the images and information of the electronic components, outputting vector features of the electronic components, and obtaining image information of the electronic components.
6. The electronic component replacement search method according to claim 5, characterized in that: Also includes: When a new electronic component is entered into the database; the image and information of the new electronic component are obtained, and the image and information of the new electronic component are trained offline using a deep learning algorithm model, and the vector features of the new electronic component are output to obtain the new image information of the electronic component.
7. An electronic component replacement retrieval system, characterized in that: include: A receiving module, configured to receive request information to determine an electronic component to be replaced that matches the request information; wherein the request information includes a model of the original electronic component to be replaced and an image of the original electronic component to be replaced; A scheduling calculation module, used for scheduling the attribute information of the electronic components to be replaced, and calculating the similarity of each electronic component in the database based on the scheduling result; wherein the attribute information of the electronic components to be replaced includes character information, relationship attribute information and image information; including: Extracting character information, relationship attribute information and image information of the electronic component to be replaced to obtain the scheduling result, wherein the character information includes category information and value information, and the scheduling result includes category information scheduling result, value information scheduling result, relationship attribute information scheduling result and image information scheduling result; The weight values of the type information, value information, relationship attribute information and image information of each electronic component in the database are calculated respectively according to the scheduling result, including: Calculating the weight value of the type information of each electronic component in the database according to the type information scheduling result to obtain the weight value of the type information of each electronic component in the database; According to the numerical information scheduling result, weight values of the numerical information of each electronic component in the database are calculated to obtain weight values of the numerical information of each electronic component in the database; wherein the numerical information scheduling result includes determining numerical information and numerical interval information; including: When the numerical information scheduling result is determined numerical information; Extract data of each electronic component defined as numerical information by category; Draw a histogram and a density curve to determine the distribution of data; wherein the histogram is used to display the frequency distribution of data, and the density curve is used to display the probability density distribution of data, and the distribution of data includes uniform distribution and normal distribution; When the distribution of the data is normally distributed, if the value of the electronic component to be replaced and the value compared therewith are within a preset confidence interval, the similarity of the two values is calculated according to the Euclidean distance to obtain the value similarity, and the value is multiplied by the assigned corresponding ratio to obtain the weight value of the value information; if the value of the electronic component to be replaced and the value compared therewith are not within the preset confidence interval, the weight value of the value information is not calculated, and the weight value of the value information is 0; Calculate the weight value of the relationship attribute information of each electronic component in the database according to the relationship attribute information scheduling result to obtain the weight value of the relationship attribute information of each electronic component in the database; Calculate the weight value of the image information of each electronic component in the database according to the image information scheduling result to obtain the weight value of the image information of each electronic component in the database; Adding weight values of the type information, numerical information, relationship attribute information and image information of the electronic components to obtain the similarity of the electronic components; The sorting output module is used to sort the similarities of the electronic components and output a similarity sorting table of the electronic components, so as to determine the electronic components that replace the electronic components to be replaced from the similarity sorting table.
