An efficient retrieval method for interior design furniture models

Through target detection and hash coding technology, the problem of low retrieval efficiency of interior design furniture models is solved, fast and accurate retrieval is achieved, and the retrieval speed and accuracy are improved, surpassing the performance of existing technologies.

CN114780763BActive Publication Date: 2024-09-06SOUTHEAST UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210312029.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-28
Publication Date
2024-09-06
Estimated Expiration
2042-03-28

AI Technical Summary

Technical Problem

Existing interior design furniture model retrieval methods are inefficient. Users need to search manually, and feature extraction capabilities based on methods such as HOG, SIFT, KNN and SVM are limited. Deep learning methods are computationally intensive and are not suitable for large-scale data retrieval, resulting in inaccurate retrieval. rate is low.

Method used

Target detection is used for preprocessing, a lightweight network model is designed to classify and encode furniture objects, the anchor-free detection algorithm combined with Centernet and ResNet50 is used to extract the main elements, a hash coding layer is built for feature encoding, and step-by-step retrieval is performed. Method to calculate Hamming distance for retrieval.

Benefits of technology

It achieves fast and accurate furniture model retrieval, reduces manual participation, improves retrieval speed and accuracy, can complete the retrieval work within 1.3 seconds, and reaches a retrieval accuracy of more than 95%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114780763B
    Figure CN114780763B
Patent Text Reader

Abstract

The present invention provides an efficient retrieval method for interior design furniture models. Before retrieval, the subject of the object to be retrieved is obtained by target detection processing technology, and then the retrieval model is used for retrieval. The retrieval model is trained using a custom classification model with a shallow depth. By adding a coding layer before the classification layer, training is performed by inputting image pairs, and a custom loss function is used to make the hash codes between similar images as close as possible, so as to obtain a network model that can achieve uniform coding. A step-by-step retrieval scheme is adopted during retrieval, firstly classification is performed, and then the hash codes are compared with those in the same category. This step-by-step retrieval method improves efficiency. Compared with other retrieval schemes, the method of the present invention is fast and accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of computer vision, and in particular to an efficient retrieval method for interior design furniture models. Background Art

[0002] In recent years, with the advancement of virtual reality technology and artificial intelligence technology, the interior design industry has developed rapidly, and the interior design industry has provided people with more and more convenient services. Users can browse and download a large number of pictures and models through interior design websites. At the same time, these websites also face many challenges. Many interior design websites have designed a large number of furniture solutions for users to choose and match. In the huge solutions, users need a lot of manual searches to find similar pictures, which is very time-consuming. Due to the lack of users' understanding of interior design, the vague perception of color, space, and artistic matching, and the limitations of textual expression, they cannot quickly and accurately select their favorite and suitable furniture model solutions. The efficiency of manual retrieval on the website is very low. Therefore, a convenient and fast retrieval method is needed to retrieve similar model pictures for users to choose according to the input picture content, avoid the cost of designers manually finding solutions according to user needs, and reduce the waiting time of users.

[0003] At present, many furniture model retrieval schemes use HOG and SIFT algorithms to extract features. These methods will lose some useful information in the early stage of image processing, and require a lot of effort to adjust parameters, and have poor performance on large-scale image data sets; or use machine learning methods such as KNN and SVM, but their feature extraction capabilities are still limited and the accuracy is not high. Some retrieval methods based on deep learning directly use unprocessed images as input and use feature vectors as similarity measurement methods. This scheme has a large amount of computation and is not suitable for the retrieval of large amounts of data. At the same time, the redundant content in the image makes the retrieval accuracy low. Therefore, it is necessary to process the image according to its characteristics and design a retrieval method with low computational complexity and good real-time performance. Summary of the invention

[0004] To solve the above problems, the present invention discloses an efficient retrieval method for interior design furniture models, which completes the rapid retrieval of furniture model objects in interior design, retrieves similar model solutions for selection based on user input pictures, and reduces manual participation.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] An efficient retrieval method for interior design furniture models comprises the following steps: Step 1: preprocessing furniture model images using target detection; extracting main elements in the images during preprocessing to improve retrieval accuracy;

[0007] Step 2: Design a reasonable network model structure, send the data set into the network for training, complete the classification and encoding of the pictures, and construct the data; obtain the retrieval model for furniture objects;

[0008] Step 3: In the retrieval process, a step-by-step retrieval method is used to compare the Hamming distance between the image to be searched and similar images to obtain the retrieval results.

[0009] The present invention is further preferred in that: wherein the step 1 specifically comprises:

[0010] Step 1.1: Train a highly accurate target detection algorithm model and use this model as an offline model for subsequent image detection, mainly for extracting the main part of furniture when users search for furniture objects in images.

[0011] Step 1.2: Use a large number of pictures in the background of the interior design website to obtain screenshots of the decoration pictures, and use labelImg to mark the main furniture in the pictures to obtain the main furniture part.

[0012] Step 1.3: Use Centernet lightweight anchor-free detection algorithm to train the model, use ResNet50 as the basic feature extraction network, load the model trained under the VOC2007 dataset as the initial parameter weights, and train the model until the loss function converges to obtain an offline model. The model can automatically locate the more significant target area in the image, that is, the target area with the highest prediction confidence, and then segment it from the original image as the object to be detected for subsequent feature extraction.

[0013] The present invention is further preferred in that: the step 2 specifically comprises the following:

[0014] Step 2.0: train the algorithm model and encode the image using hash coding as a basis for retrieval.

[0015] Step 2.1 sets labels for the training images, sets the labels to furniture types, and performs one-hot encoding on the set labels.

[0016] Step 2.2 builds a classification network model. The model input image size is 128x128x3, several convolutional layers and pooling layers are used, the number of nodes in the fully connected layer is 1024, the number of nodes in the classification layer is the number of categories, and the activation function is softmax.

[0017] Step 2.3 Add a coding layer before the classification layer, using 64 as the coding bit number and an improved sigmoid function As an activation function, this function maps each value of the output vector to [1 / 4,3 / 4] as the output of the encoding layer.

[0018] Step 2.4 The loss function is divided into two parts. The first is the cross entropy loss of the classification layer, which is expressed as Where M represents the number of categories, y ic represents the sign function, if the true category of i is equal to c, it takes 1, otherwise it takes 0, p ic Represents the probability that the observed sample i belongs to category c. The coding loss is divided into two parts. The image is trained in the form of a picture pair. The picture passes through the hash layer to output an n-dimensional vector x1, x2, n is the set number of hash code bits. The hash layer loss function is used to ensure that the hash code distance between similar pictures is close during training. The threshold is set to n / 4, indicating the minimum distance between pictures with dissimilar labels. At the same time, the hash code distribution obtained from the sigmoid activation function should be as uniform as possible. Since the output value range is [1 / 4, 3 / 4], 0.5 is used as a reference. During training, each value in the output vector of this layer is as close to 0.5 as possible. In the formula, k is the batchsize size, A is the total number of possible combinations of all pictures of the current batchsize, A = k*(k-1). The total loss function is loss1+loss2.

[0019]

[0020]

[0021]

[0022] Step 2.5: Send the furniture image dataset to the model for training until convergence, and obtain a deep learning retrieval model for the furniture model. Use the trained model to process the images in the image library, obtain labels and codes, write them into csv files, and construct a database.

[0023] Step 3 implements the step-by-step retrieval algorithm. For the input image object, preprocessing is first performed. For the furniture image, the furniture body is detected and intercepted. The trained model is used for prediction to obtain the label and encoding value. According to the step-by-step retrieval method, first find the image with the same label value in the database, calculate the Hamming distance between the encodings, and select the topk as the output result.

[0024] The beneficial effects of the present invention are:

[0025] 1. This method uses the Centernet target detection method to obtain the furniture body in the renderings containing furniture, aiming at the characteristics of furniture objects in interior design, and avoids retrieval errors caused by too much redundant information in the picture. A lightweight network model is built using a small number of convolutional layers and pooling layers, and a coding layer is added before the classification layer to encode the visual feature information in 64 bits. A custom loss function is used to ensure the similarity and uniformity of encoding between similar pictures, and training is performed in the form of image pairs to obtain an efficient network.

[0026] 2. Before searching, write the labels and codes of furniture model images in the database into a csv file, and use hash codes to represent the visual features of the images. A step-by-step search method is used during the search. The main area of ​​the image is obtained through preprocessing, and the corresponding network model is loaded to predict the labels and codes. The topk results similar to the codes of the same label images are found. This method is efficient and has a fast search speed. The model in this paper can complete the model search within 1.3 seconds, and has a search accuracy of more than 95%, which is better than the current search method for furniture models in interior design software. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 This is the network structure diagram of the image retrieval model of the present invention

[0028] Figure 2 It is a search flow chart of the present invention. DETAILED DESCRIPTION

[0029] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. It should be noted that the words "front", "rear", "left", "right", "upper" and "lower" used in the following description refer to directions in the accompanying drawings, and the words "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.

[0030] This embodiment provides an efficient retrieval method for interior design furniture models, comprising the following steps:

[0031] Step 1.0: Train a highly accurate target detection algorithm model and use this model as an offline model for subsequent image detection. It is mainly used to extract the main part of furniture when users search for furniture objects in images.

[0032] Step 1.1: Use a large number of pictures in the background of the interior design website to obtain screenshots of the decoration pictures, and use labelImg to mark the main furniture in the pictures to obtain the main furniture part.

[0033] Step 1.2: Use Centernet lightweight anchor-free detection algorithm to train the model, use ResNet50 as the basic feature extraction network, load the model trained under the VOC2007 dataset as the initial parameter weights, and train the model until the loss function converges to obtain an offline model. The model can automatically locate the more significant target area in the image, that is, the target area with the highest prediction confidence, and then segment it from the original image as the object to be detected for subsequent feature extraction.

[0034] Step 2.0: train the algorithm model and encode the image using hash coding as a basis for retrieval.

[0035] Step 2.1 sets labels for the training images. For furniture, the labels are set to the types of furniture, and one-hot encoding is performed on the set labels.

[0036] Step 2.2 Build a classification network model with the following structure: Figure 1 As shown in the figure, the model input image size is 128x128x3, several convolutional layers and pooling layers are used, the number of nodes in the fully connected layer is 1024, the number of nodes in the classification layer is the number of categories in the training set, and the activation function is softmax.

[0037] Step 2.3 Add a coding layer before the classification layer, using 64 as the coding bit number and an improved sigmoid function As an activation function, this function maps each value of the output vector to [1 / 4,3 / 4] as the output of the encoding layer.

[0038] Step 2.4 The loss function is divided into two parts. The first is the cross entropy loss of the classification layer, which is expressed as Where M represents the number of categories, y ic represents the sign function, if the true category of i is equal to c, it takes 1, otherwise it takes 0, p ic Represents the probability that the observed sample i belongs to category c. The coding loss is divided into two parts. The image is trained in the form of a picture pair. The picture passes through the hash layer to output an n-dimensional vector x1, x2, n is the set number of hash code bits. The hash layer loss function is used to ensure that the hash code distance between similar pictures is close during the training process. The threshold in the formula is set to n / 4, indicating the minimum distance between pictures with dissimilar labels. At the same time, the hash code distribution obtained from the sigmoid activation function should be as uniform as possible. Since the output value range is [1 / 4, 3 / 4], 0.5 is used as a reference. During training, each value in the output vector of this layer is made as close to 0.5 as possible. In the formula, k is the batchsize size, A is the total number of possible combinations of all pictures of the current batchsize, A = k*(k-1). The total loss function is loss1+loss2.

[0039]

[0040]

[0041]

[0042] Step 2.5: Send the furniture image dataset to the model for training until convergence, and obtain a deep learning retrieval model for the furniture model. Use the trained model to process the images in the image library, obtain labels and codes, write them into csv files, and construct a database.

[0043] Step 3, such as Figure 2 The retrieval process shown in the figure implements the step-by-step retrieval algorithm to detect and capture the furniture body for the furniture image. Use the trained model to make predictions, get the label and encoding value, and follow the step-by-step retrieval method to first find the images with the same label value in the database, calculate the Hamming distance between the encodings, and select the topk as the output result.

[0044] The technical means disclosed in the scheme of the present invention are not limited to the technical means disclosed in the above-mentioned implementation mode, but also include technical schemes composed of any combination of the above technical features.

Claims

1. An efficient retrieval method for interior design furniture models, characterized in that: The following steps are involved: Step 1: Use target detection to preprocess the furniture model images; extract the main elements in the images during preprocessing to improve retrieval accuracy; Step 2: Design a reasonable network model structure, send the data set into the network for training, complete the classification and encoding of the pictures, and construct the data; obtain the retrieval model for furniture objects; the specific process in step 2 is as follows: Step 2.0: Train the algorithm model and use hash coding to encode the visual features of the image as a basis for retrieval; Step 2.1: Set labels for the training images. For furniture, set the labels to the types of furniture, and perform one-hot encoding on the set labels. Step 2.2: Build a classification network model. The model input image size is 128x128x3. Several convolutional layers and pooling layers are used. The number of nodes in the fully connected layer is 1024. The number of nodes in the classification layer is the number of categories in the training set. The activation function is softmax. Step 2.3: Add a coding layer before the classification layer, using 64 as the number of bits for coding and an improved sigmoid function As an activation function, this function maps each value of the output vector to [1 / 4,3 / 4] as the output of the encoding layer; Step 2.4: The loss function is divided into two parts. The first is the cross entropy loss of the classification layer, which is expressed as Where M represents the number of categories, y ic represents the symbolic function. If the true category of i is equal to c, it takes 1, otherwise it takes 0, indicating the probability that the observed sample i belongs to category c; the coding loss is divided into two parts. The image is trained in the form of a picture pair. The picture passes through the hash layer to output an n-dimensional vector x1, x2, where n is the number of hash code bits set. The hash layer loss function is used to ensure that similar pictures have similar hash code distances during training. The threshold is set to n / 4, indicating the minimum distance between pictures with the same label; at the same time, the hash code distribution obtained from the sigmoid activation function should be as uniform as possible. Since the output value range is [1 / 4, 3 / 4], 0.5 is used as a reference. During training, each value in the output vector of this layer is made as close to 0.5 as possible; where k is the batchsize, A is the total number of possible combinations of all pictures of the current batchsize, A = k*(k-1); the total loss function is loss1+loss2; Step 2.5: Use different data sets to train the model until convergence to obtain a deep learning retrieval model for the furniture model; use the trained model to process the pictures in the picture library, obtain labels and codes, write them into csv files, and construct a coding database; Step 3: In the retrieval process, a step-by-step retrieval method is used to compare the Hamming distance between the image to be searched and similar images to obtain the retrieval results.

2. The efficient retrieval method for interior design furniture models according to claim 1, characterized in that: The preprocessing method of the image in step 1 is as follows: Step 1.0: Train a highly accurate object detection algorithm model and use this model as an offline model for subsequent image detection, mainly to extract the main part of the furniture when users search for furniture objects in the image; Step 1.1: Use a large number of renderings from the interior design website background to obtain a screenshot of the rendering, and use labelImg to mark the main furniture in the picture to obtain the main furniture part; Step 1.2: Use Centernet lightweight anchor-free detection algorithm to train the model, use ResNet50 as the basic feature extraction network, load the model trained under the VOC2007 dataset as the initial parameter weight, and train the model until the loss function converges to obtain an offline model; the model can automatically locate the more prominent target area in the image, that is, the target area with the highest prediction confidence, and segment it from the original image as the object to be detected for subsequent feature extraction.

3. The efficient retrieval method for interior design furniture models according to claim 1, characterized in that: Implement the step-by-step retrieval algorithm. For the input image object, first perform preprocessing and detect and capture the furniture body; use the trained model to make predictions to obtain labels and encoding values. According to the step-by-step retrieval method, first find the images with the same label value in the database, calculate the Hamming distance between the encodings, and select topk as the output result.