Books quick search method and platform
Patent Information
- Application Number
- CN202411098425.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-12
Smart Images

Figure CN118626634B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and more specifically, to a method and platform for quickly searching for books. Background Art
[0002] In modern libraries, as the number of books continues to increase, it becomes increasingly difficult for readers to find specific books among a large number of books. The traditional manual search method is inefficient, especially in large libraries, where readers may need to spend a lot of time and effort to find the books they need. Therefore, libraries are in urgent need of an efficient and accurate book search method to enhance readers' search experience and improve library management efficiency.
[0003] At present, some libraries have introduced book management systems that search for books based on the name of the library, which simplifies the book search and management process to a certain extent. However, these systems can usually only provide basic location information, such as which floor and which area, and cannot help users quickly find the corresponding books.
[0004] Therefore, in order to help users quickly find the books they need, an optimized book quick search method and platform is desired. Summary of the invention
[0005] In order to solve the above technical problems, this application is proposed. The embodiment of the present application provides a method and platform for fast book search, which uses natural language processing technology based on deep learning to generate summaries and fine-grained semantic analysis of candidate books in a book storage database, and determines the return results and location information of the book by measuring the semantic matching degree between the user's book search input and the candidate book summary, and then generates a book search path based on digital twin technology, and provides real-time path guidance through Internet of Things devices, thereby realizing fast book search. In this way, users can be assisted to quickly find the books they need and reduce the ineffective movement of users in the library.
[0006] Accordingly, according to one aspect of the present application, a method for quickly searching for books is provided, comprising:
[0007] Obtaining book search input entered by a user at a book search terminal;
[0008] Extracting a first candidate book from a book storage database of a book management server;
[0009] Inputting the first candidate book into a book summary generator based on the AIGC model to obtain a text summary of the first candidate book;
[0010] Based on the semantic match between the book search input and the text abstract of the first candidate book, determining whether to return the first candidate book and the location information of the first candidate book;
[0011] Displaying the location information of the first candidate book based on the twin model, determining a corresponding Internet of Things device based on the location information of the first candidate book, and generating a book search path based on the Internet of Things device and the twin model respectively;
[0012] Based on the book search path, a physical path and a virtual path are synchronously displayed to the user respectively, and the path display is stopped after it is determined that the book search terminal recognizes the corresponding identification code of the first candidate book.
[0013] In the above-mentioned quick book search method, based on the semantic match between the book search input and the first candidate book text abstract, determining whether to return the first candidate book and the location information of the first candidate book includes: semantically encoding the book search input to obtain a book search input semantic encoding feature vector; performing word segmentation processing on the first candidate book text abstract and then passing it through a semantic encoder including a Bert model to obtain a sequence of first candidate book text abstract word granularity semantic encoding feature vectors; performing semantic association enhancement on the sequence of first candidate book text abstract word granularity semantic encoding feature vectors to obtain a sequence of enhanced first candidate book text abstract word granularity semantic encoding feature vectors; using the book search input semantic encoding feature vector as a query feature vector, inputting the query feature vector and the sequence of enhanced first candidate book text abstract word granularity semantic encoding feature vectors into a granularity-scanned unidirectional attention interactive matching network to obtain a book search-candidate book abstract fine-grained unidirectional matching result representation vector; and determining whether to return the first candidate book and the location information of the first candidate book based on the book search-candidate book abstract fine-grained unidirectional matching result representation vector.
[0014] According to another aspect of the present application, a book quick search platform is provided, which includes:
[0015] The book search input module is used to obtain the book search input input by the user at the book search end;
[0016] A candidate book extraction module is used to extract the first candidate book from the book storage database of the book management server;
[0017] A candidate book text summary generating module, used for inputting the first candidate book into a book summary generator based on the AIGC model to obtain a first candidate book text summary;
[0018] A semantic matching module, configured to determine whether to return the first candidate book and the location information of the first candidate book based on a semantic match between the book search input and the text summary of the first candidate book;
[0019] A book search path generation module, used to display the location information of the first candidate book based on the twin model, determine the corresponding Internet of Things device based on the location information of the first candidate book, and generate a book search path based on the Internet of Things device and the twin model respectively;
[0020] The path display module is used to synchronously display the physical path and the virtual path to the user based on the book search path, and stop the path display after determining that the book search end recognizes the corresponding identification code of the first candidate book.
[0021] Compared with the prior art, the method and platform for rapid book search provided by the present application utilizes natural language processing technology based on deep learning to generate summaries and perform fine-grained semantic analysis on candidate books in the book storage database, and determines the return results and location information of the books by measuring the semantic matching degree between the user's book search input and the candidate book summaries, and then generates a book search path based on digital twin technology, and provides real-time path guidance through IoT devices, thereby realizing rapid book search. In this way, users can be assisted to quickly find the books they need and reduce the ineffective movement of users in the library. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0023] Figure 1 The figure is a flow chart of a method for quickly searching for books according to an embodiment of the present application.
[0024] Figure 2 The present invention is a flowchart of determining whether to return the first candidate book and the location information of the first candidate book based on the semantic match between the book search input and the text summary of the first candidate book in the book quick search method according to an embodiment of the present application.
[0025] Figure 3 It is a block diagram of a book quick search platform according to an embodiment of the present application.
[0026] Figure 4The present invention is a flowchart of a method for quickly searching for books according to an embodiment of the present application.
[0027] Figure 5 The figure is a schematic diagram of the structure of a book quick search platform according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] Below, the embodiments of the present application will be described in more detail in conjunction with the accompanying drawings, and the above and other purposes, features and advantages of the present application will become more apparent. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the example embodiments described herein.
[0029] Example 1
[0030] As mentioned in the above background technology, the existing book management system can usually only provide basic location information of books, and cannot assist users to quickly find the corresponding books. In response to the above technical problems, the technical concept of this application is to use natural language processing technology based on deep learning to generate summaries and fine-grained semantic analysis of candidate books in the book storage database, and to determine the return results and location information of the book by measuring the degree of semantic matching between the user's book search input and the summary of the candidate book, and then generate a book search path based on digital twin technology, and provide real-time path guidance through the Internet of Things devices, so as to achieve rapid search of books. In this way, users can be assisted to quickly find the books they need and reduce the ineffective movement of users in the library.
[0031] Figure 1 Flow chart of a method for quickly searching for books according to an embodiment of the present application. Figure 1 As shown, according to the embodiment of the present application, the quick book search method includes the following steps: S110, obtaining a book search input input by a user at a book search terminal; S120, extracting a first candidate book from a book storage database of a book management server; S130, inputting the first candidate book into a book summary generator based on an AIGC model to obtain a text summary of the first candidate book; S140, determining whether to return the first candidate book and the location information of the first candidate book based on a semantic match between the book search input and the text summary of the first candidate book; S150, displaying the location information of the first candidate book based on a twin model, determining a corresponding Internet of Things device based on the location information of the first candidate book, and generating a book search path based on the Internet of Things device and the twin model; S160, synchronously displaying a physical path and a virtual path to the user based on the book search path, and stopping the path display after determining that the book search terminal recognizes the corresponding identification code of the first candidate book.
[0032] In the above-mentioned quick book search method, the step S110 obtains the book search input input by the user at the book search terminal. It should be understood that the book search input input by the user directly reflects his search intention and specific needs, and is the basis for realizing the book search service. Specifically, in the embodiment of the present application, the book search input includes but is not limited to information such as book title, author name, subject keywords, book type, etc., which can meet the diverse search needs of users.
[0033] In the above-mentioned quick book search method, the step S120 extracts the first candidate book from the book storage database of the book management server. That is, by extracting the candidate book, it is convenient to perform matching analysis with the book search input entered by the user, so as to determine whether the candidate book meets the user's search needs. To simplify the description, in the technical solution of this application, only the matching process of a single candidate book and the book search input is elaborated in detail, but it should be understood that in actual application, this method can be applied to each book in the book storage database, so as to realize traversal query of the book storage database.
[0034] In the above-mentioned quick book search method, in step S130, the first candidate book is input into a book summary generator based on the AIGC model to obtain a text summary of the first candidate book. It should be understood that, considering that the detailed information of a book usually contains a large amount of text, directly using the original text for matching analysis may lead to increased computational complexity and decreased matching accuracy. Therefore, in the technical solution of the present application, the AIGC model is further used to generate a summary of the first candidate book, so as to utilize the powerful text parsing and generation capabilities of the AIGC model, compress the text and retain the semantics of the first candidate book, extract the core information of the book, and express the book content in a more concise form to facilitate subsequent semantic matching.
[0035] In the above-mentioned quick book search method, the step S140 determines whether to return the first candidate book and the location information of the first candidate book based on the semantic match between the book search input and the text summary of the first candidate book. Figure 2As shown, the step S140 includes: S141, semantically encoding the book search input to obtain a book search input semantic encoding feature vector; S142, performing word segmentation processing on the first candidate book text summary and then passing it through a semantic encoder including a Bert model to obtain a sequence of first candidate book text summary word granularity semantic encoding feature vectors; S143, performing semantic association enhancement on the sequence of first candidate book text summary word granularity semantic encoding feature vectors to obtain a sequence of enhanced first candidate book text summary word granularity semantic encoding feature vectors; S144, using the book search input semantic encoding feature vector as a query feature vector, inputting the query feature vector and the sequence of enhanced first candidate book text summary word granularity semantic encoding feature vectors into a granularity-scanned unidirectional attention interactive matching network to obtain a book search-candidate book summary fine-grained unidirectional matching result representation vector; S145, based on the book search-candidate book summary fine-grained unidirectional matching result representation vector, determining whether to return the first candidate book and the location information of the first candidate book.
[0036] Specifically, the step S141 performs semantic encoding on the book search input to obtain a semantic encoding feature vector of the book search input. It should be understood that the traditional keyword-based matching method is easily affected by natural language phenomena such as synonyms, polysemous words, and word form changes, resulting in a decrease in matching accuracy. In addition, since the book search input entered by the user may not be accurate information such as the name of the book, the keyword-based matching method may not be able to fully understand the user's search intention. Therefore, in the technical solution of the present application, deep learning technology is further used to perform deep semantic understanding on the book search input, and the book search input is converted into a high-dimensional semantic feature representation. In an embodiment of the present application, a pre-trained Word2Vec model or a BERT model can be used to semantically encode the book search input, so as to utilize the semantic representation ability learned by the model on a large-scale corpus, effectively capture the semantic information of the book search input, and understand the user's search intention.
[0037] Specifically, in step S142, the first candidate book text abstract is segmented and then passed through a semantic encoder including a Bert model to obtain a sequence of word-granular semantic encoding feature vectors of the first candidate book text abstract. Similarly, in order to achieve semantic matching between the book search input and the first candidate book text abstract, the first candidate book text abstract also needs to be semantically encoded. However, considering that the first candidate book text abstract usually contains multiple words and sentences, directly semantically encoding the entire text abstract may ignore the detailed information therein and cause excessive consumption of computing resources. Therefore, in the technical solution of the present application, first, the first candidate book text abstract is segmented to split the long text into independent vocabulary units for more refined semantic understanding. Subsequently, the pre-trained BERT model is used to encode each vocabulary unit, and the powerful bidirectional language understanding ability of the BERT model is used to capture the rich semantic information of each vocabulary in the context of the text abstract, and the fine-grained semantic content of the first candidate book text abstract is mined to provide a data basis for the subsequent semantic matching process.
[0038] Specifically, the step S143 performs semantic association enhancement on the sequence of word granularity semantic coding feature vectors of the first candidate book text summary to obtain an enhanced sequence of word granularity semantic coding feature vectors of the first candidate book text summary. It should be understood that, considering that in the first candidate book text summary, different vocabulary units may have different representativeness for the overall content of the book, that is, some vocabulary may better reflect the core content of the book, while other vocabulary may be relatively minor. Therefore, in order to improve the accuracy of semantic matching, the sequence of word granularity semantic coding feature vectors of the first candidate book text summary is further subjected to feature enhancement processing based on semantic association.
[0039] In a specific example of the present application, in step S143, the sequence of the first candidate book text summary word granular semantic coding feature vectors is input into the semantic association strengthening module based on the feature energy level measurement association radiation to obtain the sequence of the enhanced first candidate book text summary word granular semantic coding feature vectors. Specifically, the semantic association strengthening module quantifies the semantic information content density of each vocabulary unit itself and its influence on the semantic information of other vocabulary units in the surrounding neighborhood by calculating the feature energy level coefficients of each first candidate book text summary word granular semantic coding feature vector. Then, the feature energy level coefficients of each feature vector are associated and encoded to capture the local dependency relationship between each vocabulary unit, and the attention weight is generated to dynamically adjust the weight of the corresponding semantic coding feature vector according to the importance and influence of the vocabulary in the book summary. Then, based on the association radiation mechanism, the sequence of the first candidate book text summary word granular semantic coding feature vector is weighted and residual processed to strengthen the key features, while weakening or eliminating irrelevant noise information, so as to obtain the sequence of the enhanced first candidate book text summary word granular semantic coding feature vector.
[0040] Specifically, the step S143 includes: calculating the characteristic energy level coefficients of each first candidate book text abstract word granular semantic coding feature vector in the sequence of the first candidate book text abstract word granular semantic coding feature vectors to obtain a sequence of characteristic energy level coefficients; arranging the sequence of characteristic energy level coefficients into a characteristic energy level coefficient input vector; performing one-dimensional convolution coding on the characteristic energy level coefficient input vector to obtain a characteristic energy level radiation association vector; performing point convolution coding and based on the characteristic energy level radiation association vector The method comprises the following steps: probabilistically mapping the function to obtain a characteristic energy level radiation associated weight vector; using the characteristic energy level radiation associated weight vector as the weight vector, performing weighted processing and residual processing on the sequence of the first candidate book text summary word granularity semantic coding feature vectors to obtain the sequence of the enhanced first candidate book text summary word granularity semantic coding feature vectors.
[0041] More specifically, calculating the characteristic energy level coefficient of each first candidate book text abstract word granularity semantic coding feature vector in the sequence of the first candidate book text abstract word granularity semantic coding feature vectors to obtain a sequence of characteristic energy level coefficients includes: calculating the weighted sum between the variance of the first candidate book text abstract word granularity semantic coding feature vector and the bias term to obtain a first intermediate term, and calculating the square of the difference between the maximum value and the mean of the first candidate book text abstract word granularity semantic coding feature vector, the variance of the first candidate book text abstract word granularity semantic coding feature vector and the bias term to obtain a second intermediate term; calculating the first intermediate term divided by the second intermediate term to obtain the characteristic energy level coefficient.
[0042] That is, the sequence of the first candidate book text summary word granularity semantic coding feature vectors is processed by the following semantic association enhancement formula to obtain the sequence of enhanced first candidate book text summary word granularity semantic coding feature vectors, wherein the semantic association enhancement formula is:
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049] in, A sequence representing the granular semantic encoding feature vectors of the first candidate book text abstract words, The value of is the number of feature vectors in the sequence of the first candidate book text summary word granularity semantic encoding feature vectors, , , and The first, second, and third words in the sequence of the granular semantic encoding feature vectors of the first candidate book text abstract are respectively and The first candidate book text summary word granularity semantic encoding feature vector, For the The mean of each feature value of the semantic encoding feature vector of the word granularity of the first candidate book text summary, For the The variance of each eigenvalue of the semantic encoding feature vector of the word granularity of the first candidate book text summary, Indicates the The maximum value of each feature value of the first candidate book text summary word granularity semantic encoding feature vector, is the bias term, , , and The first, second, and third words in the sequence of the granular semantic encoding feature vectors of the first candidate book text abstract are respectively and The characteristic energy level coefficient of the first candidate book text summary word granularity semantic encoding feature vector, represents the characteristic energy level coefficient input vector, represents a one-dimensional convolution operation, is the scale of the one-dimensional convolution kernel, represents the characteristic energy level radiation correlation vector, represents the point convolution operation, express function, represents the characteristic energy level radiation associated weight vector, represents dot product, A sequence representing the word granularity semantic encoding feature vector of the enhanced first candidate book text summary.
[0050] Specifically, in step S144, the semantic encoding feature vector of the book retrieval input is used as the query feature vector, and the sequence of the query feature vector and the word granularity semantic encoding feature vector of the enhanced first candidate book text summary is input into a granularly scanned one-way attention interactive matching network to obtain a book retrieval-alternative book summary fine-grained one-way matching result representation vector. It should be understood that in order to achieve fine-grained semantic matching analysis between the book retrieval input and the first candidate book, a granularly scanned one-way attention interactive matching network is introduced in the technical solution of the present application to achieve a more refined semantic matching process. Specifically, the one-way attention interactive matching network generates attention weights by granularly calculating the similarity between the query feature and the semantic features of each word in the book text summary, and weightedly fuses the sequence of the word granularity semantic encoding feature vector of the enhanced first candidate book text summary to obtain a comprehensive expression of the key content semantic features in the first candidate book text summary that are most relevant to the book retrieval input. Furthermore, by calculating the feature difference between the query feature and the book text summary feature after attention fusion, the mismatch or difference between the first candidate book text summary and the book search input at the semantic level is further revealed, thereby obtaining a book search-candidate book summary fine-grained one-way matching result representation vector, providing a more accurate decision-making basis for subsequent book recommendations.
[0051] In a specific example of the present application, the step S144 includes: calculating the semantic measurement coefficient between the query feature vector and each enhanced first candidate book text summary word granularity semantic coding feature vector in the sequence of the enhanced first candidate book text summary word granularity semantic coding feature vector to obtain a sequence of one-way matching semantic measurement coefficients; normalizing the sequence of one-way matching semantic measurement coefficients through a softmax function to obtain a sequence of one-way matching semantic measurement weights; using the sequence of one-way matching semantic measurement weights as weights to calculate the weighted sum of the sequence of enhanced first candidate book text summary word granularity semantic coding feature vectors to obtain an alternative book text summary semantic reshaping feature vector; calculating the differential feature vector between the query feature vector and the alternative book text summary semantic reshaping feature vector as the book retrieval-alternative book summary fine-grained one-way matching result representation vector.
[0052] More specifically, the semantic metric coefficients between the query feature vector and each of the enhanced first candidate book text abstract word granularity semantic coding feature vectors in the sequence of the enhanced first candidate book text abstract word granularity semantic coding feature vectors are calculated to obtain a sequence of one-way matching semantic metric coefficients, including: calculating the square of each eigenvalue of each of the enhanced first candidate book text abstract word granularity semantic coding feature vectors in the sequence of the enhanced first candidate book text abstract word granularity semantic coding feature vectors to obtain a sequence of non-linear transformation enhanced first candidate book text abstract word granularity semantic coding feature vectors; cascading the query feature vector with each of the non-linear transformation enhanced first candidate book text abstract word granularity semantic coding feature vectors in the sequence of the non-linear transformation enhanced first candidate book text abstract word granularity semantic coding feature vectors to obtain a sequence of semantic association feature vectors; multiplying each of the semantic association feature vectors in the sequence of the semantic association feature vectors by using a preset transformation vector to obtain a sequence of semantic similarities; adding a bias parameter to each of the semantic similarities in the sequence of the semantic similarities and then passing the result through a sigmoid activation function to obtain a sequence of one-way matching semantic metric coefficients.
[0053] That is, the step S144 includes: processing the query feature vector and the sequence of the enhanced first candidate book text abstract word granularity semantic encoding feature vector using the following one-way interactive matching formula to obtain the book search-candidate book abstract fine-grained one-way matching result representation vector, wherein the one-way interactive matching formula is:
[0054]
[0055]
[0056]
[0057]
[0058] in, represents the query feature vector, The first candidate book text abstract word granularity semantic encoding feature vector in the sequence The word-granular semantic encoding feature vector of the first candidate book text summary is enhanced. Indicates cascade operation, is the preset transformation vector, is the bias parameter, express function, Represents the query feature vector and the One-way matching semantic measurement coefficient between the word-granular semantic encoding feature vectors of the enhanced first candidate book text summary, is the number of the granular semantic encoding feature vectors of the first candidate book text abstract words, represents the exponential function operation with e as the base, Represents the query feature vector and the The one-way matching semantic measurement weight between the word-granular semantic encoding feature vectors of the enhanced first candidate book text summary, Represents the semantic reshaping feature vector of the candidate book text summary, It means subtracting by position. A vector representing the book search-alternative book summary fine-grained one-way matching result.
[0059] Specifically, the step S145 determines whether to return the first candidate book and the location information of the first candidate book based on the book search-alternative book summary fine-grained one-way matching result representation vector. In a specific example of the present application, the implementation method of the step S145 is to input the book search-alternative book summary fine-grained one-way matching result representation vector into a classifier-based retrieval result generator to obtain a retrieval result, and the retrieval result is used to indicate whether to return the first candidate book and the location information of the first candidate book. It should be understood that in the book search scenario, the generation of the retrieval result can be regarded as a binary classification problem, that is, to determine whether the current first candidate book meets the user's search needs. Based on this, in the technical solution of the present application, a pre-trained classifier model is used as a retrieval result generator to classify and evaluate the book search-alternative book summary fine-grained one-way matching result representation vector. After receiving the book search-alternative book summary fine-grained one-way matching result representation vector, the classifier will use the classification rules and decision boundaries learned on a large number of annotated data sets to make fast and accurate classification judgments, and generate a search result indicating whether the first alternative book should be recommended to the user. If the search result is "no", it indicates that there is a large deviation between the book and the actual needs of the user, and the book storage database will continue to search for more suitable books for recommendation. If the search result is "yes", the first alternative book and the location information of the first alternative book are returned.
[0060] It should be understood that before using the above neural network model, it needs to be trained. That is to say, in the book quick search method of the present application, it also includes a training step: training the book summary generator based on the AIGC model, the semantic encoder containing the Bert model, the semantic association enhancement module based on feature energy level measurement association radiation, the granular scanning unidirectional attention interaction matching network and the classifier-based retrieval result generator. The training step includes: obtaining training data, the training data including training book retrieval input and a first training candidate book, and whether to return the true value of the first training candidate book; inputting the first training candidate book into the book summary generator based on the AIGC model to obtain a first training candidate book text summary; semantically encoding the training book retrieval input to obtain a training book retrieval input semantic encoding feature vector; performing word segmentation processing on the first training candidate book text summary and passing it through the semantic encoder containing the Bert model to obtain a sequence of word granularity semantic encoding feature vectors of the first training candidate book text summary; inputting the sequence of word granularity semantic encoding feature vectors of the first training candidate book text summary into the semantic association enhancement module based on feature energy level measurement association radiation to obtain a sequence of training enhanced word granularity semantic encoding feature vectors of the first candidate book text summary; using the training book retrieval input semantic encoding feature vector as the training query feature vector. The method comprises the steps of: inputting the sequence of the training query feature vector and the training enhanced first candidate book text summary word granularity semantic encoding feature vector into the granular scanning one-way attention interactive matching network to obtain a training book retrieval-candidate book summary fine-grained one-way matching result representation vector; inputting the training book retrieval-candidate book summary fine-grained one-way matching result representation vector into the classifier-based retrieval result generator to obtain a classification loss function value; calculating the one-way matching result loss function value of the training book retrieval-candidate book summary fine-grained one-way matching result representation vector; and using the weighted sum of the one-way matching result loss function value and the classification loss function value as the loss function value to train the book summary generator based on the AIGC model, the semantic encoder including the Bert model, the semantic association enhancement module based on feature energy level measurement association radiation, the granular scanning one-way attention interactive matching network and the classifier-based retrieval result generator.
[0061] In a preferred example of the present application, each of the training enhanced first candidate book text abstract word granularity semantic encoding feature vectors in the sequence of the training enhanced first candidate book text abstract word granularity semantic encoding feature vectors respectively expresses the word granularity contextual semantic enhancement features of the first training candidate book text abstract. Considering the differences in content expression of the first training candidate book text abstract in the source text semantic space, the sequence of the training enhanced first candidate book text abstract word granularity semantic encoding feature vectors as a whole feature distribution has relatively significant local differences in feature distribution. In this way, the training book retrieval input semantic encoding feature vector is used as the training query feature vector, and the sequence of the training query feature vector and the training enhanced first candidate book text summary word granularity semantic encoding feature vector is input into the granularity-scanned one-way attention interactive matching network. The obtained training book retrieval-candidate book summary fine-grained one-way matching result representation vector will also lead to the difference of one-way attention weight of interactive scanning matching based on the significance of distribution difference, so that the training book retrieval-candidate book summary fine-grained one-way matching result representation vector as a whole will have classification regression recognition difficulties due to complex semantic weighted interactive aggregation, thereby affecting the accuracy of the classification results.
[0062] Therefore, in the process of model training, a loss function other than the classification loss function value is further introduced, that is, training the model based on the loss function through gradient back propagation includes the following steps: calculating a first book retrieval-alternative book abstract fine-grained one-way matching result weight matrix and a second book retrieval-alternative book abstract fine-grained one-way matching result weight matrix based on the training book retrieval-alternative book abstract fine-grained one-way matching result representation vector, wherein the first book retrieval-alternative book abstract fine-grained one-way matching result weight matrix The feature value of the position is the first Eigenvalues and The mean of the eigenvalues, and the second book search-alternative book summary fine-grained one-way matching result weight matrix The feature value of the position is the first Eigenvalues and One half of the absolute value of the difference in eigenvalues; performing query-matrix multiplication on the training book retrieval-alternative book summary fine-grained one-way matching result representation vector with the first book retrieval-alternative book summary fine-grained one-way matching result weight matrix and the second book retrieval-alternative book summary fine-grained one-way matching result weight matrix to obtain the first book retrieval-alternative book summary fine-grained one-way matching result intermediate vector and the second book retrieval-alternative book summary fine-grained one-way matching result intermediate vector; calculating the vector inner product of the first book retrieval-alternative book summary fine-grained one-way matching result intermediate vector and the second book retrieval-alternative book summary fine-grained one-way matching result intermediate vector to obtain the first book retrieval-alternative book summary fine-grained one-way matching result loss item; performing matrix multiplication on the first book retrieval-alternative book summary fine-grained one-way matching result weight matrix and the second book retrieval-alternative book summary fine-grained one-way matching result weight matrix, and calculating the result matrix norm to obtain the second book retrieval - alternative book summary fine-grained one-way matching result loss term; the first book retrieval - alternative book summary fine-grained one-way matching result loss term minus the product of a predetermined weight hyperparameter and the second book retrieval - alternative book summary fine-grained one-way matching result loss term to obtain a one-way matching result loss function value; based on the weighted sum of the one-way matching result loss function value and the classification loss function value, the model parameters are optimized through gradient back propagation.
[0063] That is, the one-way matching result loss function value of the training book search-candidate book summary fine-grained one-way matching result representation vector is calculated using the following one-way matching result loss function, wherein the one-way matching result loss function is specifically expressed as:
[0064]
[0065]
[0066]
[0067] in, represents the training book search-candidate book summary fine-grained one-way matching result representation vector, The first one represents the training book search-candidate book summary fine-grained one-way matching result representation vector eigenvalues, The first one represents the training book search-candidate book summary fine-grained one-way matching result representation vector eigenvalues, is the weight matrix of the first book search-alternative book summary fine-grained one-way matching results, The first one represents the training book search-candidate book summary fine-grained one-way matching result representation vector The eigenvalues and The mean of the eigenvalues, is the weight matrix of the second book search-alternative book summary fine-grained one-way matching results, The first one represents the training book search-candidate book summary fine-grained one-way matching result representation vector The eigenvalues and One-half the absolute value of the difference of the eigenvalues, represents the matrix multiplication operation, is the predetermined weight hyperparameter, Represents the matrix norm, Represents the one-way matching result loss function value.
[0068] That is, in the above preferred example, the one-way matching result loss function uses the structured feature representation of the short-range and long-range cross-scale detail links of the training book retrieval-alternative book summary fine-grained one-way matching result representation vector to perform the query composition of the detail inner product space within the training book retrieval-alternative book summary fine-grained one-way matching result representation vector, so as to approximate the low-rank independent observable composition of the link detail composition provided by the structured detail interaction of the training book retrieval-alternative book summary fine-grained one-way matching result representation vector. In this way, by training with the one-way matching result loss function value, the distributed detail groups of the training book retrieval-alternative book summary fine-grained one-way matching result representation vector can be used to decompose the detail groups on the basis of the detail complexity, so as to promote the classification regression recognition of the complex feature structure of the training book retrieval-alternative book summary fine-grained one-way matching result representation vector and improve the classification accuracy.
[0069] In the above-mentioned quick book search method, the step S150 displays the location information of the first candidate book based on the twin model, determines the corresponding Internet of Things device based on the location information of the first candidate book, and generates a book search path based on the Internet of Things device and the twin model. It should be understood that in order to enable users to quickly locate and find the target book in the actual physical space, the technical solution of the present application further integrates a book search path generation mechanism based on the twin model. Specifically, first, a digital twin model that is highly consistent with the physical library environment is constructed. After determining that the first candidate book is a recommended object, according to the location information of the book in the book storage database, the corresponding virtual location is found in the twin model and displayed, and the associated Internet of Things device, such as a smart bookshelf indicator light or a positioning tag, is determined, and then based on the location information of the Internet of Things device, a book search path is generated from the user's current location to the location of the first candidate book.
[0070] In the above-mentioned quick book search method, the step S160, based on the book search path, respectively displays the physical path and the virtual path to the user synchronously, and stops the path display after judging that the book search end recognizes the corresponding identification code of the first candidate book. In the technical solution of the present application, in order to enhance the user's search experience, the book search path will be displayed synchronously in both virtual and physical ways. On the physical path, the Internet of Things device will provide users with on-site navigation through wireless signals or LED indicators, etc., to guide users to move along the preset path. The virtual path uses the user's mobile device to display synchronously in the virtual interface of the twin model, and the user can preview the entire search process in the virtual space by sliding the screen or rotating the perspective. At the same time, during the path display process, when the user's mobile device recognizes the identification code of the first candidate book through the Internet of Things communication technology, it means that the user has arrived at the location of the book. At this time, the display of the book search path will automatically stop. In this way, not only the efficiency of users finding books is improved, but also the intelligence level and user experience of library services are greatly improved.
[0071] In summary, the method for quickly finding books according to the embodiment of the present application is explained, which uses natural language processing technology based on deep learning to generate summaries and fine-grained semantic analysis of candidate books in the book storage database, and determines the return results and location information of the books by measuring the semantic matching degree between the user's book search input and the candidate book summaries, and then generates a book search path based on digital twin technology, and provides real-time path guidance through the Internet of Things device, so as to achieve fast book search. In this way, users can be assisted to quickly find the books they need and reduce the ineffective movement of users in the library.
[0072] Figure 3FIG. 1 is a block diagram of a book quick search platform according to an embodiment of the present application. Figure 3 As shown, according to the embodiment of the present application, the book quick search platform 100 includes: a book search input module 110, which is used to obtain the book search input input by the user at the book search end; an alternative book extraction module 120, which is used to extract the first alternative book from the book storage database of the book management server; an alternative book text summary generation module 130, which is used to input the first alternative book into a book summary generator based on the AIGC model to obtain a first alternative book text summary; a semantic matching module 140, which is used to determine whether to return the first alternative book and the location information of the first alternative book based on the semantic matching between the book search input and the first alternative book text summary; a book search path generation module 150, which is used to display the location information of the first alternative book based on the twin model, and determine the corresponding Internet of Things device based on the location information of the first alternative book and generate a book search path based on the Internet of Things device and the twin model; a path display module 160, which is used to synchronously display the physical path and the virtual path to the user based on the book search path, and stop the path display after judging that the book search end recognizes the corresponding identification code of the first alternative book.
[0073] Here, those skilled in the art will appreciate that the specific operations of each module in the above-mentioned book quick search platform have been described in detail above. Figure 1 to Figure 2 The method for quickly searching for books has been described in detail in the description of the method, and therefore, its repeated description will be omitted.
[0074] Example 2
[0075] Figure 4 The present invention is a flowchart of a method for quickly searching for books according to an embodiment of the present application. Figure 5 The figure is a schematic diagram of the structure of a book quick search platform according to an embodiment of the present application.
[0076] like Figure 4 As shown, the present application provides a flowchart of a method for quickly searching for books, and the specific implementation steps include:
[0077] S1, the book search terminal interacts with the book management server to determine the first attribute information of the book to be searched, and the book management server determines at least one target search book based on the first attribute information, and each book has a preset first attribute information. Among them, the book search terminal can be owned by a user who borrows books. The book management server can be owned by the manager of the library. When the book search terminal needs to search for a book, it can interact with the book management server. The book management server will process it in combination with the interactive information.
[0078] In some embodiments, the specific implementation of step S1 includes:
[0079] S11, the book management server receives the first attribute information configured by the book search terminal, the first attribute information includes fixed attribute information, and the fixed attribute information includes at least one of the book name, author name, and publication time. First, this solution requires interaction to determine the first attribute information. The user configures the first attribute information of the book to be searched at the book search terminal. The first attribute information is fixed and usually includes at least one or more of the following information: book name, author name, and publication time. This information helps to quickly narrow the search scope and is the attribute most commonly used by users to describe and identify books.
[0080] S12, the book management server traverses the book database based on the first attribute information, determines at least one target search book, and each book has preset fixed attribute information. After receiving the first attribute information, the book management server of this solution will traverse and search in the book database. Each book in the database has preset fixed attribute information, which matches the first attribute information provided by the user.
[0081] S13, retrieve the dynamic attribute information of each target search book, sort the target search books based on the dynamic attribute information and generate corresponding borrowing conditions and borrowing status, the dynamic attribute information includes book borrowing information and book loss information. The server will retrieve the dynamic attribute information of each matched target search book. The dynamic attribute information includes the borrowing information and loss information of the book, which is changing and reflects the current usage status of the book. Based on the dynamic attribute information, the books can be sorted according to their borrowability and physical condition, so that users can quickly understand the borrowing conditions and borrowing status of each book.
[0082] In some embodiments, the specific implementation of step S13 includes:
[0083] S131, obtain the book borrowing information in the dynamic attribute information to obtain the borrowing times, and obtain the book wear information to obtain the corresponding number of missing pages and stained pages. The system will record the number of borrowing times for each book, which can reflect the wear and tear of the book. The system will also record the wear and tear of the book, including the number of missing pages and the number of stained pages. This information provides users with an intuitive indication of the physical condition of the book, which helps users judge the integrity and cleanliness of the book.
[0084] S132, based on the number of borrowing times, the number of missing pages and the number of stained pages, a comprehensive coefficient is calculated to obtain a corresponding dynamic evaluation coefficient, and based on the dynamic evaluation coefficient, multiple target search books are sorted to obtain a book sequence. Based on the number of borrowing times, the number of missing pages and the number of stained pages, the system will calculate a dynamic evaluation coefficient. This coefficient comprehensively considers the frequency of use and the physical condition of the book, and presents the overall condition of the book in a numerical form. According to the calculated dynamic evaluation coefficient, the system will sort multiple target search books and generate a book sequence. In this way, the books can be sorted according to the coefficient. Among them, the sorting is in descending order, and the higher the sorting, the worse the quality of the book.
[0085] In some embodiments, the specific implementation of step S132 includes:
[0086] S1321, weighting the number of borrowing times based on the number of times weight to obtain the number of times coefficient, weighting the number of missing pages based on the missing weight to obtain the missing coefficient, and weighting the number of stained pages based on the stain weight to obtain the stain coefficient. It can be understood that a number of times weight is applied to the number of borrowing times of each book to obtain the number of times coefficient, and the more borrowing times, the larger the corresponding number of times coefficient; a missing weight is applied to the number of missing pages of each book to obtain the missing coefficient, and the more missing pages, the larger the corresponding missing coefficient; a stain weight is applied to the number of stained pages of each book to obtain the stain coefficient, and the more stained pages, the larger the corresponding stain coefficient.
[0087] S1322, the frequency coefficient, the missing coefficient and the stain coefficient are added to obtain a dynamic evaluation coefficient, and all target search books are sorted in descending order based on the dynamic evaluation coefficient to obtain a book sequence. It can be understood that the larger the dynamic evaluation coefficient, the lower the corresponding book quality. In this way, libraries or similar lending institutions can better understand the frequency of use, physical condition, etc. of each book.
[0088] S1323, calculate the dynamic evaluation coefficient by the following formula:
[0089]
[0090] in, For the The dynamic evaluation coefficient of the target book search, For the The number of times a book is borrowed is searched by each target. is the frequency weight, For the The goal is to find the missing pages of the book. is the missing weight, For the The goal is to find the number of stained pages in the book. for the stain weight.
[0091] In the above formula, represents the coefficient of frequency; represents the missing coefficient; Represents the stain coefficient. Among them, the number weight, missing weight and stain weight can be preset by the staff, and the missing weight can be greater than the number weight, and the number weight can be greater than the stain weight.
[0092] S133, based on the order of each target search book in the book sequence, the corresponding borrowing conditions of each target search book are calculated, and the corresponding borrowing status is obtained by counting the number of missing pages and the number of stained pages. According to the order and status of each book in the book sequence, the system will calculate the corresponding borrowing conditions of each book. At the same time, the system will count the borrowing status of the book according to the number of missing pages and the number of stained pages to prompt the user the actual availability of the book.
[0093] In some embodiments, the specific implementation of step S133 includes:
[0094] S1331, obtain the total number of target search books in the book sequence, and determine the sequence number of each target search book in the target search book, and determine the intermediate sequence number based on the total number. Determine the total number of target search books in the book sequence. For each target book in the sequence, determine its position number in the book sequence. Determine the intermediate sequence number based on the total number, which is usually half of the sequence length and is used to distinguish the range of price reduction and price increase coefficients. In actual applications, if the total number is an odd number, then the intermediate sequence number is the middle number; if the total number is an even number, then the intermediate sequence number is the average of the two middle numbers. It is worth mentioning that this scheme will only make price adjustments for this scheme when the total number is greater than or equal to 3. If it is less than 3, then the price can be based on the original price without adjustment.
[0095] S1332, calculate the difference between the sequence number and the middle sequence number of each target search book, calculate the price reduction coefficient for the target search books before the middle sequence number, and calculate the price increase coefficient for the target search books after the middle sequence number. For each target search book, calculate the difference between its sequence number and the middle sequence number. For the books before the middle sequence number, that is, those books that may be in worse condition, calculate a price reduction coefficient to reduce their lending price. For the books after the middle sequence number, that is, those books that may be in better condition, calculate a price increase coefficient to increase their lending price. In this way, the library can flexibly set the borrowing price according to the condition and popularity of the book, and provide users with accurate borrowing information. Such a dynamic pricing strategy helps to optimize the circulation and management of books and improve the quality of library services.
[0096] S1333, calculating the lending price based on the price reduction coefficient, the price increase coefficient, and the base price corresponding to the intermediate sequence number, wherein the borrowing conditions at least include the lending price.
[0097] S1334, calculate the lending price using the following formula:
[0098]
[0099]
[0100] in, For the The target book lending price is calculated by the price reduction coefficient. is the base price, is the price reduction factor, is the middle sequence number, Find the serial number of the book that corresponds to the target before the middle serial number. is the normalized difference value, Find the serial number corresponding to the book for the target after the middle sequence number. The price increase factor.
[0101] In the above formula, represents the price reduction coefficient, if The larger the difference is, the greater the price reduction will be, wherein the difference normalization value can be preset by the staff; represents the markup factor, if The greater the difference, the higher the price increase.
[0102] S2, the book management server determines the first location information corresponding to the target book based on the book history management data, and displays the first location information of each target book based on the twin model. That is, the historical management data and digital twin technology are used to help locate and display the location of the book.
[0103] In some embodiments, the specific implementation of step S2 includes:
[0104] S21, the book management server retrieves the book history management data in the book database, and determines the first position information corresponding to the target book in the book history management data, wherein the first position information includes at least bookshelf information, shelf information and bookshelf virtual slot information. The book management server of this scheme accesses the book database and retrieves the historical management data of each target book. The server analyzes the historical management data to determine the "first position information" of the target book. This information includes at least: Bookshelf information: the main bookshelf where the book is placed. Shelf information: the specific level of the bookshelf where the book is placed. Bookshelf virtual slot information: the specific position of the book on the bookshelf layer, such as in a specific virtual slot.
[0105] S22, locate the first location information of each target search book based on the twin model, and display the bookshelves, shelves, and virtual slots of the bookshelves in the twin model. The server uses the twin model to create a digital representation of the location of the book. This model is a virtual copy that maps and simulates the bookshelves and their configurations in the real environment. For each target search book, the server locates its first location information through the twin model. After that, the server visualizes the information of the bookshelves, shelves, and virtual slots of the bookshelves in the twin model so that the user can clearly see the exact location of each book.
[0106] In some embodiments, the twin model of the book dynamics is generated by the following steps, specifically including:
[0107] S221, receive the twin space of the library configured by the configuration end, and the twin bookshelf corresponding to the twin space, each twin bookshelf has the same shelf layer as the physical bookshelf, each physical shelf layer has a corresponding shelf layer identity code, and the physical shelf layer and the twin shelf layer are set correspondingly. The configuration end (which may be a handheld terminal) configures the twin space of the library, that is, a virtual space to reflect the layout and structure of the physical library. Configure the correspondence between the twin bookshelf and the physical bookshelf: the twin bookshelf is a digital mapping of the physical bookshelf, and each twin bookshelf has the same shelf layer structure as the physical bookshelf. Each physical shelf layer has a corresponding shelf layer identity code, which is used to identify and correspond to the physical shelf layer and the twin shelf layer.
[0108] S222, after determining that the configuration terminal scans a configuration book and a corresponding shelf identity code, the books previously stored in the shelf identity code are obtained, and the occupied slots corresponding to the previously stored books are obtained. When the configuration terminal scans a book and its corresponding shelf identity code, it means that the user needs to place the book on the corresponding shelf, and at this time, the system starts the processing flow. The system retrieves the information of the books previously stored in the shelf identity code and the slots occupied by these books.
[0109] S223, establish a new slot corresponding to the configuration book currently required to be stored, store the new slot in correspondence with the occupied slot, and each occupied slot and the new slot has an initial width. For the configuration book currently required to be stored, the system will establish a corresponding new slot. The information of the new slot and the occupied slot is stored in the system in correspondence, and each slot has an initial width setting. The width of the slot will be adjusted later.
[0110] S224, if it is judged that the configuration end inputs the slot calibration instruction, then the position calibration processing of the occupied slots and the newly added slots is performed based on the corresponding shelf segmentation code and the interaction with the configuration end, and the initial width of the occupied slots and the newly added slots is updated. It is worth mentioning that in actual applications, due to the different thicknesses of books, the positions of books may not correspond on each row of shelves. For example, in some cases, 30 books are placed on the shelf, however, at the initial width, 20 books have completely occupied the space of the virtual shelf, so the width needs to be adjusted. If the configuration end enters the slot calibration instruction, the system will enter the slot calibration mode. The system interacts with the configuration end based on the shelf segmentation code to perform position calibration processing on the occupied slots and the newly added slots. While the position calibration is being processed, the system will update the initial width of the occupied slots and the newly added slots. Through the above steps, the twin model of the library can dynamically reflect the real-time position and status of the books, and the slot information can be calibrated and updated through the instructions of the configuration end. Such a system greatly facilitates library management and book location, and improves the efficiency and accuracy of book management.
[0111] In some embodiments, the specific implementation of step S224 includes:
[0112] S2241, if it is determined that the configuration end has input a slot calibration instruction after identifying any shelf identity code, all slots of the corresponding virtual shelf are counted and adjusted to a selectable state. It is understandable that once the configuration end identifies any shelf identity code and inputs a slot calibration instruction, the system will process all slots of the virtual shelf to put them in a selectable state. This means that these slots can now be selected and adjusted by the administrator.
[0113] S2242, if it is determined that the configuration end has scanned and processed the shelf segmentation code, and selected all or part of the slots, then the number of pixels of the shelf segment corresponding to the shelf segmentation code is obtained, and the number of slot averages after calibration and update is obtained based on the number of pixels and the number of all or part of the slots. It is worth mentioning that this solution requires pre-setting shelf segments on each shelf, and the shelf segmentation code may be a code for dividing the shelf into different sections for subdividing and accurately managing the shelf space. For example, a shelf is divided into 5 sections, each section corresponds to a shelf segmentation code, and the slot data is subsequently updated in combination with the shelf segmentation code.
[0114] The configuration end scans the shelf segmentation code and selects all or part of the slots to be calibrated, which can be selected based on the actual needs of the configuration end. The system obtains the number of pixels of the shelf segment corresponding to the shelf segmentation code, which involves the representation of the virtual shelf on the interface. Based on the selected number of all or part of the slots, the system calculates the average number of slots after calibration update. This average number may refer to the average number of pixels that each slot should occupy to achieve a uniform distribution. For example, shelf segmentation code A corresponds to 1000 pixels, and the selected number of all or part of the slots is 5, then the average number of pixels that each slot should occupy is 200. This data can determine the width of the slot adjustment.
[0115] S2243, the width of the selected slot is updated according to the average number of slots and added to the corresponding virtual shelf segment, and each virtual shelf has a preset virtual shelf segment. The system updates the width of the selected slot according to the average number of slots. The updated slot width will be added to the corresponding virtual shelf segment according to this new average. Through these steps, the slot calibration instruction allows the administrator to more accurately reflect the current state of the physical bookshelf in the twin model. This precise calibration may be necessary because as books are added or removed, the space allocation on the physical bookshelf changes, and these changes need to be reflected in the twin model to keep synchronized.
[0116] Based on the above embodiment, it also includes:
[0117] A1, if it is determined that the book return terminal obtains the second attribute information of the returned book after clicking the return request, the location of other stored books with the same second attribute information is determined to obtain the second location information. When a book is returned, the book return terminal will obtain the second attribute information of the returned book after clicking the return request, wherein the second attribute information is the same as the first attribute information, including the book name, author name, publication time, etc. At the same time, the second attribute information is used to compare with the attributes of other stored books in the library in order to find books with similar attributes. The system determines the location of other stored books with the same second attribute information based on the second attribute information and obtains the second location information.
[0118] A2, obtain the bookshelf information and shelf information corresponding to all the second location information, obtain the number of other stored books in the same bookshelf information and shelf information, and obtain the maximum number. The system aggregates the bookshelf information and shelf information corresponding to all the second location information. The system calculates the number of other stored books in the same bookshelf information and shelf information, and obtains the maximum number. This maximum number may be used to determine which shelf has enough space to store the returned books.
[0119] A3, takes the bookshelf information and shelf information of the largest number as the target shelf, and generates a return guide path corresponding to the target shelf. The bookshelf information and shelf information that stores the largest number of books are taken as the target shelf. The system generates a return guide path corresponding to the target shelf to assist staff or readers to return the books to the correct location. It is worth mentioning that this solution finds the maximum number of books that can make each category more aggregated and put together as much as possible. Among them, the return guide path can be to set indicator lights on the corresponding bookshelves and shelves, and control the color of the indicator lights to change. For example, user A needs to find books on shelf 3 of bookshelf 2, then the indicator light on shelf 3 of bookshelf 2 can be adjusted to red, and user A can search for books based on the red indicator light.
[0120] A4, if it is determined that the book return terminal inputs the corresponding additional information on loss, then the loss and missing pages and loss and stain pages corresponding to the loss and additional information are identified and calculated based on the preset recognition model to determine the loss and missing page coefficient and the loss and stain page coefficient. If the book return terminal inputs the corresponding additional information on loss, such as missing pages and stains of the book. This solution will process the additional information on loss based on the preset recognition model, identify and calculate the loss and missing pages and loss and stain pages, and determine the loss and missing page coefficient and the loss and stain page coefficient, which may be used to estimate the degree of loss of the book and possible additional fees.
[0121] In some embodiments, the specific implementation of step A4 includes:
[0122] A41, if the preset recognition model determines that the loss and missing pages are missing as a whole, then the loss and missing page coefficient is determined to be the maximum value. The preset recognition model is used to determine whether the loss and missing pages are missing as a whole, that is, the whole page or multiple pages are missing continuously. If it is missing as a whole, the loss and missing page coefficient is determined to be the maximum value, which may mean that the book is damaged to the extent that it cannot be used. Among them, during recognition, the user can take images before and after the missing page and send them to the preset recognition model. If the preset recognition model determines that the page number is discontinuous and there is no damaged paper in the middle, it means that the page number is missing as a whole. For example, page 7 and page 10 can be recognized, but there is no damaged paper in the middle, which means that pages 8 and 9 are missing as a whole. In actual applications, it can also be data that the user actively inputs to the preset recognition model. For example, the user inputs pages 7 and 10, then the server can determine that pages 8 and 9 are missing as a whole.
[0123] A42, if the preset recognition model determines that the damaged or missing page is partially missing, the recognition contour corresponding to the damaged image is obtained, and the recognition contour is compared with the preset contour to obtain the recognition contour ratio. Based on the comparison between the recognition contour ratio and the contour ratio interval, the corresponding damaged or missing page coefficient is obtained, and each contour ratio interval has a preset damaged or missing page coefficient. If the damaged or missing page is partially missing, that is, only a part of the page is missing. The system obtains the recognition contour corresponding to the damaged image, that is, the shape and size of the damaged part. The recognition contour is compared with the preset contour to calculate the ratio of the recognition contour. Based on the comparison between the recognition contour ratio and the contour ratio interval, the system obtains the corresponding damaged or missing page coefficient. Each contour ratio interval has a preset coefficient to evaluate the degree of partial missing. The larger the contour ratio interval, the higher the corresponding damaged or missing page coefficient can be. It is worth mentioning that this step also requires the user to take an image of the missing paper and send it to the preset recognition model for processing.
[0124] A43, the preset recognition model identifies the stain contour in the worn stain page to obtain the stain area, and obtains the stain area ratio based on the comparison between the stain area and the preset area, and obtains the corresponding worn stain page coefficient based on the comparison between the stain area ratio and the stain ratio interval, and each stain ratio interval has a preset worn stain page coefficient. The preset recognition model identifies the stain contour in the worn stain page to obtain the stain area. Based on the comparison between the stain area and the preset area, the stain area ratio is obtained. Based on the comparison between the stain area ratio and the stain ratio interval, the system obtains the corresponding worn stain page coefficient. Each stain ratio interval has a preset coefficient to evaluate the degree of staining. The larger the stain ratio interval, the higher the corresponding worn stain page coefficient can be.
[0125] A5, based on the loss and missing page coefficient and the loss and stain page coefficient, the corresponding additional surcharge is obtained, and the total fee is obtained according to the lending fee and the additional surcharge. Based on the loss and missing page coefficient and the loss and stain page coefficient, the system calculates the corresponding additional surcharge. This additional fee is to compensate for the loss of the book, which may include the cost of repair or the value reduced due to damage. Combining the lending fee and the additional surcharge of the book, the system calculates the total fee. The total fee is paid by the user to compensate for the loss or loss of the book. This processing method allows the library or relevant management agency to conduct a quantitative assessment of the loss of books and ensure that the cost of loss is reasonably compensated. In this way, the library can manage resources more effectively.
[0126] The corresponding additional surcharge is obtained based on the loss and missing page coefficient and the loss and stain page coefficient, and the total fee is obtained according to the lending fee and the additional surcharge, including:
[0127] The loss and missing page coefficient and the loss and stain page coefficient are added together to obtain an additional total coefficient, and an additional price is obtained based on the additional total coefficient and the lending price. The lending price and the additional price are added together to obtain the total fee, and the total fee is calculated by the following formula:
[0128]
[0129] in, is the total cost, For the The loan price of the returned book, For the The number of damaged or missing pages of the returned books, is the weight of the loss quantity, For the Number of damaged and stained pages of returned books, is the weight of the number of stains consumed, For the The worn-out page coefficient of the worn-out pages, is the upper limit of the number of pages that are lost or missed. For the The worn-out and stained page coefficient of the worn-out and stained pages, is the upper limit of the number of pages that are damaged or stained. Is a constant value.
[0130] In the above formula, The coefficient representing the dimension of number of worn-out missing pages, The coefficient representing the dimension of the number of worn-out and stained pages, represents the sum of the wear and miss page coefficients, Represents the sum of the coefficients of the worn and stained pages. The weight of the number of worn and missing pages and the weight of the number of worn and stained pages can be preset, and the weight of the number of worn and missing pages can be greater than the weight of the number of worn and stained pages.
[0131] S3, the book management server receives at least one target book search selected by the user based on the twin model, determines the corresponding IoT device based on the first location information, and generates book search paths based on the physical IoT device and the twin model. The book management server uses a digital twin model to process the target book selected by the user. The server determines the IoT device associated with the target book based on the first location information of the target book (which may be the current location of the book or the last scanned location). These IoT devices may be indicator lights. Through the physical IoT device and the twin model, the server generates a book search path. This search path guides the user to find the book actually or through a virtual interface.
[0132] S4, based on the book search path, the physical path and the virtual path are displayed to the user synchronously, and the path display is stopped after it is determined that the book search terminal recognizes the corresponding target search book identification code. Users are synchronously guided in the physical space (such as in the library) and the virtual space to help them find the target book. When the book search terminal (which may be the user's mobile device or the library's search system) recognizes the identification code of the target book, the path display stops. The identification code may be a barcode or other type of identifier. This combination of physical and virtual search modes improves the efficiency of users finding target books and provides users with a more interactive and intuitive search experience. Through the integration of IoT devices and twin models, the library management system can update the location information of books in real time to ensure that users can find the books they want in the shortest time.
[0133] like Figure 5 As shown, the present application provides a structural schematic diagram of a book quick search platform, which includes: a determination module, which is used for the book search end to interact with the book management server to determine the first attribute information of the book to be searched, and the book management server determines at least one target search book based on the first attribute information, and each book has a preset first attribute information; a search module, which is used for the book management server to determine the first location information corresponding to the target search book based on the book history management data, and display the first location information of each target search book based on the twin model; a generation module, which is used for the book management server to receive at least one target search book selected by the user based on the twin model, determine the corresponding Internet of Things device based on the first location information, and generate book search paths based on the physical Internet of Things device and the twin model respectively; a display module, which is used to synchronously display the physical path and the virtual path to the user based on the book search path, and stop the path display after judging that the book search end recognizes the corresponding target search book identification code.
[0134] The embodiments described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for quickly searching for books, characterized in that: include: Obtaining book search input entered by a user at a book search terminal; Extracting a first candidate book from a book storage database of a book management server; Inputting the first candidate book into a book summary generator based on the AIGC model to obtain a text summary of the first candidate book; Based on the semantic match between the book search input and the text abstract of the first candidate book, determining whether to return the first candidate book and the location information of the first candidate book; The location information of the first candidate book is displayed based on the twin model, and a corresponding Internet of Things device is determined based on the location information of the first candidate book, and a book search path is generated based on the Internet of Things device and the twin model respectively; Based on the book search path, a physical path and a virtual path are synchronously displayed to the user respectively, and the path display is stopped after it is determined that the book search terminal recognizes the corresponding identification code of the first candidate book; Wherein, determining whether to return the first candidate book and the location information of the first candidate book based on the semantic match between the book search input and the text summary of the first candidate book includes: Performing semantic encoding on the book search input to obtain a book search input semantic encoding feature vector; After word segmentation processing is performed on the first candidate book text abstract, a semantic encoder including a Bert model is used to obtain a sequence of word granularity semantic encoding feature vectors of the first candidate book text abstract; Performing semantic association enhancement on the sequence of the first candidate book text summary word granularity semantic coding feature vectors to obtain an enhanced sequence of the first candidate book text summary word granularity semantic coding feature vectors; Taking the book search input semantic encoding feature vector as the query feature vector, inputting the query feature vector and the sequence of the enhanced first candidate book text summary word granular semantic encoding feature vector into a granularity-scanned one-way attention interactive matching network to obtain a book search-candidate book summary fine-grained one-way matching result representation vector; Based on the book search-candidate book summary fine-grained one-way matching result representation vector, determining whether to return the first candidate book and the location information of the first candidate book; The method uses the book search input semantic encoding feature vector as the query feature vector, and inputs the query feature vector and the sequence of the enhanced first candidate book text summary word granularity semantic encoding feature vector into a granularity-scanned one-way attention interactive matching network to obtain a book search-candidate book summary fine-grained one-way matching result representation vector, including: Calculating semantic metric coefficients between the query feature vector and each enhanced first candidate book text abstract word granular semantic coding feature vector in the sequence of enhanced first candidate book text abstract word granular semantic coding feature vectors to obtain a sequence of one-way matching semantic metric coefficients; Normalizing the sequence of one-way matching semantic metric coefficients through a softmax function to obtain a sequence of one-way matching semantic metric weights; Using the sequence of the one-way matching semantic measurement weights as weights, the weighted sum of the sequence of the enhanced first candidate book text summary word granularity semantic encoding feature vectors is calculated to obtain a candidate book text summary semantic reshaping feature vector; A differential feature vector between the query feature vector and the semantic reshaping feature vector of the candidate book text summary is calculated as a representation vector of the book search-candidate book summary fine-grained one-way matching result.
2. The method for quickly searching for books according to claim 1, characterized in that: The method of performing semantic association enhancement on the sequence of the first candidate book text abstract word granularity semantic coding feature vectors to obtain an enhanced sequence of the first candidate book text abstract word granularity semantic coding feature vectors includes: Inputting the sequence of the granular semantic encoding feature vectors of the first candidate book text abstract words into a semantic association strengthening module based on feature energy level measurement association radiation to obtain the sequence of the strengthened granular semantic encoding feature vectors of the first candidate book text abstract words; The step of inputting the sequence of the granular semantic coding feature vectors of the first candidate book text abstract words into the semantic association strengthening module based on the feature energy level measurement association radiation to obtain the sequence of the enhanced granular semantic coding feature vectors of the first candidate book text abstract words includes: Calculating the characteristic energy level coefficient of each first candidate book text abstract word granular semantic coding feature vector in the sequence of the first candidate book text abstract word granular semantic coding feature vectors to obtain a sequence of characteristic energy level coefficients; Arranging the sequence of characteristic energy level coefficients into a characteristic energy level coefficient input vector; Performing one-dimensional convolution coding on the characteristic energy level coefficient input vector to obtain a characteristic energy level radiation correlation vector; The characteristic energy level radiation correlation vector is point convolution encoded and based on Probabilistic mapping of functions to obtain characteristic energy level radiation associated weight vectors; Using the characteristic energy level radiation association weight vector as a weight vector, weighted processing and residual processing are performed on the sequence of the first candidate book text summary word granular semantic coding feature vectors to obtain the sequence of the enhanced first candidate book text summary word granular semantic coding feature vectors; The step of calculating the characteristic energy level coefficients of the first candidate book text abstract word granularity semantic coding feature vectors in the sequence of the first candidate book text abstract word granularity semantic coding feature vectors to obtain a sequence of characteristic energy level coefficients includes: Calculating a weighted sum of the variance of the first candidate book text abstract word granular semantic coding feature vector and a bias term to obtain a first intermediate term, and calculating a weighted sum of the square of the difference between the maximum value and the mean value of the first candidate book text abstract word granular semantic coding feature vector, the variance of the first candidate book text abstract word granular semantic coding feature vector, and the bias term to obtain a second intermediate term; The first intermediate term divided by the second intermediate term is calculated to obtain the characteristic energy level coefficient.
3. The method for quickly searching for books according to claim 2, characterized in that: Calculating the semantic metric coefficients between the query feature vector and each enhanced first candidate book text abstract word granular semantic coding feature vector in the sequence of enhanced first candidate book text abstract word granular semantic coding feature vectors to obtain a sequence of one-way matching semantic metric coefficients, including: Calculating the square of each eigenvalue of each enhanced first candidate book text abstract word granularity semantic coding feature vector in the sequence of enhanced first candidate book text abstract word granularity semantic coding feature vectors to obtain a sequence of nonlinearly transformed enhanced first candidate book text abstract word granularity semantic coding feature vectors; The query feature vector is concatenated with each nonlinear transformation enhanced first candidate book text abstract word granularity semantic coding feature vector in the sequence of nonlinear transformation enhanced first candidate book text abstract word granularity semantic coding feature vectors to obtain a sequence of semantic association feature vectors; Using a preset transformation vector to multiply each semantic association feature vector in the sequence of semantic association feature vectors respectively to obtain a sequence of semantic similarities; Each semantic similarity in the sequence of semantic similarities is added with a bias parameter and then passed through a sigmoid activation function to obtain a sequence of one-way matching semantic measurement coefficients.
4. The method for quickly searching for books according to claim 3, characterized in that: Determining whether to return the first candidate book and the location information of the first candidate book based on the book search-candidate book summary fine-grained one-way matching result representation vector includes: The book search-candidate book summary fine-grained one-way matching result representation vector is input into a classifier-based search result generator to obtain a search result, wherein the search result is used to indicate whether to return the first candidate book and the location information of the first candidate book.
5. The method for quickly searching for books according to claim 4, characterized in that: The method further includes a training step: training the book summary generator based on the AIGC model, the semantic encoder including the Bert model, the semantic association enhancement module based on feature energy level measurement association radiation, the granular scanning unidirectional attention interaction matching network and the classifier-based retrieval result generator; Wherein, the training step includes: Acquire training data, the training data including a training book search input and a first training candidate book, and whether to return a true value of the first training candidate book; Inputting the first training candidate book into the book summary generator based on the AIGC model to obtain a text summary of the first training candidate book; Performing semantic encoding on the training book retrieval input to obtain a training book retrieval input semantic encoding feature vector; After word segmentation processing is performed on the first training candidate book text abstract, the abstract is passed through the semantic encoder including the Bert model to obtain a sequence of word granularity semantic encoding feature vectors of the first training candidate book text abstract; Inputting the sequence of the first training candidate book text abstract word granularity semantic encoding feature vectors into the semantic association enhancement module based on feature energy level measurement association radiation to obtain a sequence of training enhanced first candidate book text abstract word granularity semantic encoding feature vectors; Taking the training book retrieval input semantic encoding feature vector as the training query feature vector, inputting the sequence of the training query feature vector and the training enhanced first candidate book text summary word granularity semantic encoding feature vector into the granularity-scanning unidirectional attention interactive matching network to obtain a training book retrieval-candidate book summary fine-grained unidirectional matching result representation vector; Inputting the training book search-candidate book summary fine-grained one-way matching result representation vector into the classifier-based search result generator to obtain a classification loss function value; Calculating the one-way matching result loss function value of the training book search-candidate book summary fine-grained one-way matching result representation vector; The weighted sum of the one-way matching result loss function value and the classification loss function value is used as the loss function value to train the book summary generator based on the AIGC model, the semantic encoder containing the Bert model, the semantic association enhancement module based on feature energy level metric association radiation, the granular scanning one-way attention interaction matching network and the classifier-based retrieval result generator.
6. A book quick search platform, characterized in that: include: The book search input module is used to obtain the book search input input by the user at the book search end; A candidate book extraction module is used to extract the first candidate book from the book storage database of the book management server; A candidate book text summary generating module, used for inputting the first candidate book into a book summary generator based on the AIGC model to obtain a first candidate book text summary; A semantic matching module, configured to determine whether to return the first candidate book and the location information of the first candidate book based on the semantic matching between the book search input and the text summary of the first candidate book; A book search path generation module, used to display the location information of the first candidate book based on the twin model, determine the corresponding Internet of Things device based on the location information of the first candidate book, and generate a book search path based on the Internet of Things device and the twin model respectively; A path display module, used for synchronously displaying a physical path and a virtual path to the user based on the book search path, and stopping the path display after determining that the book search terminal recognizes the corresponding identification code of the first candidate book; Wherein, determining whether to return the first candidate book and the location information of the first candidate book based on the semantic match between the book search input and the text summary of the first candidate book includes: Performing semantic encoding on the book search input to obtain a book search input semantic encoding feature vector; After word segmentation processing is performed on the first candidate book text abstract, a semantic encoder including a Bert model is used to obtain a sequence of word granularity semantic encoding feature vectors of the first candidate book text abstract; Performing semantic association enhancement on the sequence of the first candidate book text summary word granularity semantic coding feature vectors to obtain an enhanced sequence of the first candidate book text summary word granularity semantic coding feature vectors; Taking the book search input semantic encoding feature vector as the query feature vector, inputting the query feature vector and the sequence of the enhanced first candidate book text summary word granular semantic encoding feature vector into a granularity-scanned one-way attention interactive matching network to obtain a book search-candidate book summary fine-grained one-way matching result representation vector; Based on the book search-candidate book summary fine-grained one-way matching result representation vector, determining whether to return the first candidate book and the location information of the first candidate book; The method uses the book search input semantic encoding feature vector as the query feature vector, and inputs the query feature vector and the sequence of the enhanced first candidate book text summary word granularity semantic encoding feature vector into a granularity-scanned one-way attention interactive matching network to obtain a book search-candidate book summary fine-grained one-way matching result representation vector, including: Calculating semantic metric coefficients between the query feature vector and each enhanced first candidate book text abstract word granular semantic coding feature vector in the sequence of enhanced first candidate book text abstract word granular semantic coding feature vectors to obtain a sequence of one-way matching semantic metric coefficients; Normalizing the sequence of one-way matching semantic metric coefficients through a softmax function to obtain a sequence of one-way matching semantic metric weights; Using the sequence of the one-way matching semantic measurement weights as weights, the weighted sum of the sequence of the enhanced first candidate book text summary word granularity semantic encoding feature vectors is calculated to obtain a candidate book text summary semantic reshaping feature vector; A differential feature vector between the query feature vector and the semantic reshaping feature vector of the candidate book text summary is calculated as a representation vector of the book search-candidate book summary fine-grained one-way matching result.
Citation Information
Patent Citations
Book knowledge graph construction method and device, book recommendation method and device, equipment and medium
CN110737774A
Book retrieval method based on deep learning and quality influence
CN112948544A
Dynamic literature collection management method and intelligent bookshelf system
CN116595035A
Library book management method and system
CN116842131A
Credit card cover generation method and device, equipment and storage medium
CN117078801A
