A method, device, equipment and medium for automatic interface message adaptation

Through the interface message automatic adaptation method, the linear iterative distributed average algorithm and the diffusion similarity matrix are used to solve the problems of low interface integration efficiency and high maintenance cost in the e-commerce platform, and achieve fast and flexible interface adaptation and market response.

CN118333538BActive Publication Date: 2024-08-23GUIZHOU YOUTEYUN TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410757136.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-08-23
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

When integrating interfaces in e-commerce platforms with existing technologies, there are problems such as high consumption of customized development resources, high maintenance costs, inconsistent technical standards, and slow update and iteration speeds, resulting in limited interface integration efficiency and market response speed.

Method used

The interface message automatic adaptation method is adopted, semantic recognition is performed through a linear iterative distributed average algorithm, k-diagonal circulant matrix and cyclic band matrix are generated, diffusion similarity matrix is ​​calculated, semantic matching and clustering analysis are performed, and adaptation is output The final standard data is used to realize automatic adaptation of interface messages from different suppliers.

Benefits of technology

It improves the speed of semantic recognition of interface messages, identifies deep semantic correlations and similarities, realizes flexible, simple and fast adaptation of interface messages, and reduces maintenance costs and response time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118333538B
    Figure CN118333538B
Patent Text Reader

Abstract

The present application discloses an interface message automatic adaptation method, device, equipment and medium, the method comprising: performing semantic recognition processing on the interface messages of each supplier through a linear iterative distributed average algorithm; based on the semantic recognition result, generating a k-diagonal circulant matrix and a circulant band matrix, performing a first semantic matching process based on the k-diagonal circulant matrix and the circulant band matrix, and obtaining a first semantic matching matrix; based on the semantic recognition result and the diffusion algorithm, calculating a diffusion similarity matrix, performing a second semantic matching process based on the diffusion similarity matrix, and obtaining a second semantic matching matrix; based on the first semantic matching matrix and the second semantic matching matrix, clustering analysis is performed on the interface messages of different suppliers, and the adapted standard data corresponding to the interface messages of each supplier is output. The present application realizes flexible, simple and fast automatic adaptation of interface messages of different suppliers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and specifically relates to an interface message automatic adaptation method, device, equipment and medium. Background Art

[0002] In modern supply systems, e-commerce platforms often need to integrate multiple suppliers' interfaces to meet the business needs of different product lines. These interfaces cover a wide range of areas, including but not limited to product information synchronization, inventory management, order processing, logistics tracking, etc. In this context, the platform has extremely high requirements for the efficiency and stability of interface integration. However, the existing technical limitations are mainly reflected in the following aspects:

[0003] 1. Customized development model: The traditional access method is often a customized development model, that is, developing a dedicated docking code for each supplier's interface. This method not only consumes a lot of resources, but also increases the maintenance cost of customized code because each supplier's interface may be different.

[0004] 2. Different technical standards: Due to the lack of unified technical standards, the interfaces of different suppliers often differ in data format, transmission protocol, security mechanism, etc., making interface integration work complex and changeable.

[0005] 3. Slow update and iteration speed: When suppliers update interfaces or add new features, the platform needs to re-develop and test the code, which significantly reduces the overall response speed and market adaptability.

[0006] Therefore, there is an urgent need for an automatic interface message adaptation method to flexibly, simply and quickly perform automatic adaptation on interface messages of different suppliers. Summary of the invention

[0007] The present application provides an interface message automatic adaptation method, device, equipment and medium, aiming to solve at least one of the technical problems existing in the prior art.

[0008] In order to achieve the above object, an embodiment of the present application provides an interface message automatic adaptation method, the method comprising:

[0009] Collecting interface messages from different suppliers, performing data preprocessing on the interface messages, and obtaining message data;

[0010] Performing semantic recognition processing on the message data by using a linear iterative distributed average algorithm to obtain a semantic recognition result;

[0011] Based on the semantic recognition result, a k-diagonal circulant matrix and a circulant band matrix are generated, and a first semantic matching process is performed based on the k-diagonal circulant matrix and the circulant band matrix to obtain a first semantic matching matrix;

[0012] Based on the semantic recognition result and the diffusion algorithm, a diffusion similarity matrix between interface messages of different suppliers is calculated, and a second semantic matching process is performed based on the diffusion similarity matrix to obtain a second semantic matching matrix;

[0013] Based on the first semantic matching matrix and the second semantic matching matrix, cluster analysis is performed on interface messages of different suppliers, and adapted standard data corresponding to the interface messages of each supplier is output according to the cluster analysis result.

[0014] Optionally, generating a k-diagonal circulant matrix and a circulant band matrix based on the semantic recognition result, and performing a first semantic matching process based on the k-diagonal circulant matrix and the circulant band matrix to obtain a first semantic matching matrix includes:

[0015] constructing a semantic diffusion network according to the semantic recognition result;

[0016] According to the semantic diffusion network, a k-diagonal circulant matrix is ​​generated;

[0017] Generating a circulant band matrix according to the k-diagonal circulant matrix;

[0018] Performing matrix decomposition on the k-diagonal circulant matrix to obtain a first semantic topic matrix;

[0019] Performing matrix decomposition on the circulant band matrix to obtain a second semantic topic matrix;

[0020] A first semantic matching matrix is ​​generated according to the first semantic topic matrix and the second semantic topic matrix.

[0021] Optionally, the calculating the diffusion similarity matrix between interface messages of different suppliers based on the semantic recognition result and the diffusion algorithm includes:

[0022] According to the semantic recognition result, a feature vector corresponding to each supplier is calculated, and based on the feature vector, an initial similarity matrix between suppliers is determined;

[0023] A diffusion algorithm is used to perform similarity propagation processing on the initial similarity matrix to obtain a diffusion similarity matrix.

[0024] Optionally, the adopting a diffusion algorithm to perform similarity propagation processing on the initial similarity matrix to obtain a diffusion similarity matrix includes:

[0025] According to the initial similarity matrix, a similarity matrix graph is constructed, wherein the nodes in the similarity matrix graph represent suppliers, and the weights of the edges represent the similarities between the suppliers;

[0026] Performing random walks on the nodes in the similarity matrix graph, calculating new similarity values ​​between the nodes after the random walk, and determining a diffusion similarity matrix according to the new similarity values.

[0027] Optionally, performing a second semantic matching process based on the diffusion similarity matrix to obtain a second semantic matching matrix includes:

[0028] Calculate the similarity vector corresponding to each supplier according to the initial similarity matrix;

[0029] Performing matrix multiplication of the similarity vector and the diffusion similarity matrix to obtain an updated similarity vector corresponding to each supplier;

[0030] The updated similarity vectors corresponding to each supplier are summarized to obtain the second semantic matching matrix.

[0031] Optionally, performing cluster analysis on interface messages of different suppliers based on the first semantic matching matrix and the second semantic matching matrix, and outputting adapted standard data corresponding to the interface messages of each supplier according to the cluster analysis result, includes:

[0032] Acquire a first eigenvalue corresponding to each supplier from the first semantic matching matrix, calculate a first similarity value between each supplier according to the first eigenvalue, and perform cluster analysis on the suppliers according to the first similarity value to obtain a first clustering result;

[0033] Obtaining a second eigenvalue corresponding to each supplier from the second semantic matching matrix, calculating a second similarity value between each supplier according to the second eigenvalue, and performing cluster analysis on the suppliers according to the second similarity value to obtain a second clustering result;

[0034] Determining a target clustering result according to the first clustering result and the second clustering result;

[0035] According to the target clustering result, the interface messages of each supplier are associated and integrated to obtain the adapted standard data corresponding to the interface messages of each supplier.

[0036] Optionally, performing semantic recognition processing on the message data by using a linear iterative distributed average algorithm to obtain a semantic recognition result includes:

[0037] Obtain a message sample set, divide the message sample set into N sub-sample sets using a linear iterative distributed average algorithm, and distribute the sub-sample sets to N computing nodes, wherein each computing node is trained to obtain a local semantic recognition model according to its own sub-sample set;

[0038] The message data corresponding to each supplier is divided into N sub-data and distributed to N computing nodes. Each computing node uses its local semantic recognition model to perform semantic recognition processing on its own sub-data, and the recognition results corresponding to each computing node are summarized to obtain the semantic recognition results.

[0039] The embodiment of the present application also provides an interface message automatic adaptation device, the device comprising:

[0040] A collection module, used for collecting interface messages from different suppliers, performing data preprocessing on the interface messages, and obtaining message data;

[0041] An identification module, used for performing semantic identification processing on the message data through a linear iterative distributed average algorithm to obtain a semantic identification result;

[0042] A first matching module is used to generate a k-diagonal circulant matrix and a circulant band matrix based on the semantic recognition result, and perform a first semantic matching process based on the k-diagonal circulant matrix and the circulant band matrix to obtain a first semantic matching matrix;

[0043] A second matching module is used to calculate a diffusion similarity matrix between interface messages of different suppliers based on the semantic recognition result and the diffusion algorithm, and perform a second semantic matching process based on the diffusion similarity matrix to obtain a second semantic matching matrix;

[0044] An output module is used to perform cluster analysis on interface messages of different suppliers based on the first semantic matching matrix and the second semantic matching matrix, and output the adapted standard data corresponding to the interface messages of each supplier according to the cluster analysis results.

[0045] An embodiment of the present application also provides a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned interface message automatic adaptation method.

[0046] An embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the above-mentioned interface message automatic adaptation method.

[0047] The interface message automatic adaptation method provided in the embodiment of the present application performs data preprocessing on the interface messages of different suppliers to obtain message data; performs semantic recognition processing on the message data through a linear iterative distributed average algorithm to obtain a semantic recognition result; based on the semantic recognition result, a k-diagonal circulant matrix and a circulant band matrix are generated, and a first semantic matching processing is performed based on the k-diagonal circulant matrix and the circulant band matrix to obtain a first semantic matching matrix; based on the semantic recognition result and a diffusion algorithm, a diffusion similarity matrix between the interface messages of different suppliers is calculated, and a second semantic matching processing is performed based on the diffusion similarity matrix to obtain a second semantic matching matrix; based on the first semantic matching matrix and the second semantic matching matrix, cluster analysis is performed on the interface messages of different suppliers, and the adapted standard data corresponding to the interface messages of each supplier is output according to the cluster analysis results. By adopting a linear iterative distributed average algorithm, the speed of semantic recognition is improved; the deep semantic correlation information between message data is identified through the k-diagonal circulant matrix and the circulant band matrix; the direct similarity and indirect similarity between message data are identified through the diffusion similarity matrix; thus, the message data can be accurately clustered according to the first semantic matching matrix and the second semantic matching matrix, and the interface messages of different suppliers can be flexibly, simply and quickly automatically adapted according to the clustering analysis results to output the corresponding adapted standard data. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A flowchart of an interface message automatic adaptation method in one embodiment;

[0049] Figure 2 It is a structural block diagram of an interface message automatic adaptation device in an embodiment;

[0050] Figure 3 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application 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 application and are not intended to limit the present application. In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.

[0052] like Figure 1As shown, the embodiment of the present application provides an interface message automatic adaptation method. It can be understood that the method can be executed by any device, equipment, platform, or device cluster with computing and processing capabilities. For example, the device can be an electronic device with computing capabilities, such as a notebook, a central control device, a smart phone, a terminal computer, a server, and other electronic devices. The method includes the following steps S1-S5:

[0053] S1. Collect interface messages from different suppliers, perform data preprocessing on the interface messages, and obtain message data.

[0054] In this embodiment, the process of collecting interface messages from different suppliers includes:

[0055] Establish unified data collection rules: set data collection frequency, data format requirements, and data security transmission standards;

[0056] Configure data collection channels: build API endpoints and Web services for data exchange;

[0057] Design automated data collection programs: Develop automated scripts to collect message information from supplier interfaces periodically or in real time;

[0058] Implement data quality monitoring: Conduct preliminary checks on the collected data, for example, check the data's integrity, timeliness, and format compliance.

[0059] The step of performing data preprocessing on the interface message to obtain message data includes the following steps A11-A14:

[0060] A11, cleaning the interface message to obtain a cleaned message;

[0061] Cleaning processing includes removing unstructured redundant information in the message, such as unnecessary spaces, line breaks, comments, etc.; filtering out invalid data, including damaged, incomplete or meaningless messages.

[0062] A12, performing format standardization processing on the cleaned message to obtain a standardized message;

[0063] Format standardization includes:

[0064] Convert data to a uniform format: For example, convert dates and times to ISO standard formats, and use a uniform format for decimal points and thousandths for currencies and numbers.

[0065] For special data types (such as fixed-length records or data separated by delimiters), they are converted into structured data that the system can recognize and process.

[0066] A13, performing data type conversion on the preset type data in the standardized message to obtain a converted message;

[0067] Perform data type conversion on preset type data, for example, convert a numeric string to an integer or floating point type; map dictionaries of enumeration or dictionary types, for example, convert "yes / no" to Boolean values ​​true / false.

[0068] A14. Perform verification and error correction on the converted message to obtain message data.

[0069] Verification operations can be performed to ensure that data complies with set business rules and logical requirements; when data is unexpected or erroneous, an automatic error correction mechanism is implemented or anomalies are marked for subsequent manual review or revision.

[0070] S2. Perform semantic recognition processing on the message data by using a linear iterative distributed average algorithm to obtain a semantic recognition result.

[0071] The linear iterative distributed average algorithm is used to split the task into multiple subtasks that can be executed in parallel when processing large-scale, high-concurrency data tasks, and distribute them to different computing nodes. This can improve the data processing speed and flexibly respond to dynamic changes in data volume and computing load.

[0072] Suppose there is a large online travel platform that needs to access the APIs of 1,000 hotel suppliers. The hotel data formats and fields provided by each supplier are slightly different. Our goal is to use a linear iterative distributed average algorithm to optimize the semantic recognition process of hotel data to achieve efficient and accurate semantic recognition.

[0073] The method of performing semantic recognition processing on the message data by using a linear iterative distributed average algorithm to obtain a semantic recognition result includes the following steps B11-B12:

[0074] B11, obtaining a message sample set, dividing the message sample set into N sub-sample sets using a linear iterative distributed average algorithm, and distributing the sub-sample sets to N computing nodes, wherein each computing node is trained to obtain a local semantic recognition model according to its own sub-sample set;

[0075] The samples in the message sample set are hotel data samples.

[0076] Each computing node trains a local semantic recognition model according to its own sub-sample set, including the following steps C11-C14:

[0077] C11. Each computing node uses the local initial semantic recognition model to perform semantic extraction processing on the assigned sub-sample set to obtain the semantic vector corresponding to each computing node;

[0078] The initial semantic recognition model can be a recurrent neural network model, which uses a deep learning algorithm to learn the hotel name, address, facilities, etc. in the hotel data sample set.

[0079] C12, each computing node sends its own semantic vector to other computing nodes, and receives semantic vectors sent by other computing nodes;

[0080] If there are 10 computing nodes in total, each computing node sends its own semantic vector to the other 9 computing nodes, and receives the semantic vectors sent by the other 9 computing nodes.

[0081] C13, each computing node aggregates its own semantic vector and the received semantic vector, and calculates the average value of the global semantic vector;

[0082] Since each computing node uses the same 10 semantic vectors to aggregate and calculate the average, the average value of the global semantic vector corresponding to each computing node is the same.

[0083] C14. Each computing node uses the average value of the global semantic vector to update the local initial semantic recognition model, and each computing node obtains a trained semantic recognition model locally.

[0084] The average value of the global semantic vector corresponding to each computing node is the same, so that the trained semantic recognition model obtained locally by each computing node is the same.

[0085] B12. Divide the message data corresponding to each supplier into N sub-data and distribute them to N computing nodes. Each computing node uses its local semantic recognition model to perform semantic recognition processing on its own sub-data, and summarizes the recognition results corresponding to each computing node to obtain the semantic recognition results.

[0086] The purpose of having each computing node retain a copy of the same trained semantic recognition model, rather than just retaining one copy on the central server, is to improve the efficiency of parallel processing. When semantic recognition of the collected hotel data is required, the data can be distributed to different computing nodes, and each computing node uses the locally trained semantic recognition model for processing, without the need to centralize all data on the central server for processing. This distributed processing method can significantly improve the system's throughput and response speed.

[0087] The trained semantic recognition model can identify the semantic correspondence between data from different suppliers, such as different suppliers’ different expressions of the name and address of the same hotel. Based on these semantic correspondences, the hotel data from different suppliers can be merged and deduplicated to obtain a semantically consistent and data-standardized hotel information database.

[0088] In this embodiment, the linear iterative distributed average algorithm can be used to quickly and effectively process heterogeneous hotel data provided by multiple suppliers, and the efficiency of data processing is improved through distributed parallel semantic recognition.

[0089] S3. Based on the semantic recognition result, generate a k-diagonal circulant matrix and a circulant band matrix, and perform a first semantic matching process based on the k-diagonal circulant matrix and the circulant band matrix to obtain a first semantic matching matrix.

[0090] This embodiment further mines the deep semantic relationship of hotel data through k-diagonal circulant matrix and circulant band matrix.

[0091] The step of generating a k-diagonal circulant matrix and a circulant band matrix based on the semantic recognition result, and performing a first semantic matching process based on the k-diagonal circulant matrix and the circulant band matrix to obtain a first semantic matching matrix includes the following steps D11-D16:

[0092] D11. constructing a semantic diffusion network according to the semantic recognition result;

[0093] A node in the semantic diffusion network represents a hotel entity, and the edges between nodes represent the semantic associations between hotel entities, such as the same brand, similar geographical location, similar facilities, etc. Through the semantic recognition results, the semantic similarity between different hotel entities can be calculated, and the semantic similarity can be used as the weight of the edge in the semantic diffusion network.

[0094] D12, generating a k-diagonal circulant matrix according to the semantic diffusion network;

[0095] For example, if there are 6 hotel entities A, B, C, D, E, and F, the generated k-diagonal circulant matrix is ​​a 6*6 matrix:

[0096] ABCDEF

[0097] Ax 11 x 12 x 13 x 14 x 15 x 16

[0098] Bx 21 x 22 x 23 x 24 x 25 x 26

[0099] Cx 31 x 32 x 33 x 34x 35 x 36

[0100] Dx 41 x 42 x 43 x 44 x 45 x 46

[0101] Ex 51 x 52 x 53 x 54 x 55 x 56

[0102] Fx 61 x 62 x 63 x 64 x 65 x 66

[0103] In this matrix, the i-th row and i-th column correspond to the same hotel entity. For example, the first row and the first column correspond to hotel A, the second row and the second column correspond to hotel B, and so on. 12 It indicates the semantic relevance between Hotel A and Hotel B.

[0104] The elements in the matrix represent semantic relevance, which can be the overall semantic similarity of two hotels or the multi-dimensional semantic similarity. For example, geographic location similarity, brand similarity, and price similarity are combined into a triplet and stored in each element of the matrix.

[0105] For a non-zero element triple (x, y, z) where:

[0106] x represents the geographical similarity, and its value range is [0,1]. The larger the value, the closer the geographical location. y represents the brand similarity, and its value range is 0 or 1. 1 means that the two hotels belong to the same brand, and 0 means different brands. z represents the price similarity, and its value range is [0,1]. The larger the value, the closer the price level.

[0107] For example, the value of the element x13 in the 1st row and 3rd column is (0.8, 0, 0), which means that the geographical location similarity between Hotel A and Hotel C is 0.8, but they do not belong to the same brand and their price levels are not very close.

[0108] In this way, richer semantic relevance information can be found in the k-diagonal circulant matrix, including overall semantic similarity and semantic similarity of each specific dimension. This information can help us capture the semantic relationship between hotel entities more comprehensively and finely, thereby achieving more accurate semantic matching and data integration.

[0109] D13, generating a circulant band matrix according to the k-diagonal circulant matrix;

[0110] The elements on the sub-diagonal of the k-diagonal circulant matrix and the elements of multiple diagonals adjacent to each other are retained, and the other elements are set to zero, thus obtaining a circulant band matrix.

[0111] How many adjacent elements should be retained depends on the scope of the semantic relationship we want to capture. For example, if we want to capture the correlation between each hotel and the two hotels before and after it, we can retain the sub-diagonal and its two adjacent diagonals above and below it.

[0112] At this time, in the obtained cyclic band matrix, in addition to the elements on the sub-diagonal, the elements on the two adjacent diagonals above and below the sub-diagonal are also retained. This structure can capture the correlation between each hotel and its two previous and next hotels, reflecting the balance of local and global semantic relationships.

[0113] The circulant banded matrix selectively retains local and global correlations and uses the circulant structure to capture indirect correlations, thereby achieving the characterization of global semantic relationships between entities. This global semantic information can help us obtain more comprehensive and accurate results in semantic matching and data integration tasks.

[0114] D14, performing matrix decomposition on the k-diagonal circulant matrix to obtain a first semantic topic matrix;

[0115] In this embodiment, non-negative matrix factorization (NMF) or singular value decomposition (SVD) or other methods may be used to perform matrix decomposition. By performing matrix decomposition on a k-diagonal circulant matrix, hidden semantic information may be discovered.

[0116] Take the 6*6 k-diagonal circulant matrix formed by 6 hotel entities as an example. Assume that the singular value decomposition method is used to decompose it. The decomposition results include three matrices: U, Σ and V T :

[0117] A = U*Σ*V T

[0118] Among them, A represents the original 6*6 k-diagonal circulant matrix; U represents a 6*6 orthogonal matrix, which represents the distribution of hotel entities in the semantic topic space; Σ represents a 6*6 diagonal matrix, which represents the importance of semantic topics; VT It is a 6*6 orthogonal matrix, which represents the distribution of semantic topics in the original hotel entity space.

[0119] Each row of the matrix U corresponds to a hotel entity, and each column corresponds to a semantic topic. For example, U[i, j] represents the weight of the i-th hotel entity on the j-th semantic topic. T Each row of V corresponds to a semantic topic, and each column corresponds to an original hotel entity. T [i, j] represents the weight of the i-th semantic topic on the j-th hotel entity. The diagonal elements of the diagonal matrix Σ represent the importance of each semantic topic, that is, the contribution of the topic in explaining the variance of the original matrix.

[0120] It should be noted that the semantic topics here are automatically discovered through matrix decomposition and do not directly correspond to our pre-defined features (such as hotel brand, location, facility features, etc.). Each semantic topic may be a combination of these features, representing the relevance of hotel entities on a hidden semantic dimension.

[0121] In this embodiment, the first semantic topic matrix is ​​matrix U.

[0122] D15, performing matrix decomposition on the circulant band matrix to obtain a second semantic topic matrix;

[0123] The process and result of decomposing the circulant band matrix are similar to those of the k-diagonal circulant matrix. After decomposing the circulant band matrix, two 6*6 matrices (U' and V T ') and a 6x6 diagonal matrix (Σ'). The interpretation of these matrices is the same as in the previous example, except that they are derived from the circulant band matrix and thus reflect different semantic relationships between hotel entities.

[0124] By decomposing the k-diagonal circulant matrix and the circulant band matrix, we can find the distribution of hotel entities on different semantic topics. These semantic topics are automatically learned from the data and reflect the relevance of hotel entities on some hidden semantic dimensions. Using these semantic topics, we can better understand and characterize the semantic relationship between hotel entities, thereby achieving more accurate semantic matching and data integration.

[0125] In this embodiment, the second semantic topic matrix is ​​a matrix U'.

[0126] D16. Generate a first semantic matching matrix based on the first semantic topic matrix and the second semantic topic matrix.

[0127] Each row of the matrix U corresponds to a hotel entity, and each column corresponds to a semantic topic. The matrix U can be regarded as mapping the original hotel entity to a low-dimensional semantic topic space. In this semantic topic space, each hotel entity has a corresponding vector representation, that is, a row in the matrix U. This vector represents the weight distribution of the hotel entity on each semantic topic.

[0128] Similarly, each row of the matrix U' also corresponds to the weight distribution of the semantic topic of a hotel entity.

[0129] The first semantic matching matrix is ​​obtained by concatenating the row vectors of the corresponding rows in the first semantic topic matrix U and the second semantic topic matrix U'. The row vector of each row in the first semantic matching matrix covers the semantic topic distribution information hidden in the k-diagonal circulant matrix and the circulant band matrix.

[0130] S4. Based on the semantic recognition result and the diffusion algorithm, a diffusion similarity matrix between interface messages of different suppliers is calculated, and a second semantic matching process is performed based on the diffusion similarity matrix to obtain a second semantic matching matrix.

[0131] The step of calculating the diffusion similarity matrix between interface messages of different suppliers based on the semantic recognition result and the diffusion algorithm includes the following steps E11-E12:

[0132] E11. Calculate a feature vector corresponding to each supplier according to the semantic recognition result, and determine an initial similarity matrix between suppliers based on the feature vector;

[0133] The feature vector contains various attribute information of the hotel entity, such as hotel name, address, star rating, facilities, price, etc. These attribute information can be converted into numerical feature representations using methods such as Bag-of-Words or Word Embedding. For categorical attributes, such as star rating and facilities, One-Hot Encoding can be used for representation. Ultimately, each hotel entity is represented as a feature vector of fixed length.

[0134] After obtaining the feature vector of each hotel entity, the similarity between the feature vectors is calculated pairwise. Similarity measurement methods include Euclidean distance, cosine similarity, Jaccard similarity, etc. Since the number of hotel entities may be large, in order to improve the calculation efficiency, vectorized operations can be used to calculate the similarity in batches. For example, using NumPy's broadcast mechanism, the similarity between multiple hotel entities can be calculated at one time.

[0135] According to the similarity between the feature vectors, an initial similarity matrix can be obtained. The initial similarity matrix is ​​a symmetric matrix, in which the (i, j)th element represents the similarity between the i-th hotel entity and the j-th hotel entity.

[0136] For example, the initial similarity matrix is:

[0137] ABCD

[0138] A1.00.30.70.2

[0139] B0.31.00.40.6

[0140] C0.70.41.00.8

[0141] D0.20.60.81.0

[0142] The diagonal elements of this matrix are usually set to 1 or 0, indicating the similarity of each hotel entity to itself.

[0143] E12. Use a diffusion algorithm to perform similarity propagation processing on the initial similarity matrix to obtain a diffusion similarity matrix.

[0144] In this embodiment, the purpose of using the diffusion algorithm for similarity propagation is to use the connection relationship (ie, similarity) between hotel entities to update and refine the initial similarity matrix and obtain a new similarity matrix that takes indirect similarity into account.

[0145] For example, in the above example, although the direct similarity between hotel entity A and entity D is only 0.2, they both have a higher similarity with entity C (0.7 and 0.8 respectively). Through similarity propagation, it can be inferred that there may be a certain indirect similarity between A and D, so the similarity value between them may be improved.

[0146] The adopting of a diffusion algorithm to perform similarity propagation processing on the initial similarity matrix to obtain a diffusion similarity matrix includes the following steps F11-F12:

[0147] F11. Construct a similarity matrix diagram based on the initial similarity matrix, wherein the nodes in the similarity matrix diagram represent suppliers, and the weights of the edges represent the similarities between the suppliers;

[0148] F12, performing random walks on the nodes in the similarity matrix diagram, calculating new similarity values ​​between the nodes after the random walk, and determining a diffusion similarity matrix according to the new similarity values.

[0149] During random walk, starting from node i, according to the connection relationship between other nodes and node i in the similarity matrix diagram, the probability distribution table of node i transferring to other nodes is calculated and drawn, and the next node j is randomly selected according to the probability distribution table; then starting from node j, the probability distribution table of node j transferring to other nodes is calculated and drawn, and according to the probability distribution table, the next node is randomly selected for transfer, and so on, forming a random walk process.

[0150] To find the indirect similarity between nodes, the new similarity between nodes after multiple steps of random walks is usually obtained based on the power of the transition probability.

[0151] For example, P[i,j] represents the probability of reaching node j after one step of random walk starting from node i; P 2 [i, j] represents the probability of reaching node j after two steps of random walk starting from node i; P 3 [i, j] represents the probability of reaching node j after three steps of random walk starting from node i.

[0152] The key point here is that multi-step random walks take into account the indirect connection relationship between nodes. For example, if there is no direct edge connection between nodes i and j, but they are both connected to node k, then through two steps of random walks (i->k->j), an indirect similarity relationship is established between nodes i and j.

[0153] The reason why the new similarity between nodes after multi-step random walks is calculated is that this indirect similarity can reveal the high-order correlation between nodes, which cannot be directly observed from the initial similarity matrix alone.

[0154] As for how many powers of P to use, it depends on the "depth" of indirect similarity we want to consider. Generally speaking, as the power increases, the random walk will consider indirect connections between more and more distant nodes, but it may also introduce more noise. In practice, we usually try different powers (such as P 2 ,P 3 ,P 4 Then select a suitable power according to the actual effect.

[0155] The second semantic matching process is performed based on the diffusion similarity matrix to obtain a second semantic matching matrix, including the following steps G11-G13:

[0156] G11. Calculate the similarity vector corresponding to each supplier according to the initial similarity matrix;

[0157] If the initial similarity matrix is:

[0158] ABCD

[0159] A1.00.30.70.2

[0160] B0.31.00.40.6

[0161] C0.70.41.00.1

[0162] D0.20.60.81.0

[0163] The row vector corresponding to the first row of data is the similarity vector of supplier A.

[0164] G12. Perform matrix multiplication on the similarity vector and the diffusion similarity matrix to obtain an updated similarity vector corresponding to each supplier;

[0165] Assume that there are 100 hotel entities, and the similarity matrix after diffusion is a 100*100 matrix, denoted as M. The similarity vector of hotel entity A is a 1*100 row vector, denoted as v. Calculate the matrix multiplication of v and M, and the result is a 1*100 row vector, denoted as v', where the i-th element of v' represents the updated similarity vector between hotel entity A and the i-th hotel entity, which takes into account direct similarity and indirect similarity.

[0166] G13. Summarize the updated similarity vectors corresponding to each supplier to obtain a second semantic matching matrix.

[0167] S5. Based on the first semantic matching matrix and the second semantic matching matrix, cluster analysis is performed on the interface messages of different suppliers, and adapted standard data corresponding to the interface messages of each supplier is output according to the cluster analysis result.

[0168] The step of performing cluster analysis on interface messages of different suppliers based on the first semantic matching matrix and the second semantic matching matrix, and outputting adapted standard data corresponding to the interface messages of each supplier according to the cluster analysis result, includes the following steps H11-H14:

[0169] H11. Obtaining a first eigenvalue corresponding to each supplier from the first semantic matching matrix, calculating a first similarity value between each supplier according to the first eigenvalue, and performing cluster analysis on the suppliers according to the first similarity value to obtain a first clustering result;

[0170] In the first semantic matching matrix, each row represents the semantic topic distribution of a supplier. Therefore, the row vector of the first semantic matching matrix is ​​the first eigenvalue of the corresponding supplier. After obtaining the first eigenvalue, the suppliers (hotel entities) are aggregated into different semantic clusters through clustering algorithms such as K-means or DBSCAN. Each semantic cluster represents a group of suppliers with similar distribution in semantic topics.

[0171] H12. Obtain a second eigenvalue corresponding to each supplier from the second semantic matching matrix, calculate a second similarity value between each supplier according to the second eigenvalue, and perform cluster analysis on the suppliers according to the second similarity value to obtain a second clustering result;

[0172] In the second semantic matching matrix, each row represents a supplier's updated similarity vector. Thus, the row vector of the second semantic matching matrix is ​​the second eigenvalue of the corresponding supplier. After obtaining the second eigenvalue, a second clustering result can be obtained through a clustering algorithm.

[0173] H13. Determine a target clustering result according to the first clustering result and the second clustering result;

[0174] If supplier A and supplier B belong to the same cluster in both the first clustering result and the second clustering result, then A and B are considered to belong to the same cluster; if A and B do not belong to the same cluster in one of the first clustering result and the second clustering result, or A and B do not belong to the same cluster in both results, then A and B are considered to not belong to the same cluster. According to this method, the target clustering result can be determined.

[0175] H14. According to the target clustering result, the interface messages of each supplier are associated and integrated to obtain the adapted standard data corresponding to the interface messages of each supplier.

[0176] Through the target clustering results, the data of each hotel entity can be semantically associated and integrated, and repeated or similar hotel entities can be identified. The consistency of this part of the data can be processed, so that the matched standard data corresponding to the interface messages of each supplier can be obtained.

[0177] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0178] Based on the same inventive concept, the embodiment of the present application also provides a device for implementing the above-mentioned interface message automatic adaptation method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiment of the interface message automatic adaptation device provided below can refer to the limitations of the interface message automatic adaptation method above, and will not be repeated here.

[0179] In one embodiment, Figure 2 FIG. 1 is a schematic diagram of a module of an interface message automatic adaptation device 20 in an embodiment of the present application, which includes: a collection module 21, an identification module 22, a first matching module 23, a second matching module 24 and an output module 25, wherein:

[0180] The collection module 21 is used to collect interface messages from different suppliers, perform data preprocessing on the interface messages, and obtain message data;

[0181] The recognition module 22 is used to perform semantic recognition processing on the message data through a linear iterative distributed average algorithm to obtain a semantic recognition result;

[0182] A first matching module 23 is used to generate a k-diagonal circulant matrix and a circulant band matrix based on the semantic recognition result, and perform a first semantic matching process based on the k-diagonal circulant matrix and the circulant band matrix to obtain a first semantic matching matrix;

[0183] A second matching module 24 is used to calculate a diffusion similarity matrix between interface messages of different suppliers based on the semantic recognition result and the diffusion algorithm, and perform a second semantic matching process based on the diffusion similarity matrix to obtain a second semantic matching matrix;

[0184] The output module 25 is used to perform cluster analysis on the interface messages of different suppliers based on the first semantic matching matrix and the second semantic matching matrix, and output the adapted standard data corresponding to the interface messages of each supplier according to the cluster analysis results.

[0185] The step of performing data preprocessing on the interface message to obtain message data includes the following steps A21-A24:

[0186] A21, cleaning the interface message to obtain a cleaned message;

[0187] A22, performing format standardization processing on the cleaned message to obtain a standardized message;

[0188] A23, performing data type conversion on the preset type data in the standardized message to obtain a converted message;

[0189] A24, performing verification and error correction processing on the converted message to obtain message data.

[0190] The method of performing semantic recognition processing on the message data by using a linear iterative distributed average algorithm to obtain a semantic recognition result includes the following steps B21-B22:

[0191] B21, obtaining a message sample set, dividing the message sample set into N sub-sample sets using a linear iterative distributed average algorithm, and distributing the sub-sample sets to N computing nodes, wherein each computing node is trained to obtain a local semantic recognition model according to its own sub-sample set;

[0192] B22. Divide the message data corresponding to each supplier into N sub-data and distribute them to N computing nodes. Each computing node uses its local semantic recognition model to perform semantic recognition processing on its own sub-data, summarizes the recognition results corresponding to each computing node, and obtains the semantic recognition results.

[0193] Each computing node trains a local semantic recognition model according to its own sub-sample set, including the following steps C21-C24:

[0194] C21, each computing node uses the local initial semantic recognition model to perform semantic extraction processing on the assigned sub-sample set to obtain the semantic vector corresponding to each computing node;

[0195] C22, each computing node sends its own semantic vector to other computing nodes, and receives semantic vectors sent by other computing nodes;

[0196] C23, each computing node aggregates its own semantic vector and the received semantic vector, and calculates the average value of the global semantic vector;

[0197] C24. Each computing node uses the average value of the global semantic vector to update the local initial semantic recognition model, and each computing node obtains a trained semantic recognition model locally.

[0198] The step of generating a k-diagonal circulant matrix and a circulant band matrix based on the semantic recognition result, and performing a first semantic matching process based on the k-diagonal circulant matrix and the circulant band matrix to obtain a first semantic matching matrix includes the following steps D21-D26:

[0199] D21. constructing a semantic diffusion network according to the semantic recognition result;

[0200] D22, generating a k-diagonal circulant matrix according to the semantic diffusion network;

[0201] D23, generating a circulant band matrix according to the k-diagonal circulant matrix;

[0202] D24, performing matrix decomposition on the k-diagonal circulant matrix to obtain a first semantic topic matrix;

[0203] D25, performing matrix decomposition on the circulant band matrix to obtain a second semantic topic matrix;

[0204] D26. Generate a first semantic matching matrix based on the first semantic topic matrix and the second semantic topic matrix.

[0205] The step of calculating the diffusion similarity matrix between interface messages of different suppliers based on the semantic recognition result and the diffusion algorithm includes the following steps E21-E22:

[0206] E21. Calculate the feature vector corresponding to each supplier according to the semantic recognition result, and determine the initial similarity matrix between suppliers based on the feature vector;

[0207] E22. Use a diffusion algorithm to perform similarity propagation processing on the initial similarity matrix to obtain a diffusion similarity matrix.

[0208] The method of using a diffusion algorithm to perform similarity propagation processing on the initial similarity matrix to obtain a diffusion similarity matrix includes the following steps F21-F22:

[0209] F21. Construct a similarity matrix diagram based on the initial similarity matrix, wherein the nodes in the similarity matrix diagram represent suppliers, and the weights of the edges represent the similarities between the suppliers;

[0210] F22, performing random walks on the nodes in the similarity matrix graph, calculating new similarity values ​​between the nodes after the random walk, and determining a diffusion similarity matrix according to the new similarity values.

[0211] The second semantic matching process is performed based on the diffusion similarity matrix to obtain a second semantic matching matrix, including the following steps G21-G23:

[0212] G21. Calculate the similarity vector corresponding to each supplier according to the initial similarity matrix;

[0213] G22. Perform matrix multiplication on the similarity vector and the diffusion similarity matrix to obtain an updated similarity vector corresponding to each supplier;

[0214] G23. Summarize the updated similarity vectors corresponding to each supplier to obtain a second semantic matching matrix.

[0215] The step of performing cluster analysis on interface messages of different suppliers based on the first semantic matching matrix and the second semantic matching matrix, and outputting adapted standard data corresponding to the interface messages of each supplier according to the cluster analysis result, includes the following steps H21-H24:

[0216] H21. Obtaining a first eigenvalue corresponding to each supplier from the first semantic matching matrix, calculating a first similarity value between each supplier according to the first eigenvalue, and performing cluster analysis on the suppliers according to the first similarity value to obtain a first clustering result;

[0217] H22. Obtain a second eigenvalue corresponding to each supplier from the second semantic matching matrix, calculate a second similarity value between each supplier according to the second eigenvalue, and perform cluster analysis on the suppliers according to the second similarity value to obtain a second clustering result;

[0218] H23. Determine a target clustering result according to the first clustering result and the second clustering result;

[0219] H24. According to the target clustering result, the interface messages of each supplier are associated and integrated to obtain the adapted standard data corresponding to the interface messages of each supplier.

[0220] The specific implementation methods of the above-mentioned device embodiments are basically the same as the method embodiments described above, and will not be elaborated here.

[0221] Each module in the above interface message automatic adaptation device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0222] In one embodiment, a computer device is further provided. The computer device is the edge network node mentioned in the above method embodiment. Its internal structure diagram can be as follows: Figure 3 As shown. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface.

[0223] Among them, the processor of the computer device is used to provide computing and control capabilities, and can be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but is not limited thereto. The processor may include one or more processors, for example, one or more central processing units (CPUs). When the processor is a CPU, the CPU may be a single-core CPU or a multi-core CPU. The processor may also include one or more dedicated processors, and the dedicated processor may include a GPU, an FPGA, etc., for accelerated processing. The processor is used to call the program code and data in the memory and execute the steps in the above method embodiment. For details, please refer to the description in the method embodiment, which will not be repeated here.

[0224] The memory of the computer device includes, but is not limited to, non-volatile storage media and internal memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium.

[0225] The input / output interface of the computer device is used to exchange information between the processor and external devices.

[0226] The communication interface of the computer device is used to communicate with an external terminal via a network connection.

[0227] When the computer program is executed by a processor, an automatic interface message adaptation method is implemented.

[0228] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the division of each unit / module is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The mutual coupling, direct coupling, or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0229] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0230] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable system. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a read-only memory (ROM), or a random access memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a tape, a disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state disk (SSD), etc.

[0231] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. An interface message automatic adaptation method, characterized in that: The method comprises: Collecting interface messages from different suppliers, performing data preprocessing on the interface messages, and obtaining message data; Performing semantic recognition processing on the message data by using a linear iterative distributed average algorithm to obtain a semantic recognition result; Based on the semantic recognition result, a k-diagonal circulant matrix and a circulant band matrix are generated, and a first semantic matching process is performed based on the k-diagonal circulant matrix and the circulant band matrix to obtain a first semantic matching matrix; Based on the semantic recognition result and the diffusion algorithm, a diffusion similarity matrix between interface messages of different suppliers is calculated, and a second semantic matching process is performed based on the diffusion similarity matrix to obtain a second semantic matching matrix; Based on the first semantic matching matrix and the second semantic matching matrix, cluster analysis is performed on the interface messages of different suppliers, and the adapted standard data corresponding to the interface messages of each supplier is output according to the cluster analysis result; The first semantic matching process is performed based on the k-diagonal circulant matrix and the circulant band matrix to obtain a first semantic matching matrix, including: Performing matrix decomposition on the k-diagonal circulant matrix to obtain a first semantic topic matrix; Performing matrix decomposition on the circulant band matrix to obtain a second semantic topic matrix; Generate a first semantic matching matrix according to the first semantic topic matrix and the second semantic topic matrix; The semantic recognition processing of the message data by using a linear iterative distributed average algorithm to obtain a semantic recognition result includes: Obtain a message sample set, divide the message sample set into N sub-sample sets using a linear iterative distributed average algorithm, and distribute the sub-sample sets to N computing nodes, wherein each computing node is trained to obtain a local semantic recognition model according to its own sub-sample set; The message data corresponding to each supplier is divided into N sub-data and distributed to N computing nodes. Each computing node uses its local semantic recognition model to perform semantic recognition processing on its own sub-data, and the recognition results corresponding to each computing node are summarized to obtain the semantic recognition result; Among them, based on the first semantic matching matrix and the second semantic matching matrix, cluster analysis is performed on interface messages of different suppliers, and adapted standard data corresponding to the interface messages of each supplier is output according to the cluster analysis results, including: obtaining the first eigenvalue corresponding to each supplier from the first semantic matching matrix, calculating the first similarity value between each supplier according to the first eigenvalue, and clustering analysis on the suppliers according to the first similarity value to obtain a first clustering result; obtaining the second eigenvalue corresponding to each supplier from the second semantic matching matrix, calculating the second similarity value between each supplier according to the second eigenvalue, and clustering analysis on the suppliers according to the second similarity value to obtain a second clustering result; determining the target clustering result according to the first clustering result and the second clustering result; and correlating and integrating the interface messages of each supplier according to the target clustering result to obtain the adapted standard data corresponding to the interface messages of each supplier.

2. The method according to claim 1, characterized in that: The step of generating a k-diagonal circulant matrix and a circulant band matrix based on the semantic recognition result includes: constructing a semantic diffusion network according to the semantic recognition result; According to the semantic diffusion network, a k-diagonal circulant matrix is ​​generated; A circulant band matrix is ​​generated according to the k-diagonal circulant matrix.

3. The method according to claim 1, characterized in that The step of calculating the diffusion similarity matrix between interface messages of different suppliers based on the semantic recognition result and the diffusion algorithm includes: According to the semantic recognition result, a feature vector corresponding to each supplier is calculated, and based on the feature vector, an initial similarity matrix between suppliers is determined; A diffusion algorithm is used to perform similarity propagation processing on the initial similarity matrix to obtain a diffusion similarity matrix.

4. The method according to claim 3, characterized in that The adopting of a diffusion algorithm to perform similarity propagation processing on the initial similarity matrix to obtain a diffusion similarity matrix includes: According to the initial similarity matrix, a similarity matrix graph is constructed, wherein the nodes in the similarity matrix graph represent suppliers, and the weights of the edges represent the similarities between the suppliers; Performing random walks on the nodes in the similarity matrix graph, calculating new similarity values ​​between the nodes after the random walk, and determining a diffusion similarity matrix according to the new similarity values.

5. The method according to claim 4, characterized in that The performing a second semantic matching process based on the diffusion similarity matrix to obtain a second semantic matching matrix includes: Calculate the similarity vector corresponding to each supplier according to the initial similarity matrix; Performing matrix multiplication on the similarity vector and the diffusion similarity matrix to obtain an updated similarity vector corresponding to each supplier; The updated similarity vectors corresponding to each supplier are summarized to obtain the second semantic matching matrix.

6. An interface message automatic adaptation device, characterized in that: The device comprises: A collection module, used for collecting interface messages from different suppliers, performing data preprocessing on the interface messages, and obtaining message data; An identification module, used for performing semantic identification processing on the message data through a linear iterative distributed average algorithm to obtain a semantic identification result; A first matching module is used to generate a k-diagonal circulant matrix and a circulant band matrix based on the semantic recognition result, and perform a first semantic matching process based on the k-diagonal circulant matrix and the circulant band matrix to obtain a first semantic matching matrix; A second matching module is used to calculate a diffusion similarity matrix between interface messages of different suppliers based on the semantic recognition result and the diffusion algorithm, and perform a second semantic matching process based on the diffusion similarity matrix to obtain a second semantic matching matrix; An output module, used to perform cluster analysis on interface messages of different suppliers based on the first semantic matching matrix and the second semantic matching matrix, and output the adapted standard data corresponding to the interface messages of each supplier according to the cluster analysis result; The first semantic matching process is performed based on the k-diagonal circulant matrix and the circulant band matrix to obtain a first semantic matching matrix, including: Performing matrix decomposition on the k-diagonal circulant matrix to obtain a first semantic topic matrix; Performing matrix decomposition on the circulant band matrix to obtain a second semantic topic matrix; Generate a first semantic matching matrix according to the first semantic topic matrix and the second semantic topic matrix; The semantic recognition processing of the message data by using a linear iterative distributed average algorithm to obtain a semantic recognition result includes: Obtain a message sample set, divide the message sample set into N sub-sample sets using a linear iterative distributed average algorithm, and distribute the sub-sample sets to N computing nodes, wherein each computing node is trained to obtain a local semantic recognition model according to its own sub-sample set; The message data corresponding to each supplier is divided into N sub-data and distributed to N computing nodes. Each computing node uses its local semantic recognition model to perform semantic recognition processing on its own sub-data, and the recognition results corresponding to each computing node are summarized to obtain the semantic recognition result; Among them, based on the first semantic matching matrix and the second semantic matching matrix, cluster analysis is performed on interface messages of different suppliers, and adapted standard data corresponding to the interface messages of each supplier is output according to the cluster analysis results, including: obtaining the first eigenvalue corresponding to each supplier from the first semantic matching matrix, calculating the first similarity value between each supplier according to the first eigenvalue, and clustering analysis on the suppliers according to the first similarity value to obtain a first clustering result; obtaining the second eigenvalue corresponding to each supplier from the second semantic matching matrix, calculating the second similarity value between each supplier according to the second eigenvalue, and clustering analysis on the suppliers according to the second similarity value to obtain a second clustering result; determining the target clustering result according to the first clustering result and the second clustering result; and correlating and integrating the interface messages of each supplier according to the target clustering result to obtain the adapted standard data corresponding to the interface messages of each supplier.

7. A computer device, characterized in that: The computer device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the automatic interface message adaptation method described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the interface message automatic adaptation method described in any one of claims 1-5.

Citation Information

Patent Citations

  • Supplier recommendation method based on information processing and related equipment

    CN111814056A

  • Intelligent supplier matching method based on semantic graph model

    CN114565429A

  • Intelligent question and answer method and storage medium

    CN116701582A

  • Commodity supplier management system based on big data

    CN117575156A

  • Supplier recommendation engine

    US20210089939A1