Flight recommendation method and related equipment
By filtering flights based on user-inputted flight duration and cabin class, the problem of low flight recommendation accuracy has been solved, resulting in more accurate flight recommendations.
Patent Information
- Application Number
- CN202511655746.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-12
- Publication Date
- 2026-02-06
AI Technical Summary
In existing technologies, insufficient user travel frequency leads to inaccurate flight recommendations based on user behavior habits, resulting in low accuracy in flight recommendations.
The system initially filters out the first flight based on the user's input flight duration. Then, based on the needs of the user's group and their own needs, it determines the allowed cabin class and flight duration, identifies the target flight from multiple second flights, and displays the flight information.
This improves the accuracy of flight recommendations, ensuring that the recommended flights meet the actual needs of users and groups.
Smart Images

Figure CN121481673A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of travel business technology, and in particular to a flight recommendation method and related equipment. Background Technology
[0002] As companies and other groups expand their business, members need to travel to various locations for business negotiations, resulting in increased business travel. When traveling, users need to choose flights. However, if a user roughly selects a plan based on travel time, it may not be the optimal solution.
[0003] In one exemplary technology, user behavior habits are obtained through user travel data, and flight recommendations are made to users based on these behavior habits.
[0004] However, the number of times users travel is insufficient, resulting in the recommendation of flights based on user behavior not being what users need. In other words, the recommended flights are not accurate, and there is a problem with low accuracy in flight recommendations. Summary of the Invention
[0005] Based on the aforementioned technological status, this application provides a flight recommendation method and related equipment to address the problem of low accuracy in flight recommendations.
[0006] To achieve the above-mentioned technical objectives, this application proposes the following technical solution: Firstly, this application provides a flight recommendation method, including: In response to a user's flight query operation, the system obtains the booking information and the target travel duration of the flight entered by the user based on the flight query operation, and determines multiple first flights that match the booking information. Based on the target travel duration, multiple second flights are determined from each of the first flights, and based on the target travel duration, the target cabin class that the user's group is allowed to travel in is determined. The travel duration of the second flights is less than or equal to the target travel duration, and the target travel duration is positively correlated with the target cabin class. Based on the target cabin class, a target flight is determined in each of the second flights, the target flight containing the target cabin class or a cabin class below the target cabin class; Displays the flight information corresponding to the target flight.
[0007] In some implementations, determining multiple second flights among the various first flights based on the target travel duration includes: Get the first ride fee; Based on the target travel duration and the first travel cost, multiple second flights are determined among each of the first flights, wherein the second travel cost of the second flights is less than or equal to the first travel cost.
[0008] In some implementations, determining multiple second flights among the various first flights based on the target travel duration includes: Obtain the departure time of the user's flight; Based on the target travel duration, a departure time period including the departure time point is determined, and the duration of the departure time period is negatively correlated with the target travel duration. Based on the target travel duration and the departure time period, multiple second flights are determined among each of the first flights, wherein the departure time of the second flight is within the departure time period and the second travel cost of the second flight is lower than the cost threshold.
[0009] In some implementations, determining multiple second flights among the various first flights based on the target travel duration includes: Based on the target travel duration, multiple flights to be determined are identified among each of the first flights, wherein the travel duration of the flights to be determined is less than or equal to the target travel duration. If the flight to be determined includes a transit station, target information is obtained, the target information including at least one of the transit station's risk score, entry and exit rules, length of stay, and third-ride cost of the flight to be determined that includes the transit station; The flights to be determined corresponding to the target information that match the deletion conditions are removed, and the remaining flights to be determined are identified as the second flight.
[0010] In some implementations, the deletion conditions include at least one of the following: The risk score is greater than or equal to the risk threshold; The entry and exit rules indicate that the user is not allowed to stay at the transfer station; The dwell time is greater than or equal to the duration threshold; The product of the third travel cost and the set multiple is greater than the target cost, which is used to indicate the travel cost of the first flight of the direct flight type.
[0011] In some implementations, determining multiple second flights among the various first flights based on the target travel duration includes: Based on the target travel duration, multiple flights to be determined are identified among each of the first flights, wherein the travel duration of the flights to be determined is less than or equal to the target travel duration. Among the flights to be determined, flights of the preset type are removed, and the remaining flights to be determined are designated as the second flight.
[0012] In some implementations, determining the target flight among the various second flights based on the target cabin class includes: In each of the second flights, multiple flights to be screened are identified, the flights to be screened containing the target cabin class or a cabin class below the target cabin class; Among the flights to be screened, direct flights are selected, and among the direct flights, flights with fares less than a first set threshold are selected as the first candidate flights. Among the flights to be screened, flights with transfer types are identified, and among the flights with transfer types, flights with travel costs less than a second set threshold are identified as second alternative flights. Among the remaining flights to be screened, the flights with travel costs less than a third set threshold are identified as the third alternative flights. The remaining flights to be screened are those other than the first and second alternative flights. The first alternative flight, the second alternative flight, and the third alternative flight are all designated as target flights.
[0013] Secondly, this application provides a flight recommendation device, comprising: The acquisition module is used to respond to the user's flight query operation, acquire the booking information and the target travel time of the flight entered by the user according to the flight query operation, and determine multiple first flights that match the booking information. The first determining module is used to determine multiple second flights among the first flights based on the target travel duration, and to determine the target cabin class that the user's group is allowed to travel in based on the target travel duration, wherein the travel duration of the second flights is less than or equal to the target travel duration, and the target travel duration is positively correlated with the target cabin class. The second determining module is used to determine a target flight among each of the second flights according to the target cabin class, wherein the target flight contains the target cabin class or a cabin class below the target cabin class; The display module is used to display the flight information corresponding to the target flight.
[0014] Thirdly, this application provides an electronic device, including a memory and a processor, wherein, The memory is connected to the processor and is used to store programs; The processor is used to implement the flight recommendation method as described in the first aspect or any implementation thereof by running a program in the memory.
[0015] Fourthly, this application provides a computer program product, which, when executed by a processor, implements the flight recommendation method as described in the first aspect or any implementation thereof.
[0016] Fifthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the flight recommendation method as described in the first aspect or any implementation thereof.
[0017] This application provides a flight recommendation method and related equipment. When a user performs a flight query, the method obtains the user's input booking information and the target travel time based on the query. It then identifies multiple first flights matching the booking information, designates the first flights with travel times shorter than the target travel time as second flights, and determines the target cabin class allowed by the user's group based on the target travel time. The method then identifies the second flights with cabin classes at or below the target cabin class as the target flight, and displays the corresponding flight information. In this application, the first flights are initially selected based on the user-input travel time, and the target flight is determined from multiple second flights based on the allowed cabin class and travel time. This means that the method accurately recommends flights based on the needs of the user's group and the user's own needs, thus improving the accuracy of flight recommendations. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0019] Figure 1 A flowchart of a flight recommendation method provided in this application embodiment Figure 1 .
[0020] Figure 2 A flowchart of a flight recommendation method provided in this application embodiment Figure 2 .
[0021] Figure 3 A flowchart of a flight recommendation method provided in this application embodiment Figure 3 .
[0022] Figure 4 A flowchart of a flight recommendation method provided in this application embodiment Figure 4 .
[0023] Figure 5 A flowchart of a flight recommendation method provided in this application embodiment Figure 5 .
[0024] Figure 6 A flowchart of a flight recommendation method provided in this application embodiment Figure 6 .
[0025] Figure 7 This is a structural schematic diagram of a vehicle provided in an embodiment of this application.
[0026] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0027] The technical solution proposed in this application is applicable to flight recommendation scenarios and aims to solve the problem of low accuracy in flight recommendations. Using the technical solution described in this application, a first flight is initially selected based on the user-inputted flight duration. Then, the target flight is determined from multiple second flights based on the user's cabin class and flight duration. In other words, based on the needs of the user's group and the user's own needs, flights are accurately recommended, thus improving the accuracy of flight recommendations.
[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0029] It should be noted that the user information (including but not limited to electrical equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0030] As companies and other groups expand their business, members need to travel to various locations for business negotiations, resulting in increased business travel. When traveling, users need to choose flights. However, if a user roughly selects a plan based on travel time, it may not be the optimal solution.
[0031] In one exemplary technology, user behavior habits are obtained through user travel data, and flight recommendations are made to users based on these behavior habits.
[0032] However, the number of times users travel is insufficient, resulting in the recommendation of flights based on user behavior not being what users need. In other words, the recommended flights are not accurate, and there is a problem with low accuracy in flight recommendations.
[0033] In view of this, this application aims to provide a flight recommendation method and related equipment. When a user performs a flight query, the method obtains the user's input booking information and the target travel time based on the query, identifies multiple first flights matching the booking information, designates the first flights with travel times shorter than the target travel time as second flights, determines the target cabin class allowed by the user's group based on the target travel time, and identifies the second flights with cabin classes at or below the target cabin class as the target flight. The corresponding flight information is then displayed. In this application, first flights are initially selected based on the user-input travel time, and the target flight is determined from multiple second flights based on the allowed cabin class and travel time. This means that based on the needs of the user's group and the user's own needs, flights are accurately recommended, improving the accuracy of flight recommendations.
[0034] The flight recommendation method and related equipment provided in this application embodiment can be applied to flight recommendation scenarios.
[0035] Exemplary methods Figure 1 A flowchart of a flight recommendation method provided in this application embodiment Figure 1 .like Figure 1 As shown, the flight recommendation method provided in this embodiment includes: Step S101: In response to the user's flight query operation, obtain the booking information and the target travel time of the flight entered by the user based on the flight query operation, and determine multiple first flights that match the booking information.
[0036] In this embodiment, the executing entity is a flight recommendation device. For ease of description, the term "device" will be used to refer to the flight recommendation device below. The device can be any terminal device with flight recommendation functionality. Users can search for flights on the device. For example, the device displays an icon for the flight recommendation function. When a user clicks this icon, the device displays an information entry interface, where the user enters booking information such as departure location, destination, and departure date. A search button is provided in the information entry interface. When the user clicks this button, it is considered that a flight search operation has been detected, and the device extracts the booking information entered by the user from the information entry interface. Furthermore, the user also enters the flight duration in the information entry interface. This duration is defined as the target flight duration, meaning the desired flight duration is less than the target flight duration. The device obtains the target flight duration from the information entry interface while retrieving the booking information.
[0037] After obtaining the booking information, the device searches for flights based on the booking information to obtain multiple flights that match the booking information. For ease of description, all multiple flights that match the booking information are defined as the first flight.
[0038] Step S102: Based on the target travel duration, determine multiple second flights from each first flight, and based on the target travel duration, determine the target cabin class that the user's group is allowed to travel in. The travel duration of the second flight is less than or equal to the target travel duration, and the target travel duration is positively correlated with the target cabin class.
[0039] After determining multiple first flights, multiple second flights are determined from each of the first flights based on the target travel time. That is, all first flights with a travel time less than or equal to the target travel time are determined as second flights.
[0040] After confirming the second flight, the target cabin class for the user's group is determined based on the target travel duration. Specifically, if the user's group is, for example, a company, the device obtains cabin class configurations from the company's platform. These configurations allow for more relaxed restrictions on cabin class based on travel duration to improve travel comfort; for example, if the travel duration exceeds 7 hours, business class bookings are permitted.
[0041] In response, the device determines the target cabin class that the group is allowed to travel in based on cabin configuration. The target cabin class is the highest class that the group is allowed to travel in, and the target travel time is positively correlated with the target cabin class. That is, the longer the target travel time, the higher the target cabin class.
[0042] Step S103: Based on the target cabin class, determine the target flight among each second flight. The target flight contains a cabin class or a cabin class lower than the target cabin class.
[0043] After determining the target cabin class, the device identifies the target flight among the various second flights based on the target cabin class. The target flight includes both the target cabin class and cabin classes below the target cabin class. For example, if the target cabin class is business class, then the second flight containing both business class and economy class will be the target flight; alternatively, the second flight containing only economy class can be identified as the target flight.
[0044] Step S104: Display the flight information corresponding to the target flight.
[0045] After the target flight is determined, the device displays the corresponding flight information, including the departure time, departure location, destination, and departure date.
[0046] Figure 2 A flowchart of a flight recommendation method provided in this application embodiment Figure 2 ,based on Figure 1 In the embodiment shown, step S102 includes: Step S201: Obtain the first ride fee.
[0047] In this embodiment, the user can enter the maximum airfare in the information entry interface. When the user clicks the search button on the information entry interface, the device retrieves the maximum airfare entered by the user as the first airfare. Furthermore, the first airfare can also be set by the administrator of the user's group; that is, the administrator enters the maximum airfare into the device as the first airfare to prevent the cost of airfare for members of the group from exceeding the maximum airfare.
[0048] Step S202: Based on the target travel duration and the first travel cost, determine multiple second flights among the first flights, where the second travel cost of the second flight is less than or equal to the first travel cost.
[0049] The device determines multiple second flights among each first flight based on the target travel duration and the first travel cost.
[0050] For example, the device first determines multiple flights to be determined from each first flight based on the target travel duration, and the travel duration of each flight to be determined is less than the target travel duration.
[0051] Once the flights to be determined are identified, multiple second flights are selected from among the flights to be determined based on the first fare. The second fare of the second flight is lower than or equal to the first fare. In other words, the flights to be determined with fares close to or lower than the first fare are selected as the second flights.
[0052] Furthermore, the device queries the travel expense specifications of the user's group, determines the available travel fare for the user's flight based on the travel expense specifications, and if the available travel fare is higher than the first travel fare, then the flight with a fare close to or lower than the first travel fare is selected as the second flight. If the available travel fare is lower than or equal to the first travel fare, then the flight with a fare close to or lower than the applicable travel fare is selected as the second flight.
[0053] In this embodiment, the system quickly filters for second flights from various first flights based on the user's input of the fare and target travel duration. Figure 3 A flowchart of a flight recommendation method provided in this application embodiment Figure 3 .based on Figure 1 In the embodiment shown, step S202 includes: Step S301: Obtain the departure time of the user's flight.
[0054] In this embodiment, the user's group is configured with time control rules. For example, the group specifies that employees' departure times for business trips must be between 9:00 and 18:00. The device retrieves these time control rules from the enterprise platform and then uses them to determine the user's flight departure time, which falls within the specified time period defined by the rules.
[0055] Step S302: Based on the target travel time, determine the departure time period including the departure time point. The duration of the departure time period is negatively correlated with the target travel time.
[0056] After determining the departure time, the device determines a departure time period that includes the departure time based on the target travel duration. For example, if the target travel duration is less than 2 hours, the departure time period is 5 hours before and after the departure time; if the target travel duration is greater than or equal to 2 hours, the departure time period is 2 hours before and after the departure time.
[0057] Step S303: Based on the target travel duration and departure time period, determine multiple second flights among the first flights. The departure time of the second flight is within the departure time period, and the second travel cost of the second flight is lower than the cost threshold.
[0058] After determining the departure time period, multiple second flights are selected from each first flight based on the target travel duration and departure time period.
[0059] For example, first, among all the first flights, the flight with a travel time shorter than the target travel time is identified as the flight to be determined. Then, among all the flights to be determined, those whose departure time falls within the departure time period are identified as intermediate flights. Finally, among all the intermediate flights, those whose travel cost is lower than a cost threshold are identified as the second flight. It can be understood that the second flight's second travel cost is lower than the cost threshold. The cost threshold can be any suitable value and can be set as needed.
[0060] In this embodiment, short-haul flights and long-haul flights are distinguished according to the flight duration. For short-haul flights, users have more time, so they can choose a longer departure time period (e.g., 5 hours, where a longer departure time period means a departure time period greater than or equal to the duration threshold) to select a suitable flight from a larger number of flights. If the user is taking a long-haul flight, the user does not have much time, so they choose a flight in a shorter time period (e.g., 2 hours, where a shorter departure time period means a departure time period less than the duration threshold).
[0061] Figure 4 A flowchart of a flight recommendation method provided in this application embodiment Figure 4 .based on Figure 1 In the embodiment shown, step S102 includes: Step S401: Based on the target travel duration, identify multiple flights to be determined from each of the first flights, wherein the travel duration of the flights to be determined is less than or equal to the target travel duration.
[0062] In this embodiment, the device first determines multiple flights to be determined from each first flight based on the target travel duration, wherein the travel duration of the flights to be determined is less than or equal to the target travel duration.
[0063] Step S402: If the flight to be determined includes a transit station, obtain target information, which includes at least one of the following: risk score of the transit station, entry and exit rules, length of stay, and third-ride fee for the flight to be determined that includes the transit station.
[0064] Some of the pending flights include transit points, and these need to be screened. To address this, the device identifies flights with transit points among the pending flights and obtains their target information. This target information includes the transit point's risk score, entry and exit rules, length of stay, and the cost of a third-passenger ticket for the pending flight.
[0065] Step S403: Remove the flights to be determined corresponding to the target information that match the deletion conditions, and determine the remaining flights to be determined as the second flight.
[0066] The device stores deletion conditions, which can be configured by the enterprise platform. When the device obtains target information, it determines whether the flight to be determined meets the deletion conditions based on the target information. That is, the flight to be determined corresponding to the target information that matches the deletion conditions is removed, and the remaining flight to be determined is determined as the second flight.
[0067] The deletion criteria include at least one of the following: the risk score is greater than or equal to the risk threshold; the entry and exit rules indicate that the user is not allowed to stay at the transit station; the stay duration is greater than or equal to the duration threshold; the product between the third travel fee and the set multiple is greater than the target fee, which is used to indicate the travel fee of the first flight of the direct flight type.
[0068] Specifically, the risk score refers to the probability of encountering risks when the flight to be determined stops at the transit station. This probability can be set by the enterprise platform. That is, the device obtains the risk score from the enterprise platform. If the risk score is greater than the risk threshold, it can be determined that there may be risks when the user stops at the transit station on the flight to be determined. Therefore, the flight to be determined needs to be deleted.
[0069] Entry and exit rules refer to the rules set by transit stations for personnel entry and exit. For example, some transit stations are private and only allow entry and exit of people on a list. If a user is not on the list, it means that the entry and exit rules do not allow the user to stay at the transit station. Therefore, such pending flights need to be deleted.
[0070] The length of stay refers to the duration a user spends at a transit point. If the length of stay is too long, it will affect the user's travel. Therefore, when the length of stay is greater than or equal to the length of stay threshold, it indicates that the length of stay is too long, and thus, this type of flight to be confirmed needs to be deleted.
[0071] The cost of a third leg on a flight with a connecting stop is generally cheaper, but it needs to be compared with direct flights. If the cost-effectiveness is low, the flight should be removed. The device obtains a target cost, which refers to the cost of the first direct flight. That is, the device obtains the first direct flight from the departure point to the destination and determines the lowest cost among all such flights. The cost of the lowest cost first flight is the target cost. If the product of the third leg cost and a set multiplier is greater than the target cost, the flight is considered not cost-effective and should be removed. The set multiplier is related to the flight duration; the longer the flight duration, the larger the multiplier.
[0072] It should be noted that when the device obtains the configuration information of the enterprise platform, if the configuration information indicates that the user can only take direct flights, all undetermined flights with transit stations will be deleted; if the configuration information indicates that the user can take flights with transit stations, steps S402-S403 will be executed.
[0073] In this embodiment, when a flight includes a transit station, the flight is accurately screened based on the transit station's risk score, entry and exit rules, length of stay, and the fare of the flight to be determined that includes the transit station.
[0074] In one embodiment, based on the target travel duration, multiple flights to be determined are identified from each of the first flights, wherein the travel duration of the flights to be determined is less than or equal to the target travel duration. The device determines from the booking information whether the user needs to check baggage; if the user needs to check baggage, the flights to be determined that allow baggage check-in are designated as the second flights.
[0075] Figure 5 A flowchart of a flight recommendation method provided in this application embodiment Figure 5 .based on Figure 1 In the embodiment shown, step S102 includes: Step S501: Based on the target travel duration, identify multiple flights to be determined from each of the first flights, wherein the travel duration of the flights to be determined is less than or equal to the target travel duration.
[0076] In this embodiment, the device first determines multiple flights to be determined from each first flight based on the target travel duration, wherein the travel duration of the flights to be determined is less than or equal to the target travel duration.
[0077] Step S502: Among all the flights to be determined, remove the flights of the preset type and determine the remaining flights as the second flight.
[0078] In this embodiment, the user may select special types of flights, such as red-eye flights. Red-eye flights refer to flights departing between 11 PM and 5 AM with a flight duration of less than 8 hours. The user can fill in the special type of flights to be excluded on the information entry interface, and the device will then retrieve the special type of flights from the information entry interface as the preset flight type.
[0079] After identifying each flight to be determined, the pre-defined types of flights to be determined are eliminated, and the remaining flights can be designated as the second flight.
[0080] It should be noted that, Figures 2 to 5 The embodiments shown can be performed simultaneously or sequentially.
[0081] In this embodiment, the device removes flights of a preset type from the searched flights, thereby meeting the user's flight requirements.
[0082] Figure 6 A flowchart of a flight recommendation method provided in this application embodiment Figure 6 .based on Figures 1 to 5 In any of the embodiments shown, step S103 includes: Step S601: In each of the second flights, identify multiple flights to be screened, which contain the target cabin class or a cabin class below the target cabin class.
[0083] In this embodiment, the device determines multiple flights to be screened in each second flight, and the flights to be screened contain a target cabin class or a cabin class below the target cabin class.
[0084] Step S602: Among the flights to be screened, determine the direct flight type to be screened, and among the direct flight type to be screened, determine the flight with a fare less than the first set threshold as the first candidate flight.
[0085] The device identifies direct flights from among the selected flights, and then selects the flight with a fare less than a first preset threshold as a backup flight. This backup flight is defined as the first backup flight. If there are multiple flights with a fare less than the first preset threshold, the direct flight with the lowest fare is selected as the first backup flight. The first preset threshold can be a pre-defined fare threshold.
[0086] Step S603: Among the flights to be screened, determine the flights with transfer types, and among the flights with transfer types, determine the flights with travel costs less than the second set threshold as the second alternative flights.
[0087] The device identifies flights with transit types among the flights to be screened. Flights with transit types refer to flights that have transit stops.
[0088] The device then selects flights with fares below a second preset threshold from among the flights to be screened for each transfer type, defining these flights as the second alternative flights. If there are multiple flights with fares below the second preset threshold, the flight with the lowest fare for the transfer type is selected as the first alternative flight. The second preset threshold can be a pre-set fare threshold.
[0089] Step S604: Among the remaining flights to be screened, determine the flights with fares less than the third set threshold as the third alternative flights. The remaining flights to be screened are those other than the first and second alternative flights.
[0090] After the first and second alternative flights are determined, from the remaining flights to be screened, the flights with travel costs below a third set threshold are selected as the third alternative flights. The remaining flights to be screened are those other than the first and second alternative flights. The third set threshold can be a cost threshold that can be set as needed. For example, if the cost of a single trip for a user's group cannot exceed 1000, then the third set threshold is 1000.
[0091] Step S605: The first alternative flight, the second alternative flight, and the third alternative flight are all determined as the target flight.
[0092] After obtaining the first, second, and third alternative flights, all three alternative flights will be designated as the target flights.
[0093] In this embodiment, alternative flights with lower fares are determined for both direct and connecting flights, and alternative flights with lower fares are also determined from the remaining available flights, thereby providing users with a variety of low-priced flight options and improving user experience.
[0094] Based on the above embodiments, the flight recommendation method provided in this application is illustrated as follows: 1. A user has booked a flight from City A to City C on August 22, 2025, and expects the travel time to be no more than 3 hours. 142 flights are selected. In addition, the user can add a transfer option, such as from City A to City C, and then from City C to City B. If a transfer option is added, 252 flights are selected.
[0095] 2. Low-price filtering, which means filtering flights with fares higher than the set travel cost, yields 50 flights.
[0096] 3. Filtering by flight time, i.e., whether to restrict the time period of the flight. If there is no restriction, there are still 50 flights.
[0097] 4. Flight class filtering: If the flight duration is more than 12 hours, business class can be used; if it is less than or equal to 12 hours, economy class can be used. Further filtering based on the available class results in 45 flights. Flights that do not qualify for economy class are then filtered out.
[0098] 5. Compare the prices of flights with connecting options. For example, if flight A has a connecting option, and the total cost of flight A is higher than the set cost threshold, then it will be filtered out, resulting in 7 flights with connecting options.
[0099] 6. Compare the prices of direct flights. For example, select 7 flights with connecting options, calculate the average cost of the flights. If the cost of a direct flight is more than twice the average cost, then filter out the direct flights and get 8 direct flights.
[0100] 7. Filter transit areas with transit options. For example, the transit station cannot be region F. If the transit station is region F, then filter it out. Filter out the 7 flights with transit options obtained in step 5 above, leaving 5 flights.
[0101] 8. Based on the transit layover duration, filter out flights with transit options. For example, if the transit layover duration cannot exceed 6 hours, that is, filter out flights with transit options of more than 6 hours. The 5 flights with transit options obtained in step 5 above are filtered out, leaving 4 flights.
[0102] 9. Filter the flights that have checked baggage. If the sum of the flights in steps 8 and 6 is 12, and 2 of the 12 flights have checked baggage, then filter out 2 flights and get 10 flights.
[0103] 10. Filtering red-eye flights: If 3 out of 10 flights are red-eye flights, then filter these 3 red-eye flights to get 7 flights.
[0104] 11. Filter out the designated shipping companies. If two out of the seven flights have designated shipping companies, then filter out these two flights, leaving five flights.
[0105] 12. Perform lowest price filtering. For example, if the lowest price is 5000, determine the fee threshold by being 5% higher than the lowest price. The fee threshold is: 5000 × (1 + 5%) = 5250. That is, select flights with a price lower than 5250, and finally 2 flights remain.
[0106] It should be noted that the above-described screening of flights is for ease of description only and does not limit the screening order. That is, the various screening steps can be performed simultaneously or sequentially.
[0107] Exemplary device Corresponding to the flight recommendation method described above, this application also provides a vehicle. Figure 7 This is a schematic diagram of a flight recommendation device provided in an embodiment of this application. The flight recommendation device provided in this embodiment includes: The acquisition module 710 is used to respond to the user's flight query operation, acquire the booking information and the target travel time of the flight entered by the user based on the flight query operation, and determine multiple first flights that match the booking information. The first determining module 720 is used to determine multiple second flights among the first flights based on the target travel duration, and to determine the target cabin class that the user's group is allowed to travel in based on the target travel duration. The travel duration of the second flights is less than or equal to the target travel duration, and the target travel duration is positively correlated with the target cabin class. The second determining module 730 is used to determine the target flight among the various second flights according to the target cabin class, wherein the target flight contains a cabin class or a cabin class below the target cabin class; Display module 740 is used to display flight information corresponding to the target flight.
[0108] In some implementations, the flight recommendation device 700 is also used for: Get the first ride fee; Based on the target travel duration and the first travel cost, multiple second travel flights are determined from each first travel flight, with the second travel cost of the second travel flight being less than or equal to the first travel cost.
[0109] In some implementations, the flight recommendation device 700 is also used for: Obtain the user's departure time for the flight; Based on the target travel duration, a departure time period including the departure time is determined. The duration of the departure time period is negatively correlated with the target travel duration. Based on the target travel duration and departure time, multiple second flights are determined from each first flight. The departure time of the second flight is within the departure time, and the second ride cost of the second flight is lower than the cost threshold.
[0110] In some implementations, the flight recommendation device 700 is also used for: Based on the target travel duration, multiple flights to be determined are identified from each of the first flights. The travel duration of the flights to be determined is less than or equal to the target travel duration. If the flight to be determined includes a transit station, obtain target information, including at least one of the following: risk score of the transit station, entry and exit rules, length of stay, and third-passenger cost of the flight to be determined that includes the transit station; Remove the flights to be determined corresponding to the target information that match the deletion conditions, and determine the remaining flights to be determined as the second flight.
[0111] In some implementations, the flight recommendation device 700 is also used for: The risk score is greater than or equal to the risk threshold; Entry and exit rules indicate that users are not allowed to linger at the transit station; The duration of stay is greater than or equal to the duration threshold; The product of the third fare and the set multiplier is greater than the target fare, which indicates the fare for the first flight of the direct flight type.
[0112] In some implementations, the flight recommendation device 700 is also used for: Based on the target travel duration, multiple flights to be determined are identified from each of the first flights. The travel duration of the flights to be determined is less than or equal to the target travel duration. Among all the flights to be determined, those of the preset type are removed, and the remaining flights are designated as the second flight.
[0113] In some implementations, the flight recommendation device 700 is also used for: Among each second flight, multiple flights to be screened are identified, which contain the target cabin class or cabin class below the target cabin class; Among all the flights to be screened, direct flights are selected, and among the direct flights, flights with fares less than a first set threshold are selected as the first alternative flights. Among all the flights to be screened, flights with transfers are identified, and among the flights with transfers, flights with fares less than a second set threshold are identified as second alternative flights. Among the remaining flights to be screened, the flights with fares less than the third set threshold are identified as the third alternative flights. The remaining flights to be screened are those other than the first and second alternative flights. The first, second, and third alternative flights were all designated as target flights.
[0114] The flight recommendation device provided in this embodiment belongs to the same application concept as the flight recommendation method provided in the above embodiments of this application. It can execute the flight recommendation method provided in any of the above embodiments of this application and has the corresponding functional modules and beneficial effects for executing the flight recommendation method. Technical details not described in detail in this embodiment can be found in the specific processing content of the flight recommendation method provided in the above embodiments of this application, and will not be repeated here.
[0115] The functions implemented by each module in the flight recommendation device can be implemented by the same or different processors, and this application embodiment does not limit this.
[0116] It should be understood that the modules in the above flight recommendation device can be implemented in the form of processor calling software. For example, the system includes a processor connected to a memory containing instructions. The processor calls the instructions stored in the memory to implement any of the above methods or to implement the functions of each module of the device. The processor can be a general-purpose processor, such as a CPU or microprocessor, and the memory can be internal to the device or external to the system. Alternatively, the modules in the system can be implemented in the form of hardware circuits. By designing the hardware circuits, some or all of the module functions can be implemented. The hardware circuits can be understood as one or more processors. For example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all of the above modules are implemented by designing the logical relationships of the components within the circuit. In another implementation, the hardware circuit can be implemented using a PLD, such as an FPGA, which can include a large number of logic gates. The connection relationships between the logic gates are configured through configuration files to implement the functions of some or all of the above modules. All modules of the above flight recommendation device can be implemented entirely in the form of processor calling software, or entirely in the form of hardware circuits, or partially in the form of processor calling software with the remaining parts implemented in the form of hardware circuits.
[0117] In this application embodiment, a processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction reading and execution capabilities, such as a CPU, microprocessor, GPU, or DSP. In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. These logical relationships are fixed or reconfigurable. For example, the processor may be a hardware circuit implemented as an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the processor loading instructions to implement the functions of some or all of the above modules. Furthermore, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as an NPU, TPU, or DPU.
[0118] As can be seen, each module in the above flight recommendation device can be one or more processors (or processing circuits) configured to implement the above methods, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor types.
[0119] Furthermore, the modules in the above-mentioned flight recommendation device can be integrated in whole or in part, or they can be implemented independently. In one implementation, these modules are integrated together and implemented in the form of a System-on-Chip (SoC). The SoC may include at least one processor for implementing any of the above methods or implementing the functions of the modules of the device. The at least one processor can be of different types, such as CPU and FPGA, CPU and artificial intelligence processor, CPU and GPU, etc.
[0120] Exemplary electronic devices This application provides another structural schematic diagram of an electronic device, see [link to schematic diagram]. Figure 8 As shown, the electronic device includes a memory 800 and a processor 810; wherein the memory 800 is connected to the processor 810 and is used to store programs; the processor 810 is used to implement the flight recommendation method disclosed in any of the above embodiments by running the programs stored in the memory 800.
[0121] Specifically, the aforementioned electronic device may further include: a bus, a communication interface 820, an input device 830, and an output device 840. The electronic device may also include a data transceiver module, an image monitoring module, and a signal monitoring module.
[0122] The processor 810, memory 800, communication interface 820, input device 830, and output device 840 are interconnected via a bus. Among them: A bus can include a pathway for transmitting information between various components in an electronic device.
[0123] The processor 810 can be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present invention. It can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0124] The processor 810 may include a main processor, as well as a baseband chip, modem, etc.
[0125] The memory 800 stores a program that executes the technical solution of this invention, and may also store an operating system and other key business functions. Specifically, the program may include program code, which includes computer operation instructions. More specifically, the memory 800 may include read-only memory (ROM), other types of static storage devices capable of storing static information and instructions, random access memory (RAM), other types of dynamic storage devices capable of storing information and instructions, disk storage, flash memory, etc.
[0126] Input device 830 may include a device for receiving user input data and information, such as a keyboard, mouse, camera, scanner, light pen, voice input device, touch screen, pedometer, or gravity sensor.
[0127] Output device 840 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.
[0128] The communication interface 820 may include a device that uses any transceiver to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.
[0129] The processor 810 executes the program stored in the memory 800 and calls other devices, and can be used to implement each step of any of the flight recommendation methods provided in the above embodiments of this application.
[0130] This application also proposes a chip, which includes a processor and a data interface. The processor reads and runs a program stored in the memory through the data interface to execute the flight recommendation method described in any of the above embodiments. For details of the processing and its beneficial effects, please refer to the embodiments of the flight recommendation method described above.
[0131] Exemplary computer program products and storage media In addition to the methods and apparatus described above, embodiments of this application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps in the flight recommendation methods according to various embodiments of this application as described in any of the above embodiments of this specification.
[0132] Computer program products can be written in any combination of one or more programming languages to perform the operations of the embodiments of this application. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the power device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0133] Furthermore, embodiments of this application may also be storage media storing a computer program, which is executed by a processor to perform the steps of the flight recommendation method according to various embodiments of this application described in any of the above embodiments of this specification, specifically implementing the steps of the flight recommendation method as described above.
[0134] For the foregoing method embodiments, in order to simplify the description, they are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0135] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For apparatus embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0136] The steps in the methods of the various embodiments of this application can be adjusted, merged, or deleted in order according to actual needs, and the technical features described in each embodiment can be replaced or combined.
[0137] The units of the apparatus in the various embodiments of this application can be merged, divided, and deleted according to actual needs.
[0138] It should be understood that the disclosed terminals, devices, and methods can be implemented in other ways, given the several embodiments provided in this application. For example, the terminal embodiments described above are merely illustrative. For instance, the division of modules or sub-modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple sub-modules or modules may be combined or integrated into another module, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.
[0139] The modules or submodules described as separate components may or may not be physically separate. The components that constitute a module or submodule may or may not be physical modules or submodules; that is, they may be located in one place or distributed across multiple network modules or submodules. Some or all of the modules or submodules can be selected to achieve the purpose of this embodiment's solution, depending on actual needs.
[0140] Furthermore, the functional modules or sub-modules in the various embodiments of this application can be integrated into one processing module, or each module or sub-module can exist physically separately, or two or more modules or sub-modules can be integrated into one module. The integrated modules or sub-modules described above can be implemented in hardware or in the form of software functional modules or sub-modules.
[0141] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0142] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software unit executed by a processor, or a combination of both. The software unit can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0143] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0144] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A flight recommendation method, characterized in that, include: In response to a user's flight query operation, the system obtains the booking information and the target travel duration of the flight entered by the user based on the flight query operation, and determines multiple first flights that match the booking information. Based on the target travel duration, multiple second flights are determined from each of the first flights, and based on the target travel duration, the target cabin class that the user's group is allowed to travel in is determined. The travel duration of the second flights is less than or equal to the target travel duration, and the target travel duration is positively correlated with the target cabin class. Based on the target cabin class, a target flight is determined in each of the second flights, the target flight containing the target cabin class or a cabin class below the target cabin class; Displays the flight information corresponding to the target flight.
2. The flight recommendation method according to claim 1, characterized in that, The step of determining multiple second flights from each of the first flights based on the target travel duration includes: Get the first ride fee; Based on the target travel duration and the first travel cost, multiple second flights are determined among each of the first flights, wherein the second travel cost of the second flights is less than or equal to the first travel cost.
3. The flight recommendation method according to claim 1, characterized in that, The step of determining multiple second flights from each of the first flights based on the target travel duration includes: Obtain the departure time of the user's flight; Based on the target travel duration, a departure time period including the departure time point is determined, and the duration of the departure time period is negatively correlated with the target travel duration. Based on the target travel duration and the departure time period, multiple second flights are determined among each of the first flights, wherein the departure time of the second flight is within the departure time period and the second travel cost of the second flight is lower than the cost threshold.
4. The flight recommendation method according to claim 1, characterized in that, The step of determining multiple second flights from each of the first flights based on the target travel duration includes: Based on the target travel duration, multiple flights to be determined are identified among each of the first flights, wherein the travel duration of the flights to be determined is less than or equal to the target travel duration. If the flight to be determined includes a transit station, target information is obtained, the target information including at least one of the transit station's risk score, entry and exit rules, length of stay, and third-ride cost of the flight to be determined that includes the transit station; The flights to be determined corresponding to the target information that match the deletion conditions are removed, and the remaining flights to be determined are identified as the second flight.
5. The flight recommendation method according to claim 4, characterized in that, The deletion conditions include at least one of the following: The risk score is greater than or equal to the risk threshold; The entry and exit rules indicate that the user is not allowed to stay at the transfer station; The dwell time is greater than or equal to the duration threshold; The product of the third travel cost and the set multiple is greater than the target cost, which is used to indicate the travel cost of the first flight of the direct flight type.
6. The flight recommendation method according to claim 1, characterized in that, The step of determining multiple second flights from each of the first flights based on the target travel duration includes: Based on the target travel duration, multiple flights to be determined are identified among each of the first flights, wherein the travel duration of the flights to be determined is less than or equal to the target travel duration. Among the flights to be determined, flights of the preset type are removed, and the remaining flights to be determined are designated as the second flight.
7. The flight recommendation method according to any one of claims 1-6, characterized in that, The step of determining the target flight among each of the second flights based on the target cabin class includes: In each of the second flights, multiple flights to be screened are identified, the flights to be screened containing the target cabin class or a cabin class below the target cabin class; Among the flights to be screened, direct flights are selected, and among the direct flights, flights with fares less than a first set threshold are selected as the first candidate flights. Among the flights to be screened, flights with transfer types are identified, and among the flights with transfer types, flights with travel costs less than a second set threshold are identified as second alternative flights. Among the remaining flights to be screened, the flights with travel costs less than a third set threshold are identified as the third alternative flights. The remaining flights to be screened are those other than the first and second alternative flights. The first alternative flight, the second alternative flight, and the third alternative flight are all designated as target flights.
8. A flight recommendation device, characterized in that, include: The acquisition module is used to respond to the user's flight query operation, acquire the booking information and the target travel time of the flight entered by the user according to the flight query operation, and determine multiple first flights that match the booking information. The first determining module is used to determine multiple second flights among the first flights based on the target travel duration, and to determine the target cabin class that the user's group is allowed to travel in based on the target travel duration, wherein the travel duration of the second flights is less than or equal to the target travel duration, and the target travel duration is positively correlated with the target cabin class. The second determining module is used to determine a target flight among each of the second flights according to the target cabin class, wherein the target flight contains the target cabin class or a cabin class below the target cabin class; The display module is used to display the flight information corresponding to the target flight.
9. An electronic device, characterized in that, Including memory and processor, among which, The memory is connected to the processor and is used to store programs; The processor is used to implement the flight recommendation method as described in any one of claims 1-7 by running the program in the memory.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the flight recommendation method as described in any one of claims 1-7.