A trip planning method and system based on large language model

Through a trip planning method based on a large language model, combined with deep learning and real-time traffic data, the trip plan is dynamically adjusted, solving the problems of insufficient understanding of complex user needs and low resource utilization efficiency in the existing technology, and achieving more accuracy and personalization. trip planning.

CN118428920BActive Publication Date: 2024-10-01YANTAI CLOUD SOFTWARE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410850647.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing itinerary planning technology relies on static algorithms and limited user input, cannot deeply understand complex user needs, and lacks dynamic adjustment and adaptive mechanisms, resulting in poor user experience and low resource utilization efficiency.

Method used

It adopts a itinerary planning method based on a large language model, performs keyword identification and intent analysis through user input travel preferences, and combines deep learning models to analyze user intentions, dynamically adjust the itinerary plan, use real-time traffic data to optimize routes and times, and add buffer time. And update model weights based on user feedback.

Benefits of technology

It achieves more personalized and accurate itinerary planning, improves user satisfaction and resource utilization efficiency, can optimize routes and schedules in a changing environment, and provides travel suggestions that are more in line with user preferences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118428920B_ABST
    Figure CN118428920B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of itinerary planning technology, specifically to a itinerary planning method and system based on a large language model, comprising the following steps: based on the travel preferences input by the user through an interface, keyword recognition and intent analysis are performed to obtain user preference information, the user preference information is analyzed through a deep learning model, and the travel intention text is obtained through analysis. In the present invention, the travel intention is accurately analyzed by integrating the user preference information with the deep learning technology, and combined with real-time resource matching and path optimization, the personalization and accuracy of itinerary planning are improved, and the user's detailed needs are accurately captured through keyword recognition and intent analysis, and a travel plan that is more in line with expectations is provided, resource matching and itinerary settings are dynamically adjusted, routes and schedules are optimized in a constantly changing environment, model weights are dynamically adjusted according to user feedback, and an adaptive learning mechanism makes each planning more accurate, and the system can provide itinerary suggestions that are increasingly in line with user preferences.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of itinerary planning, and in particular to a itinerary planning method and system based on a large language model. Background Art

[0002] The field of itinerary planning technology involves the use of computer algorithms and data processing systems to automate and optimize travel and transportation route planning. This technical field is not limited to simply determining the shortest or fastest path from point A to point B, but also includes considering multiple factors such as traffic conditions, personal preferences, cost-effectiveness and time management. With the development of artificial intelligence, especially the application of machine learning and natural language processing technology, itinerary planning systems can provide more accurate and personalized travel suggestions while enhancing the user interaction experience, such as communicating with users naturally through voice or text, understanding and executing users' complex needs.

[0003] Among them, itinerary planning methods refer to a collection of various algorithms and techniques for generating, optimizing and managing travel routes. These methods are widely used and are applicable to scenarios such as personal travel planning, business trip arrangements, logistics and transportation management. By automating these processes, itinerary planning methods aim to improve efficiency and reduce human resource requirements, while providing travel solutions that better meet user needs and improve the overall user experience.

[0004] Existing technologies rely on static algorithms and limited user input in itinerary planning, lacking in-depth understanding and flexible response to complex user needs. Traditional systems may only provide route selection based on the shortest time or distance, and fail to fully consider real-time changes in traffic conditions or users' personalized requirements for travel experience. They are inadequate when dealing with emergencies or temporary changes in plans, which may lead to poor user experience, such as encountering traffic jams or missing the best time to visit. Traditional technologies are also limited in resource utilization efficiency. Failure to update resource information in real time may cause users to face outdated travel advice or resource booking failures. The lack of dynamic learning and adaptive adjustment mechanisms makes it difficult for the system to improve, unable to learn from past interactions, always maintaining the initial efficiency level, and failing to optimize with technological progress. The innovative solution effectively solves these shortcomings of existing technologies by deeply analyzing user needs, dynamically adjusting itineraries, and adaptive learning. Summary of the invention

[0005] The purpose of the present invention is to solve the shortcomings of the prior art and to propose a trip planning method and system based on a large language model.

[0006] In order to achieve the above object, the present invention adopts the following technical solution: a trip planning method based on a large language model, comprising the following steps:

[0007] S1: Based on the travel preferences input by the user through the interface, keyword recognition and intent analysis are performed to obtain user preference information, and the user preference information is analyzed through a deep learning model to parse and obtain travel intention text;

[0008] S2: Based on the travel intention text, query the resource database, match the related tourism resources, extract the resource information of the related tourism resources including the access time and geographical location information, refer to the availability and access cost of the resources, set the itinerary route and access time, optimize the geographical location and time sequence, and establish a preliminary itinerary plan;

[0009] S3: Based on the preliminary trip plan, calculate the path and time, use the map service to calculate the optimal path and time between multiple locations in the trip, obtain the travel path and time evaluation, adjust the estimated travel time according to the real-time traffic data, add buffer time, and establish an adjusted trip plan;

[0010] S4: Based on the adjusted itinerary plan, display optional itinerary options to the user, collect user selection and feedback information, determine the itinerary option selected by the user, generate model weight adjustment information based on the user selection, and update the preference analysis model, resource matching model, and itinerary planning model.

[0011] As a further solution of the present invention, the step of obtaining the travel intention text is specifically as follows:

[0012] S111: The user inputs travel preferences through the interface, and the enhanced text parsing technology is used to identify keywords using the formula:

[0013] ;

[0014] Calculate the frequency of occurrence and the power of relevance of each keyword to generate a keyword set;

[0015] in, Represents a set of keywords. Indicates the keyword entered by the user. Indicates keywords The weight adjustment coefficient of

[0016] S112: Perform intent analysis on the keyword set using a natural language processing formula:

[0017] ;

[0018] Calculate and generate a set of intention weights;

[0019] in, represents the set of intention weights, Indicates keywords The weight of Indicates keywords The semantic parsing function of Indicates keywords Document frequency;

[0020] S113: The intention weight set is input into the deep learning model, and a nonlinear transformation formula is applied:

[0021] ;

[0022] Generate travel intention text;

[0023] in, Indicates the travel intention text, represents the intention weight, Represents the adjustment coefficient of the model.

[0024] As a further solution of the present invention, the steps of obtaining the preliminary itinerary plan are specifically as follows:

[0025] S211: Based on the travel intention text, query the resource database using the formula:

[0026] ;

[0027] Each Representation and Matched resources generate a set of associated tourism resources;

[0028] in, Represents a set of related tourism resources. Represents a single tourism resource item;

[0029] S212: Extracting the access time and geographical location information of resources from the associated tourism resource set, using the formula:

[0030] ;

[0031] Generate resource information set;

[0032] in, Represents a resource information set. Indicates the access time. Indicates geographic location, , is the adjustment index;

[0033] S213: Referring to the availability and access cost of the resource information set, the travel route and access time are set, using the formula:

[0034] ;

[0035] Generate preliminary itinerary plan;

[0036] in, Indicates the preliminary itinerary plan, , are the weights of visit time and geographical location respectively.

[0037] As a further solution of the present invention, the step of obtaining the adjusted itinerary plan is specifically as follows:

[0038] S311: Based on the preliminary itinerary plan, the optimal path and time between multiple locations in the journey are calculated using a map service, using the formula:

[0039] ;

[0040] Calculate travel paths and time estimates;

[0041] in, represents the travel path and time estimate, represents the path segment weight, , Represent two consecutive locations in the itinerary plan;

[0042] S312: Based on the travel path and time evaluation, the estimated travel time is adjusted according to the real-time traffic data, using the formula:

[0043] ;

[0044] Generate adjusted travel times;

[0045] in, represents the adjusted travel time, represents the real-time data adjustment factor, is a nonlinear adjustment. Indicates multiple journey times;

[0046] S313: Adding buffer time based on the adjusted travel time, using the formula:

[0047] ;

[0048] Create an adjusted itinerary plan;

[0049] in, Indicates the adjusted itinerary plan. is the buffer time coefficient, Time-based buffer adjustment.

[0050] As a further solution of the present invention, the step of obtaining the model weight adjustment information is specifically as follows:

[0051] S411: Based on the adjusted itinerary plan, display optional itinerary options to the user, using the formula:

[0052] ;

[0053] Calculate the set of itinerary options that the user may choose;

[0054] in, represents the set of itinerary options that the user may choose. is the initial weight of the scheme, is the distance between the solution and the first choice, is the maximum value of the distance, , Newly introduced environmental adaptability parameters and angle parameters;

[0055] S412: Collect the itinerary solutions and feedback information that the user may select, using the formula:

[0056] ;

[0057] Determine the itinerary plan selected by the user;

[0058] in, Indicates the itinerary plan selected by the user. is the user satisfaction score, is the satisfaction conversion coefficient, Newly introduced conversion rate adjustment factor;

[0059] S413: According to the itinerary plan selected by the user, the formula is used:

[0060] ;

[0061] Generate model weight adjustment information, update preference analysis model, resource matching model and itinerary planning model;

[0062] in, Represents model weight adjustment information, is the frequency of scheme selection, is the feedback strength, , are the newly introduced adjustment coefficient and angle difference parameters.

[0063] A trip planning system based on a large language model, the trip planning system based on a large language model is used to execute the trip planning method based on a large language model, the system comprising:

[0064] The preference parsing module receives travel data input by the user through the interface, collects the user's travel preferences including attraction types, budget constraints, and travel time, generates preference parsing results, inputs the preference parsing results into the deep learning model, extracts the user's travel intentions, and generates travel intention texts;

[0065] The resource matching module queries the internal resource database based on the travel intention text, retrieves the tourism resources matching the user's preferences, including scenic spot information and hotel data, performs resource information extraction, and generates a resource details table, in which the fields include location, visit time, and cost information;

[0066] The itinerary optimization module calculates the optimal travel path between multiple locations using a map service based on the resource details table, integrates geographic location and time information, creates a preliminary itinerary draft, adds buffer time to the itinerary with reference to real-time traffic data, and updates and generates a itinerary plan;

[0067] The user feedback module displays the itinerary plan to the user, collects user feedback, including selection information or modification feedback, adjusts the itinerary according to the user feedback, and obtains the selected itinerary after user verification;

[0068] The model iteration module takes the selected itinerary as input, adjusts the weights of the preference analysis model, the resource matching model and the itinerary planning model, updates the model through the data selected by the user, and generates optimized model parameters.

[0069] Compared with the prior art, the advantages and positive effects of the present invention are:

[0070] In the present invention, the travel intention is accurately analyzed by integrating user preference information and deep learning technology, and combined with real-time resource matching and path optimization, the personalization and accuracy of itinerary planning are improved. Through keyword recognition and intent analysis, the user's detailed needs are accurately captured to provide a travel plan that is more in line with expectations. Dynamically adjust resource matching and itinerary settings to optimize routes and schedules in a changing environment and increase planning flexibility. Dynamically adjust model weights based on user feedback, and the adaptive learning mechanism makes each planning more accurate. The system can provide itinerary suggestions that are increasingly in line with user preferences. The comprehensive processing method that integrates user input, resource matching and path calculation ensures that the itinerary plan is greatly improved in practicality and user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 It is a schematic diagram of the workflow of the present invention;

[0072] Figure 2 A flow chart of the steps for obtaining the travel intention text of the present invention;

[0073] Figure 3A flowchart of the steps for obtaining a preliminary itinerary plan of the present invention;

[0074] Figure 4 A flow chart of the steps for obtaining the adjusted itinerary plan of the present invention;

[0075] Figure 5 This is a flow chart of the steps for obtaining the model weight adjustment information of the present invention. DETAILED DESCRIPTION

[0076] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0077] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.

[0078] Embodiment 1:

[0079] See also Figure 1 The present invention provides a technical solution: a trip planning method based on a large language model, comprising the following steps:

[0080] S1: Based on the travel preferences input by the user through the interface, keyword recognition and intent analysis are performed to obtain user preference information, and the user preference information is analyzed through a deep learning model to parse and obtain the travel intention text;

[0081] S2: Based on the travel intention text, query the resource database, match the related tourism resources, extract the resource information of the related tourism resources including the access time and geographical location information, refer to the availability and access cost of the resources, set the itinerary route and access time, optimize the geographical location and time sequence, and establish a preliminary itinerary plan;

[0082] S3: Based on the preliminary trip plan, calculate the path and time, use the map service to calculate the optimal path and time between multiple locations in the trip, obtain the travel path and time evaluation, adjust the estimated travel time according to the real-time traffic data, add buffer time, and establish the adjusted trip plan;

[0083] S4: Based on the adjusted itinerary plan, display optional itinerary options to the user, collect user selection and feedback information, determine the itinerary option selected by the user, generate model weight adjustment information based on user selection, and update the preference analysis model, resource matching model, and itinerary planning model.

[0084] User preference information includes preference type, travel destination, and activity interests. The preliminary itinerary plan includes a route map, timetable, and cost estimate. The adjusted itinerary plan includes route optimization, time scheduling, and cost adjustment. Model weight adjustment information includes preference weights and model parameters.

[0085] See also Figure 2 , the specific steps for obtaining the travel intention text are:

[0086] S111: The user inputs travel preferences through the interface, and the enhanced text parsing technology is used to identify keywords using the formula:

[0087] ;

[0088] Calculate the frequency of occurrence and the power of relevance of each keyword to generate a keyword set;

[0089] in, Represents a set of keywords. Indicates the keyword entered by the user. Indicates keywords The weight adjustment coefficient of

[0090] S112: Perform intent analysis on the keyword set using a natural language processing formula:

[0091] ;

[0092] Calculate and generate a set of intention weights;

[0093] in, represents the set of intention weights, Indicates keywords The weight of Indicates keywords The semantic parsing function of Indicates keywords Document frequency;

[0094] S113: The intention weight set is input into the deep learning model, and a nonlinear transformation formula is applied:

[0095] ;

[0096] Generate travel intention text;

[0097] in, Indicates the travel intention text, represents the intention weight, Represents the adjustment coefficient of the model.

[0098] Detailed explanation and example formula of step 1:

[0099] ;

[0100] Parameter explanation:

[0101] : Keywords entered by the user;

[0102] :Keywords The weight adjustment coefficient reflects the importance of the keyword in the analysis.

[0103] Calculation process:

[0104] Extract keywords from user input, for example: user input is "beachholidayEurope".

[0105] Assign weight For each keyword, suppose (beach), (holiday), (Europe).

[0106] Apply the formula to calculate the weighted keyword set.

[0107] Calculation example:

[0108] Enter keywords: ”, “ ”, “ ”;

[0109] Weight: , , ;

[0110] calculate: ;

[0111] Example results:

[0112] This result indicates that "Europe" has the highest importance in the user preference analysis, while "holiday" is relatively low.

[0113] Detailed explanation and example formula of step 2:

[0114] ;

[0115] Parameter explanation:

[0116] Keyword weight, optimized;

[0117] :Keywords The semantic contribution function of

[0118] :Keywords The document frequency.

[0119] Calculation process:

[0120] Apply semantic contribution function to each keyword ,For example:

[0121] .

[0122] Get the document frequency of each keyword, for example:

[0123] .

[0124] Use keyword weight .

[0125] Apply the formula to calculate the intent weight.

[0126] Calculation example:

[0127] calculate: 1 / 3×[(0.8×2×10)+(0.5×1×15)+(1.0×3×5)]=12.83;

[0128] Example results:

[0129] The result 12.83 represents the weight of the user's travel intention after integrating all keywords, and a higher value indicates a stronger travel intention.

[0130] Detailed explanation and example formula of step 3:

[0131] ;

[0132] Parameter explanation:

[0133] : Adjust coefficients and strengthen key intentions;

[0134] : The intention weight obtained from step 2.

[0135] Calculation process:

[0136] Apply the intent weights from the previous step .

[0137] Assume there is an adjustment factor .

[0138] Apply formula to calculate travel intent text .

[0139] Calculation example:

[0140] ;

[0141] Example results:

[0142] The result 0.078 represents the quantitative value of travel intention obtained by the deep learning model. Lower values ​​indicate that the model needs to be further optimized to better reflect the user's intention.

[0143] See also Figure 3 , the specific steps for obtaining the preliminary itinerary plan are:

[0144] S211: Based on the travel intention text, query the resource database using the formula:

[0145] ;

[0146] Each Representation and Matched resources generate a set of associated tourism resources;

[0147] in, Represents a set of related tourism resources. Represents a single tourism resource item;

[0148] S212: Extract the access time and geographical location information of the resources from the associated tourism resource set, using the formula:

[0149] ;

[0150] Generate resource information set;

[0151] in, Represents a resource information set. Indicates the access time. Indicates geographic location, , is the adjustment index;

[0152] S213: Referring to the availability and access cost of the resource information set, the itinerary and access time are set, using the formula:

[0153] ;

[0154] Generate preliminary itinerary plan;

[0155] in, Indicates the preliminary itinerary plan, , are the weights of visit time and geographical location respectively.

[0156] Step 1: Resource matching:

[0157] formula:

[0158] ;

[0159] This formula represents the text matching the travel intention from the database Related resource collections . Here we assume that:

[0160] "Beach Vacation";

[0161] Database resource tags: "mountain hiking", "beach vacation", "city tour", "historical sites";

[0162] Matching resources: "beach vacation";

[0163] Derivation process:

[0164] Enter text Compare to each resource tag in the database.

[0165] Matches the tag "beach vacation".

[0166] Result Set for {"beach vacation"}.

[0167] Step 2: Extract access time and geographic location information:

[0168] formula:

[0169] ;

[0170] Here and Respective representatives and resources Related access time and geographical location. Set adjustment index and are the adjustment indices for time and location respectively. Assume that for "beach vacation":

[0171] sky;

[0172] kilometer;

[0173] ;

[0174] ;

[0175] Derivation process:

[0176] For "Beach Vacation" and ,but sky.

[0177] For "Beach Vacation" and ,but kilometer.

[0178] Result Set for .

[0179] Step 3: Set the route and visit time optimization formula:

[0180] ;

[0181] here and is a weight factor used to adjust the priority of access time and geographical location. Assume the weight factor:

[0182] ;

[0183] ;

[0184] ;

[0185] Derivation process:

[0186] ;

[0187] ;

[0188] Calculate the total cost: 0.6×0.33+0.4×3.76=0.198+1.504=1.702.

[0189] result represents the minimum cost, so , which represents the minimum travel cost after optimization with given weights.

[0190] See also Figure 4 , the specific steps for obtaining the adjusted itinerary plan are:

[0191] S311: Based on the preliminary trip plan, the map service is used to calculate the optimal path and time between multiple locations in the trip, using the formula:

[0192] ;

[0193] Calculate travel paths and time estimates;

[0194] in, represents the travel path and time estimate, represents the path segment weight, , Represent two consecutive locations in the itinerary plan;

[0195] S312: Based on the travel path and time assessment, adjust the estimated travel time according to real-time traffic data, using the formula:

[0196] ;

[0197] Generate adjusted travel times;

[0198] in, represents the adjusted travel time, represents the real-time data adjustment factor, is a nonlinear adjustment. Indicates multiple journey times;

[0199] S313: Add buffer time based on the adjusted travel time using the formula:

[0200] ;

[0201] Create an adjusted itinerary plan;

[0202] in, Indicates the adjusted itinerary plan. is the buffer time coefficient, Time-based buffer adjustment.

[0203] Detailed explanation and example of the formula for step 1:

[0204] formula:

[0205] ;

[0206] Parameter explanation:

[0207] : represents the travel path and time evaluation;

[0208] :Indicates the The weight of the segment path is adjusted according to the terrain and road type;

[0209] : Indicates from the location arrive distance;

[0210] 1.5: The power of the path distance, used to amplify the effect of distance.

[0211] Calculation process and examples:

[0212] Assume there are three locations , the distances are and . Weight Factor According to the road type.

[0213] The first calculation: ;

[0214] The second calculation: ;

[0215] ;

[0216] Final Assessment is 41.49, which means that the total weighted journey time is 41.49 time units.

[0217] Detailed explanation and example of the formula for step 2:

[0218] formula:

[0219] ;

[0220] Parameter explanation:

[0221] : Adjusted travel time;

[0222] Real-time traffic data adjustment factors;

[0223] : No. The journey time is from step 1;

[0224] : Nonlinear adjustment to reflect the effect of traffic density.

[0225] Calculation process and examples:

[0226] Continue using the result from step 1 and real-time traffic data adjustment factors .

[0227] ;

[0228] ;

[0229] ;

[0230] Adjusted travel time It is 56.75, which represents the estimated total travel time after taking into account real-time traffic conditions.

[0231] Detailed explanation and example formula of step 3:

[0232] ;

[0233] Parameter explanation:

[0234] : Adjusted itinerary plan;

[0235] : adjusted travel time from step 2;

[0236] : Buffer time coefficient determined by delay statistics;

[0237] : Time-based buffer adjustment.

[0238] Calculation process and examples:

[0239] Continue using the result from step 2 and buffer time factor .

[0240] ;

[0241] ;

[0242] ;

[0243] Adjusted itinerary plan It is 57.91, which represents the total travel time after taking into account real-time traffic and potential delays.

[0244] See also Figure 5 , the specific steps for obtaining model weight adjustment information are:

[0245] S411: Based on the adjusted itinerary plan, display optional itinerary options to the user, using the formula:

[0246] ;

[0247] Calculate the set of itinerary options that the user may choose;

[0248] in, represents the set of itinerary options that the user may choose. is the initial weight of the scheme, is the distance between the solution and the first choice, is the maximum value of the distance, , Newly introduced environmental adaptability parameters and angle parameters;

[0249] S412: Collect the itinerary solutions and feedback information that the user may choose, using the formula:

[0250] ;

[0251] Determine the itinerary plan selected by the user;

[0252] in, Indicates the itinerary plan selected by the user. is the user satisfaction score, is the satisfaction conversion coefficient, Newly introduced conversion rate adjustment factor;

[0253] S413: According to the itinerary plan selected by the user, the formula is used:

[0254] ;

[0255] Generate model weight adjustment information, update preference analysis model, resource matching model and itinerary planning model;

[0256] in, Represents model weight adjustment information, is the frequency of scheme selection, is the feedback strength, , are the newly introduced adjustment coefficient and angle difference parameters.

[0257] Detailed explanation and derivation of the formula for step 1:

[0258] ;

[0259] Parameter explanation:

[0260] :plan The initial weight of

[0261] :plan distance to user preferences;

[0262] : In all plans The maximum value of is used to normalize the distance;

[0263] : Environmental adaptability parameters, which affect the addition or subtraction of environmental factors on selection;

[0264] :plan The angular difference relative to the user's preferred environment.

[0265] Calculation process:

[0266] Suppose there are three options For each scenario, set the following parameters:

[0267] ;

[0268] ,but ;

[0269] ;

[0270] .

[0271] First calculate the value of each solution:

[0272] Values ​​for scenario 1: ;

[0273] Values ​​for scenario 2: ;

[0274] Values ​​for scenario 3: ;

[0275] The minimum value is the value of solution 1 .

[0276] Results and significance:

[0277] This value Represents the itinerary option that the user is most likely to choose, where a smaller value indicates that the option is closer to the preferred option and has more favorable environmental factors.

[0278] Detailed explanation and derivation of the formula for step 2:

[0279] ;

[0280] Parameter explanation:

[0281] :Users’ opinions on the solution Ratings;

[0282] : Satisfaction conversion coefficient, which may be based on user feedback or historical data;

[0283] : Conversion rate adjustment factor, which controls the impact of satisfaction on the score.

[0284] Calculation process:

[0285] Assumptions It is the user's choice, and the parameters of each scheme are set as follows:

[0286] ;

[0287] ;

[0288] ;

[0289] Calculate the contribution of each solution:

[0290] Contributions of Solution 1: ;

[0291] Contributions of Solution 2: ;

[0292] Contributions of Solution 3: ;

[0293] The sum is 48.52+34.762+49.392=132.674, and the average Y= =44.225.

[0294] Results and significance:

[0295] This value Indicates the average user satisfaction with the selected solution. A value of indicates that the user's overall satisfaction with the current selection is high.

[0296] Detailed explanation and derivation of the formula for step 3:

[0297] ;

[0298] Parameter explanation:

[0299] :plan The selection frequency;

[0300] : User feedback intensity parameter;

[0301] : adjustment coefficient;

[0302] : Differences from the user preference perspective.

[0303] Calculation process:

[0304] Assume there are three user-selected options, and the parameters are set as follows:

[0305] ;

[0306] ;

[0307] ;

[0308] ;

[0309] Calculate model weight adjustment information:

[0310] Contributions of Solution 1: ;

[0311] Contributions of Solution 2: ;

[0312] Contributions of Solution 3: ;

[0313] sum .

[0314] Results and significance:

[0315] This value Represents the overall model weight adjustment information, the higher Values ​​of indicate that larger adjustments are applied to the model to accommodate changes in user preferences.

[0316] A trip planning system based on a large language model, the trip planning system based on a large language model is used to execute the trip planning method based on a large language model, the system comprises:

[0317] The preference parsing module receives the travel data input by the user through the interface, collects the user's travel preferences including attraction types, budget constraints, and travel time, generates preference parsing results, inputs the preference parsing results into the deep learning model, extracts the user's travel intentions, and generates travel intention texts;

[0318] The resource matching module queries the internal resource database based on the travel intention text, retrieves the tourism resources that match the user's preferences, including scenic spot information and hotel data, performs resource information extraction, and generates a resource details table with fields including location, visit time, and cost information;

[0319] The itinerary optimization module uses the map service to calculate the optimal travel path between multiple locations based on the resource details table, integrates geographic location and time information, creates a preliminary itinerary draft, adds buffer time to the itinerary with reference to real-time traffic data, and updates the itinerary plan;

[0320] The user feedback module displays the itinerary plan to the user and collects user feedback, including selection information or modification feedback, and adjusts the itinerary according to the user feedback to obtain the selected itinerary after user verification;

[0321] The model iteration module takes the selected itinerary as input, adjusts the weights of the preference analysis model, resource matching model, and itinerary planning model, updates the model through the data selected by the user, and generates optimized model parameters.

[0322] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A trip planning method based on a large language model, It is characterized in that The following steps are involved: Based on the travel preferences input by the user through the interface, keyword recognition and intent analysis are performed to obtain user preference information, and the user preference information is analyzed through a deep learning model to parse and obtain travel intention text; The steps for obtaining the travel intention text are specifically as follows: Users enter their travel preferences through the interface, and enhanced text parsing technology is used to identify keywords using the formula: Calculate the frequency of occurrence and the power of relevance of each keyword to generate a keyword set; in, Represents a set of keywords. Indicates the keyword entered by the user. Indicates keywords The weight adjustment coefficient of The keyword set is analyzed for intent using a natural language processing formula: Calculate and generate a set of intention weights; in, represents the set of intention weights, Indicates keywords The weight of Indicates keywords The semantic parsing function of Indicates keywords Document frequency; The intention weight set is input into the deep learning model and the nonlinear transformation formula is applied: Generate travel intention text; in, Indicates the travel intention text, represents the intention weight, represents the adjustment coefficient of the model; Based on the travel intention text, query the resource database, match the related tourism resources, extract the resource information of the related tourism resources including the access time and geographical location information, set the itinerary route and access time with reference to the availability and access cost of the resources, optimize the geographical location and time sequence, and establish a preliminary itinerary plan; The steps for obtaining the preliminary itinerary plan are specifically as follows: Based on the travel intention text, a resource database query is performed using the formula: Each Representation and Matched resources generate a set of associated tourism resources; in, Represents a set of related tourism resources. Represents a single tourism resource item; From the associated tourism resource set, the access time and geographical location information of the resource are extracted using the formula: Generate resource information set; in, Represents a resource information set. Indicates the access time. Indicates geographic location, , is the adjustment index; Referring to the availability and access cost of the resource information set, the travel route and access time are set, using the formula: Generate preliminary itinerary plan; in, Indicates the preliminary itinerary plan, , They are the weights of visit time and geographical location; Based on the preliminary trip plan, perform path and time calculations, use map services to calculate optimal paths and times between multiple locations in the trip, obtain travel path and time estimates, adjust the estimated travel time according to real-time traffic data, add buffer time, and establish an adjusted trip plan; The steps for obtaining the adjusted itinerary plan are specifically as follows: Based on the preliminary trip plan, the map service is used to calculate the optimal path and time between multiple locations in the trip, using the formula: Calculate travel paths and time estimates; in, represents the travel path and time estimation, represents the path segment weight, , Represent two consecutive locations in the itinerary plan; Based on the travel path and time assessment, the estimated travel time is adjusted according to real-time traffic data using the formula: Generate adjusted travel times; in, represents the adjusted travel time, represents the real-time data adjustment factor, is a nonlinear adjustment. Indicates multiple journey times; Based on the adjusted travel time, add the buffer time using the formula: Create an adjusted itinerary plan; in, Indicates the adjusted itinerary plan. is the buffer time coefficient, Time-based buffer adjustment; Based on the adjusted itinerary plan, display optional itinerary options to the user, collect user selection and feedback information, determine the itinerary option selected by the user, generate model weight adjustment information according to the user selection, and update the preference analysis model, resource matching model, and itinerary planning model; The steps for obtaining the model weight adjustment information are specifically as follows: Based on the adjusted itinerary plan, the optional itinerary options are presented to the user using the formula: Calculate the set of itinerary options that the user may choose; in, represents the set of itinerary options that the user may choose. is the initial weight of the scheme, is the distance between the solution and the first choice, is the maximum value of the distance, , Newly introduced environmental adaptability parameters and angle parameters; Collect the itinerary solutions and feedback information that the user may choose, using the formula: Determine the itinerary plan selected by the user; in, Indicates the itinerary plan selected by the user. is the user satisfaction score, is the satisfaction conversion coefficient, Newly introduced conversion rate adjustment factor; According to the itinerary plan selected by the user, the formula is adopted: Generate model weight adjustment information, update preference analysis model, resource matching model and itinerary planning model; in, Represents model weight adjustment information, is the frequency of scheme selection, is the feedback strength, , are the newly introduced adjustment coefficient and angle difference parameters.

2. A trip planning system based on a large language model, It is characterized in that According to the large language model-based itinerary planning method of claim 1, the system comprises: The preference parsing module receives travel data input by the user through the interface, collects the user's travel preferences including attraction types, budget constraints, and travel time, generates preference parsing results, inputs the preference parsing results into the deep learning model, extracts the user's travel intentions, and generates travel intention texts; The resource matching module queries the internal resource database based on the travel intention text, retrieves the tourism resources matching the user's preferences, including scenic spot information and hotel data, performs resource information extraction, and generates a resource details table, in which the fields include location, visit time, and cost information; The itinerary optimization module calculates the optimal travel path between multiple locations using a map service based on the resource details table, integrates geographic location and time information, creates a preliminary itinerary draft, adds buffer time to the itinerary with reference to real-time traffic data, and updates and generates a itinerary plan; The user feedback module displays the itinerary plan to the user, collects user feedback, including selection information or modification feedback, adjusts the itinerary according to the user feedback, and obtains the selected itinerary after user verification; The model iteration module takes the selected itinerary as input, adjusts the weights of the preference analysis model, the resource matching model and the itinerary planning model, updates the model through the data selected by the user, and generates optimized model parameters.