Tourism route recommendation method and device, electronic equipment and storage medium
By real-time monitoring and replacing target recommended attractions to adjust tourism routes, the problem that tourism route planning in the existing technology cannot be adjusted in time in case of emergencies has been solved, and the user experience has been improved.
Patent Information
- Application Number
- CN202510411752.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-02
- Publication Date
- 2025-07-18
AI Technical Summary
The existing tourism route planning methods cannot be adjusted in time when encountering emergencies, resulting in poor tourists' experience, especially the self-search and self-contained planning and the travel company's customized route backup plan is not flexible enough.
Based on the user's scenic spot needs analysis, the overall route is formulated and split into multiple sub-routes, and abnormal factors are monitored in real time, and the route is adjusted by replacing the target recommended attractions to ensure the user experience.
In the event of an emergency, the travel route can be adjusted in time to improve the user experience and ensure the flexibility and satisfaction of the overall itinerary.
Smart Images

Figure CN120336384A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of scenic spot recommendations, and more specifically, to a method, device, electronic device, and storage medium for recommending travel routes. Background Art
[0002] Currently, the tourism industry has become one of the important industries. Tourism is an emotional consumption, and traveling away from one's place of residence has increasingly become an important purpose for people to soothe their minds and regain strength. New-era tourism has become a way of learning, growing, and living for people, and is one of the important channels for promoting cultural protection, inheritance, and dissemination.
[0003] The main ways for tourists to plan routes are to search by themselves or to customize through a travel company. The way of self-search and planning is relatively casual and cannot be adjusted in time in case of emergencies. The way of customization by a travel company only makes an overall plan for tourists. In case of emergencies, a backup route is generally adopted. However, the backup route here is generally selected only in the nearby area without considering other factors, which brings a bad experience to tourists. Summary of the Invention
[0004] In view of this, the purpose of the present application is to provide a method, device, electronic device, and storage medium for recommending travel routes to overcome the problems in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a method for recommending a travel route, the method including:
[0006] Based on an analysis of the user's scenic spot requirements, a overall route is formulated for the user under the user's time requirements, and the overall route is split into sub-routes within multiple target time periods, where the sub-routes include target scenic spots;
[0007] During the process of the user playing according to the overall route, abnormal factors affecting the play of the target scenic spots are obtained in real time, and based on the target abnormal scores calculated according to each of the abnormal factors, the abnormal states of the target scenic spots are judged;
[0008] If there are abnormal scenic spots that cannot be played, according to the time sequence of the abnormal sub-routes where each of the abnormal scenic spots is located, target recommended scenic spots are respectively matched and replaced for each of the abnormal scenic spots in the abnormal sub-routes from the candidate scenic spots, so as to form a first sub-route; where the candidate scenic spots include the unplayed scenic spots in the overall route and the scenic spots not included in the overall route;
[0009] If replacing the abnormal scenic spot with the target recommended scenic spot affects other sub-routes, adjust the other sub-routes to obtain the adjusted second sub-routes; so that the user can play based on the target route composed of the first sub-route and the second sub-route.
[0010] In some technical solutions of the present application, based on the analysis of the user's scenic spot requirements, under the user's time requirements, an overall route is formulated for the user, and the overall route is split into sub-routes within multiple target time periods, and the sub-routes include target scenic spots, including:
[0011] Analyze the user's scenic spot requirements, and screen out the primary selected scenic spots that meet the scenic spot requirements from all scenic spots;
[0012] According to the travel time between the primary selected scenic spots and the play time of each primary selected scenic spot, perform path planning on the primary selected scenic spots to obtain multiple candidate routes;
[0013] According to the user's time requirements, match and combine the candidate routes to obtain multiple sub-routes, and arrange the multiple sub-routes in chronological order to obtain the overall route.
[0014] In some technical solutions of the present application, during the process of the user playing according to the overall route, the abnormal factors affecting the play of the target scenic spot are obtained in real time, and the abnormal state of the target scenic spot is judged according to the target abnormal score calculated based on each abnormal factor, including:
[0015] During the process of the user playing according to the overall route, the subjective factors of the user, the scenic spot factors of the target scenic spot, and the environmental factors for going to the target scenic spot are obtained in real time;
[0016] Calculate the corresponding single abnormal scores for the subjective factors, the environmental factors, and the scenic spot factors respectively;
[0017] If any of the single abnormal scores exceeds the corresponding single abnormal threshold, determine the target scenic spot as the abnormal scenic spot;
[0018] If none of the single abnormal scores exceeds the corresponding single abnormal threshold, calculate a target abnormal score according to the subjective factors, the environmental factors, and the scenic spot factors, and determine the state of the target scenic spot according to the target abnormal score and the corresponding target abnormal threshold.
[0019] In some technical solutions of the present application, calculating a target abnormal score according to the subjective factors, the environmental factors, and the scenic spot factors includes:
[0020] Calculate an initial anomaly score based on the subjective factors and corresponding first weights, the environmental factors and corresponding second weights, and the scenic spot factors and corresponding third weights;
[0021] Calculate an adjustment coefficient based on the maximum or minimum target weight among the first weight, the second weight, and the third weight;
[0022] Adjust the initial anomaly score based on the adjustment coefficient to obtain the adjusted target anomaly score.
[0023] In some technical solutions of the present application, the target recommended scenic spots respectively matched and replaced for the abnormal scenic spots in each of the abnormal sub-routes from the candidate scenic spots include:
[0024] Determine the association rules between historical scenic spots in the historical route by statistically analyzing the historical route of the user;
[0025] Based on the association rules and the normal scenic spots in the abnormal sub-route, determine the first candidate scenic spots from the candidate scenic spots;
[0026] Determine the second candidate scenic spots according to the distances between the abnormal scenic spots and each of the candidate scenic spots;
[0027] Fuse the first candidate scenic spots and the second candidate scenic spots to obtain the target recommended scenic spots.
[0028] In some technical solutions of the present application, the above method determines whether replacing the abnormal scenic spot with the target recommended scenic spot affects other sub-routes in the following manner:
[0029] If the target recommended scenic spot is matched from a scenic spot not included in the overall route, calculate the first time interval between the last scenic spot in the abnormal sub-route and the first scenic spot in the subsequent adjacent sub-route;
[0030] Calculate the second time interval between the last scenic spot in the adjusted first sub-route of the abnormal sub-route and the first scenic spot in the subsequent adjacent sub-route;
[0031] Determine whether replacing the abnormal scenic spot with the target recommended scenic spot affects the subsequent adjacent sub-routes by comparing the first time interval and the second time interval;
[0032] If the target recommended scenic spot is matched from an unvisited scenic spot in the overall route, then replacing the abnormal scenic spot with the target recommended scenic spot affects the original sub-route of the target recommended scenic spot.
[0033] In some technical solutions of the present application, when the above-mentioned original sub-route no longer includes the target scenic spot, the method further includes:
[0034] Statistically analyze the scenic spot features of the scenic spots included in all the sub-routes before the original sub-route to obtain a statistical analysis result; wherein, the statistical analysis result includes multiple feature dimensions;
[0035] For the purpose of making up for the defective dimensions in the statistical analysis result, screen out extended scenic spots from the scenic spots not included in the target route to form an extended route of the target route.
[0036] In a second aspect, an embodiment of the present application provides a device for recommending a travel route, and the device includes:
[0037] A customization module, configured to analyze the scenic spot requirements of a user, and under the time requirements of the user, formulate an overall route for the user, and split the overall route into sub-routes within multiple target time periods, and the sub-routes include target scenic spots;
[0038] A judgment module, configured to, during the process of the user playing according to the overall route, obtain abnormal factors affecting the play of the target scenic spot in real time, and judge the abnormal state of the target scenic spot according to the target abnormal scores calculated based on the respective abnormal factors;
[0039] A replacement module, configured to, if there are abnormal scenic spots that cannot be played, match target recommended scenic spots for the abnormal scenic spots of each abnormal sub-route from the candidate scenic spots in the time sequence of the abnormal sub-route where each abnormal scenic spot is located to form a first sub-route; wherein, the candidate scenic spots include the unplayed scenic spots in the overall route and the scenic spots not included in the overall route;
[0040] An adjustment module, configured to, if the replacement of the abnormal scenic spot by the target recommended scenic spot affects other sub-routes, adjust the other sub-routes to obtain an adjusted second sub-route; so that the user plays based on the target route formed by the first sub-route and the second sub-route.
[0041] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the steps of the above-mentioned method for recommending a travel route are implemented.
[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the above-mentioned method for recommending a travel route are executed.
[0043] The technical solutions provided by the embodiments of the present application may include the following beneficial effects:
[0044] The method of the present application includes analyzing the scenic spot requirements of a user, formulating an overall route for the user under the time requirements of the user, and splitting the overall route into sub-routes within multiple target time periods, where the sub-routes include target scenic spots; during the process of the user playing according to the overall route, obtaining abnormal factors affecting the play of the target scenic spots in real time, and judging the abnormal state of the target scenic spots according to the target abnormal scores calculated from each of the abnormal factors; if there are abnormal scenic spots that cannot be played, respectively matching replacement target recommended scenic spots for the abnormal scenic spots of each abnormal sub-route from the candidate scenic spots in the order of the time of the abnormal sub-routes where each abnormal scenic spot is located, so as to form a first sub-route; where the candidate scenic spots include the unplayed scenic spots in the overall route and the scenic spots not included in the overall route; if the replacement of the abnormal scenic spot by the target recommended scenic spot affects other sub-routes, adjusting the other sub-routes to obtain an adjusted second sub-route; so that the user plays based on the target route formed by the first sub-route and the second sub-route.
[0045] The present application refines the overall route of the user, and can timely adjust the affected sub-routes in case of emergencies, ensuring the user's travel experience.
[0046] To make the above objects, features, and advantages of the present application more obvious and understandable, the following specific preferred embodiments are given, and in conjunction with the accompanying drawings, the detailed description is as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and thus should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0048] Figure 1 Shows a schematic flow chart of a method for recommending a travel route provided by an embodiment of the present application;
[0049] Figure 2 Shows a schematic diagram of a device for recommending a travel route provided by an embodiment of the present application;
[0050] Figure 3 Shows a schematic structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0051] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the following will clearly and completely describe the technical solutions in the embodiments of this application in conjunction with the accompanying drawings in the embodiments of this application. It should be understood that the accompanying drawings in this application are only for the purpose of illustration and description, and are not used to limit the protection scope of this application. Additionally, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of this application. It should be understood that the operations in the flowchart may not be implemented in sequence, and steps without a logical context relationship may be reversed or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of this application.
[0052] In addition, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. The components of the embodiments of this application usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of this application to be protected, but only represents the selected embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative efforts belong to the protection scope of this application.
[0053] It should be noted that the term "including" will be used in the embodiments of this application to indicate the existence of the features stated thereafter, but does not exclude adding other features.
[0054] Currently, the tourism industry has already become one of the important industries. Tourism is a form of emotional consumption, and tourism away from the place of residence has increasingly become an important purpose for people to soothe their minds and regain strength. Tourism in the new era has become a way of learning, growing, and living for people, and is one of the important channels for promoting cultural protection, inheritance, and dissemination.
[0055] The main ways for tourists to plan routes are to search by themselves or to have them customized by a tourism company. The way of self-search planning is relatively casual and cannot be adjusted in a timely manner when unexpected events occur. The way of having them customized by a tourism company only plans for the overall situation of tourists. When unexpected events occur, a backup route is generally adopted. However, the backup route here is generally only selected in the nearby area without considering other factors, bringing a bad experience to tourists.
[0056] Based on this, the embodiments of this application provide a method, device, electronic device, and storage medium for recommending tourism routes, which will be described below through embodiments.
[0057] Figure 1The flowchart shows a method for recommending a travel route provided by an embodiment of the present application. Specifically, the method includes steps S101 - S104; specifically:
[0058] S101. Based on the analysis of the user's scenic spot requirements and under the user's time requirements, formulate an overall route for the user, and split the overall route into sub - routes within multiple target time periods. The sub - routes include target scenic spots.
[0059] S102. During the process of the user playing according to the overall route, real - time obtain abnormal factors affecting the play of the target scenic spots, and judge the abnormal state of the target scenic spots according to the target abnormal scores calculated from each of the abnormal factors.
[0060] S103. If there are abnormal scenic spots that cannot be played, in the time order of the abnormal sub - routes where each of the abnormal scenic spots is located, respectively match replacement target recommended scenic spots for the abnormal scenic spots in each of the abnormal sub - routes from the candidate scenic spots to form a first sub - route. The candidate scenic spots include unvisited scenic spots in the overall route and scenic spots not included in the overall route.
[0061] S104. If the replacement of the abnormal scenic spot by the target recommended scenic spot affects other sub - routes, adjust the other sub - routes to obtain an adjusted second sub - route, so that the user can play based on the target route composed of the first sub - route and the second sub - route.
[0062] The present application refines the user's overall route. In case of emergencies, it can timely adjust the affected sub - routes, ensuring the user's travel experience.
[0063] The following details some embodiments of the present application. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0064] In order to be able to recommend travel routes to users, the embodiments of the present application need to first obtain the user's requirements for scenic spots. The acquisition method is not limited here, and it can be the user's oral description, or through text description (including handwriting, sending via communication software, etc.), or pictures and videos sent by the user, etc. After obtaining the user's requirements for scenic spots, it is necessary to analyze the requirements for scenic spots. Since the obtained requirements for scenic spots are of multiple types, the specific analysis process here is formulated for different types of requirements for scenic spots. That is to say, the present application also does not limit the specific analysis method. For example, semantic analysis, picture recognition, or text recognition can be performed, etc. By analyzing the requirements for scenic spots, the scenic spots that the user is interested in are obtained. On the other hand, when formulating the overall route for the user, the user's time requirements also need to be considered, that is, by combining the interested scenic spots according to the time requirements, the overall route can be obtained.
[0065] For example, by analyzing the user's requirements for scenic spots, the scenic spots that meet the requirements are screened out from all scenic spots, and the initially selected scenic spots include A, B, C, D, E, F, G, H, I, J, and K. When the user has sufficient time, they can visit them in sequence according to the distance between each scenic spot. When the user's time is not sufficient, according to the travel time between the initially selected scenic spots and the play time of each of the initially selected scenic spots, it is necessary to combine the scenic spots from A to K to meet the user's time requirements. For example, the user's time requirement is 12 hours. By combining the play time and travel time of the above-mentioned scenic spots, the target scenic spots A, B, C, D, E, and F can be obtained. Then, according to the user's current location and the travel time between each scenic spot, the user's overall route is determined to be B, C, D, F, E, A.
[0066] Considering the occurrence of unexpected events, in order to reduce the change of the overall itinerary and at the same time ensure the user's travel experience throughout the itinerary, the embodiments of the present application split the user's overall route into multiple sub-routes, where each sub-route includes multiple target scenic spots. When dividing the overall route, the basis of the embodiments of the present application is the target time period, which is determined according to the user's own situation here. For example, it can be divided according to the user's physical strength, or according to the user's meal time, etc. Specifically, it can be determined by analyzing the user's historical travel situation. Each sub-route in the embodiments of the present application corresponds to a target time period, and the target time periods here can be the same or different. For example, every three hours can be used as a target time period. Three hours can be used as a target time period respectively (the morning sub-route, corresponding to the target scenic spots B and C), four hours as the next target time period (the afternoon sub-route, corresponding to the target scenic spots D, F, E), and two hours as another target time period (the evening sub-route, corresponding to the target scenic spot A).
[0067] After formulating the overall route for the user, the user can play according to the overall route. The play here includes the process of going to the scenic spots and the process of playing at the scenic spots. Taking the above overall route B, C, D, F, E, A as an example, the play process here includes the process of going to B and the process of playing at B. After coming out of Scenic Spot A, the overall route ends.
[0068] During the user's play process, the embodiments of the present application need to monitor all target scenic spots to ensure that the overall route can be adjusted in time when emergencies occur. The process of monitoring the target scenic spots is to obtain the abnormal factors affecting the play at the target scenic spots in real time. The abnormal factors here mainly include the subjective factors of the user, the environmental factors of going to the scenic spots, and the scenic spot factors of the scenic spots themselves. The subjective factor is whether the user himself is willing to go to the scenic spot. For example, during the process of going to the scenic spot, the user changes his mind temporarily, or spends a lot of physical strength when playing at the current scenic spot, resulting in the user not wanting to go to the next scenic spot. The environmental factors of going to the scenic spot here can be traffic pressure, weather reasons, etc. Specifically, it can be that there is a traffic jam before going to the next scenic spot, resulting in not being able to (or not being able to arrive on time) reach the next scenic spot. Or it suddenly rains, which is not suitable for playing at the next scenic spot. The scenic spot factors here can be that it is necessary to limit the flow due to too large a number of people, or it is necessary to temporarily repair due to equipment failure, etc.
[0069] In specific implementation, the subjective factors can be obtained through the mobile device carried by the user himself, the environmental factors can be obtained through the information published on the Internet or through the way of sensor monitoring, and the scenic spot factors can be obtained through the way of uploading information by the scenic spots or other users.
[0070] After obtaining the subjective factors, scenic spot factors and environmental factors, the embodiments of the present application comprehensively analyze the subjective factors, scenic spot factors and environmental factors, and calculate a target abnormal score. The state of the target scenic spot is determined according to the target abnormal score. Specifically: when the target abnormal score exceeds the target abnormal threshold, the embodiments of the present application consider that the state of the target scenic spot is abnormal (the scenic spot is an abnormal scenic spot). When the target abnormal score does not exceed the target abnormal threshold, the embodiments of the present application consider that the state of the target scenic spot is normal (the scenic spot is a normal scenic spot).
[0071] When there are abnormal scenic spots that cannot be played, the embodiments of the present application need to determine the abnormal sub-routes where each abnormal scenic spot is located. There may be one abnormal scenic spot in the abnormal sub-route, or there may be multiple abnormal scenic spots. If the abnormal sub-route is one, directly match the corresponding target recommended scenic spot from the candidate scenic spots. If there are multiple abnormal sub-routes, they need to be matched in the time sequence of each abnormal sub-route. That is, give priority to matching the target recommended scenic spot for the abnormal sub-route with an earlier time.
[0072] For example, the above-mentioned morning sub-routes (B and C), afternoon sub-routes (D, F, E), and evening sub-route (A). Among them, the abnormal scenic spots are B, F, and E. When matching the target recommended scenic spots, it is necessary to follow the order of the morning sub-routes and afternoon sub-routes.
[0073] By matching each abnormal scenic spot, the corresponding target recommended scenic spots are obtained. Then, the original abnormal sub-route can be adjusted to the normal first sub-route by replacing the corresponding abnormal scenic spot with the target recommended scenic spot. When matching the abnormal scenic spot, the present application performs the matching from the candidate scenic spots. The candidate scenic spots here include the unvisited scenic spots in the overall route and the scenic spots not included in the overall route. Matching from the unvisited scenic spots in the overall route is to avoid too large a change in the overall route, and matching from the scenic spots not included in the overall route is to avoid excessive time consumption and improve the user's travel experience.
[0074] After obtaining the first sub-route after replacing the abnormal scenic spot with the target recommended scenic spot, the first sub-route may affect other sub-routes. The influence on other sub-routes here includes extracting the target scenic spots in other sub-routes, or changing the time interval between the abnormal sub-route and other sub-routes, etc. For the other sub-routes affected, further adjustment is required to obtain the adjusted second sub-route. The adjusted first sub-route, second sub-route, and the normal sub-routes that have not been adjusted form the target route, allowing the user to play according to this target route.
[0075] In the above S102, after the embodiments of the present application obtain the user's subjective factors, the scenic spot factors of the target scenic spot, and the environmental factors for going to the target scenic spot in real time, it is necessary to calculate the target abnormal score.
[0076] To ensure the accuracy of the calculation result and improve the user's travel experience. Before calculating the target abnormal score, the embodiments of the present application need to judge each factor separately. Then, when each factor reaches the preset single abnormal threshold, the three are calculated to obtain the target abnormal score.
[0077] Here, a single anomaly threshold characterizes the severity of each factor. If the single anomaly score calculated for a factor exceeds the corresponding single anomaly threshold, it indicates that the impact of this factor is significant, and the target scenic spot is directly determined as an abnormal scenic spot. For example, if the user has completely run out of energy and it is impossible to continue to the next scenic spot, then the next scenic spot is directly regarded as an abnormal scenic spot. Another example is that a serious traffic accident has occurred on the only road to the next scenic spot, and it is expected that when the accident is resolved, the next scenic spot will have closed. That is to say, before comprehensively considering multiple abnormal factors in the embodiments of the present application, each abnormal factor is separately considered. And when considering separately, each abnormal factor can directly determine the status of the target scenic spot, improving the accuracy of the determination process. The process of calculating the single anomaly score here can be the process of calculating the severity of each abnormal factor. For example, if the scenic spot factor is the number of visitors, the ratio of the current number of visitors to the restricted number of visitors is used as the single anomaly score of the scenic spot factor.
[0078] When none of the single anomaly scores exceed the corresponding single anomaly thresholds, the embodiments of the present application calculate the subjective factor, environmental factor, and scenic spot factor to obtain the target anomaly score. When calculating specifically, the embodiments of the present application need to first set weights for the subjective factor, environmental factor, and scenic spot factor according to the user's degree of concern: set a first weight for the subjective factor, a second weight for the environmental factor, and a third weight for the scenic spot factor. For example, if the user mainly focuses on their own emotional state, followed by the weather condition, and finally the scenic spot condition, then the first weight is set to be greater than the second weight, and the second weight is greater than the third weight. After determining the weights corresponding to each factor, the initial anomaly score can be obtained by performing a weighted calculation on each factor. Since the weights in the embodiments of the present application are set based on the degree of concern, in order to reflect the importance of this factor, after obtaining the initial anomaly score, the embodiments of the present application also need to adjust the initial anomaly score. The adjustment basis here is the adjustment coefficient, which is determined by the target weight, where the target weight is the maximum weight or the minimum weight among the first weight, second weight, and third weight. Specifically, the adjustment coefficient is determined based on the difference between the target weight and the other two weights. If the difference between the target weight and the other two weights is large (greater than the upper limit of the preset weight threshold), it indicates that the user is more concerned or less concerned about the corresponding factor, and the corresponding adjustment coefficient is obtained by querying a preset data query table (storing adjustment coefficients 0 - 2 corresponding to different differences). When the user is more concerned, the adjustment coefficient is determined within the range of 1 - 2. When the user is not concerned, the adjustment coefficient is determined within the range of 0 - 1. The initial anomaly value is adjusted based on this adjustment coefficient to obtain the adjusted target anomaly score, and then the target anomaly score is compared with the target anomaly threshold.
[0079] In the above S103, when matching the target recommended scenic spots for the abnormal scenic spots, the embodiment of the present application takes the user's travel habits into consideration in order to ensure the user's playing experience. That is, the user's historical routes are statistically analyzed. If the user has never traveled before, or the number of travels is small (few historical routes), the embodiment of the present application obtains related tourists with similar character portraits to the user. The historical route of the user is predicted based on the historical routes of the related tourists.
[0080] By taking statistics on each historical route and analyzing the scenic spot characteristics of each historical scenic spot in the historical route, the association relationship between the historical scenic spots in the historical route is obtained. For example, the historical scenic spots include X1, X2 and X3, and the association relationship here includes the relationship between X2 and X3, and the relationship between X1, X2 as a whole and X3. That is, the association relationship here includes the relationship between any scenic spot and the previous scenic spot, and the relationship between any scenic spot and the previous two scenic spots. For example, it is determined that the user likes to go to a quiet park after climbing a mountain. After obtaining the association relationship, the normal scenic spots in the abnormal sub-route are brought into the association relationship, and the first scenic spot to be selected can be determined from the scenic spots to be selected. The first scenic spot to be selected here only considers the user's experience, and on the other hand, it is also necessary to consider the actual scenic spot, that is, the length of the distance between different scenic spots. The embodiment of the present application determines the second scenic spot to be selected based on the length of the distance between the abnormal scenic spot and each of the scenic spots to be selected; by fusing the first scenic spot to be selected and the second scenic spot to be selected (giving priority to the intersection, and giving priority to the first scenic spot to be selected when there is no intersection), the target recommended scenic spot is obtained.
[0081] In the above S104, when determining whether the replacement of the abnormal scenic spot by the target recommended scenic spot affects other sub-routes, the following situations are mainly included: the first situation is that the target recommended scenic spot is matched from the unvisited scenic spot in the overall route. In this case, after the target scenic spot in other sub-routes is extracted, it is necessary to supplement it. The second situation is that the target recommended scenic spot is matched from the scenic spot not included in the overall route. In this case, although the target scenic spot included in other sub-routes has not changed, the time interval between the other sub-routes and the previous sub-route has changed due to the adjustment of the previous sub-route.
[0082] Specifically, if the target recommended scenic spot is matched from the scenic spots not included in the overall route, calculate the first time interval between the last scenic spot in the abnormal sub-route and the first scenic spot in the subsequent adjacent sub-route; calculate the second time interval between the last scenic spot in the adjusted first sub-route of this abnormal sub-route and the first scenic spot in the subsequent adjacent sub-route; by comparing the first time interval and the second time interval, determine whether replacing the abnormal scenic spot with the target recommended scenic spot affects the subsequent adjacent sub-routes. If the target recommended scenic spot is matched from the unvisited scenic spots in the overall route, then replacing the abnormal scenic spot with the target recommended scenic spot affects the original sub-route of the target recommended scenic spot.
[0083] The process of adjusting other affected sub-routes is the same as the process of matching abnormal scenic spots above, and will not be elaborated here. It should be noted that when adjusting other sub-routes, due to the situation of matching from the unvisited scenic spots in the overall route, it is also necessary to adjust them in the time sequence of other affected sub-routes in turn.
[0084] When making specific adjustments, in extreme cases, there may be a situation where there is no target scenic spot in a certain original sub-route (all its target scenic spots are matched as target recommended scenic spots). At this time, in order to ensure the integrity of the user's overall itinerary, the embodiment of the present application needs to generate an extended route again to fill the blank during this period.
[0085] When generating the extended route, in order to ensure the diversity of the overall itinerary, the embodiment of the present application statistically analyzes the scenic spot features of the scenic spots included in all the sub-routes before this original sub-route and experiences them in different dimensions. Among these feature dimensions, select the dimensions that are lower than the preset dimension threshold or the lowest N dimensions in the feature dimensions as the defect dimensions. When generating the extended route, mainly satisfy these defect dimensions. On the premise of satisfying these defect dimensions, at the same time, consider the time of the extended route, and then screen out the extended scenic spots from the scenic spots not included in the target route. Arrange these extended scenic spots in time sequence to obtain the extended route.
[0086] In an optional implementation manner, if there are two adjacent first sub-routes, it is necessary to first determine whether the adjustment of the previous first sub-route affects the subsequent first sub-route. If it causes an impact, it is necessary to adjust the subsequent first sub-route again. The front and back order here is arranged according to the time sequence.
[0087] Figure 2 The structural schematic diagram of a device for recommending a travel route provided by the embodiment of the present application is shown, and the device includes:
[0088] A customized module, which is used to analyze the scenic spot requirements of a user, formulate an overall route for the user under the user's time requirements, and split the overall route into sub-routes within multiple target time periods, where the sub-routes include target scenic spots;
[0089] A judgment module, which is used to, during the process of the user playing according to the overall route, obtain in real time abnormal factors affecting the play of the target scenic spot, and judge the abnormal state of the target scenic spot according to the target abnormal scores calculated based on the respective abnormal factors;
[0090] A replacement module, which is used to, if there are abnormal scenic spots that cannot be played, match and replace the abnormal scenic spots of each abnormal sub-route with target recommended scenic spots from the candidate scenic spots in the time sequence of the abnormal sub-routes where the respective abnormal scenic spots are located, so as to form a first sub-route; wherein, the candidate scenic spots include unplayed scenic spots in the overall route and scenic spots not included in the overall route;
[0091] An adjustment module, which is used to, if the replacement of the abnormal scenic spot by the target recommended scenic spot affects other sub-routes, adjust the other sub-routes to obtain adjusted second sub-routes; so that the user plays based on the target route composed of the first sub-route and the second sub-route.
[0092] The method of analyzing the scenic spot requirements of a user, formulating an overall route for the user under the user's time requirements, and splitting the overall route into sub-routes within multiple target time periods, where the sub-routes include target scenic spots, includes:
[0093] Analyze the scenic spot requirements of the user, and screen out primary selected scenic spots that meet the scenic spot requirements from all scenic spots;
[0094] According to the travel time between the primary selected scenic spots and the play time of each primary selected scenic spot, plan the paths of the primary selected scenic spots to obtain multiple candidate routes;
[0095] According to the user's time requirements, match and combine the candidate routes to obtain multiple sub-routes, and arrange the multiple sub-routes in time sequence to obtain the overall route.
[0096] The method of, during the process of the user playing according to the overall route, obtaining in real time abnormal factors affecting the play of the target scenic spot, and judging the abnormal state of the target scenic spot according to the target abnormal scores calculated based on the respective abnormal factors, includes:
[0097] During the process of the user playing according to the overall route, obtain in real time the subjective factors of the user, the scenic spot factors of the target scenic spot, and the environmental factors for going to the target scenic spot;
[0098] Calculate corresponding single anomaly scores for the subjective factor, the environmental factor, and the scenic spot factor respectively;
[0099] If any of the single anomaly scores exceeds the corresponding single anomaly threshold, determine the target scenic spot as the abnormal scenic spot;
[0100] If none of the single anomaly scores exceeds the corresponding single anomaly threshold, calculate a target anomaly score based on the subjective factor, the environmental factor, and the scenic spot factor, and determine the status of the target scenic spot according to the target anomaly score and the corresponding target anomaly threshold.
[0101] The calculating a target anomaly score based on the subjective factor, the environmental factor, and the scenic spot factor includes:
[0102] Calculate an initial anomaly score according to the subjective factor and the corresponding first weight, the environmental factor and the corresponding second weight, and the scenic spot factor and the corresponding third weight;
[0103] Calculate an adjustment coefficient according to the maximum or minimum target weight among the first weight, the second weight, and the third weight;
[0104] Adjust the initial anomaly score based on the adjustment coefficient to obtain the adjusted target anomaly score.
[0105] The matching target recommended scenic spots for the abnormal scenic spots in each of the abnormal sub-routes from the candidate scenic spots includes:
[0106] Determine the association rules between historical scenic spots in the historical route by statistically analyzing the user's historical route;
[0107] Determine the first candidate scenic spots from the candidate scenic spots based on the association rules and the normal scenic spots in the abnormal sub-route;
[0108] Determine the second candidate scenic spots according to the distance between the abnormal scenic spots and each of the candidate scenic spots;
[0109] Fuse the first candidate scenic spots and the second candidate scenic spots to obtain the target recommended scenic spots.
[0110] Determine whether replacing the abnormal scenic spot with the target recommended scenic spot affects other sub-routes in the following way:
[0111] If the target recommended scenic spot is matched from the scenic spots not included in the overall route, calculate the first time interval between the last scenic spot in the abnormal sub-route and the first scenic spot in the subsequent adjacent sub-route;
[0112] Calculate the second time interval between the last scenic spot in the adjusted first sub-route of the abnormal sub-route and the first scenic spot in the subsequent adjacent sub-route;
[0113] By comparing the first time interval and the second time interval, determine whether replacing the abnormal scenic spot with the target recommended scenic spot affects the subsequent adjacent sub-routes;
[0114] If the target recommended scenic spot is matched from the unvisited scenic spots in the overall route, then replacing the abnormal scenic spot with the target recommended scenic spot affects the original sub-route of the target recommended scenic spot.
[0115] Statistically analyze the scenic spot features of the scenic spots included in all sub-routes before the original sub-route to obtain a statistical analysis result; wherein, the statistical analysis result includes multiple feature dimensions;
[0116] For the purpose of making up the defective dimensions in the statistical analysis result, screen out extended scenic spots from the scenic spots not included in the target route to form an extended route of the target route.
[0117] As Figure 3 shown, an embodiment of the present application provides an electronic device for executing the tourism route recommendation method in the present application. The device includes a memory, a processor, a bus, and a computer program stored on the memory and executable on the processor. Wherein, when the above-mentioned processor executes the above-mentioned computer program, the steps of the above-mentioned tourism route recommendation method are realized.
[0118] Specifically, the above-mentioned memory and processor can be general memory and processor, which are not specifically limited here. When the processor runs the computer program stored in the memory, it can execute the above-mentioned tourism route recommendation method.
[0119] Corresponding to the tourism route recommendation method in the present application, an embodiment of the present application also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the above-mentioned tourism route recommendation method are executed.
[0120] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, it can execute the above-mentioned tourism route recommendation method.
[0121] In the embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some communication interfaces. The indirect couplings or communication connections of the systems or units can be in electrical, mechanical or other forms.
[0122] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units. They can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] In addition, each functional unit in the embodiments provided in this application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
[0124] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or this part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.
[0125] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. In addition, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.
[0126] Finally, it should be noted that the above-described embodiments are only specific implementation manners of the present application, used to illustrate the technical solutions of the present application, rather than limiting it. The protection scope of the present application is not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that any person skilled in the art within the technical scope disclosed by the present application can still modify the technical solutions recorded in the foregoing embodiments or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. All should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for recommending a travel route, characterized in that, The method includes: Based on the analysis of the user's scenic spot requirements, under the user's time requirements, formulating an overall route for the user, and splitting the overall route into sub-routes within multiple target time periods, where the sub-routes include target scenic spots; During the process of the user playing according to the overall route, obtaining in real time abnormal factors affecting the play of the target scenic spot, and judging the abnormal state of the target scenic spot according to the target abnormal scores calculated based on each of the abnormal factors; If there are abnormal scenic spots that cannot be played, according to the time sequence of the abnormal sub-routes where each of the abnormal scenic spots is located, respectively matching replacement target recommended scenic spots from the candidate scenic spots for each of the abnormal scenic spots in the abnormal sub-routes to form a first sub-route; where the candidate scenic spots include unplayed scenic spots in the overall route and scenic spots not included in the overall route; If the replacement of the abnormal scenic spot by the target recommended scenic spot affects other sub-routes, adjusting the other sub-routes to obtain adjusted second sub-routes; so that the user plays based on the target route formed by the first sub-route and the second sub-route.
2. The method according to claim 1, wherein The step of based on the analysis of the user's scenic spot requirements, under the user's time requirements, formulating an overall route for the user, and splitting the overall route into sub-routes within multiple target time periods, where the sub-routes include target scenic spots, includes: Analyzing the user's scenic spot requirements, and screening out preliminary selected scenic spots that meet the scenic spot requirements from all scenic spots; According to the travel time between the preliminary selected scenic spots and the play time of each of the preliminary selected scenic spots, performing path planning on the preliminary selected scenic spots to obtain multiple candidate routes; According to the user's time requirements, performing matching and combination on the candidate routes to obtain multiple sub-routes, and arranging the multiple sub-routes in time sequence to obtain the overall route.
3. The method according to claim 1, wherein The step of during the process of the user playing according to the overall route, obtaining in real time abnormal factors affecting the play of the target scenic spot, and judging the abnormal state of the target scenic spot according to the target abnormal scores calculated based on each of the abnormal factors, includes: During the process of the user playing according to the overall route, obtaining in real time the user's subjective factors, the scenic spot factors of the target scenic spot, and the environmental factors for going to the target scenic spot; Calculating corresponding single abnormal scores for the subjective factor, the environmental factor, and the scenic spot factor respectively; If any one of the single abnormal scores exceeds the corresponding single abnormal threshold, determining the target scenic spot as the abnormal scenic spot; If none of the single abnormal scores exceeds the corresponding single abnormal threshold, calculating a target abnormal score based on the subjective factor, the environmental factor, and the scenic spot factor, and determining the state of the target scenic spot according to the target abnormal score and the corresponding target abnormal threshold.
4. The method according to claim 3, characterized in that, The step of calculating a target abnormal score based on the subjective factor, the environmental factor, and the scenic spot factor includes: Calculate an initial anomaly score based on the subjective factors and corresponding first weights, the environmental factors and corresponding second weights, and the scenic spot factors and corresponding third weights. Calculate an adjustment coefficient based on the maximum or minimum target weight among the first weight, the second weight, and the third weight. Adjust the initial anomaly score based on the adjustment coefficient to obtain the adjusted target anomaly score.
5. The method according to claim 1, wherein The step of respectively matching target recommended scenic spots for the abnormal scenic spots in each of the abnormal sub-routes from the candidate scenic spots includes: Determine the association rules between historical scenic spots in the historical route by statistically analyzing the user's historical route. Based on the association rules and the normal scenic spots in the abnormal sub-route, determine the first candidate scenic spots from the candidate scenic spots. Determine the second candidate scenic spots according to the distances between the abnormal scenic spots and each of the candidate scenic spots. Fuse the first candidate scenic spots and the second candidate scenic spots to obtain the target recommended scenic spots.
6. The method according to claim 1, wherein The method determines whether replacing the abnormal scenic spot with the target recommended scenic spot affects other sub-routes in the following way: If the target recommended scenic spot is matched from the scenic spots not included in the overall route, calculate the first time interval between the last scenic spot in the abnormal sub-route and the first scenic spot in the subsequent adjacent sub-route. Calculate the second time interval between the last scenic spot in the adjusted first sub-route of the abnormal sub-route and the first scenic spot in the subsequent adjacent sub-route. Determine whether replacing the abnormal scenic spot with the target recommended scenic spot affects the subsequent adjacent sub-routes by comparing the first time interval and the second time interval. If the target recommended scenic spot is matched from the unvisited scenic spots in the overall route, then replacing the abnormal scenic spot with the target recommended scenic spot affects the original sub-route of the target recommended scenic spot.
7. The method according to claim 6, wherein If the original sub-route no longer contains the target scenic spot, the method further includes: Statistically analyze the scenic spot features of the scenic spots included in all the sub-routes before the original sub-route to obtain a statistical analysis result; wherein, the statistical analysis result includes multiple feature dimensions. For the purpose of making up for the defective dimensions in the statistical analysis result, screen out extended scenic spots from the scenic spots not included in the target route to form an extended route of the target route.
8. A device for recommending a travel route, characterized in that, The device includes: A customization module, configured to formulate an overall route for the user based on an analysis of the user's scenic spot requirements under the user's time requirements, and split the overall route into sub-routes within multiple target time periods, where the sub-routes include target scenic spots. A judgment module, configured to, during the process of the user playing according to the overall route, real-time obtain abnormal factors affecting the play of the target scenic spot, and judge the abnormal state of the target scenic spot according to the target anomaly score calculated based on each of the abnormal factors. A replacement module, configured to, if there are abnormal scenic spots that cannot be visited, match and replace each of the abnormal scenic spots of each abnormal sub-route with a target recommended scenic spot from the candidate scenic spots according to the chronological order of the abnormal sub-routes where the abnormal scenic spots are located, so as to form a first sub-route; wherein, the candidate scenic spots include the unvisited scenic spots in the overall route and the scenic spots not included in the overall route; An adjustment module, configured to, if the replacement of the abnormal scenic spot by the target recommended scenic spot affects other sub-routes, adjust the other sub-routes to obtain adjusted second sub-routes; so that the user can play based on the target route formed by the first sub-route and the second sub-routes.
9. An electronic device, characterized in that, Comprising: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the memory through the bus. When the machine-readable instructions are executed by the processor, the steps of the method for recommending a tourist route according to any one of claims 1 to 7 are executed.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is run by the processor, the steps of the method for recommending a tourist route according to any one of claims 1 to 7 are executed.
Citation Information
Patent Citations
Cultural tourism route real-time optimization and adjustment system based on big data analysis
CN119250330A