A multi-tourism itinerary planning method and intelligent system based on density ant colony algorithm
Through an intelligent system based on density ant colony algorithm, combined with a large language model, it solves the existing technology problems of difficult user operations and unsatisfied personalized needs, realizes fully automated travel planning, improves user experience and efficiency, and provides Users provide a variety of personalized travel plans.
Patent Information
- Application Number
- CN202410561773.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-08
AI Technical Summary
The existing technology cannot effectively reduce the difficulty of user operations and cannot efficiently understand user needs, resulting in travel planning solutions that do not meet user needs. Moreover, traditional methods cannot efficiently and automatically complete travel planning tasks, resulting in poor user experience.
A multi-tour itinerary planning method based on the density ant colony algorithm is used to receive user needs through the intelligent system, process and import the density ant colony optimization model, and combine it with the large language model to generate personalized travel planning solutions, reducing user operation complexity and improving efficiency and experience. .
It has realized a fully automated travel planning process, enhanced user experience and satisfaction, provided a variety of personalized travel planning solutions, improved the efficiency of travel planning and user satisfaction, and is suitable for different scenarios such as individual and group travel.
Smart Images

Figure CN118134221B
Abstract
Description
Technical Field
[0001] The invention relates to a multi-tourism itinerary planning method and an intelligent system based on a density ant colony algorithm, and belongs to the technical field of tourism planning. Background Art
[0002] In the field of tourism planning, reducing the difficulty of user operation, understanding user needs, and finding the most optimized routes and arrangements are crucial to improving tourists' satisfaction and overall experience quality. At present, methods based on computational intelligence have received attention in solving tourism planning, but they mainly focus on solving ideal problem models and lack a set of overall implementation systems. With the development of the tourism industry, the number of scenic spots is increasing, and the amount of information has increased significantly. Traditional methods cannot efficiently and automatically complete tourism planning tasks, and the user operation process is cumbersome and difficult to operate. In addition, users' personalized needs are also increasing. Existing technologies cannot well consider users' personalized needs, resulting in the generated tourism planning solutions not always meeting user needs. Therefore, it is impossible to efficiently solve tourism planning problems using existing technologies and provide users with a good user experience. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a multi-tourism itinerary planning method and intelligent system based on a density ant colony algorithm, so as to provide users with a complete set of fully automatic tourism planning processes, reduce the difficulty of user operation, understand user needs, and enhance user experience; at the same time, provide users with a variety of personalized tourism plans, which can not only improve the efficiency of tourism planning, but also enhance the user's personalized tourism experience and satisfaction.
[0004] To achieve the above object, the present invention is implemented by adopting the following technical solutions:
[0005] In a first aspect, the present invention provides a multi-tourism itinerary planning method based on a density ant colony algorithm, the method being executed by an intelligent system, comprising:
[0006] Receive and process input from user needs;
[0007] Extracting scenic spot information matching the received user demand from a database established based on user demand;
[0008] The extracted scenic spot information is imported into the density ant colony optimization model to obtain solutions corresponding to multiple heuristic information sources;
[0009] Multiple heuristic information sources and their corresponding solutions are sent to a large language model for enhanced generation of travel itinerary planning solutions, and the generated multiple travel itinerary planning solutions are transmitted to users.
[0010] Furthermore, the receiving and processing of input user requirements includes:
[0011] Receive user needs and send them to the large language model;
[0012] The large language model converts user needs into standard data (JSON) based on predefined user preference types. For example, the user's need is "I want to travel to City A and visit scenic spots with high ratings." The large language model returns JSON data: {travel city: City A, user preference: {interest tag: scenic spots}}.
[0013] Furthermore, the predefined user preference types are defined according to common user preferences, including but not limited to distance, scenic spot rating, interest tags, etc.; interest tags are further divided into humanities, science and technology, scenic spots, historical sites, etc. User preference types will be used to establish a database and as an optional item for heuristic information sources.
[0014] Furthermore, the method for constructing a database based on user needs includes:
[0015] Based on predefined user preference types, collect scenic spot information data; the scenic spot information includes but is not limited to scenic spot location, scenic spot rating and scenic spot interest tags;
[0016] Quantify the collected scenic spot information; specifically, the quantification may include: the quantification of the scenic spot location is to obtain the coordinate value of the scenic spot; the quantification of the interest tag is to set different tags according to the characteristics of the scenic spot, and assign values to the interest tags according to the needs of tourists; the quantification of the scenic spot score is to use the average value of the percentage score data of tourists who have visited the scenic spot;
[0017] The quantified scenic spot information is stored as a database.
[0018] Furthermore, the extracting of scenic spot information matching the user's needs is to obtain quantified scenic spot information matching the user's needs from a database according to the user's needs.
[0019] Furthermore, the extracted scenic spot information is introduced into the density ant colony optimization model to obtain solutions corresponding to multiple heuristic information sources, including:
[0020] Initialize the parameters of scenic spot coding and density ant colony optimization model;
[0021] Cluster the ant colony according to user needs;
[0022] The solution is based on density ant colony algorithm.
[0023] Furthermore, the parameters of the initialization scenic spot coding and density ant colony optimization model include:
[0024] For all attractions, each attraction is assigned a unique code 1,2,3...n, where n is the number of attractions;
[0025] Initialize the number of ant colonies N, and randomly generate N ants at n scenic spots;
[0026] Initialize the key parameters, pheromones and heuristic information of the ant colony algorithm;
[0027] The key parameters of the density ant colony optimization model include the evaporation rate ρ of pheromone, the relative importance α of pheromone and the relative importance β of heuristic factor;
[0028] Initializing pheromone is to initialize the initialization pheromone concentration on all edges, where the edge is the path between two scenic spots;
[0029] Initializing the heuristic information is an optional option to use the user's preference type as the source of heuristic information.
[0030] Furthermore, clustering the ant colony according to user needs includes:
[0031] Categorize based on user preferences;
[0032] Ants of the same or similar categories are marked as the same cluster, and the source of heuristic information is labeled for the cluster.
[0033] Furthermore, the solution based on density ant colony algorithm includes:
[0034] Combine the attraction information and heuristic information to calculate the probability of attractions and the density of attractions;
[0035] Roulette wheel selection is performed by selecting low-density attractions, which encourages clusters to explore low-density areas;
[0036] During the exploration process, pheromones are updated until the preset termination condition is reached, and the optimal solution for each cluster corresponding to multiple heuristic information sources is obtained.
[0037] Furthermore, the probability of the scenic spot is calculated by the following formula:
[0038] ;
[0039] Where P ij represents the probability of the ant moving to another attraction j in the next step when it is at attraction i; i and j are two arbitrary and different attraction codes, τ ij represents the pheromone concentration between scenic spot i and scenic spot j; τ ik represents the pheromone concentration between scenic spot i and scenic spot k; η ij is the heuristic information of edge ij; η ikis the heuristic information of edge ik; α is the relative importance of pheromone, β is the relative importance of heuristic factor; k∈allowed represents the set of all attractions k that all ants can transfer to when they are in attraction i;
[0040] For a cluster, the density expression of the scenic spot is:
[0041] ;
[0042] ;
[0043] Where: x is the coordinate of the scenic spot, ρ(x) is the density of the scenic spot, x i (i=1,2,...n) are the coordinates of all ants in the cluster, K(xx i ) is the Gaussian kernel function, h is the threshold of the distance from the scenic spot to the ant, and the density is considered to be 0 when the distance is greater than h, that is, low density.
[0044] Furthermore, the pheromone update includes local pheromone update and global pheromone update.
[0045] The local pheromone update includes: whenever an ant walks through an edge, the pheromone concentration of the edge is volatilized to reduce the preference for the frequently selected path;
[0046] The global pheromone update includes: after all ants complete their explored paths, recording the current optimal solution of each cluster, and globally updating the pheromone according to the pheromone concentration on these paths and the total amount of information left by the ants, increasing the pheromone on the good paths and reducing the pheromone on the bad paths;
[0047] Repeat the above process multiple times until the predetermined termination condition is reached, and record the optimal solution of each cluster corresponding to multiple heuristic information sources;
[0048] The expression of the pheromone update is:
[0049] ;
[0050] Where t represents time, τ ij (t+1) and τ ij (t) represents the pheromone concentration on edge ij at time t+1 and t, respectively, ρ is the pheromone volatility; △τ ij is the amount of pheromone left by the ant on edge ij.
[0051] Furthermore, the sending of multiple heuristic information sources and their corresponding solutions to the large language model for enhanced generation of travel itinerary planning solutions, and transmitting the generated multiple travel itinerary planning solutions to the user, includes:
[0052] The solution of each cluster obtained by the density ant colony optimization model and its corresponding heuristic source (i.e., user preference combination) are sent to the large language model; each user preference combination corresponds to a travel plan that satisfies the user's preference;
[0053] The solution is in the form of coded arrangement, and the large language model combines the scenic spot information, solution and user preference to enhance the generated travel itinerary planning plan;
[0054] The intelligent system transmits the generated multiple travel itinerary planning plans to the user.
[0055] The present invention also provides a multi-tourism itinerary planning intelligent system based on density ant colony algorithm, which is used to implement the method described in the first aspect, and the intelligent system includes:
[0056] A data receiving module is used to receive and process input user requirements;
[0057] The scenic spot information acquisition module is used to extract scenic spot information matching the user's needs from a database established based on the user's preference type;
[0058] A solution module, used to import scenic spot information into the density ant colony optimization model to obtain solutions corresponding to different heuristic information sources;
[0059] The plan generation module is used to send multiple heuristic information sources and their corresponding solutions to the large language model to enhance the generation of travel itinerary planning plans, and transmit the generated multiple travel itinerary planning plans to users.
[0060] Compared with the prior art, the present invention has the following beneficial effects:
[0061] The multi-tourism itinerary planning method based on the density ant colony algorithm described in the present invention utilizes an intelligent system and, through the processing of a large language model, can better understand user needs, automatically call an optimization model for solving, and optimize the tourism planning scheme, automating the overall process, reducing the complexity and difficulty of user operations, making the user applicable to a wider group of people, and improving user experience and satisfaction;
[0062] The density ant colony optimization model of the present invention realizes the division of different populations by introducing a clustering strategy, thereby broadening the exploration scope of the understanding space; at the same time, with the help of the density control mechanism, it effectively avoids repeated exploration between populations, improves the ability of the algorithm to find the optimal solution in the global and local scope, and provides customers with more diversified solutions; the synergy of the clustering method and density control significantly improves the efficiency of the ant colony algorithm in searching for the optimal solution, and can quickly generate a variety of personalized tourism planning schemes, bringing users a richer and higher-quality tourism experience;
[0063] The method of the present invention is not only applicable to personal travel planning, but can also be flexibly applied to different types of travel planning such as group travel and corporate travel, as well as diversified travel planning scenarios, and can even be extended to other fields such as logistics and urban planning, showing its strong versatility and adaptability.
[0064] In the multi-tourism itinerary planning intelligent system based on the density ant colony algorithm of the present invention, users only need to input their own needs, and the intelligent system can fully automatically identify the user's needs and complete the task, providing the user with a complete travel planning solution, which greatly reduces the difficulty of user operation and is applicable to a wider group of people;
[0065] In summary, the method of the present invention not only has wide applicability and is applicable to a wide range of people, but also brings unprecedented convenience and efficiency to the field of tourism planning. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 It is a flowchart of a multi-tourism itinerary planning method based on a density ant colony algorithm provided in Example 1 of the present invention.
[0067] Figure 2 It is a schematic diagram of the data processing flow of the intelligent system described in Example 1 of the present invention from accepting user needs to returning a travel planning solution. DETAILED DESCRIPTION
[0068] The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical solution of the present application, rather than limitations on the technical solution of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.
[0069] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0070] Example 1
[0071] Figure 1 This is a flow chart of a multi-tourism itinerary planning method based on a density ant colony algorithm provided in this embodiment. This flow chart only shows the logical sequence of the method described in this embodiment. In other possible embodiments of the present invention, different methods may be used without conflict. Figure 1 The steps shown or described are accomplished in the order shown.
[0072] The multi-tourism itinerary planning method based on density ant colony algorithm provided in this embodiment can be applied to a terminal and can be executed by an intelligent system device for tourism planning. The device can be implemented by software and / or hardware. The device can be integrated in a terminal, for example: any smart phone, tablet computer or computer device with communication function.
[0073] See also Figure 1 The multi-tourism itinerary planning method based on the density ant colony algorithm provided in this embodiment is executed by an intelligent system and specifically includes the following steps:
[0074] Step 1. Define user preference types and create a database
[0075] Types are defined based on common user preferences, including but not limited to distance, attraction ratings, interest tags, etc. Interest tags are further divided into humanities, technology, scenic spots, historical sites, etc. User preference types will be used to establish the database and as an optional item for heuristic information sources.
[0076] Create a database:
[0077] First, based on the predefined user preference types, the attraction information data of each city is collected. The attraction information includes but is not limited to the attraction location, attraction rating, and interest tags of the attraction.
[0078] Then, the collected scenic spot information is quantified: the quantification of the scenic spot location is to use the coordinate value of the scenic spot; the quantification of the interest tag is to set different tags according to the characteristics of the scenic spot, and assign values to the interest tags according to the needs of tourists; the quantification of the scenic spot rating is to use the average of the percentage rating data of tourists who have visited the scenic spot. The quantification of the interest tag is to set different tags according to the characteristics of the scenic spot, and assign values to the interest tags according to the needs of tourists; for example, if there is this tag, it is assigned a value of 100%, and if there is no this tag, it is assigned a lower value, such as 10%. 100% and 10% are custom parameters that can be modified. The purpose is to calculate the correlation between the interest tag of the scenic spot and the interest tag selected by the user;
[0079] The intelligent system uses quantified scenic spot information to build a database in advance.
[0080] Step 2. The intelligent system accepts and processes user needs
[0081] like Figure 2As shown, the intelligent system accepts user needs and passes them to the large language model. The large language model understands the user needs and converts the tourist cities and user preferences into a standard data format (JSON) based on the defined user preference type, and returns it to the processing core of the intelligent system. For example, the user's needs are "I want to travel to City A and visit the scenic spots with high ratings." The large language model returns JSON data: {Tourist city: City A, user preference: {Interest tag: scenic spots}}.
[0082] Step 3. The intelligent system extracts tourist city attraction information from the database
[0083] Based on the tourist cities returned by the large language model, the intelligent system obtains the quantified attraction information of the city from the database.
[0084] Step 4. The intelligent system imports the scenic spot information into the density ant colony optimization model to obtain solutions corresponding to multiple heuristic information sources.
[0085] Step 4.1 Initialize the parameters of the scenic spot encoding and density ant colony optimization model
[0086] For all attractions, each attraction is assigned a unique code 1,2,3...n, where n is the number of attractions;
[0087] Initialize the number of ant colonies N, and randomly generate N ants at n scenic spots;
[0088] Initialize the key parameters, pheromones and heuristic information of the density ant colony optimization model;
[0089] The key parameters of the density ant colony optimization model include the evaporation rate ρ of pheromone, the relative importance α of pheromone and the relative importance β of heuristic factor;
[0090] Initializing pheromone is to initialize the initialization pheromone concentration on all edges, where the edge is the path between two scenic spots;
[0091] Initializing the heuristic information is an optional option to use the user's preference type as the source of heuristic information.
[0092] Step 4.2: Cluster the ant colony according to user needs;
[0093] Categorize based on user preferences;
[0094] Ants of the same or similar categories are marked as the same cluster, and the source of heuristic information is labeled for the cluster.
[0095] Step 4.3: Solve based on density ant colony algorithm.
[0096] Combine the attraction information and heuristic information to calculate the probability of attractions and the density of attractions;
[0097] Roulette wheel selection is performed by selecting low-density attractions, which encourages clusters to explore low-density areas;
[0098] During the exploration process, pheromones are updated until the preset termination condition is reached, and the optimal solution for each cluster corresponding to multiple heuristic information sources is obtained.
[0099] Among them, the probability expression of ants moving from scenic spot i to scenic spot j is:
[0100] ;
[0101] Where P ij represents the probability of the ant moving to another attraction j in the next step when it is at attraction i; i and j are two arbitrary and different attraction codes, τ ij represents the pheromone concentration between scenic spot i and scenic spot j; τ ik represents the pheromone concentration between scenic spot i and scenic spot k; η ij is the heuristic information of edge ij; η ik is the heuristic information of edge ik; α is the relative importance of pheromone, β is the relative importance of heuristic factor; k∈allowed represents the set of all attractions k that all ants can transfer to when they are in attraction i.
[0102] In the ant colony algorithm, when an ant is at scenic spot i, the probability of moving to scenic spot j in the next step is positively correlated with the pheromone concentration and heuristic information of edge ij, and the degree of correlation is determined by two parameters α and β; P ij The larger it is, the more likely the ant will choose this path.
[0103] For a cluster, the density expression of the scenic spot is:
[0104] ;
[0105] ;
[0106] Where: x is the coordinate of the scenic spot, ρ(x) is the density of the scenic spot, x i (i=1,2,...n) are the coordinates of all ants in the cluster, K(xx i ) is the Gaussian kernel function, h is the threshold of the distance from the scenic spot to the ant, and the density is considered to be 0 when the distance is greater than h, that is, low density;
[0107] After calculating the probability of reaching each attraction from attraction i and the density of the attraction, select the low-density attractions for roulette selection.
[0108] The pheromone update expression is defined as:
[0109] ;
[0110] Where t represents time, τ ij (t+1) and τ ij (t) represents the pheromone concentration on edge ij at time t+1 and t, respectively, ρ is the pheromone volatility; △τ ij is the amount of pheromone left by the ant on edge ij.
[0111] Every time an ant walks across an edge, the pheromone concentration of this edge is volatilized to reduce the preference for frequently chosen paths;
[0112] After all ants have completed their explored paths, the current optimal solution of each cluster is recorded, and the pheromone is globally updated based on the pheromone concentration on these paths and the total amount of information left by the ants, increasing the pheromone on good paths and reducing the pheromone on bad paths;
[0113] The above process is repeated several times, and the optimal solution of each cluster is recorded after the predetermined termination condition is reached or the quality of the solution no longer changes significantly.
[0114] The density ant colony optimization model will obtain the solution and heuristic information sources for each cluster.
[0115] Step 5. The intelligent system generates multiple travel itinerary plans and transmits them to the user
[0116] The solution of each cluster obtained by the density ant colony optimization model and the corresponding heuristic information source, namely the user preference combination, are transmitted back to the processing core of the intelligent system, and each group corresponds to a travel plan that meets the user's preferences.
[0117] The solution exists in the form of coded arrangement. The processing core of the intelligent system sends instructions to the large language model. The large language model combines the solution with its corresponding scenic spot information and user preferences to generate a travel planning plan, which is then sent back to the processing core of the intelligent system. Finally, the processing core of the intelligent system returns it to the user, such as Figure 2 shown.
[0118] After understanding the needs of users, this embodiment can provide users with various travel itinerary plans based on the collected scenic spot information. Compared with the traditional ant colony algorithm, the efficiency of the present invention is greatly improved, and more diverse solutions can be provided for users to choose from.
[0119] Example 2
[0120] This embodiment also provides a multi-tourism itinerary planning intelligent system based on a density ant colony algorithm, which is used to implement the method described in Embodiment 1. The intelligent system includes:
[0121] A data receiving module is used to receive and process input user requirements;
[0122] The scenic spot information acquisition module is used to extract scenic spot information matching the user's needs from a database established based on the user's preference type;
[0123] A solution module, used to import scenic spot information into the density ant colony optimization model to obtain solutions corresponding to multiple heuristic information sources;
[0124] The plan generation module is used to send multiple heuristic information sources and their corresponding solutions to the large language model to enhance the generation of travel itinerary planning plans, and transmit the generated multiple travel itinerary planning plans to users.
[0125] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0126] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0129] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A multi-tourism itinerary planning method based on density ant colony algorithm, characterized in that: The method is performed by an intelligent system and includes: Receive and process input from user needs; Extracting scenic spot information matching the received user demand from a database established based on user demand; The extracted scenic spot information is imported into the density ant colony optimization model to obtain solutions corresponding to multiple heuristic information sources; Sending multiple heuristic information sources and their corresponding solutions to a large language model for enhancing the generation of travel itinerary planning solutions, and transmitting the generated multiple travel itinerary planning solutions to a user; The method for constructing a database based on user needs includes: Collecting scenic spot information data based on predefined user preference types; Quantify the collected scenic spot information; Store the quantified scenic spot information as a database; The method of importing the extracted scenic spot information into the density ant colony optimization model to obtain solutions corresponding to multiple heuristic information sources includes: Initialize the parameters of scenic spot coding and density ant colony optimization model; Cluster the ant colony according to user needs; Solve based on density ant colony algorithm; The solution based on density ant colony algorithm includes: Combine the attraction information and heuristic information to calculate the probability of attractions and the density of attractions; Roulette wheel selection is performed by selecting low-density attractions, which encourages clusters to explore low-density areas; During the exploration process, pheromones are updated until the preset termination condition is reached, and the optimal solution for each cluster corresponding to multiple heuristic information sources is obtained; The probability of the attractions is calculated by the following formula: ; In the formula, P ij Indicates when the ant is at a scenic spot i When the next step is to move to another attraction j probability; i,j Encode two arbitrary and different scenic spots, τ ij Indicate attractions i To the attractions j pheromone concentration between; τ ik Indicate attractions i To the attractions k pheromone concentration between; η ij It is the edge ij Heuristic information; η ik It is the edge ik Heuristic information; α is the relative importance of pheromones, β is the relative importance of the heuristic factor; k∈allowed Indicates that for all ants in the scenic spot i All attractions that can be transferred to k A collection of; For a cluster, the density expression of the scenic spot is: ; ; in: x is the coordinates of the attraction, ρ ( x ) is the density of the scenic spot, x i ( i =1,2,... n ) are the coordinates of all ants in the cluster, K ( xx i ) is the Gaussian kernel function, h is the threshold of the distance from the scenic spot to the ant, and the distance is greater than h The density is considered to be 0, that is, low density; The sending of multiple heuristic information sources and their corresponding solutions to the large language model for enhanced generation of travel itinerary planning schemes, and transmitting the generated multiple travel itinerary planning schemes to the user, comprises: Send the optimal solution of each cluster obtained by the density ant colony optimization model and its corresponding heuristic source to the large language model; The large language model combines scenic spot information, solutions and user preferences to enhance the generated travel itinerary planning plan; The generated multiple travel itinerary planning schemes are transmitted to the user.
2. The multi-tourism itinerary planning method based on density ant colony algorithm according to claim 1 is characterized in that: The receiving and processing of input user requirements includes: Receive user needs and send them to the large language model; The large language model converts user requirements into normative data based on predefined user preference types.
3. The multi-tourism itinerary planning method based on density ant colony algorithm according to claim 1 is characterized in that: The parameters of the initialization scenic spot coding and density ant colony optimization model include: For all attractions, each attraction is assigned a unique code 1,2,3...n, where n is the number of attractions; Initialize the number of ant colonies N, and randomly generate N ants at n scenic spots; Initialize the key parameters, pheromones and heuristic information of the density ant colony optimization model; The key parameters of the density ant colony optimization model include the evaporation rate ρ of pheromone, the relative importance α of pheromone and the relative importance β of heuristic factor; Initializing pheromone is to initialize the initialization pheromone concentration on all edges, where the edge is the path between two scenic spots; Initializing the heuristic information is an optional option to use the user's preference type as the source of heuristic information.
4. The multi-tourism itinerary planning method based on density ant colony algorithm according to claim 1 is characterized in that: The pheromone update includes local pheromone update and global pheromone update. The local pheromone update includes: whenever an ant walks through an edge, the pheromone concentration of the edge is volatilized to reduce the preference for the frequently selected path; The global pheromone update includes: after all ants complete their explored paths, recording the current optimal solution of each cluster, and globally updating the pheromone according to the pheromone concentration on these paths and the total amount of information left by the ants, increasing the pheromone on the good paths and reducing the pheromone on the bad paths; Repeat the above process several times until the predetermined termination condition is reached, and record the optimal solution of each cluster corresponding to different heuristic information sources; The expression of the pheromone update is: ; in, t Indicates time, τ ij ( t+ 1) and τ ij ( t ) represent time t+ 1 and t Time Edge ij The pheromone concentration on ρ is the pheromone volatilization rate; τ ij It's the ants on the side ij The amount of pheromones left on the body.
5. An intelligent system for multi-tourism itinerary planning based on density ant colony algorithm, characterized in that: The intelligent system comprises: A data receiving module is used to receive and process input user requirements; The scenic spot information acquisition module is used to extract scenic spot information matching the user's needs from a database established based on the user's preference type; A solution module, used to import scenic spot information into the density ant colony optimization model to obtain solutions corresponding to multiple heuristic information sources; A plan generation module, used for sending multiple heuristic information sources and their corresponding solutions to the large language model, for enhancing the generation of travel itinerary planning plans, and transmitting the generated multiple travel itinerary planning plans to the user; The methods for building a database based on user needs include: Collecting scenic spot information data based on predefined user preference types; Quantify the collected scenic spot information; Store the quantified scenic spot information as a database; The extracted scenic spot information is imported into the density ant colony optimization model to obtain solutions corresponding to multiple heuristic information sources, including: Initialize the parameters of scenic spot coding and density ant colony optimization model; Cluster the ant colony according to user needs; Solve based on density ant colony algorithm; The solution based on density ant colony algorithm includes: Combine the attraction information and heuristic information to calculate the probability of attractions and the density of attractions; Roulette wheel selection is performed by selecting low-density attractions, which encourages clusters to explore low-density areas; During the exploration process, pheromones are updated until the preset termination condition is reached, and the optimal solution for each cluster corresponding to multiple heuristic information sources is obtained; The probability of the attractions is calculated by the following formula: ; In the formula, P ij Indicates when the ant is at a scenic spot i When the next step is to move to another attraction j probability; i,j Encode two arbitrary and different scenic spots, τ ij Indicate attractions i To the attractions j pheromone concentration between; τ ik Indicate attractions i To the attractions k pheromone concentration between; η ij It is the edge ij Heuristic information; η ik It is the edge ik Heuristic information; α is the relative importance of pheromones, β is the relative importance of the heuristic factor; k∈allowed Indicates that for all ants in the scenic spot i All attractions that can be transferred to k A collection of; For a cluster, the density expression of the scenic spot is: ; ; in: x is the coordinates of the attraction, ρ ( x ) is the density of the scenic spot, x i ( i =1,2,... n ) are the coordinates of all ants in the cluster, K ( xx i ) is the Gaussian kernel function, h is the threshold of the distance from the scenic spot to the ant, and the distance is greater than h The density is considered to be 0, that is, low density; The sending of multiple heuristic information sources and their corresponding solutions to the large language model for enhanced generation of travel itinerary planning schemes, and transmitting the generated multiple travel itinerary planning schemes to the user, comprises: Send the optimal solution of each cluster obtained by the density ant colony optimization model and its corresponding heuristic source to the large language model; The large language model combines scenic spot information, solutions and user preferences to enhance the generated travel itinerary planning plan; The generated multiple travel itinerary planning schemes are transmitted to the user.
Citation Information
Patent Citations
Improved ant colony algorithm-based city tour route planning method
CN106779212A
Path planning method and device and automatic inspection equipment
CN116858247A
