Equipment control method based on data processing

Through data processing methods of deep learning and natural language technology, it automatically analyzes transaction data and financial data, identifies reconciliation anomalies in logistics and transportation, solves the problems of low efficiency and poor accuracy of traditional reconciliation detection, and realizes automated reconciliation and exception prompts. .

CN118504585BActive Publication Date: 2024-09-27TAIYUAN YISI SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410960426.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-27
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

Traditional logistics and transportation reconciliation detection relies on manual operations and simple rule matching, which is inefficient and cannot automatically identify data anomalies, resulting in delays and inaccuracies in the reconciliation process.

Method used

Using data processing methods based on deep learning and natural language technology, through word-granular semantic encoding and feature distribution particle-by-particle interactive matching modules, it automatically analyzes transaction data and financial data, identifies financial data that is inconsistent or does not comply with the rules, and detects differences when When the control device generates an exception prompt.

Benefits of technology

It realizes automated logistics and transportation reconciliation processing, accurately identifies and prompts reconciliation abnormal data, and improves reconciliation efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118504585B
    Figure CN118504585B
Patent Text Reader

Abstract

The present application discloses a device control method based on data processing, comprising: S1, acquiring transaction data and financial data; S2, performing word-granularity-based semantic coding on the transaction data and the financial data respectively to obtain a sequence of transaction data word-granularity semantic coding feature vectors and a sequence of financial data word-granularity semantic coding feature vectors; S3, passing the sequence of transaction data word-granularity semantic coding feature vectors and the sequence of financial data word-granularity semantic coding feature vectors through a feature distribution granular-by-granular interactive matching module to obtain a transaction data-financial data global granular-by-granular interactive matching vector; S4, based on the transaction data-financial data global granular-by-granular interactive matching vector, determining whether the match is successful, and determining whether to control the device to generate an abnormal reconciliation prompt, which can realize automated logistics and transportation reconciliation processing, and automatically identify abnormal reconciliation data to control the device to generate prompt information; it is applicable to the field of intelligent control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent control, and more specifically, to a device control method based on data processing. Background Art

[0002] In logistics and transportation management, reconciliation and verification is a crucial link. With the development and digital transformation of the logistics industry, a large amount of transportation data and transaction data need to be accurately reconciled and verified to ensure the accurate transportation of goods, the accuracy of payments, and to reduce potential losses.

[0003] However, traditional reconciliation detection solutions mainly rely on manual operations and simple rule matching, which requires a lot of manpower input. This method is inefficient and cannot meet the needs of large-scale data processing. In addition, traditional reconciliation detection methods can often only perform simple matching of transaction data and financial data based on preset rules, and cannot automatically identify anomalies in the data, such as data errors, omissions or fraudulent behavior, which makes the reconciliation process prone to omissions or errors. In addition, traditional reconciliation detection methods lack the characteristics of intelligence and automation, and cannot automatically adjust matching rules according to the characteristics and changes of data, nor can they realize automatic reconciliation and exception handling, resulting in delayed feedback and processing time of reconciliation results, and unable to discover and solve problems in a timely manner.

[0004] Therefore, it is desired to obtain an optimized data processing-based equipment control solution so that it can automatically perform reconciliation and identify inconsistent or irregular financial data, thereby controlling the equipment to generate abnormal reconciliation prompt information. Summary of the invention

[0005] In order to solve the above technical problems, the present application is proposed. The embodiment of the present application provides a device control method based on data processing, which collects transaction data and financial data, and introduces data processing and semantic understanding algorithms based on deep learning and natural language technology in the back end to perform semantic analysis and understanding of these transaction data and financial data, thereby interactively matching the transaction data semantics and the financial data semantics, so as to automatically identify inconsistent or non-compliant financial data, and control the device to generate abnormal reconciliation prompts when reconciliation differences are detected. In this way, automated logistics and transportation reconciliation processing can be achieved, and abnormal reconciliation data can be automatically identified to control the device to generate prompt information.

[0006] According to one aspect of the present application, a device control method based on data processing is provided, which includes:

[0007] Access transaction and financial data;

[0008] Performing word-granularity-based semantic coding on the transaction data and the financial data respectively to obtain a sequence of transaction data word-granularity semantic coding feature vectors and a sequence of financial data word-granularity semantic coding feature vectors;

[0009] The sequence of the transaction data word granularity semantic encoding feature vectors and the sequence of the financial data word granularity semantic encoding feature vectors are passed through a feature distribution granularity-by-granular interactive matching module to obtain a transaction data-financial data global granularity-by-granular interactive matching vector;

[0010] Based on the global granular interactive matching vector of the transaction data and the financial data, it is determined whether the matching is successful, and whether the control device generates a reconciliation exception prompt.

[0011] Compared with the prior art, the device control method based on data processing provided by the present application collects transaction data and financial data, and introduces data processing and semantic understanding algorithms based on deep learning and natural language technology at the back end to perform semantic analysis and understanding of these transaction data and financial data, thereby interactively matching the transaction data semantics and the financial data semantics, so as to automatically identify inconsistent or non-compliant financial data, and control the device to generate abnormal reconciliation prompts when reconciliation differences are detected. In this way, automated logistics and transportation reconciliation processing can be achieved, and abnormal reconciliation data can be automatically identified to control the device to generate prompt information. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other purposes, features and advantages of the present application will become more apparent by describing the present application in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0013] Figure 1 A flow chart of a device control method based on data processing provided in this application;

[0014] Figure 2 A system architecture diagram of a device control method based on data processing provided in this application;

[0015] Figure 3 A flowchart of the training phase of a device control method based on data processing provided in this application;

[0016] Figure 4 A flowchart of step S2 of a device control method based on data processing provided in this application;

[0017] Figure 5This is a flowchart of step S3 of a device control method based on data processing provided in this application. DETAILED DESCRIPTION

[0018] Below, the exemplary embodiments of the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0019] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0020] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules can be used and run on the user terminal and / or server. The modules are only illustrative, and different aspects of the system and method can use different modules.

[0021] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. Meanwhile, other operations may also be added to these processes, or a certain step or several steps of operations may be removed from these processes.

[0022] In the technical solution of the present application, a device control method based on data processing is proposed. Figure 1 A flow chart of a device control method based on data processing provided in this application. Figure 2 This is a system architecture diagram of a device control method based on data processing provided in this application. Figure 1 and Figure 2As shown, according to the embodiment of the present application, the device control method based on data processing includes the steps of: S1, acquiring transaction data and financial data; S2, performing word-granularity-based semantic encoding on the transaction data and the financial data respectively to obtain a sequence of transaction data word-granularity semantic encoding feature vectors and a sequence of financial data word-granularity semantic encoding feature vectors; S3, passing the sequence of transaction data word-granularity semantic encoding feature vectors and the sequence of financial data word-granularity semantic encoding feature vectors through a feature distribution granular-by-granular interactive matching module to obtain a transaction data-financial data global granular-by-granular interactive matching vector; S4, based on the transaction data-financial data global granular-by-granular interactive matching vector, determining whether the match is successful, and determining whether to control the device to generate an abnormal reconciliation prompt.

[0023] In particular, in a specific example of the present application, Figure 4 As shown, S2 includes: S21, after word segmentation processing on the transaction data, passing it through a semantic encoder including a word embedding layer to obtain a sequence of word granularity semantic encoding feature vectors of the transaction data; S22, after word segmentation processing on the financial data, passing it through the semantic encoder including a word embedding layer to obtain a sequence of word granularity semantic encoding feature vectors of the financial data.

[0024] Specifically, the S21, after word segmentation processing of the transaction data, a semantic encoder including a word embedding layer is used to obtain a sequence of word-granular semantic encoding feature vectors of the transaction data. Considering that the transaction data often exists in the form of text, it contains a large amount of semantic information, such as transaction date, amount, payment status and other information, and these semantic information are composed of individual words. Based on this, in order to fully and effectively capture the semantics and correlation relationship of each transaction information item in the transaction data, in the technical solution of the present application, the transaction data is further word segmented and then passed through a semantic encoder including a word embedding layer to obtain a sequence of word-granular semantic encoding feature vectors of the transaction data. By word segmentation processing, word embedding and semantic encoding processing of the transaction data, each word can be mapped to a high-dimensional vector space, and the semantic features and correlation relationships of each word in the transaction data can be captured. In this way, it is conducive to extracting the semantic association features based on word granularity between each transaction information item in the transaction data, which is helpful for subsequent semantic matching and reconciliation detection, thereby realizing a more efficient, accurate and intelligent reconciliation detection process. More specifically, after word segmentation, the transaction data is passed through a semantic encoder including a word embedding layer to obtain a sequence of word-granularity semantic encoding feature vectors of the transaction data, including: word segmentation is performed on the transaction data to convert the transaction data into a word sequence composed of multiple words; the embedding layer of the semantic encoder including the word embedding layer is used to map each word in the word sequence into a word embedding vector to obtain a sequence of word embedding vectors; and a converter of the semantic encoder including the word embedding layer is used to perform global context semantic encoding on the sequence of word embedding vectors based on the converter idea to obtain a sequence of word-granularity semantic encoding feature vectors of the transaction data.

[0025] Specifically, the S22, after word segmentation processing of the financial data, passes through the semantic encoder including the word embedding layer to obtain a sequence of word granularity semantic encoding feature vectors of the financial data. Similarly, considering that the financial data, like the transaction data, also contains a large amount of text information, these text information are semantically composed of multiple words. Based on this, in order to effectively capture the text semantic features and correlation relationships in the financial data, so as to facilitate the subsequent semantic interaction matching of the financial data and the transaction data to determine whether there are reconciliation anomalies, in the technical solution of the present application, after word segmentation processing of the financial data, encoding processing is performed in the semantic encoder including the word embedding layer to extract the semantic association feature information based on word granularity between each financial information item in the financial data, thereby obtaining a sequence of word granularity semantic encoding feature vectors of the financial data.

[0026] It is worth mentioning that in other specific examples of the present application, the transaction data and the financial data can also be semantically encoded based on word granularity in other ways to obtain a sequence of transaction data word granularity semantic encoding feature vectors and a sequence of financial data word granularity semantic encoding feature vectors, for example: preprocessing the transaction data and the financial data, including word segmentation, stop word removal, stem extraction and other operations to convert the text data into a word granularity representation; using word embedding technology (such as Word2Vec, GloVe, FastText, etc.) to convert each word into a dense vector representation to capture the semantic relationship between words; semantically encode each word and represent it as a vector to obtain a word embedding vector corresponding to each word; converting the vocabulary sequence in the transaction data and the financial data into a feature vector sequence, that is, a sequence of word embedding vectors corresponding to each word, to obtain a sequence of transaction data word granularity semantic encoding feature vectors and a sequence of financial data word granularity semantic encoding feature vectors.

[0027] In particular, the S3 passes the sequence of the transaction data word granularity semantic encoding feature vectors and the sequence of the financial data word granularity semantic encoding feature vectors through a feature distribution granular-by-granular interactive matching module to obtain a transaction data-financial data global granular-by-granular interactive matching vector. It should be understood that since the sequence of the transaction data word granularity semantic encoding feature vectors and the sequence of the financial data word granularity semantic encoding feature vectors respectively contain contextual semantic association features based on word granularity in the transaction data and the financial data, and each of the word granularity semantic encoding feature vectors represents the context-based association semantics of each word in the transaction data and the financial data. Therefore, in order to more fully and accurately capture the degree of semantic matching between the transaction data and the financial data, so as to determine whether the match is successful to detect whether there is an abnormality in the reconciliation, in the technical solution of the present application, the sequence of the transaction data word granularity semantic encoding feature vectors and the sequence of the financial data word granularity semantic encoding feature vectors are further passed through a feature distribution granular-by-granular interactive matching module to obtain a transaction data-financial data global granular-by-granular interactive matching vector. Through the processing of the feature distribution granular interactive matching module, the interactive semantics between the financial data and the transaction data based on word granularity can be captured, thereby capturing the complex relationship and interactive information between the data. In this way, it is helpful to discover the hidden semantic associations between financial and transaction data, and can more accurately discover the differences between the two data, which helps to accurately determine whether the transaction data and financial data are successfully matched, and improve the accuracy of reconciliation detection. In particular, in a specific example of the present application, such as Figure 5As shown, the S3 includes: S31, based on the sequence of financial data word granularity semantic coding feature vectors, each transaction data word granularity semantic coding feature vector in the sequence of transaction data word granularity semantic coding feature vectors is semantically enhanced to obtain a sequence of enhanced transaction data word granularity semantic coding feature vectors; S32, based on the sequence of transaction data word granularity semantic coding feature vectors, each financial data word granularity semantic coding feature vector in the sequence of financial data word granularity semantic coding feature vectors is semantically enhanced to obtain a sequence of enhanced financial data word granularity semantic coding feature vectors; S33, calculating the average value pooling feature vector and the maximum value pooling feature vector between each enhanced transaction data word granularity semantic coding feature vector in the sequence of enhanced transaction data word granularity semantic coding feature vectors to obtain an enhanced transaction data word granularity semantic coding feature vector. The semantic coding average value pooling feature vector and the enhanced transaction data word granularity semantic coding maximum value pooling feature vector; S34, calculate the average value pooling feature vector and the maximum value pooling feature vector between each enhanced financial data word granularity semantic coding feature vector in the sequence of the enhanced financial data word granularity semantic coding feature vector to obtain the enhanced financial data word granularity semantic coding average value pooling feature vector and the enhanced financial data word granularity semantic coding maximum value pooling feature vector; S35, cascade the enhanced transaction data word granularity semantic coding average value pooling feature vector, the enhanced transaction data word granularity semantic coding maximum value pooling feature vector, the enhanced financial data word granularity semantic coding average value pooling feature vector and the enhanced financial data word granularity semantic coding maximum value pooling feature vector to obtain the transaction data-financial data global granularity interaction matching vector.

[0028] Specifically, the S31, based on the sequence of financial data word granularity semantic encoding feature vectors, performs semantic feature enhancement on each transaction data word granularity semantic encoding feature vector in the sequence of transaction data word granularity semantic encoding feature vectors to obtain a sequence of enhanced transaction data word granularity semantic encoding feature vectors. In a specific example, first, the similarity between each transaction data word granularity semantic encoding feature vector in the sequence of transaction data word granularity semantic encoding feature vectors and all financial data word granularity semantic encoding feature vectors in the sequence of financial data word granularity semantic encoding feature vectors is calculated to obtain a set of transaction data relative to financial data word granularity semantic similarity row vectors; then, the class support weight vector of each transaction data relative to financial data word granularity semantic similarity row vector in the set of transaction data relative to financial data word granularity semantic similarity row vectors is calculated to obtain a set of transaction data relative to financial data word granularity semantic class support weight vectors; then, the transaction data relative to financial Each transaction data relative to financial data word granularity semantic class support weight vector in the set of data word granularity semantic class support weight vectors is used as a weight vector, and the weighted sum of the sequence of transaction data word granularity semantic encoding feature vectors is calculated to obtain a sequence of transaction data relative to financial data word granularity semantic attention interaction feature vectors; finally, each group of corresponding transaction data word granularity semantic encoding feature vectors and transaction data relative to financial data word granularity semantic attention interaction feature vectors in the sequence of transaction data word granularity semantic encoding feature vectors and the sequence of transaction data relative to financial data word granularity semantic attention interaction feature vectors are fused to obtain the sequence of enhanced transaction data word granularity semantic encoding feature vectors. Among them, calculating the class support weight vector of each transaction data relative to financial data word granularity semantic similarity row vector in the set of transaction data relative to financial data word granularity semantic similarity row vectors to obtain a set of transaction data relative to financial data word granularity semantic class support weight vectors, including: using each eigenvalue in the transaction data relative to financial data word granularity semantic similarity row vector as an exponent of a natural constant to calculate the position-based exponential function value with the natural constant as the base to obtain the transaction data relative to financial data word granularity semantic similarity class support row vector; calculating the sum of each position eigenvalue in the transaction data relative to financial data word granularity semantic similarity class support row vector to obtain the transaction data relative to financial data word granularity semantic global similarity; calculating the position-based division between each eigenvalue in the transaction data relative to financial data word granularity semantic similarity class support row vector and the transaction data relative to financial data word granularity semantic global similarity to obtain the transaction data relative to financial data word granularity semantic class support weight vector.

[0029] Specifically, the S32, based on the sequence of transaction data word granularity semantic encoding feature vectors, performs semantic feature enhancement on each financial data word granularity semantic encoding feature vector in the sequence of financial data word granularity semantic encoding feature vectors to obtain a sequence of enhanced financial data word granularity semantic encoding feature vectors. In a specific example, first, the similarity between each financial data word granularity semantic encoding feature vector in the sequence of financial data word granularity semantic encoding feature vectors and all transaction data word granularity semantic encoding feature vectors in the sequence of transaction data word granularity semantic encoding feature vectors is calculated to obtain a set of financial data relative to transaction data word granularity semantic similarity row vectors; then, the class support weight vector of each financial data relative to transaction data word granularity semantic similarity row vector in the set of financial data relative to transaction data word granularity semantic similarity row vectors is calculated to obtain a set of financial data relative to transaction data word granularity semantic similarity class support weight vectors; then, the financial data relative to transaction data word granularity semantic similarity row vectors are respectively calculated. Each financial data relative to transaction data word granularity semantic similarity class support weight vector in the set of data relative to transaction data word granularity semantic similarity class support weight vectors is used as a weight vector, and the weighted sum of the sequence of behavioral data implicit feature vectors is calculated to obtain a sequence of financial data relative to transaction data word granularity semantic attention interaction feature vectors; finally, each group of corresponding behavioral data implicit feature vectors and financial data relative to transaction data word granularity semantic attention interaction feature vectors in the sequence of behavioral data implicit feature vectors and the sequence of financial data relative to transaction data word granularity semantic attention interaction feature vectors are fused to obtain the sequence of enhanced financial data word granularity semantic encoding feature vectors. Among them, calculating the class support weight vector of each financial data relative to transaction data word granularity semantic similarity row vector in the set of financial data relative to transaction data word granularity semantic similarity row vectors to obtain a set of financial data relative to transaction data word granularity semantic similarity class support weight vectors, including: using each eigenvalue in the financial data relative to transaction data word granularity semantic similarity row vector as an exponent of a natural constant to calculate the position-based exponential function value with the natural constant as the base to obtain the financial data relative to transaction data word granularity semantic similarity class support row vector; calculating the sum of each position eigenvalue in the financial data relative to transaction data word granularity semantic similarity class support row vector to obtain the financial data relative to transaction data word granularity semantic global similarity; calculating the position-based division between each eigenvalue in the financial data relative to transaction data word granularity semantic similarity class support row vector and the financial data relative to transaction data word granularity semantic global similarity to obtain the financial data relative to transaction data word granularity semantic similarity class support weight vector.

[0030] Specifically, the S33 and S34 calculate the average value pooling feature vector and the maximum value pooling feature vector between each enhanced transaction data word granularity semantic coding feature vector in the sequence of the enhanced transaction data word granularity semantic coding feature vector to obtain the average value pooling feature vector of enhanced transaction data word granularity semantic coding and the maximum value pooling feature vector of enhanced transaction data word granularity semantic coding; and calculate the average value pooling feature vector and the maximum value pooling feature vector between each enhanced financial data word granularity semantic coding feature vector in the sequence of the enhanced financial data word granularity semantic coding feature vector to obtain the average value pooling feature vector of enhanced financial data word granularity semantic coding and the maximum value pooling feature vector of enhanced financial data word granularity semantic coding. Through the average value pooling and maximum value pooling operations, important information in the sequence can be obtained, key features can be extracted, and data dimensions can be reduced.

[0031] Specifically, in S35, the average value pooling feature vector of the enhanced transaction data word granularity semantic encoding, the maximum value pooling feature vector of the enhanced transaction data word granularity semantic encoding, the average value pooling feature vector of the enhanced financial data word granularity semantic encoding, and the maximum value pooling feature vector of the enhanced financial data word granularity semantic encoding are cascaded to obtain the transaction data-financial data global granularity-by-granular interaction matching vector. By cascading, the representation ability of the model can be improved, so that it can better understand the characteristics of the data.

[0032] In summary, in the above embodiment, the sequence of the transaction data word granularity semantic encoding feature vectors and the sequence of the financial data word granularity semantic encoding feature vectors are processed by the feature distribution granularity interactive matching module to obtain a transaction data-financial data global granularity interactive matching vector, including: the sequence of the transaction data word granularity semantic encoding feature vectors and the sequence of the financial data word granularity semantic encoding feature vectors are processed by the feature distribution granularity interactive matching module with the following interactive matching formula to obtain a transaction data-financial data global granularity interactive matching vector;

[0033] Wherein, the interactive matching formula is:

[0034]

[0035] in, The first word in the sequence of the transaction data word granularity semantic encoding feature vector transaction data word-granular semantic encoding feature vector, The first The granular semantic encoding feature vector of financial data words, Indicates the calculation of the transaction data word-granular semantic encoding feature vector and the The similarity value between the semantic encoding feature vectors of financial data word granularity, , and represents a similarity matrix composed of a plurality of similarity values, , ,and and are respectively the length of the sequence of the transaction data word granularity semantic encoding feature vectors and the length of the sequence of the financial data word granularity semantic encoding feature vectors, For the The word-granular semantic attention interaction feature vector of transaction data relative to financial data, For the The word-granular semantic attention interaction feature vector of financial data relative to transaction data, represents exponential operation, For the The enhanced transaction data word granularity semantic encoding feature vector corresponding to the transaction data word granularity semantic encoding feature vector, For the The enhanced financial data word granularity semantic encoding feature vectors corresponding to the financial data word granularity semantic encoding feature vectors, Indicates cascade processing, , are respectively the average value pooling feature vector and the maximum value pooling feature vector of the sequence of the word granularity semantic encoding feature vector of the enhanced transaction data, , are respectively the average value pooling feature vector and the maximum value pooling feature vector of the sequence of the word granularity semantic encoding feature vector of the enhanced financial data, A global, granular, interactive matching vector is generated for the transaction data-financial data.

[0036] It is worth mentioning that in other specific examples of the present application, the sequence of the transaction data word granularity semantic encoding feature vectors and the sequence of the financial data word granularity semantic encoding feature vectors can also be passed through a feature distribution granular-by-granular interactive matching module in other ways to obtain a transaction data-financial data global granular-by-granular interactive matching vector, for example: input the sequence of the transaction data word granularity semantic encoding feature vectors and the sequence of the financial data word granularity semantic encoding feature vectors; establish a granular-by-granular interactive matching between the feature vector sequences of the transaction data and the financial data through the feature distribution granular-by-granular interactive matching module to capture the interaction between them. Association information; for each word-granularity feature vector, perform one-by-one matching and interaction operations to capture the local correlation between transaction data and financial data; for each pair of feature vectors of transaction data and financial data, some matching operations, such as dot product, concatenation, addition, etc., can be performed to obtain the degree of matching between them; after performing granular-by-granular interactive matching, the matching results will form a feature distribution, in which each element represents the degree of matching between the transaction data and financial data of the corresponding word-granularity; finally, the interactive matching feature distributions of all word-granularities are integrated to obtain the global granular-by-granular interactive matching vector of transaction data-financial data.

[0037] In particular, the S4 determines whether the match is successful based on the global granular interactive matching vector of the transaction data-financial data, and determines whether to control the device to generate an abnormal reconciliation prompt. In a specific example, the global granular interactive matching vector of the transaction data-financial data is passed through a classifier-based anomaly identifier to obtain an identification result, and the identification result is used to indicate whether the match is successful. In other words, the global granular semantic interactive matching features between the transaction data and the financial data are used for classification processing to identify and judge whether the data of the two are matched, including the verification of information such as the transaction date, amount, and payment status, so as to automatically identify inconsistent or non-compliant financial data. Furthermore, in response to the recognition result that the match is not successful, the control device generates an abnormal reconciliation prompt. In this way, automated logistics and transportation reconciliation processing can be achieved, and abnormal reconciliation data can be automatically identified to control the device to generate prompt information.

[0038] It should be understood that before using the above-mentioned neural network model for inference, it is necessary to train the semantic encoder including the word embedding layer, the feature distribution granular interactive matching module and the classifier-based anomaly identifier. That is to say, in the data processing-based device control method of the present application, a training phase is also included for training the semantic encoder including the word embedding layer, the feature distribution granular interactive matching module and the classifier-based anomaly identifier.

[0039] Figure 3The present application provides a flow chart of the training phase of a device control method based on data processing. Figure 3 As shown, according to the device control method based on data processing of the embodiment of the present application, it includes: a training stage, the training stage includes: S110, obtaining training data, the training data including training transaction data and training financial data; S120, after word segmentation processing on the training transaction data, passing through a semantic encoder including a word embedding layer to obtain a sequence of word granularity semantic coding feature vectors of the training transaction data; S130, after word segmentation processing on the training financial data, passing through the semantic encoder including a word embedding layer to obtain a sequence of word granularity semantic coding feature vectors of the training financial data; S140, cross-linking the sequence of word granularity semantic coding feature vectors of the training transaction data and the sequence of word granularity semantic coding feature vectors of the training financial data through feature distribution particle by particle. A mutual matching module is used to obtain a global granular interactive matching vector of training transaction data-financial data; S150, feature optimization is performed on the global granular interactive matching vector of training transaction data-financial data to obtain an optimized global granular interactive matching vector of training transaction data-financial data; S160, the optimized global granular interactive matching vector of training transaction data-financial data is passed through the classifier-based anomaly identifier to obtain a recognition result; S170, the cross entropy loss function value between the recognition result and the true result is calculated to obtain a classification loss function value; S180, based on the classification loss function value, the semantic encoder including the word embedding layer, the feature distribution granular interactive matching module and the classifier-based anomaly identifier are trained.

[0040] In a preferred example, the transaction data-financial data global granular interactive matching vector is passed through a classifier-based anomaly identifier to obtain an identification result, which specifically includes the following steps: performing a dot addition on the transaction data-financial data global granular interactive matching vector and the square root of the length of the transaction data-financial data global granular interactive matching vector and the reciprocal of the square root of the second norm of the transaction data-financial data global granular interactive matching vector to obtain a transaction data-financial data global granular interactive matching representation rotation offset feature vector; calculating an exponential function of the transaction data-financial data global granular interactive matching representation rotation offset feature vector with a natural constant as the base to obtain the transaction data-financial data global granular interactive matching vector. The invention relates to a method for optimizing the transaction data-financial data global granular interaction matching representation and the transaction data-financial data global granular interaction matching representation boundary constraint feature vector; performing dot multiplication on the transaction data-financial data global granular interaction matching representation class shift prediction feature vector and the transaction data-financial data global granular interaction matching representation boundary constraint feature vector to obtain an optimized transaction data-financial data global granular interaction matching vector; and passing the optimized transaction data-financial data global granular interaction matching vector through the classifier-based anomaly identifier to obtain an identification result. Specifically, considering that the fused feature distribution synthesized by the feature distribution of the transaction data-financial data global granular interactive matching vector for the word-granular text semantic features of financial data and the word-granular text semantic features of transaction data is based on the overall distribution regression constraint of the classifier, in the above preferred example, the structured norm representation of the transaction data-financial data global granular interactive matching vector is used as the local canonical coordinates for each eigenvalue of the transaction data-financial data global granular interactive matching vector to determine the class rotation offset of the vector overall distribution representation of the transaction data-financial data global granular interactive matching vector relative to the eigenvalue for the class offset prediction direction of each eigenvalue of the transaction data-financial data global granular interactive matching vector as the center, and the bounding box of the vector eigenvalue distribution of the transaction data-financial data global granular interactive matching vector is used to perform eigenvalue constraints to improve the constraint of the transaction data-financial data global granular interactive matching vector under the overall regression distribution, thereby improving the training speed of the model and the accuracy of the recognition result obtained by the transaction data-financial data global granular interactive matching vector through the classifier-based controller.In this way, inconsistent or irregular financial data can be identified more accurately, and the control device can generate a reconciliation abnormality prompt when a reconciliation difference is detected. In this way, automated logistics and transportation reconciliation processing can be achieved, and abnormal reconciliation data can be automatically identified to control the device to generate prompt information.

[0041] In summary, the device control method based on data processing according to the embodiment of the present application is explained, which collects transaction data and financial data, and introduces data processing and semantic understanding algorithms based on deep learning and natural language technology at the back end to perform semantic analysis and understanding of these transaction data and financial data, thereby performing interactive matching of transaction data semantics and financial data semantics, so as to automatically identify inconsistent or non-compliant financial data, and control the device to generate abnormal reconciliation prompts when reconciliation differences are detected. In this way, automated logistics and transportation reconciliation processing can be achieved, and abnormal reconciliation data can be automatically identified to control the device to generate prompt information.

[0042] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A device control method based on data processing, characterized in that: include: S1, obtain transaction data and financial data; S2, performing word-granularity-based semantic coding on the transaction data and the financial data to obtain a sequence of transaction data word-granularity semantic coding feature vectors and a sequence of financial data word-granularity semantic coding feature vectors; S3, passing the sequence of the transaction data word granularity semantic encoding feature vectors and the sequence of the financial data word granularity semantic encoding feature vectors through a feature distribution granularity interactive matching module to obtain a transaction data-financial data global granularity interactive matching vector; S4, based on the global granular interactive matching vector of the transaction data-financial data, determining whether the match is successful, and determining whether to control the device to generate a reconciliation abnormality prompt; The step S4, based on the global granular interactive matching vector of the transaction data and the financial data, determines whether the matching is successful, and determines whether to control the device to generate a reconciliation abnormality prompt, including: The transaction data-financial data global particle-by-granule interactive matching vector is passed through a classifier-based anomaly identifier to obtain a recognition result, wherein the recognition result is used to indicate whether the match is successful; In response to the recognition result being that the match is not successful, the control device generates a reconciliation abnormality prompt; The transaction data-financial data global granular interactive matching vector is passed through a classifier-based anomaly identifier to obtain an identification result, which specifically includes the following steps: performing a dot operation on the transaction data-financial data global granular interactive matching vector and the square root of the length of the transaction data-financial data global granular interactive matching vector and the reciprocal of the square root of the second norm of the transaction data-financial data global granular interactive matching vector to obtain a transaction data-financial data global granular interactive matching representation rotation offset feature vector; calculating an exponential function of the transaction data-financial data global granular interactive matching representation rotation offset feature vector with a natural constant as the base to obtain a transaction data-financial data global granular interactive matching representation class deviation feature vector. The invention relates to a method for optimizing the method of the present invention and providing a method for optimizing the method of the present invention. The method comprises the steps of: performing dot multiplication of the transaction data-financial data global granular interaction matching vector with a norm and a weight hyperparameter of the transaction data-financial data global granular interaction matching vector to obtain a transaction data-financial data global granular interaction matching representation boundary constraint feature vector; performing dot multiplication of the transaction data-financial data global granular interaction matching representation class shift prediction feature vector with the transaction data-financial data global granular interaction matching representation boundary constraint feature vector to obtain an optimized transaction data-financial data global granular interaction matching vector; and passing the optimized transaction data-financial data global granular interaction matching vector through the classifier-based anomaly identifier to obtain an identification result.

2. The device control method based on data processing according to claim 1, characterized in that: The step S2, performing word-granularity-based semantic coding on the transaction data and the financial data to obtain a sequence of transaction data word-granularity semantic coding feature vectors and a sequence of financial data word-granularity semantic coding feature vectors, includes: S21, performing word segmentation on the transaction data and passing the result through a semantic encoder including a word embedding layer to obtain a sequence of word granularity semantic encoding feature vectors of the transaction data; S22, after word segmentation, the financial data is passed through the semantic encoder including the word embedding layer to obtain a sequence of word granularity semantic encoding feature vectors of the financial data.

3. The device control method based on data processing according to claim 2, characterized in that: The step S3, passing the sequence of the transaction data word granularity semantic encoding feature vectors and the sequence of the financial data word granularity semantic encoding feature vectors through a feature distribution granularity interactive matching module to obtain a transaction data-financial data global granularity interactive matching vector, includes: S31, based on the sequence of financial data word granularity semantic coding feature vectors, performing semantic feature enhancement on each transaction data word granularity semantic coding feature vector in the sequence of transaction data word granularity semantic coding feature vectors to obtain a sequence of enhanced transaction data word granularity semantic coding feature vectors; S32, based on the sequence of transaction data word granularity semantic coding feature vectors, performing semantic feature enhancement on each financial data word granularity semantic coding feature vector in the sequence of financial data word granularity semantic coding feature vectors to obtain a sequence of enhanced financial data word granularity semantic coding feature vectors; S33, calculating the average value pooling feature vector and the maximum value pooling feature vector between each enhanced transaction data word granularity semantic coding feature vector in the sequence of enhanced transaction data word granularity semantic coding feature vectors to obtain the enhanced transaction data word granularity semantic coding average value pooling feature vector and the enhanced transaction data word granularity semantic coding maximum value pooling feature vector; S34, calculating the average value pooling feature vector and the maximum value pooling feature vector between each enhanced financial data word granularity semantic coding feature vector in the sequence of the enhanced financial data word granularity semantic coding feature vector to obtain the enhanced financial data word granularity semantic coding average value pooling feature vector and the enhanced financial data word granularity semantic coding maximum value pooling feature vector; S35, cascading the average value pooling feature vector of the enhanced transaction data word granularity semantic encoding, the maximum value pooling feature vector of the enhanced transaction data word granularity semantic encoding, the average value pooling feature vector of the enhanced financial data word granularity semantic encoding, and the maximum value pooling feature vector of the enhanced financial data word granularity semantic encoding to obtain the transaction data-financial data global granularity interaction matching vector.

4. The device control method based on data processing according to claim 3, characterized in that: The step S31, based on the sequence of financial data word granularity semantic coding feature vectors, performs semantic feature enhancement on each transaction data word granularity semantic coding feature vector in the sequence of transaction data word granularity semantic coding feature vectors to obtain a sequence of enhanced transaction data word granularity semantic coding feature vectors, includes: Calculating the similarity between each transaction data word granularity semantic encoding feature vector in the sequence of transaction data word granularity semantic encoding feature vectors and all financial data word granularity semantic encoding feature vectors in the sequence of financial data word granularity semantic encoding feature vectors to obtain a set of transaction data relative to financial data word granularity semantic similarity row vectors; Calculating the class support weight vector of each transaction data relative to financial data word granularity semantic similarity row vector in the set of transaction data relative to financial data word granularity semantic similarity row vectors to obtain a set of transaction data relative to financial data word granularity semantic class support weight vectors; Taking each transaction data relative to financial data word granularity semantic class support weight vector in the set of transaction data relative to financial data word granularity semantic class support weight vector as a weight vector, calculate the weighted sum of the sequence of transaction data word granularity semantic encoding feature vectors to obtain a sequence of transaction data relative to financial data word granularity semantic attention interaction feature vectors; Each group of corresponding transaction data word granularity semantic encoding feature vectors and transaction data relative to financial data word granularity semantic attention interaction feature vectors in the sequence of transaction data word granularity semantic encoding feature vectors and the sequence of transaction data relative to financial data word granularity semantic attention interaction feature vectors are fused to obtain the sequence of enhanced transaction data word granularity semantic encoding feature vectors.

5. The device control method based on data processing according to claim 4, characterized in that: The step S32, based on the sequence of transaction data word granularity semantic coding feature vectors, performs semantic feature enhancement on each financial data word granularity semantic coding feature vector in the sequence of financial data word granularity semantic coding feature vectors to obtain a sequence of enhanced financial data word granularity semantic coding feature vectors, includes: Calculating the similarity between each financial data word granularity semantic encoding feature vector in the sequence of financial data word granularity semantic encoding feature vectors and all transaction data word granularity semantic encoding feature vectors in the sequence of transaction data word granularity semantic encoding feature vectors to obtain a set of financial data relative transaction data word granularity semantic similarity row vectors; Calculating the class support weight vector of each financial data relative to transaction data word granularity semantic similarity row vector in the set of financial data relative to transaction data word granularity semantic similarity row vectors to obtain a set of financial data relative to transaction data word granularity semantic similarity class support weight vectors; Using each financial data relative to transaction data word granularity semantic similarity class support weight vector in the set of financial data relative to transaction data word granularity semantic similarity class support weight vectors as weight vectors, calculate the weighted sum of the sequence of behavioral data implicit feature vectors to obtain a sequence of financial data relative to transaction data word granularity semantic attention interaction feature vectors; Each group of corresponding behavioral data implicit feature vectors and financial data relative to transaction data word granularity semantic attention interaction feature vectors in the sequence of behavioral data implicit feature vectors and the sequence of financial data relative to transaction data word granularity semantic attention interaction feature vectors are fused to obtain the sequence of enhanced financial data word granularity semantic encoding feature vectors.

6. The device control method based on data processing according to claim 5, characterized in that: Calculating the class support weight vector of each transaction data relative to financial data word granularity semantic similarity row vector in the set of transaction data relative to financial data word granularity semantic similarity row vectors to obtain a set of transaction data relative to financial data word granularity semantic class support weight vectors, including: Using each characteristic value in the transaction data relative to financial data word granularity semantic similarity row vector as an exponent of a natural constant to calculate an exponential function value based on the natural constant according to position to obtain a transaction data relative to financial data word granularity semantic similarity class support row vector; Calculate the sum of the feature values ​​of each position in the class support row vector of the word granularity semantic similarity of the transaction data relative to the financial data to obtain the global semantic similarity of the transaction data relative to the financial data word granularity; The positional division between each feature value in the transaction data relative to financial data word granularity semantic similarity class support row vector and the transaction data relative to financial data word granularity semantic global similarity is calculated to obtain the transaction data relative to financial data word granularity semantic class support weight vector.

7. The device control method based on data processing according to claim 6, characterized in that: Calculating the class support weight vector of each financial data relative to transaction data word granularity semantic similarity row vector in the set of financial data relative to transaction data word granularity semantic similarity row vectors to obtain a set of financial data relative to transaction data word granularity semantic similarity class support weight vectors, including: Using each characteristic value in the word-granularity semantic similarity row vector of the financial data relative to the transaction data as an exponent of a natural constant to calculate an exponential function value based on the natural constant according to position to obtain a class support row vector of the word-granularity semantic similarity of the financial data relative to the transaction data; Calculate the sum of the feature values ​​of each position in the class support row vector of the word granularity semantic similarity of the financial data relative to the transaction data to obtain the global semantic similarity of the financial data relative to the transaction data word granularity; The positional division between each feature value in the word granularity semantic similarity class support row vector of the financial data relative to the transaction data and the word granularity semantic global similarity of the financial data relative to the transaction data is calculated to obtain the word granularity semantic similarity class support weight vector of the financial data relative to the transaction data.

8. The device control method based on data processing according to claim 7, characterized in that: It also includes a training step: for training the semantic encoder including the word embedding layer, the feature distribution particle-by-granule interaction matching module and the classifier-based anomaly identifier.

9. The device control method based on data processing according to claim 8, characterized in that: The training step comprises: S110, acquiring training data, where the training data includes training transaction data and training financial data; S120, performing word segmentation processing on the training transaction data and then passing it through a semantic encoder including a word embedding layer to obtain a sequence of word granularity semantic encoding feature vectors of the training transaction data; S130, performing word segmentation processing on the training financial data and passing it through the semantic encoder including the word embedding layer to obtain a sequence of word granularity semantic encoding feature vectors of the training financial data; S140, passing the sequence of the training transaction data word granularity semantic encoding feature vectors and the sequence of the training financial data word granularity semantic encoding feature vectors through a feature distribution granularity interactive matching module to obtain a training transaction data-financial data global granularity interactive matching vector; S150, performing feature optimization on the training transaction data-financial data global granule-by-granule interactive matching vector to obtain an optimized training transaction data-financial data global granule-by-granule interactive matching vector; S160, passing the optimized training transaction data-financial data global particle-by-granule interactive matching vector through the classifier-based anomaly identifier to obtain an identification result; S170, calculating the cross entropy loss function value between the recognition result and the true result to obtain a classification loss function value; S180: Training the semantic encoder including the word embedding layer, the feature distribution granular interaction matching module, and the classifier-based anomaly identifier based on the classification loss function value.