An intelligent method for discovering abnormal prices of civil aviation tickets based on a self-growth mechanism
By combining machine learning and traditional software engineering logic modeling in a real-time ticketing system, a civil aviation ticket price anomaly discovery model with a self-growing mechanism is constructed, which solves the problems of hidden fare anomalies and unsatisfactory detection performance in the existing technology, and achieves More accurate anomaly discovery and optimization of detection performance reduce review costs.
Patent Information
- Application Number
- CN202410703121.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-03
AI Technical Summary
It is difficult for the existing technology to effectively and proactively detect potential business logic anomalies in real-time ticketing systems, resulting in ticket anomalies being hidden and difficult to detect, causing economic losses, and traditional artificial intelligence-based detection methods lack the use of knowledge in the field of civil aviation tickets. The detection performance is not ideal and requires a large number of experts for offline review, resulting in high costs.
An intelligent discovery method for civil aviation ticket price anomalies based on the self-growth mechanism is adopted. By obtaining real-time ticket sales quotation data and basic logic data, combined with machine learning and traditional software engineering logic modeling, a multi-granularity feature learning model is constructed to perform feature fusion and representation learning. Construct a civil aviation ticket price anomaly detection model with a self-growing mechanism to achieve real-time anomaly monitoring of ticket prices and iterative optimization of detection performance.
It achieves more accurate anomaly detection of civil aviation ticket prices, reduces review costs, improves detection performance through self-growth mechanism and data weight update, reduces expert interaction confirmation, and improves the system's real-time monitoring capabilities.
Smart Images

Figure CN118277941B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of real-time ticket quotation detection, and in particular relates to a method for intelligently discovering abnormal civil aviation ticket prices based on a self-growth mechanism. Background Art
[0002] E-commerce sales have become an important marketing model for airlines, and ticket price anomalies are common due to potential defects in the real-time ticket calculation system. Because of the strong concealment of such problems, technicians lack effective methods to proactively discover such anomalies in the early stages, and once discovered, they often cause significant losses. Therefore, proactively discovering potential anomalies in the ticketing system is a very challenging task, and it is of great practical value in effectively improving the real-time system's fault handling capabilities.
[0003] Specifically, potential business logic anomalies in real-time ticketing systems often do not directly lead to system operation errors, but instead produce implicit calculation result deviations that are difficult to detect, often causing serious economic losses to airlines afterwards. To address this type of problem, traditional AI-based anomaly detection algorithms usually only start from historical data on system operation, lack full utilization of knowledge in the field of civil aviation tickets, and result in less than ideal detection performance. In addition, such methods often require a large number of experts to conduct offline review and marking, lack effective use of past verification experience, and are not very practical in practice due to high review costs. Summary of the invention
[0004] In view of the above problems, the purpose of the present invention is to provide a method for intelligently discovering anomalies in civil aviation ticket prices based on a self-growth mechanism. By obtaining real-time ticket quotation data and basic logic data, a series of analyses and preprocessing of the data set are performed, and the characteristics of machine learning methods and traditional software engineering logic modeling are combined to efficiently and accurately calculate and monitor civil aviation ticket prices in real time, thereby realizing real-time intelligent monitoring of civil aviation ticket price anomalies.
[0005] The specific technical solution for achieving the purpose of the present invention is:
[0006] A method for intelligently discovering abnormal civil aviation ticket prices based on a self-growth mechanism comprises the following steps:
[0007] Step 1: Collect original ticket business rule data and sales record log data of each sales channel to build a database;
[0008] Step 2: Build a multi-granularity feature learning model, perform feature fusion and representation learning on the data in the database, and build a data set based on the data after feature fusion and representation learning;
[0009] Step 3: Build a civil aviation ticket price anomaly detection model based on a self-growth mechanism, and train the civil aviation ticket price anomaly detection model based on the data set in step 2 to obtain a children's version of the civil aviation ticket price anomaly detection model;
[0010] Step 4: Based on the price anomaly detection model for children's civil aviation tickets, the price of the given route ticket information is predicted, and anomaly discrimination is performed based on the predicted price to obtain a suspected anomaly sample set;
[0011] Step 5: Determine the face value of the route ticket information given in step 4 according to the ticket business rules;
[0012] Step 6: jointly discriminate the data in the suspected abnormal sample set and the price determined in step 5 to obtain the abnormal sample set;
[0013] Step 7: Perform secondary discrimination on the data in the abnormal sample set based on the edge anomaly set selector to obtain an edge anomaly candidate set to be interactively determined;
[0014] Step 8: Perform anomaly determination on the data in the edge anomaly candidate set, and update the weight of each anomaly sample in the data set according to the determination result. Iteratively train the children's version of the civil aviation ticket price anomaly detection model based on the weighted updated data set; determine whether the civil aviation ticket price anomaly detection model meets the set requirements. If not, return to step 4. If it meets the set requirements, obtain the youth version of the civil aviation ticket price anomaly detection model at this time.
[0015] Step 9: Based on the youth version of the civil aviation ticket price anomaly detection model, the new order data is predicted and anomaly detected, and the suspected anomaly sample set is identified through route comparison and edge anomaly screening to obtain the edge anomaly candidate set, and then the data in the edge anomaly candidate set is judged for anomalies, and the data set is augmented according to the judgment results;
[0016] Step 10: Based on the augmented data set, the youth version of the civil aviation ticket price anomaly detection model is trained and the model is evaluated. If the evaluation result is unqualified, return to step 10; if the evaluation result is qualified, the training is terminated, and it is considered that the adult version of the civil aviation ticket price anomaly detection model is obtained, and the adult version of the civil aviation ticket price anomaly detection model is used to monitor the civil aviation ticket price in real time.
[0017] Compared with the prior art, the present invention has the following beneficial effects:
[0018] (1) The solution of the present invention combines the inherent relationship between the rule data defined by the aviation industry organization and the historical quotation log data of the airlines. On the one hand, it considers the airline ticket pricing logic in the rule data, and on the other hand, it considers the implicit patterns in the historical quotation log data. It integrates the traditional airline knowledge-driven calculation method into the machine learning model representation learning and training process, and constructs a fare anomaly detection model. By integrating the logical knowledge of fare calculation and the machine learning data-driven method, it can achieve more accurate anomaly detection of ticket prices.
[0019] (2) The solution of the present invention is based on the model self-growth mechanism, the data weight update mechanism and the augmentation mechanism, so as to realize the self-growth iteration of the anomaly detection model and the continuous iterative optimization of the detection performance of the fare anomaly detection model, thereby more accurately discovering the abnormal prices in the tickets;
[0020] (3) The solution of the present invention proposes a sample selection strategy based on the edge anomaly candidate set. By reducing interactive confirmation and making full use of feedback information to integrate into model training, it solves the problem that traditional methods of this type require a large number of experts to conduct offline review and marking, and effectively alleviates the problem of low practicality in practice due to the high review cost.
[0021] The present invention is further described below in conjunction with specific implementation modes. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 The present invention is a flow chart of a method for intelligently discovering abnormal civil aviation ticket prices based on a self-growth mechanism.
[0023] Figure 2 The figure is a schematic diagram of an intelligent detection architecture for abnormal civil aviation ticket prices based on a self-growth mechanism in an embodiment of the present invention. DETAILED DESCRIPTION
[0024] Example
[0025] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. The described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an kind" 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.
[0027] Combination Figure 1 , an intelligent discovery method for abnormal civil aviation ticket prices based on a self-growth mechanism, comprising the following steps:
[0028] Step 1: Collect original ticket business rule data and sales record log data of each sales channel to build a database;
[0029] Among them, the real-time ticket sales historical quotation log data from various channels includes log data recorded from various e-commerce sales channels within the airline;
[0030] The original ticket business rule data is the original ticket business rule data issued by industry organizations, including the original ticket business rule data issued by the International Air Transport Association and the Airline Tariff Publishing Company, an air transport publishing service provider.
[0031] Step 2: Build a multi-granularity feature learning model, perform feature fusion and representation learning on the data in the database, and build a data set based on the data after feature fusion and representation learning:
[0032] A multi-granularity feature learning model is constructed, and feature fusion and representation learning are performed on the sales record log data and original ticket business rule data in the database respectively, and a data set is constructed based on the data after feature fusion and representation learning.
[0033] Step 3: Build a civil aviation ticket price anomaly detection model based on the self-growth mechanism, and train the civil aviation ticket price anomaly detection model based on the data set in step 2 to obtain the children's version of the civil aviation ticket price anomaly detection model:
[0034] Based on bidirectional long short-term memory neural network, a model for discovering abnormal prices of civil aviation tickets for time series structure is constructed;
[0035] The dataset after feature fusion and representation learning in step 2 is used as the input of the civil aviation ticket price anomaly detection model;
[0036] The parameters of the civil aviation ticket price anomaly detection model are initialized, and the forward propagation and back propagation methods are used to train the civil aviation ticket price anomaly detection model. The model objective function is optimized through the chain rule, and the loss gradient of the model parameters is calculated to reduce the difference between the calculated output results of the anomaly detection model and the actual results, thereby realizing the training of the fare anomaly detection model.
[0037] Step 4: Based on the price anomaly detection model for children's civil aviation tickets, the price of the given route ticket information is predicted, and anomaly discrimination is performed based on the predicted price to obtain a suspected anomaly sample set;
[0038] The abnormality discrimination here can be obtained based on a variety of methods, such as the discovery model compares the predicted price with the regular price. If the difference is too large, it is considered to be an abnormal sample and put into the abnormal sample set;
[0039] Step 5: Determine the face value of the route ticket information given in step 4 according to the ticket business rules:
[0040] Based on the original ticket business rule data released by industry organizations, a calculation method that uses traditional software engineering methods to model explicit civil aviation ticket knowledge and logical rules is used to calculate the face value of a given route.
[0041] Step 6: Combine the data in the suspected abnormal sample set and the price determined in step 5 to obtain the abnormal sample set:
[0042] Specifically, the predicted prices of abnormal samples in the suspected abnormal sample set are compared with the route ticket prices determined based on traditional rules in step 5, and the data with differences exceeding a certain value are determined as abnormal samples, thereby obtaining the abnormal sample set.
[0043] Step 7: Perform secondary discrimination on the data in the abnormal sample set based on the edge anomaly set selector to obtain the edge anomaly candidate set to be interactively determined:
[0044] Based on the edge anomaly selector, the data in the abnormal sample set is filtered to obtain the edge anomaly candidate set A M :
[0045] ,
[0046] ;
[0047] in, A represents the abnormal sample set, N Indicates the number of final abnormal results required, Represents an edge anomaly set selector based on a deep neural network, which is used to calculate the anomaly score of a given sample. i Indicates the abnormal sample number, j Represents the center point calculated based on the final number of abnormal results, k represents the local anomaly factor, δ Indicates the set abnormality threshold.
[0048] Generally speaking, it often costs a lot of money and resources to confirm the anomaly of the model output results. Therefore, this method introduces a quantification method for the uncertainty of abnormal samples, that is, designs an edge anomaly selector, and selects the edge samples with the most confirmation value from the anomaly candidate set for confirmation. On the one hand, it saves the confirmation cost, and on the other hand, it can increase the model's utilization of feedback information.
[0049] Step 8: Perform anomaly determination on the data in the edge anomaly candidate set, and update the weight of each abnormal sample in the data set according to the determination result. Iteratively train the price anomaly detection model for children's civil aviation tickets based on the weighted updated data set:
[0050] According to the edge anomaly candidate set obtained in step 7, anomaly determination is performed on it, so that the data in the edge anomaly candidate set is divided into a false positive sample set , false negative sample set , the true positive sample set , the true negative sample set ;
[0051] Among them, false positive samples refer to samples predicted by the model to be abnormal but actually normal; false negative samples refer to samples predicted by the model to be normal but actually abnormal; true positive samples refer to samples predicted by the model to be abnormal but actually abnormal; true negative samples refer to samples predicted by the model to be normal but actually normal;
[0052] For the true positive sample set and false negative sample set , remove it directly from the data set, targeting the false positive sample set , update its weights to obtain the data set after the weights are updated:
[0053] ,
[0054] ,
[0055] ;
[0056] in, Represented as the first i The initial weight value of the samples, represents the weighted error of the t-th round of interaction, represents the error influencing factor, Indicates the t -1 round of interaction samples The weight of represents the normalization factor, Indicates the number of samples in the dataset.
[0057] Here, the false positive sample set The weights of the true positive samples are updated, which can strengthen the reinforcement and correction of the model's erroneous behavior of actually being normal samples but misjudged as abnormal samples; and false negative sample set The purpose of elimination is to further purify the training data set so that the model can learn normal behavioral characteristics and patterns.
[0058] Determine whether the civil aviation ticket price anomaly detection model meets the set requirements. If not, return to step 4. If it meets the set requirements, obtain the youth version of the civil aviation ticket price anomaly detection model at this time.
[0059] The t rounds in the above parameter explanation refers to the number of iterations from step 4 to step 8.
[0060] Step 9: Based on the youth version of the civil aviation ticket price anomaly detection model, the new order data is predicted and anomaly detected. The suspected anomaly sample set is identified through route comparison and edge anomaly screening to obtain the edge anomaly candidate set. The data in the edge anomaly candidate set is then judged for anomalies, and the data set is augmented according to the judgment results:
[0061] Among them, the determined suspected abnormal sample set is judged by route comparison and edge anomaly screening to obtain an edge anomaly candidate set, and then the process of abnormality judgment on the data in the edge anomaly candidate set is consistent with the method used in steps 5-7;
[0062] Finally, the abnormal judgment result: false positive sample set , false negative sample set , the true positive sample set , the true negative sample set The set of false positive samples in Fill in the data set and perform data augmentation:
[0063] ;
[0064] in, The augmented dataset , Indicates the added incremental data set. Represents the original dataset.
[0065] Step 10: Based on the augmented data set, the youth version of the civil aviation ticket price anomaly detection model is trained and the model is evaluated. If the evaluation result is unqualified, return to step 10. If the evaluation result is qualified, the training is terminated, and it is considered that the adult version of the civil aviation ticket price anomaly detection model is obtained. The adult version of the civil aviation ticket price anomaly detection model is used to monitor the civil aviation ticket price in real time:
[0066] Based on the augmented dataset Train the Youth Edition Civil Aviation Ticket Price Anomaly Detection Model and evaluate the trained model:
[0067] ,
[0068] ,
[0069] ;
[0070] in, P Indicates accuracy, R represents the recall rate, TP Represents the number of true positive data in the model output results, that is, the number of abnormal samples detected correctly; FP Indicates the number of false positive data in the model output results, that is, the number of normal samples that are mistakenly judged as abnormal; TN Indicates the number of true negative data in the model output results, that is, the number of normal samples detected correctly; FN It indicates the number of false negative data in the model output, that is, the number of abnormal samples that are misjudged as normal. F If the value of 1 is higher than the set threshold, the evaluation is considered qualified, otherwise it is considered unqualified.
[0071] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for intelligently discovering abnormal prices of civil aviation tickets based on a self-growth mechanism, characterized in that: The following steps are involved: Step 1: Collect original ticket business rule data and sales record log data of each sales channel to build a database; Step 2: Build a multi-granularity feature learning model, perform feature fusion and representation learning on the data in the database, and build a data set based on the data after feature fusion and representation learning; Step 3: Build a civil aviation ticket price anomaly detection model based on a self-growth mechanism, and train the civil aviation ticket price anomaly detection model based on the data set in step 2 to obtain a children's version of the civil aviation ticket price anomaly detection model; Step 4: Based on the price anomaly detection model for children's civil aviation tickets, the price of the given route ticket information is predicted, and anomaly discrimination is performed based on the predicted price to obtain a suspected anomaly sample set; Step 5: Determine the face value of the route ticket information given in step 4 according to the ticket business rules; Step 6: jointly discriminate the data in the suspected abnormal sample set and the price determined in step 5 to obtain the abnormal sample set; Step 7: Perform secondary discrimination on the data in the abnormal sample set based on the edge anomaly set selector to obtain an edge anomaly candidate set to be interactively determined; Step 8: Perform anomaly determination on the data in the edge anomaly candidate set, and update the weight of each anomaly sample in the data set according to the determination result. Iteratively train the children's version of the civil aviation ticket price anomaly detection model based on the weighted updated data set; determine whether the civil aviation ticket price anomaly detection model meets the set requirements. If not, return to step 4. If it meets the set requirements, obtain the youth version of the civil aviation ticket price anomaly detection model at this time. Step 9: Based on the youth version of the civil aviation ticket price anomaly detection model, the new order data is predicted and anomaly detected, and the suspected anomaly sample set is identified through route comparison and edge anomaly screening to obtain the edge anomaly candidate set, and then the data in the edge anomaly candidate set is judged for anomalies, and the data set is augmented according to the judgment results; Step 10: Based on the augmented data set, the youth version of the civil aviation ticket price anomaly detection model is trained and the model is evaluated. If the evaluation result is unqualified, return to step 10; if the evaluation result is qualified, the training is terminated, and it is considered that the adult version of the civil aviation ticket price anomaly detection model is obtained, and the adult version of the civil aviation ticket price anomaly detection model is used to monitor the civil aviation ticket price in real time.
2. The method for intelligently discovering abnormal civil aviation ticket prices based on a self-growth mechanism according to claim 1 is characterized in that: The database in step 1 includes: Real-time ticket sales historical quotation log data from various channels includes log data recorded by various e-commerce sales channels within the airline; The original ticket business rule data is the original ticket business rule data issued by industry organizations, including the original ticket business rule data issued by the International Air Transport Association and the air transport publishing service provider AirlineTariff Publishing Company.
3. The method for intelligently discovering abnormal civil aviation ticket prices based on a self-growth mechanism according to claim 1 is characterized in that: The step 3 of obtaining the abnormal price discovery model for children's civil aviation tickets is as follows: Based on bidirectional long short-term memory neural network, a model for discovering abnormal prices of civil aviation tickets for time series structure is constructed; The dataset after feature fusion and representation learning in step 2 is used as the input of the civil aviation ticket price anomaly detection model; The parameters of the civil aviation ticket price anomaly detection model are initialized, and the civil aviation ticket price anomaly detection model is trained using the forward propagation and back propagation methods.
4. The method for intelligently discovering abnormal civil aviation ticket prices based on a self-growth mechanism according to claim 1, characterized in that: The step 6 of obtaining the abnormal sample set is specifically as follows: The suspected abnormal sample set is compared with the route ticket price determined in step 5, and the data with a difference exceeding a certain value is determined as an abnormal sample, thereby obtaining an abnormal sample set.
5. The method for intelligently discovering abnormal civil aviation ticket prices based on a self-growth mechanism according to claim 1, characterized in that: The step 7 of obtaining the edge anomaly candidate set to be interacted with is specifically as follows: Based on the edge anomaly selector, the data in the abnormal sample set is filtered to obtain the edge anomaly candidate set A M : , ; in, A represents the abnormal sample set, N Indicates the number of final abnormal results required, Represents an edge anomaly set selector based on a deep neural network, which is used to calculate the anomaly score of a given sample. i Indicates the abnormal sample number, j Represents the center point calculated based on the final number of abnormal results, k represents the local anomaly factor, δ Indicates the set abnormality threshold.
6. The method for intelligently discovering abnormal civil aviation ticket prices based on a self-growth mechanism according to claim 1, characterized in that: In step 8, the data in the edge anomaly candidate set is judged as abnormal, and the weight of each sample in the data set is updated according to the judgment result, specifically: According to the edge anomaly candidate set obtained in step 7, anomaly determination is performed on it, so that the data in the edge anomaly candidate set is divided into a false positive sample set , false negative sample set , the true positive sample set , the true negative sample set ; Among them, false positive samples refer to samples predicted by the model to be abnormal but actually normal; false negative samples refer to samples predicted by the model to be normal but actually abnormal; true positive samples refer to samples predicted by the model to be abnormal but actually abnormal; true negative samples refer to samples predicted by the model to be normal but actually normal; For the true positive sample set and false negative sample set , remove it directly from the data set, targeting the false positive sample set , update its weights to obtain the data set after the weights are updated: , , ; in, Represented as the first i The initial weight value of the samples, represents the weighted error of the t-th round of interaction, represents the error influencing factor, Indicates the t -1 round of interaction samples The weight of represents the normalization factor, Indicates the number of samples in the dataset.
7. The method for intelligently discovering abnormal civil aviation ticket prices based on a self-growth mechanism according to claim 1, characterized in that: The data augmentation of the data set in step 9 is specifically as follows: Abnormal judgment results: false positive sample set , false negative sample set , the true positive sample set , the true negative sample set The set of false positive samples in Fill in the data set and perform data augmentation: ; in, The augmented dataset , Indicates the added incremental data set. Represents the original dataset.
8. The method for intelligently discovering abnormal civil aviation ticket prices based on a self-growth mechanism according to claim 7, characterized in that: The model is evaluated in step 10, specifically: Based on the augmented dataset Train the Youth Edition Civil Aviation Ticket Price Anomaly Detection Model and evaluate the trained model: , , ; in, P Indicates accuracy, R represents the recall rate, TP Represents the number of true positive data in the model output results, that is, the number of abnormal samples detected correctly; FP Indicates the number of false positive data in the model output results, that is, the number of normal samples that are mistakenly judged as abnormal; TN Indicates the number of true negative data in the model output results, that is, the number of normal samples detected correctly; FN It indicates the number of false negative data in the model output, that is, the number of abnormal samples that are misjudged as normal. F If the value of 1 is higher than the set threshold, the evaluation is considered qualified, otherwise it is considered unqualified.
