Multi-dimensional data driven document search system
By using technologies such as TF-IDF weighting, matrix decomposition and cosine similarity calculation in the multi-dimensional data-driven document search system, the problem that the existing system cannot adapt to real-time changes and personalized needs is solved, and the search results are instantly reflected and efficient. Personalize.
Patent Information
- Application Number
- CN202410755038.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing multi-dimensional data-driven document search system cannot effectively adapt to the changing needs of users when processing real-time changing and diverse data. As a result, search results cannot reflect the latest information in an instant, affecting user experience and the personalization and accuracy of search results.
Using the document data structuring module, topic model parsing module, query conversion and mapping module, document similarity calculation module, temporal analysis adjustment module and document sorting and output module, through TF-IDF weight, matrix decomposition, cosine similarity calculation, Technologies such as time weight adjustment optimize the matching between documents and queries and the timeliness of search results.
It improves the accuracy of search results and user experience, ensures that search results can instantly reflect the latest information, adapts to users' real-time needs, and enhances the personalization and timeliness of search results.
Smart Images

Figure CN118585609A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information retrieval, and in particular to a multidimensional data driven document search system. Background Art
[0002] The field of information retrieval technology is a branch of computer science that focuses on retrieving information from large amounts of electronic documents. The field of information retrieval technology includes the development of search engines and database management systems, which aims to improve the efficiency and effectiveness of finding relevant information from a collection of documents. Information retrieval systems achieve their goals by building indexes, performing query processing, and evaluating relevance. They typically use a variety of algorithms, including text analysis, natural language processing, statistical pattern recognition, and more recently, machine learning techniques, to improve search accuracy and user experience. The field of information retrieval is also constantly exploring new data dimensions and user interaction methods to adapt to the growing amount of data and diverse information needs.
[0003] Among them, the multidimensional data-driven document search system is an advanced information retrieval system that uses multidimensional data (such as user behavior data, document features, time tags, etc.) to enhance the relevance and accuracy of search results. This system analyzes different data sources to understand the user's search intent and context, thereby providing more personalized and accurate search results. Uses include improving the efficiency of academic research, optimizing the retrieval of internal corporate information, and providing more accurate information search services on the Internet. By integrating and analyzing multiple data dimensions, it can provide more effective information retrieval solutions in complex information environments.
[0004] Existing multidimensional data-driven document search systems have been widely applied and developed in many aspects, but they still show limitations when processing data that changes greatly in real time and has a wide variety of types. In particular, in terms of real-time data processing and personalized search, traditional technologies cannot effectively adapt to users' changing needs, resulting in search results that cannot immediately reflect the latest information, affecting user experience. Existing technologies rely on relatively fixed algorithms to understand user intent and context, which limits the personalization and accuracy of search results. For example, without a real-time update mechanism, the search system cannot provide relevant information that reflects the latest research or market trends, causing users to encounter information lags when conducting academic research or market analysis. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings in the prior art and to propose a multidimensional data driven document search system.
[0006] In order to achieve the above object, the present invention adopts the following technical solution: The multidimensional data driven document search system comprises:
[0007] The document data structuring module records the document and term frequencies, measures the document and term relevance through TF-IDF weights, integrates term frequency distributions, and obtains a document structuring matrix;
[0008] The topic model parsing module uses the document structured matrix to perform matrix decomposition, identifies hidden topics, distinguishes the relevance between documents and topics, and obtains a topic feature matrix;
[0009] The query conversion and mapping module converts the user query statement into a vector format, adjusts the query vector using the subject feature matrix, and maps it to the subject space, optimizes the subject matching degree of the query vector, and obtains a mapped query vector;
[0010] The document similarity calculation module compares the similarity between the mapped query vector and the document vector in the topic space, uses cosine similarity calculation, outputs a sorted document list, and obtains a relevance sorted list;
[0011] The temporal analysis adjustment module analyzes the difference between the document publishing time and the current time based on the relevance sorting list, adjusts the document weight and reflects the timeliness, and obtains the adjusted time weight;
[0012] The document ranking and output module combines the relevance ranking list with the adjusted time weight, re-evaluates the priority of the document, adjusts the document display order, and generates an optimized search result list.
[0013] As a further solution of the present invention, the document structured matrix includes a data standard format, a frequency distribution, and a weight index; the topic feature matrix includes a topic identification tag, a topic relevance index, and a term link structure; the mapping query vector includes a query topic matching degree, a vector normalization index, and a topic space positioning; the relevance sorting list includes a document similarity score, a document sorting order, and a similarity metric; the adjusted time weight includes a time sensitivity score, a weight adjustment index, and a user demand matching degree; the optimized search result list includes a document priority index, a display order configuration, and a final document list.
[0014] As a further solution of the present invention, the document data structuring module includes:
[0015] The basic matrix submodule records the document and term frequencies, records the number of times a term appears, and constructs a preliminary matrix to represent the frequency relationship between documents and terms. By counting the number of times each term appears in a document, a frequency association matrix is obtained;
[0016] The TF-IDF weight submodule receives the frequency association matrix, calculates the IDF value of each term, refers to the frequency of occurrence of the term in the target document, adjusts and optimizes the original frequency data by multiplying the frequency and the IDF value, and generates a weight adjustment matrix;
[0017] The data standardization submodule normalizes the data based on the weight adjustment matrix, standardizes the term weights and the comparison baseline between documents, performs key data formatting, and constructs a document structured matrix.
[0018] As a further solution of the present invention, the topic model parsing module includes:
[0019] The document structure analysis submodule performs a matrix reorganization operation based on the document structured matrix, optimizes and sorts the elements of the matrix, extracts key structural features by adjusting the rows and columns of the matrix, and obtains a structural analysis matrix;
[0020] The topic identification submodule uses the hierarchical analysis method based on the structural analysis matrix to refine the topics in the document, optimize the recognition between topics, enhance the clustering effect of topics, and build a topic extraction framework;
[0021] The relevance extraction submodule performs quantitative analysis on the relevance between topics and documents based on the topic extraction framework, applies statistical metrics to evaluate the matching degree, iteratively refines and separates the links between documents and topics, and establishes a topic feature matrix.
[0022] As a further solution of the present invention, the query conversion and mapping module includes:
[0023] The query vectorization submodule uses text processing technology based on the topic feature matrix to segment the user query sentence into words, maps the segmented words to the vector space based on semantic indexing, adjusts the word vector dimension to match the predefined vector space specification, performs part-of-speech tagging and optimizes the semantic representation of the vector, and generates a query vector;
[0024] The feature adjustment submodule performs weight distribution adjustment based on the query vector, and strengthens the connection with the corresponding dimension in the subject feature matrix by increasing or decreasing the weight of the target dimension in the vector, thereby obtaining an adjusted query vector;
[0025] The topic mapping submodule compares the adjusted query vector with the vector in the topic space, identifies the matching topic vector by calculating the similarity, including calculating the distance between vectors and determining the topic representation, maps the query intent to the corresponding topic, and generates a mapping query vector.
[0026] As a further solution of the present invention, the document similarity calculation module includes:
[0027] The vector mapping submodule initializes and normalizes the vector based on the mapping query vector, aligns and standardizes the vector, optimizes the consistency and reliability of the vector, and generates an optimized mapping vector;
[0028] The similarity calculation submodule uses the optimized mapping vector to calculate the angle difference between the vectors, i.e., the cosine similarity, calibrates the similarity value, refines and optimizes the similarity calculation, and generates a similarity metric;
[0029] The sorting output submodule uses the similarity measurement and a quick sorting algorithm to sort the documents according to the similarity values, adjusts the parameters in the sorting process, and optimizes the processing speed and response efficiency to obtain a relevance sorting list.
[0030] As a further solution of the present invention, the formula of the quick sorting algorithm is as follows:
[0031]
[0032] Calculate the similarity between documents and get the ranking value, where d(p,q) is the similarity between documents, p and q are the points of the document vector, n is the number of dimensions, and p i and q i are the coordinate values of p and q in the i-th dimension, s i is the standard deviation of the i-th dimension, λ is the weight coefficient, D p and D q are the date distances of documents p and q, respectively, max is the optimal value for date distance.
[0033] As a further solution of the present invention, the temporal analysis adjustment module includes:
[0034] The time difference analysis submodule calculates the date difference based on the relevance sorted list by extracting the release date of each document and comparing it with the current date, including parsing the date format, calculating the difference in days between the current date and the document release date, and obtaining the time difference metric;
[0035] The weight adjustment submodule uses the time difference metric to adjust the initial search weight of each document, including applying a linear weight adjustment rule to the time difference data, increasing or decreasing the document weight and reflecting timeliness, adjusting the weight value by addition and subtraction, and generating an adjusted weight vector;
[0036] The time weight updating submodule updates the document weight and optimizes the timeliness of the search results based on the adjusted weight vector, re-standardizes the adjusted weight vector and matches the requirements of the search algorithm, and generates an adjusted time weight.
[0037] As a further solution of the present invention, the document sorting and output module includes:
[0038] The similarity sorting integration submodule extracts the similarity score and time weight of each document based on the adjusted time weight, performs weighted merging and processes the data using a weighted average formula to obtain a sorted data set;
[0039] The weight re-evaluation submodule analyzes the distribution of the data set based on the sorted data set, increases the weight of documents with high scores, reduces the weight of documents with low scores, and generates a re-evaluation weight result using a linear allocation model;
[0040] The result output submodule receives the re-evaluation weight result, uses a decision tree sorting algorithm to sort the documents from high to low according to the weight, and uses an array sorting operation to generate an optimized search result list.
[0041] As a further solution of the present invention, the formula of the decision tree sorting algorithm is as follows:
[0042] G(t)=α(1-∑(β·p(i|t)+γ·log(p(i|t)+δ)) 2 )
[0043] Among them, G(t) is the Gini impurity of the node, α is the adjustment coefficient of the node, β is the probability scaling factor, γ is the logarithmic transformation parameter of the probability, δ is the numerical stability constant, and p(i|t) is the adjustment probability.
[0044] Compared with the prior art, the advantages and positive effects of the present invention are:
[0045] In the present invention, the relevance of documents and terms is accurately mapped by recording, structural processing and applying TF-IDF weights to the frequency of documents and terms. The implementation of processing logic not only optimizes the input format of data, but also enables the system to accurately identify and extract hidden topics of documents through advanced matrix decomposition technology, thereby enhancing the judgment of the relevance between documents and queries. By converting queries into vector format and combining with the topic feature matrix, the query vector is mapped to the topic space, the topic matching of the query vector is optimized, and the similarity is calculated using cosine similarity to enhance the relevance sorting of the document list, ensuring the accuracy of search results and the improvement of user experience. The introduction of temporal analysis adjusts the timeliness of search results through intelligent analysis of document time tags, which is more in line with the real-time needs of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is a system flow chart of the present invention;
[0047] Figure 2 It is a schematic diagram of the system framework of the present invention;
[0048] Figure 3It is a flowchart of the document data structuring module of the present invention;
[0049] Figure 4 It is a flowchart of the subject model parsing module of the present invention;
[0050] Figure 5 A flowchart of the query conversion and mapping module of the present invention;
[0051] Figure 6 This is a flow chart of a document similarity calculation module of the present invention;
[0052] Figure 7 It is a flow chart of the temporal analysis adjustment module of the present invention;
[0053] Figure 8 It is a flowchart of the document sorting and output module of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0055] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0056] Embodiment 1
[0057] See also Figure 1 to Figure 2 ,The multidimensional data driven document search system includes:
[0058] The document data structuring module records the document and term frequencies to form a basic matrix, uses TF-IDF weights to measure the relevance between documents and terms, processes the cross-data of document rows and term columns, standardizes the data input format, integrates the term frequency distribution, and obtains the document structured matrix;
[0059] The topic model parsing module uses the document structured matrix to perform matrix decomposition, identify the hidden topics of the document, distinguish the relevance between the document and the topic, extract the topic structure and the term connection, separate the document topic structure and the term relationship matrix, and obtain the topic feature matrix;
[0060] The query conversion and mapping module converts the user query statement into a vector format, adjusts the query vector using the topic feature matrix, and maps it to the topic space to optimize the topic matching degree of the query vector and obtain the mapped query vector.
[0061] The document similarity calculation module compares the similarity between the mapped query vector and the document vector in the topic space, calculates the cosine similarity, sorts the documents according to the similarity value, outputs a document list sorted by relevance, and obtains a relevance sorted list;
[0062] The temporal analysis adjustment module analyzes the difference between the release time of the document and the current time based on the relevance sorting list, adjusts the timeliness reflected by the document weight, updates the weight and matches the real-time needs of the user, optimizes the time relevance of the search results, and obtains the adjusted time weight;
[0063] The document sorting and output module combines the relevance sorting list with the adjusted time weights, re-evaluates the priority of the documents, adjusts the order in which the documents are displayed, and generates an optimized search result list.
[0064] The document structured matrix includes data standard format, frequency distribution, and weight indicators. The topic feature matrix includes topic identification tags, topic relevance indicators, and term link structure. The mapping query vector includes query topic matching, vector normalization indicators, and topic space positioning. The relevance sorting list includes document similarity scores, document sorting order, and similarity metrics. The adjusted time weight includes time sensitivity scores, weight adjustment indicators, and user demand matching. The optimized search result list includes document priority indicators, display order configuration, and final document list.
[0065] Specifically, if Figure 2 , 3 As shown, the document data structuring module includes:
[0066] The basic matrix submodule records the document and term frequencies, records the number of times a term appears, and constructs a preliminary matrix to represent the frequency relationship between documents and terms. By counting the number of times each term appears in the document, the execution flow of the frequency association matrix is as follows;
[0067] The basic matrix submodule first extracts terms from a large-scale text collection, establishes a mapping between documents and terms, and records the number of times each term appears in each document. First, it traverses each document, splits the document into terms, then counts each segmented term, and establishes a mapping relationship between a term and its number of occurrences in the document. This mapping relationship is stored in a preliminary matrix. Subsequently, the data is aggregated to form a global term frequency matrix containing all documents. For each term, its total number of occurrences in all documents is calculated, and a frequency association matrix is created. The frequency association matrix is obtained by counting the number of occurrences of each term in the document. The formula used is:
[0068]
[0069] Among them, M i,j represents the frequency association value of term i in document j, f i,d is the number of occurrences of term i in document d, D is the document set, α is the adjustment coefficient, and β is the bias term.
[0070] The TF-IDF weight submodule receives the frequency association matrix, calculates the IDF value of each term, and adjusts and optimizes the original frequency data by multiplying the frequency and IDF value according to the frequency of occurrence of the term in the target document. The execution flow of generating the weight adjustment matrix is as follows;
[0071] The TF-IDF weight submodule receives the above frequency association matrix and first calculates the inverse document frequency (IDF) of each term using a logarithmic transformation formula, which includes the logarithm of the ratio of the total number of documents to the number of documents containing a specific term. The IDF value of each term is multiplied by its frequency in a specific document to obtain the adjusted TF-IDF weight. This operation traverses all terms and documents using the formula:
[0072]
[0073] Calculate, where TF i,j is the frequency of term i in document j, N is the total number of documents, df i is the number of documents containing term i, γ, δ, ∈ are adjustment parameters for frequency, total number of documents and document frequency, respectively, to improve the flexibility and accuracy of calculation.
[0074] The data standardization submodule normalizes the data based on the weight adjustment matrix, standardizes the word weights and the comparison baseline between documents, performs key data formatting, and constructs the document structured matrix. The execution process is as follows;
[0075] The data normalization submodule is based on the weight adjustment matrix. First, the TFIDF weights of all documents are normalized. The vector length normalization method is used to calculate the Euclidean length of each document vector, and then the weight of each term in the document vector is divided by the length to ensure that the length of all document vectors is 1. This processing not only optimizes the comparison effect of the vector space model, but also makes the comparison between different documents more fair. After the process is completed, the data is formatted to ensure that all data meets the input requirements of the subsequent processing module, and the document structured matrix is constructed to perform key data formatting. The formula used is:
[0076]
[0077] Among them, V i Represents the normalized weight vector, W i is the original weight vector, and ζ is the adjustment constant for each term weight.
[0078] Specifically, if Figure 2 , 4 As shown, the topic model parsing module includes:
[0079] The document structure analysis submodule performs matrix reorganization based on the document structured matrix, optimizes the order of the elements of the matrix, extracts key structural features by adjusting the rows and columns of the matrix, and obtains the execution flow of the structural analysis matrix as follows;
[0080] The document structure analysis submodule is based on the document structured matrix. First, it performs a matrix reorganization operation, which includes sorting the elements in the matrix to improve the information retrieval efficiency and data processing efficiency of the matrix. The order is based on the global importance of the terms, which is obtained by accumulating the weights of the terms in all documents; secondly, the columns are sorted according to the information density of the document, which is determined by the number of unique terms contained in the document. This optimized sorting helps reduce the computational complexity when processing complex data, and highlights key structural features through row and column adjustments. The key structural features are extracted based on the reorganized matrix to obtain the structural analysis matrix. The improved formula is:
[0081]
[0082] Among them, R i,j is an element in the structure analysis matrix, S i,k is the sorted structured matrix element, N is the number of columns in the matrix, O k It is to adjust the columns of the matrix based on the sorting weights of information density.
[0083] The topic identification submodule uses the hierarchical analysis method to refine the topics in the document based on the structural analysis matrix, optimize the recognition between topics, enhance the clustering effect of topics, and build the execution process of the topic extraction framework as follows;
[0084] The topic identification submodule uses the hierarchical analysis method to refine the topics in the document based on the structural analysis matrix, including weighting the potential topics in the document set and optimizing the recognition between topics by calculating the similarity between topics. The topic similarity calculation adopts a weighted method based on cosine similarity, which includes the dot product of the topic term vector and the normalization of the vector length. The analysis results are used to enhance the clustering effect of the topic and build a topic extraction framework. The improved formula is:
[0085]
[0086] Among them, T i,j is the similarity between topic i and topic j, R i,k and R j,k are the vector representations of topics i and j in the structure parsing matrix, respectively, and M is the number of elements in the vector.
[0087] The relevance extraction submodule is based on the topic extraction framework, performs quantitative analysis on the relevance between topics and documents, applies statistical metrics to evaluate the matching degree, iteratively refines and separates the links between documents and topics, and establishes the topic feature matrix. The execution process is as follows;
[0088] The relevance extraction submodule is based on the topic extraction framework and performs quantitative analysis on the relevance between topics and documents. It evaluates the matching degree between topics and documents by applying statistical measures such as mutual information, calculates the mutual information value between each topic and each document to evaluate the relevance, iteratively refines the value, and separates the links between documents and topics. In this way, a topic feature matrix is established, whose elements represent the relevance between topics and documents.
[0089] Specifically, if Figure 2 , 5 As shown, the query conversion and mapping module includes:
[0090] The query vectorization submodule uses text processing technology based on the topic feature matrix to segment the user query sentence into words, maps the segmented words to the vector space based on semantic indexing, adjusts the word vector dimension to match the predefined vector space specifications, performs part-of-speech tagging and optimizes the semantic representation of the vector. The execution process of generating the query vector is as follows;
[0091] The query vectorization submodule is based on the topic feature matrix. It first uses text processing technology to segment user query statements, identifies keywords in the query, and maps the segmented words to the vector space through semantic indexing, where each word is converted into a multidimensional vector that reflects the semantic attributes of the word. The dimension of the word vector is adjusted to match the predefined vector space specifications, and part-of-speech tagging is performed to optimize the semantic expression of the vector. The specific steps include using natural language processing technology, such as word embedding models, to encode words into semantically related numerical vectors, and generating query vectors based on the adjusted word vectors. The improved formula is:
[0092]
[0093] Among them, Q v represents the generated query vector, W is the vocabulary set in the user query, vec(w) is the vector representation of vocabulary w, and λ w It is a weight coefficient adjusted based on part-of-speech tagging and is used to optimize semantic expression.
[0094] The feature adjustment submodule performs weight distribution adjustment based on the query vector. By increasing or decreasing the weight of the target dimension in the vector, the connection with the corresponding dimension in the subject feature matrix is strengthened. The execution process of the adjusted query vector is as follows;
[0095] The feature adjustment submodule performs weight distribution adjustment based on the query vector, and increases or decreases the weight of the target dimension in the vector to strengthen the connection with the corresponding dimension in the topic feature matrix. The specific method includes calculating the correlation between the query vector and each vector in the topic feature matrix, and adjusting the weight of each dimension in the query vector according to the correlation result to improve the correspondence between the query vector and the relevant topic. The formula used is:
[0096]
[0097] Among them, Q′ v is the adjusted query vector, α i is the adjustment coefficient calculated according to the corresponding dimension i in the topic feature matrix, T i It is the vector representation of dimension i in the topic feature matrix, which is used to strengthen the relevant dimensions of the query vector.
[0098] The topic mapping submodule compares the adjusted query vector with the vector in the topic space, identifies the matching topic vector by calculating the similarity, including calculating the distance between vectors and determining the topic representation, mapping the query intent to the corresponding topic, and generating the mapping query vector. The execution process is as follows;
[0099] The topic mapping submodule compares the adjusted query vector with the vector in the topic space and identifies the matching topic vector by calculating the similarity. The method used includes the cosine similarity calculation between vectors to evaluate the matching degree between the query vector and the topic vector. The similarity calculation result is used to determine the best correspondence between the query intent and the corresponding topic. The formula used is:
[0100]
[0101] Among them, S v,t is the query vector, Q′ v With the subject vector T t The cosine similarity between them is used to map the query intent to the corresponding topic and generate a mapping query vector. This method optimizes the relevance and accuracy of the query results and improves the efficiency of the information retrieval system.
[0102] Specifically, if Figure 2 , 6 As shown, the document similarity calculation module includes:
[0103] The vector mapping submodule initializes and normalizes the vector based on the mapping query vector, aligns and standardizes the vector, optimizes the consistency and reliability of the vector, and generates the optimized mapping vector. The execution process is as follows;
[0104] The vector mapping submodule first initializes and normalizes the vector based on the mapped query vector. During the initialization process, each dimension of the query vector is normalized to ensure that the vector starts in a consistent state. In addition, a normalization parameter η is introduced to adjust the initial value of each dimension to match the predefined vector space specification. Then, the alignment and normalization operations of the vector are performed, and the L2 regularization method is used to optimize the consistency and reliability of the vector. The improved formula is:
[0105]
[0106] Among them, V m is the normalized optimized mapping vector, Q′ m is the mapped query vector, η is the regularization adjustment parameter for each dimension, and d is the number of dimensions of the vector.
[0107] The similarity calculation submodule uses the optimized mapping vector to calculate the angle difference between vectors, i.e., cosine similarity, calibrates the similarity value, refines and optimizes the similarity calculation, and generates the execution flow of the similarity metric as follows;
[0108] The similarity calculation submodule uses the optimized mapping vector to calculate the angle difference between vectors, i.e., cosine similarity. In the calculation process, the attenuation factor α and the dimension importance coefficient β are introduced. k, to calibrate and optimize the similarity value, ensuring that the calculation results more accurately reflect the actual similarity between vectors. The improved formula is 2
[0109]
[0110] Among them, S m,n is the optimized mapping vector V m With the document vector D n The cosine similarity between k is the importance coefficient of each dimension, and d is the number of dimensions of the vector. This weighting method takes into account the different importance of different dimensions in representing the content of the document.
[0111] The sorting output submodule uses similarity measurement and a quick sorting algorithm to sort documents by similarity value, adjusts the parameters in the sorting process, and optimizes the processing speed and response efficiency. The execution process of the relevance sorting list is as follows;
[0112] The sorting output submodule uses similarity measurement to sort documents according to their similarity values. In the sorting process, a dynamic parameter γ is introduced to adjust the response efficiency and processing speed of the sorting algorithm. A weighted sorting is adopted, in which the similarity score of each document is divided by its relevance weight ρ. n Adjustment,optimizes the relevance and accuracy of the sorting results,by adjusting the coefficient γ to sort the relevance sorted list in descending order.,This approach improves the adaptability and optimization effect of the sorting process,,ensuring the priority display of the most relevant documents.
[0113] The formula for the quick sort algorithm is as follows:
[0114]
[0115] Calculate the similarity between documents and get the ranking value, where d(p,q) is the similarity between documents, p and q are the points of the document vector, n is the number of dimensions, and p i and q i are the coordinate values of p and q in the i-th dimension, s i is the standard deviation of the i-th dimension, λ is the weight coefficient, D p and D q are the date distances of documents p and q, respectively, max is the optimal value for date distance.
[0116] The execution process is as follows:
[0117] Calculate the difference in coordinates for each dimension and divide it by the standard deviation s of that dimension iTo adjust the influence of different scales, the date distance of the document is then calculated, and its deviation from the overall similarity calculation is reduced through normalization. The value is squared and summed, and the influence of the date distance is adjusted according to the weight coefficient λ. The final similarity score is calculated and used as a comparison benchmark in the sorting process. The method for confirming the λ coefficient value is to select the λ value that optimizes the performance of the model through cross-validation to ensure the accuracy and response efficiency of the calculation, and finally complete the similarity calculation through the square root operation to generate a relevance sorting list.
[0118] Specifically, if Figure 2 , 7 As shown, the temporal analysis adjustment module includes:
[0119] The time difference analysis submodule is based on the relevance sorted list. It calculates the date difference by extracting the release date of each document and comparing it with the current date, including parsing the date format and calculating the difference in days between the current date and the document release date. The execution flow of the time difference measurement is as follows;
[0120] The time difference analysis submodule is based on the relevance sorted list. It first extracts the release date of each document and converts it into a standard date format using date parsing technology. Then, it calculates the difference in days between each document release date and the current date to evaluate the timeliness of the document. The specific operation includes extracting the current system date and comparing it with the release date of the document, and calculating the time difference between the two. The formula used is:
[0121] Δt n =t current -t publish,n
[0122] Among them, Δt n represents the temporal difference measure of document n, t current is the current date, t publish,n is the publication date of document n, which ensures the accurate measurement of time differences and provides a basis for subsequent weight adjustments.
[0123] The weight adjustment submodule uses the time difference metric to adjust the initial search weight of each document, including applying linear weight adjustment rules to the time difference data, increasing or decreasing the document weight and reflecting the timeliness, adjusting the weight value by addition and subtraction, and generating the adjusted weight vector. The execution process is as follows;
[0124] The adjustment submodule uses the above time difference measurement to adjust the initial search weight of each document. By applying the linear weight adjustment rule, the weight of the document is increased or decreased according to the time difference of the document, thereby reflecting the timeliness of the document. The weight adjustment adopts a linear decay function based on the time difference, which includes a decay coefficient λ to control the degree of influence of time on the weight. The formula used is:
[0125]
[0126] Among them, W′ n is the adjusted document weight, W n is the initial weight of the document, and α is the time decay parameter that controls the rate at which the weight decreases over time. This adjustment method ensures the dynamic update of the document weight, reflecting the timeliness and relevance of the document content.
[0127] The time weight update submodule updates the document weight and optimizes the timeliness of search results based on the adjusted weight vector, re-standardizes the adjusted weight vector and matches the requirements of the search algorithm, and generates the execution flow of the adjusted time weight as follows;
[0128] The time weight update submodule updates the document weights and optimizes the timeliness of search results based on the adjusted weight vector. After the weight adjustment is completed, the weight vector needs to be re-standardized to match the requirements of the search algorithm and ensure that the weights of all documents maintain an appropriate proportion and relative importance in the search algorithm. The formula used is:
[0129]
[0130] Among them, W″ n is the standardized adjusted time weight, W′ k is the adjusted weight of all documents, and N is the total number of documents. This method ensures the consistency and standardization of the weight vector, and enhances the accuracy and timeliness of search results.
[0131] Specifically, if Figure 2 , 8 As shown, the document sorting and output module includes:
[0132] The similarity sorting integration submodule extracts the similarity score and time weight of each document based on the adjusted time weight, and processes the data using the weighted average formula for weighted merging to obtain the sorted data set. The execution flow is as follows;
[0133] The similarity sorting integration submodule first extracts the similarity score S of each document based on the adjusted time weight. n and time weight W″ n , the similarity score and time weight are combined by weighted average to obtain a ranking data set that comprehensively reflects the importance of the document. This operation is achieved by calculating a weighted score for each document, which takes into account the influence of similarity and time. The improved formula is:
[0134] R n =β·S n +(1-β)·W″ n
[0135] Among them, R n is the comprehensive score of document n, which is used for ranking; β is a balancing parameter that determines the relative importance of similarity and time weight in the final score. By combining similarity and time factors, it provides a more comprehensive method for evaluating document relevance and timeliness.
[0136] The weight re-evaluation submodule is based on the sorted data set, analyzes the distribution of the data set, increases the weight of documents with high scores, and reduces the weight of documents with low scores. The linear allocation model is used to generate the execution process of the re-evaluation weight results as follows;
[0137] The weight re-evaluation submodule analyzes the distribution of the sorted data set and adjusts the weight according to the document score. This submodule uses a linear allocation model to increase the weight of documents with high scores and reduce the weight of documents with low scores. This method aims to enhance the relevance of search results and user satisfaction. The improved formula is:
[0138]
[0139] Among them, W″′ n is the re-evaluated weight of document n, R n is the comprehensive score of document n, γ max and γ min This linear redistribution method ensures the reasonable distribution of weights and adjusts the ranking of the document in the search results according to its actual importance.
[0140] The result output submodule receives the re-evaluation weight result, uses the decision tree sorting algorithm to sort the documents from high to low according to the weight, and uses the array sorting operation to generate the optimized search result list. The execution process is as follows;
[0141] The result output submodule receives the re-evaluation weight results. This step uses an efficient sorting algorithm, such as quick sort or merge sort, to ensure the efficiency and accuracy of the sorting process. The sorted result list will be displayed according to the comprehensive importance of the documents, which improves the user experience and satisfaction when using the search engine. This method ensures that the most relevant and important documents can be seen by users first, optimizing the quality and efficiency of search results.
[0142] The formula for the decision tree sorting algorithm is as follows:
[0143] G(t)=α(1-∑(β·p(i|t)+γ·log(p(i|t)+δ)) 2 )
[0144] Among them, G(t) is the Gini impurity of the node, α is the adjustment coefficient of the node, β is the probability scaling factor, γ is the logarithmic transformation parameter of the probability, δ is the numerical stability constant, and p(i|t) is the adjustment probability.
[0145] The execution process is as follows:
[0146] The node depth d is determined according to the tree level, and the adjustment coefficient α=1 / (1+d) is calculated to increase the penalty of the tree depth on impurity. A probability scaling factor β=0.5 is applied to each individual occurrence probability p(i|t) to reduce the impact of extreme probability values. The logarithmic transformation parameter γ=0.3 is introduced to smooth the probability distribution and avoid excessive impact of low-probability events on impurity calculation. A constant δ=0.01 is added to ensure that the internal parameters of the logarithmic function are always non-negative and to ensure the stability of the calculation. Based on the above parameters, the Gini impurity G(t) of each node is recalculated, and the tree branches are generated based on the results.
[0147] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A multidimensional data driven document search system, characterized in that: The system comprises: The document data structuring module records the document and term frequencies, measures the document and term relevance through TF-IDF weights, integrates term frequency distributions, and obtains a document structuring matrix; The topic model parsing module uses the document structured matrix to perform matrix decomposition, identifies hidden topics, distinguishes the relevance between documents and topics, and obtains a topic feature matrix; The query conversion and mapping module converts the user query statement into a vector format, adjusts the query vector using the subject feature matrix, and maps it to the subject space, optimizes the subject matching degree of the query vector, and obtains a mapped query vector; The document similarity calculation module compares the similarity between the mapped query vector and the document vector in the topic space, uses cosine similarity calculation, outputs a sorted document list, and obtains a relevance sorted list; The temporal analysis adjustment module analyzes the difference between the document publishing time and the current time based on the relevance sorting list, adjusts the document weight and reflects the timeliness, and obtains the adjusted time weight; The document ranking and output module combines the relevance ranking list with the adjusted time weight, re-evaluates the priority of the document, adjusts the document display order, and generates an optimized search result list.
2. The multidimensional data driven document search system according to claim 1, characterized in that: The document structured matrix includes a data standard format, a frequency distribution, and a weight index; the topic feature matrix includes a topic identification tag, a topic relevance index, and a term link structure; the mapping query vector includes a query topic matching degree, a vector normalization index, and a topic space positioning; the relevance sorting list includes a document similarity score, a document sorting order, and a similarity metric; the adjusted time weight includes a time sensitivity score, a weight adjustment index, and a user demand matching degree; the optimized search result list includes a document priority index, a display order configuration, and a final document list.
3. The multidimensional data driven document search system according to claim 1, characterized in that: The document data structuring module includes: The basic matrix submodule records the document and term frequencies, records the number of times a term appears, and constructs a preliminary matrix to represent the frequency relationship between documents and terms. By counting the number of times each term appears in a document, a frequency association matrix is obtained; The TF-IDF weight submodule receives the frequency association matrix, calculates the IDF value of each term, refers to the frequency of occurrence of the term in the target document, adjusts and optimizes the original frequency data by multiplying the frequency and the IDF value, and generates a weight adjustment matrix; The data standardization submodule normalizes the data based on the weight adjustment matrix, standardizes the term weights and the comparison baseline between documents, performs key data formatting, and constructs a document structured matrix.
4. The multidimensional data driven document search system according to claim 1, characterized in that: The topic model parsing module includes: The document structure analysis submodule performs a matrix reorganization operation based on the document structured matrix, optimizes and sorts the elements of the matrix, extracts key structural features by adjusting the rows and columns of the matrix, and obtains a structural analysis matrix; The topic identification submodule uses the hierarchical analysis method based on the structural analysis matrix to refine the topics in the document, optimize the recognition between topics, enhance the clustering effect of topics, and build a topic extraction framework; The relevance extraction submodule performs quantitative analysis on the relevance between topics and documents based on the topic extraction framework, applies statistical metrics to evaluate the matching degree, iteratively refines and separates the links between documents and topics, and establishes a topic feature matrix.
5. The multidimensional data driven document search system according to claim 1, characterized in that: The query conversion and mapping module includes: The query vectorization submodule uses text processing technology based on the topic feature matrix to segment the user query sentence into words, maps the segmented words to the vector space based on semantic indexing, adjusts the word vector dimension to match the predefined vector space specification, performs part-of-speech tagging and optimizes the semantic representation of the vector, and generates a query vector; The feature adjustment submodule performs weight distribution adjustment based on the query vector, and strengthens the connection with the corresponding dimension in the subject feature matrix by increasing or decreasing the weight of the target dimension in the vector, thereby obtaining an adjusted query vector; The topic mapping submodule compares the adjusted query vector with the vector in the topic space, identifies the matching topic vector by calculating the similarity, including calculating the distance between vectors and determining the topic representation, maps the query intent to the corresponding topic, and generates a mapping query vector.
6. The multidimensional data driven document search system according to claim 1, characterized in that: The document similarity calculation module includes: The vector mapping submodule initializes and normalizes the vector based on the mapping query vector, aligns and standardizes the vector, optimizes the consistency and reliability of the vector, and generates an optimized mapping vector; The similarity calculation submodule uses the optimized mapping vector to calculate the angle difference between the vectors, i.e., the cosine similarity, calibrates the similarity value, refines and optimizes the similarity calculation, and generates a similarity metric; The sorting output submodule uses the similarity measurement and a quick sorting algorithm to sort the documents according to the similarity values, adjusts the parameters in the sorting process, and optimizes the processing speed and response efficiency to obtain a relevance sorting list.
7. The multidimensional data driven document search system according to claim 6, characterized in that: The formula of the quick sort algorithm is as follows: Calculate the similarity between documents and get the ranking value, where d(p,q) is the similarity between documents, p and q are the points of the document vector, n is the number of dimensions, and p i and q i are the coordinate values of p and q in the i-th dimension, s i is the standard deviation of the i-th dimension, λ is the weight coefficient, D p and D q are the date distances of documents p and q, respectively, max is the optimal value for date distance.
8. The multidimensional data driven document search system according to claim 1, characterized in that: The temporal analysis adjustment module includes: The time difference analysis submodule calculates the date difference based on the relevance sorted list by extracting the release date of each document and comparing it with the current date, including parsing the date format, calculating the difference in days between the current date and the document release date, and obtaining the time difference metric; The weight adjustment submodule uses the time difference metric to adjust the initial search weight of each document, including applying a linear weight adjustment rule to the time difference data, increasing or decreasing the document weight and reflecting timeliness, adjusting the weight value by addition and subtraction, and generating an adjusted weight vector; The time weight updating submodule updates the document weight and optimizes the timeliness of the search results based on the adjusted weight vector, re-standardizes the adjusted weight vector and matches the requirements of the search algorithm, and generates an adjusted time weight.
9. The multidimensional data driven document search system according to claim 1, characterized in that: The document sorting and output module includes: The similarity sorting integration submodule extracts the similarity score and time weight of each document based on the adjusted time weight, performs weighted merging and processes the data using a weighted average formula to obtain a sorted data set; The weight re-evaluation submodule analyzes the distribution of the data set based on the sorted data set, increases the weight of documents with high scores, reduces the weight of documents with low scores, and generates a re-evaluation weight result using a linear allocation model; The result output submodule receives the re-evaluation weight result, uses a decision tree sorting algorithm to sort the documents from high to low according to the weight, and uses an array sorting operation to generate an optimized search result list.
10. The multidimensional data driven document search system according to claim 9, characterized in that: The formula of the decision tree sorting algorithm is as follows: G(t)=α(1-∑(β·p(i|t)+γ·log(p(i|t)+δ)) 2 ) Among them, G(t) is the Gini impurity of the node, α is the adjustment coefficient of the node, β is the probability scaling factor, γ is the logarithmic transformation parameter of the probability, δ is the numerical stability constant, and p(i|t) is the adjustment probability.
Citation Information
Cited By
Building engineering data information intelligent management method and system
CN119066115A
Fast file retrieval method, product, computer equipment and storage medium
CN119377389A
File Quick Retrieval Method, Product, Computer Device, and Storage Medium
CN119377389B
Intelligent knowledge retrieval method and system for nuclear fusion device
CN119646175A
An intelligent knowledge retrieval method and system for a nuclear fusion device
CN119646175B
