Scenic area route recommendation method and device, electronic equipment and computer readable medium
By constructing cultural gene maps and using A*(A-Star) algorithm, combining tourists' geographical location information, personalized tourism recommendations are provided, which solves the problem of unused geographical location and cultural background in the existing technology, and improves tourism recommendations accuracy and user experience.
Patent Information
- Application Number
- CN202411158601.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing tourism recommendation products fail to make full use of geographical location information and cultural background, resulting in less relevance, accuracy and practicality of recommendations and unable to provide a personalized travel experience.
By obtaining the target scenic spot information, building a cultural gene map, and combining the A*(A-Star) algorithm, we calculate the collection of internal scenic spots in the scenic spots that are close to and far away from the tourist location, providing personalized tourism recommendation services.
It achieves more accurate and personalized travel recommendation results, meets the diverse needs of users, and improves the accuracy and user experience of travel information recommendations.
Smart Images

Figure CN119128291A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a method, device, electronic device, and computer-readable medium for recommending scenic route. Background Art
[0002] There are many recommendation products for the tourism industry on the market. Most of the travel recommendation services provided by these platforms use big data and intelligent recommendation algorithms to achieve personalized content recommendations. By analyzing the user's browsing history, interests, hobbies and behavioral characteristics, the user's needs are predicted and the content of interest is provided to the user.
[0003] Geographic location is a key factor in travel recommendations, which affects tourists' itinerary planning and attraction selection. However, the existing technology fails to fully utilize information in this dimension, resulting in reduced relevance, accuracy, and practicality of travel product recommendations. This means that all users will receive similar recommendations and cannot obtain a travel experience tailored to the unique preferences of different users.
[0004] In addition, these travel recommendation products are based on a single scenic spot, and usually do not involve the location information of scenic spots within the scenic spot and cultural information such as the scenic spot's history, art, sociological background, etc., ignoring the personal interests and preferences of tourists. The recommended content is mostly based on a single scenic spot, and the recommended travel content is based on the results of comparative analysis between different scenic spots. There is a lack of travel recommendation information within the scenic spot for tourists during their visit. Summary of the invention
[0005] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0006] Some embodiments of the present disclosure propose a method, device, electronic device and computer-readable medium for recommending scenic route to solve the technical problems mentioned in the above background technology section.
[0007] In a first aspect, some embodiments of the present disclosure provide a method for recommending a scenic spot route, the method comprising: obtaining target scenic spot information; constructing a cultural gene map about the target scenic spot based on the target scenic spot information; generating a recommended route and recommended scenic spot information for the target user in the target scenic spot based on target user information and the cultural gene map; and sending the recommended route and the recommended scenic spot information to the target user device.
[0008] In a second aspect, some embodiments of the present disclosure provide a device for recommending a scenic spot route, the device comprising: an acquisition unit configured to acquire target scenic spot information; a construction unit configured to construct a cultural gene map about the target scenic spot based on the target scenic spot information; a generation unit configured to generate a recommended route and recommended scenic spot information for the target user in the target scenic spot based on target user information and the cultural gene map; and a sending unit configured to send the recommended route and the recommended scenic spot information to the target user device.
[0009] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by one or more processors, the one or more processors implement a method as described in any implementation method in the first aspect.
[0010] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.
[0011] One of the above-mentioned embodiments of the present disclosure has the following beneficial effects: it is able to obtain the geographical location information of tourists in real time, and in combination with the A* (A-Star) algorithm, calculate the set of internal scenic spots in the scenic area from near to far distances from the tourist location, and associate and match them with the cultural gene map of the scenic area (space-time knowledge map), so as to provide users with personalized travel recommendation services. Compared with traditional methods, this application pays more attention to the geographical location and cultural background of users, and can provide more accurate and personalized recommendation results to meet the diverse needs of users. Personalized travel content recommendations for scenic spots are realized. Help tourists to experience the travel content recommendation service of scenic spots during the travel process, improve the accuracy of travel information recommendations, and solve the problems of poor tourist experience and low accuracy of travel recommendations during the current travel tours. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0013] Figure 1 is a schematic diagram of an application scenario of a scenic spot route recommendation method according to some embodiments of the present disclosure;
[0014] Figure 2 is a flow chart of some embodiments of the scenic route recommendation method according to the present disclosure;
[0015] Figure 3 It is a structural schematic diagram of some embodiments of the scenic spot route recommendation device according to the present disclosure;
[0016] Figure 4 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0018] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0019] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0020] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0021] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0022] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0023] Figure 1 It is a schematic diagram of an application scenario of a scenic spot route recommendation method according to some embodiments of the present disclosure.
[0024] like Figure 1 As shown, the server 101 can obtain target scenic spot information 102; construct a cultural gene map 103 about the target scenic spot based on the target scenic spot information 102; generate a recommended route 105 and recommended scenic spot information 106 for the target user in the target scenic spot based on the target user information 104 and the cultural gene map 103; and send the recommended route 105 and the recommended scenic spot information 106 to the target user device 107.
[0025] It is understandable that the scenic route recommendation method can be executed by a terminal device, or it can also be executed by a server 101. The execution subject of the above method can also include a device formed by integrating the above terminal device and the above server 101 through a network, or it can also be executed by various software programs. Among them, the terminal device can be various electronic devices with information processing capabilities, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers and desktop computers, etc. The execution subject can also be embodied as a server 101, software, etc. When the execution subject is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules for providing distributed services, for example, or it can be implemented as a single software or software module. No specific limitation is made here.
[0026] It should be understood that Figure 1 The number of servers in the example is only for illustration purposes. Any number of servers may be provided as required.
[0027] Continue to refer Figure 2 , shows a process 200 of some embodiments of the scenic route recommendation method according to the present disclosure. The scenic route recommendation method includes the following steps:
[0028] Step 201, obtaining target scenic spot information.
[0029] In some embodiments, the execution subject of the scenic route recommendation method (for example Figure 1 The server shown in the figure) can obtain the target scenic spot information through a wired connection or a wireless connection. It should be noted that the above wireless connection method may include but is not limited to 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultrawideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0030] Specifically, the above-mentioned execution entities can collect the target scenic area group, scenic spots, scenery and cultural data related to scenic spots. Scenery is an individual scenic material with independent appreciation value and is the basic unit of scenic area landscape. Scenic spots are basic domain units composed of several interrelated scenery, with relative independence and integrity, and aesthetic characteristics. Scenic groups are scenic spots communities or groups composed of several related scenic spots.
[0031] In order to ensure that the system can accurately identify the relationship between scenic spots, scenic spots, and scenery, data preprocessing is required. After obtaining the scenic spot data, a series of operations such as cleaning, deduplication, and classification are performed on the data to ensure the quality and reliability of the data.
[0032] Step 202: construct a cultural gene map of the target scenic spot based on the target scenic spot information.
[0033] In some embodiments, the above execution entities (e.g. Figure 1 The server shown in the figure) can construct a cultural gene map about the target scenic spot according to the target scenic spot information.
[0034] As an example, the above-mentioned execution subject can sort out the logical relationship between the scenic group, scenic spot, and scenic content cultural data based on the collected and processed data of the scenic area's internal scenic groups, scenic spots, and scenery, and construct a scenic area cultural knowledge map containing the spatial location information and geographical relationship of the scenic group, scenic spot, and scenery nodes as a cultural gene map. Here, the knowledge map is a new structured database used to represent the relationship between things. After acquiring and processing the scenic area data, a complete set of knowledge maps is established to better understand and manage the relationship between various types of geographic spatial data and historical culture in the scenic area.
[0035] In some optional implementation methods of some embodiments, the above-mentioned execution entity may perform entity recognition and extraction on the target scenic spot information to obtain entity information; construct a scenic spot cultural knowledge graph containing spatial location information and geographical relationships of scenic spots, scenic spots and scenic nodes according to the logical relationship between the scenic spots, scenic spots and scenic data content and cultural data within the target scenic spot; link the entity information to the scenic spot cultural knowledge graph and construct the relationship between entities to obtain a cultural gene map of the target scenic spot.
[0036] Specifically, the above-mentioned execution entity can construct the cultural gene map of the target scenic spot through the following steps:
[0037] (1) Data collection: Collect structured and unstructured data related to scenic spots, scenic spots, and scenery in the scenic area, including text documents, databases, web pages, log files, etc.
[0038] (2) Entity recognition and extraction: Use natural language processing (NLP) techniques, such as named entity recognition and entity relationship extraction, to identify and extract entities and relationships between entities from text data.
[0039] (3) Data cleaning and preprocessing: The collected data is cleaned and preprocessed, including removing noise, processing missing values, and unifying entity naming to ensure data quality and consistency.
[0040] (4) Knowledge modeling: Based on the logical relationship between the cultural data of scenic spots, scenic spots, and scenery within the scenic area, a cultural knowledge graph of the scenic area is constructed, which contains the spatial location information and geographical relationships of scenic spots, scenic spots, and scenery nodes, and defines the entity types, attributes, and relationships of scenic spots, scenic spots, and scenery.
[0041] (5) Entity linking: Link entities extracted from different data sources and establish unique identifiers for entities so that they can be uniformly represented and queried in the knowledge graph.
[0042] (6) Relationship modeling: Identify and model relationships between entities, including hierarchical relationships, attribute relationships, and semantic relationships. Relationships can be modeled through manual annotation, rule-based methods, machine learning, etc.
[0043] (7) Graph database storage: Choose Neo4j graph database for knowledge graph storage and query. Store the constructed knowledge graph data in the graph database and create an index to support efficient query and reasoning.
[0044] (8) Graph expansion and maintenance: Continuously expand and update the knowledge graph based on demand and new data sources.
[0045] Step 203: Generate a recommended route and recommended scenic spot information for the target user in the target scenic spot based on the target user information and the cultural gene map.
[0046] In some embodiments, the execution entity may generate a recommended route and recommended scenic spot information for the target user in the target scenic spot based on the target user information and the cultural gene map.
[0047] As an example, the above-mentioned execution entity can draw the scenic area group, scenic spot and scenery data on the map based on the collected and processed scenic area group, scenic spot and scenery data, and edit them into recommended scenic area tourism routes according to the map location.
[0048] Specifically, the above-mentioned execution entity can collect the current geographical location information of the tourists, combine the tourist location information, preference information and scenic spot travel routes to perform spatial analysis, and calculate the nearest scenic spot travel routes and scenic spot information collection.
[0049] In some optional implementations of some embodiments, the execution subject may obtain the geographic coordinate data (x i ,y i )(i=1,…,n), number the scenic spots 1, 2, 3,…,n in sequence; determine the route from the target user location to the target scenic spot according to the following formula: (Rcosx i cosy i ,Rsinx i ;cozy i ,Rsiny i )(1); Use formula (1) to convert geographic coordinates into rectangular coordinates to obtain formula (2): d = Rarccos[cos(x i -x j)cosy i cosy j +siny i siny j ](2); where the distance matrix D = (dij)n×n; d ij Denotes the distance between two points i and j, i, j = 1, 2, ..., n; R = 6370 is the radius of the earth; use formula (2) to calculate the distance matrix D between any two points, and substitute the obtained tourist geographic location data into formula (2) to obtain the nearest attractions and tour route information to the tourists.
[0050] Specifically, the execution subject may perform spatial analysis by combining the tourist location information, preference information and scenic spot travel routes through the following steps to calculate the nearest scenic spot travel routes and scenic spot information set as the recommended route and recommended scenic spot information for the target user in the target scenic spot:
[0051] A algorithm, A* (A-Star) algorithm is the most effective direct search method for solving the 2 shortest paths in a static road network, and is also an effective algorithm for solving many search problems. The closer the estimated distance value in the algorithm is to the actual value,
[0052] Finally, the faster the search speed is, the faster the A* algorithm is.
[0053] As an extension of the Djkstra algorithm, the A* algorithm is widely used in pathfinding and graph traversal due to its high efficiency, and is widely used in games such as StarCraft. It has an additional estimation function compared to the Djkstra algorithm. If the estimation function is 0, the A* algorithm will degenerate into the Djkstra algorithm. The A* algorithm is a heuristic search, which is a search strategy based on existing information as much as possible. In other words, the search process tries to make use of currently known information such as the number of iterations and the cost required to estimate the initial state and current state to the target state.
[0054] Algorithm A introduces known global information when selecting the next node to be checked, and estimates the distance from the current node to the end point as a measure of the possibility of evaluating the node being on the optimal route. In this way, nodes with high probability can be searched first, thereby improving the efficiency of the search process.
[0055] The basic idea of the A* algorithm is as follows: introduce the estimation function f* of the current node, and the estimation function of the current node is defined as:
[0056] f*(j)=g(j)+h*(j)
[0057] Among them, g(j) is a measure of the actual cost from the starting point to the current node, and h*(j) is an estimate of the minimum cost from the node to the end point. The specific form of h*(j) can be selected according to the actual situation. h*(j) must meet one requirement: it cannot be higher than the actual minimum cost from the node to the end point. When searching from the starting node to the destination node, each time search for the node with the smallest f*(j) until the destination node is found.
[0058] According to the cultural gene map of the scenic spot, the geographical coordinate data of each scenic spot in the scenic spot is obtained (x i ,y i )(i=1,…,n), number the scenic spots 1, 2, 3,…,n in sequence, and then repeat the numbering of the initial scenic spots to n. Distance matrix D=(dij)n×n, where d ij Denotes the distance between two points i and j, i, j = 1, 2, ..., n. Then the problem is transformed into finding the shortest path from point 1, through all the intermediate points, to point n.
[0059] (Rcosx i cosy i ,Rsinx i ;cozy i ,Rsiny i )(1)
[0060] Use formula (1) (R = 6370 is the radius of the earth) to convert geographic coordinates into rectangular coordinates.
[0061] d = Rarccos[cos(x i -x j )cosy i cosy j +siny i siny j ] (2)
[0062] Using formula (2), we can find the distance matrix D between any two points.
[0063] The acquired tourist geographic location data is brought into the algorithm to obtain the scenic spots and tour route information closest to the tourists as the recommended routes and recommended scenic spots information for the target users in the target scenic area.
[0064] Thus, the tourist attraction recommendation algorithm is improved based on the A* (A-Star) shortest distance algorithm. The real-time location of tourists in the scenic area is integrated, and the distance information set between tourists and the scenic spots and tour routes that may be of interest to the scenic area is calculated in real time. From the perspective of geographic space, the content recommendation and navigation problems of users in the process of visiting tourist attractions are solved, and the accuracy and applicability of the recommendation method are improved. At the same time, the algorithm is combined with the cultural gene map of the scenic area to improve the accuracy of the recommendation system. The relationship knowledge of the map is used to infer the interest propagation path and enhance the interpretability of the recommendation results.
[0065] Step 204: Send the recommended route and the recommended scenic spot information to a target user device.
[0066] In some embodiments, the execution entity may send the recommended route and the recommended scenic spot information to a target user device.
[0067] In some optional implementations of some embodiments, the above-mentioned execution entity can display a first display interface on the target user device, wherein the first display interface includes the recommended route and recommended scenic spot information; in response to detecting the target user's selection operation for the target scenic spot in the recommended route in the first display interface, generate route information from the target user to the target scenic spot; and display a second display interface, wherein the second display interface includes the route information from the target user to the target scenic spot and the target scenic spot information.
[0068] Specifically, the above-mentioned execution entity may use the geographical location information, time, and tourist preference information of the scenic spot where the tourist is currently located as a tourist information set, and perform tourist feature matching according to association rules based on the tourist information set to obtain a preset number of attractions or service facilities that the tourists may be interested in, query the service information of each attraction or service facility, form the next destination information set, and return it to the tourist.
[0069] As an example, the above-mentioned execution entity can classify and organize the tour route information within the scenic area, construct a tourist attraction content recommendation applet to display it on the above-mentioned user device, collect the real-time location information of the tourists through the tourist scenic spot content recommendation applet, return to the tourist scenic spot content recommendation applet cloud server (execution entity), combine the tourists' personal information and browsing history information in the applet, and calculate the scenic spot travel routes and attractions information that the tourists may be interested in through the geospatial analysis algorithm; push the scenic spot travel routes and attractions information that the tourists may be interested in to the tourists, and after the tourists make a selection, calculate the way and route for the tourists to the next destination, and display the scenic spot attractions or service facilities information passed by on the way to the destination for the tourists, and users can browse the detailed information of the attractions.
[0070] In addition, the above-mentioned execution entities can associate and match tourists’ personal information and preference information with the cultural gene map of scenic spots in the following ways to discover the travel route patterns of tourists with different sightseeing and cultural preferences in scenic spots:
[0071] The path-based method builds a user-item graph and uses the connection relationship between entities in the graph to learn the connection similarity between paths from users to items for recommendation. The main challenge of this method is how to design a reasonable path and how to model the connection relationship between entities. Some recommendation methods regard the knowledge graph as a heterogeneous information network, and then use the meta-structure in the graph to directly calculate the connection similarity of the path for recommendation. Meta-structure-based similarity can be used as a constraint on user and item representation, and can also be used to predict user interest in similar users or similar items in the interaction history. In order to measure the connection similarity between entities in the graph, the PathSim method is usually used:
[0072]
[0073] Among them, p(x,y) is a path from entity x to entity y.
[0074] In addition, the above-mentioned execution entity may also modify the set of scenic spots or service facilities that the tourists may be interested in at least once according to the tourist selection results, and return the modified set of scenic spots or service facilities that the tourists may be interested in to the tourists.
[0075] Therefore, with the scenic area map as the core, the scenic area cultural gene map containing geographical location information and geographical location relationship is constructed by sorting out the geographical logical relationship between scenic spots, scenic spots and scenery within the scenic area. On this basis, the original geographic space shortest distance algorithm is used to calculate the distance set of tourists from different scenic spots and tour routes according to the real-time location and preference information of tourists. The distance information set of scenic spots and tour routes is matched with the cultural gene map and pushed to users. Tourists can also experience the scenic area tourism content recommendation service during the scenic area tour, improve the accuracy of tourism information recommendation, and solve the current problem of poor tourist experience and low accuracy of tourism recommendation during the tour.
[0076] One of the above-mentioned embodiments of the present disclosure has the following beneficial effects: it is able to obtain the geographical location information of tourists in real time, and in combination with the A* (A-Star) algorithm, calculate the set of internal scenic spots in the scenic area from near to far distances from the tourist location, and associate and match them with the cultural gene map of the scenic area (space-time knowledge map), so as to provide users with personalized travel recommendation services. Compared with traditional methods, this application pays more attention to the geographical location and cultural background of users, and can provide more accurate and personalized recommendation results to meet the diverse needs of users. Personalized travel content recommendations for scenic spots are realized. Help tourists to experience the travel content recommendation service of scenic spots during the travel process, improve the accuracy of travel information recommendations, and solve the problems of poor tourist experience and low accuracy of travel recommendations during the current travel tours.
[0077] Further references Figure 3 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a scenic route recommendation device. These device embodiments are similar to Figure 2 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0078] like Figure 3 As shown, the scenic route recommendation device 300 of some embodiments includes: an acquisition unit 301, a construction unit 302, a generation unit 303 and a sending unit 304. Among them, the acquisition unit 301 is configured to acquire target scenic spot information; the construction unit 302 is configured to construct a cultural gene map about the target scenic spot according to the target scenic spot information; the generation unit 303 is configured to generate a recommended route and recommended scenic spot information for the target user in the target scenic spot according to the target user information and the cultural gene map; the sending unit 304 is configured to send the recommended route and the recommended scenic spot information to the target user device.
[0079] In an optional implementation of some embodiments, the device also includes a display unit, configured to: display a first display interface on a target user device, wherein the first display interface includes the recommended route and recommended scenic spot information; in response to detecting a selection operation of the target user for a target scenic spot in the recommended route in the first display interface, generate route information of the target user to the target scenic spot; and display a second display interface, wherein the second display interface includes the route information of the target user to the target scenic spot and target scenic spot information.
[0080] In an optional implementation of some embodiments, the generating unit is further configured to: obtain geographic coordinate data (x i ,y i)(i=1,…,n), number the scenic spots 1, 2, 3,…,n in sequence; determine the route from the target user location to the target scenic spot according to the following formula: (Rcosx i cosy i ,Rsinx i ;cozy i ,Rsiny i )(1); Use formula (1) to convert geographic coordinates into rectangular coordinates to obtain formula (2): d = Rarccos[cos(x i -x j )cosy i cosy j +siny i siny j ](2); where the distance matrix D = (dij)n×n; d ij Denotes the distance between two points i and j, i, j = 1, 2, ..., n; R = 6370 is the radius of the earth; use formula (2) to calculate the distance matrix D between any two points, and substitute the obtained tourist geographic location data into formula (2) to obtain the nearest attractions and tour route information to the tourists.
[0081] In some optional implementations of the embodiments, the construction unit is further configured to: perform entity recognition and extraction on the target scenic spot information to obtain entity information; construct a scenic spot cultural knowledge graph containing spatial location information and geographical relationships of scenic spots, scenic spots, and scenic nodes based on the logical relationships among the scenic spots, scenic spots, and scenic data content cultural data within the target scenic spot; link the entity information to the scenic spot cultural knowledge graph and construct relationships between entities to obtain a cultural gene map of the target scenic spot.
[0082] It is understood that the units described in the device 300 are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 300 and the units contained therein, and will not be described in detail here.
[0083] One of the above-mentioned embodiments of the present disclosure has the following beneficial effects: it is able to obtain the geographical location information of tourists in real time, and in combination with the A* (A-Star) algorithm, calculate the set of internal scenic spots in the scenic area from near to far distances from the tourist location, and associate and match them with the cultural gene map of the scenic area (space-time knowledge map), so as to provide users with personalized travel recommendation services. Compared with traditional methods, this application pays more attention to the geographical location and cultural background of users, and can provide more accurate and personalized recommendation results to meet the diverse needs of users. Personalized travel content recommendations for scenic spots are realized. Help tourists to experience the travel content recommendation service of scenic spots during the travel process, improve the accuracy of travel information recommendations, and solve the problems of poor tourist experience and low accuracy of travel recommendations during the current travel tours.
[0084] Reference below Figure 4 , which shows an electronic device (eg, Figure 1 A schematic diagram of the structure of the server 400. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0085] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0086] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 4 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0087] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0088] It should be noted that the computer-readable medium described in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0089] In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
[0090] The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0091] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0092] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains target scenic spot information; constructs a cultural gene map about the target scenic spot according to the target scenic spot information; generates a recommended route and recommended scenic spot information for the target user in the target scenic spot according to the target user information and the cultural gene map; and sends the recommended route and recommended scenic spot information to the target user device.
[0093] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0094] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0095] The units described in some embodiments of the present disclosure may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit, a construction unit, a generation unit, and a sending unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the acquisition unit may also be described as a "unit for acquiring target scenic spot information".
[0096] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0097] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A method for recommending scenic route. include: Get target scenic spot information; Constructing a cultural gene map of the target scenic spot according to the target scenic spot information; Generate a recommended route and recommended scenic spot information for the target user in the target scenic spot according to the target user information and the cultural gene map; The recommended route and the recommended scenic spot information are sent to a target user device.
2. The method according to claim 1, in, The method further comprises: Displaying a first display interface on the target user device, wherein the first display interface includes the recommended route and recommended scenic spot information; In response to detecting a selection operation of the target user for a target attraction in the recommended route in the first display interface, generating route information of the target user to the target attraction; A second display interface is displayed, wherein the second display interface includes route information from the target user to the target attraction and target attraction information.
3. The method according to claim 1, in, The generating, based on the target user information and the cultural gene map, the recommended route and recommended scenic spot information for the target user in the target scenic spot includes: Obtain the geographic coordinate data of each scenic spot in the target scenic spot from the cultural gene map (x i ,y i )(i=1,…,n), number the scenic spots 1, 2, 3,…,n in sequence; determine the route from the target user location to the target scenic spot according to the following formula: (Rcosx i cosy i ,Rsinx i ;cosy i ,Rsiny i )(1); Using formula (1) to convert geographic coordinates into rectangular coordinates, we get formula (2): d=Rarccos[cos(x) i -x j )cosy i cozy j +bucket i bucket j ](2); Among them, the distance matrix D = (dij)n×n; d ij It represents the distance between two points i and j, i, j = 1, 2, ..., n; R = 6370 is the radius of the earth; Using formula (2), the distance matrix D between any two points is calculated. The obtained tourist geographic location data is substituted into formula (2) to obtain the recommended route and recommended scenic spot information of the target user in the target scenic spot.
4. The method according to claim 1, in, The step of constructing a cultural gene map of the target scenic spot according to the target scenic spot information includes: Perform entity recognition and extraction on the target scenic spot information to obtain entity information; According to the logical relationship between the scenic spots, scenic spots, and cultural data content in the target scenic spot, a scenic spot cultural knowledge map containing the spatial location information and geographical relationship of the scenic spots, scenic spots, and scenic nodes is constructed; The entity information is linked to the cultural knowledge graph of the scenic spot and the relationship between entities is constructed to obtain a cultural gene graph of the target scenic spot.
5. A device for recommending scenic route, include: An acquisition unit, configured to acquire target scenic spot information; A construction unit is configured to construct a cultural gene map of the target scenic spot according to the target scenic spot information; A generating unit configured to generate a recommended route and recommended scenic spot information for the target user in the target scenic spot according to the target user information and the cultural gene map; The sending unit is configured to send the recommended route and the recommended scenic spot information to a target user device.
6. The device according to claim 5, in, The device further comprises a display unit configured to: Displaying a first display interface on the target user device, wherein the first display interface includes the recommended route and recommended scenic spot information; In response to detecting a selection operation of the target user for a target attraction in the recommended route in the first display interface, generating route information of the target user to the target attraction; A second display interface is displayed, wherein the second display interface includes route information from the target user to the target attraction and target attraction information.
7. The device according to claim 5, in, The generating unit is further configured to: Obtain the geographic coordinate data of each scenic spot in the target scenic spot from the cultural gene map (x i ,y i )(i=1,…,n), number the scenic spots 1, 2, 3,…,n in sequence; The route from the target user location to the target scenic spot is determined according to the following formula: (Rcosx i cosy i ,Rsinx i ;cosy i ,Rsiny i )(1); Using formula (1) to convert geographic coordinates into rectangular coordinates, we get formula (2): d=Rarccos[cos(x) i -x j )cosy i cozy j +bucket i bucket j ](2); Among them, the distance matrix D = (dij)n×n; d ij It represents the distance between two points i and j, i, j = 1, 2, ..., n; R = 6370 is the radius of the earth; Using formula (2), the distance matrix D between any two points is calculated. The obtained tourist geographic location data is substituted into formula (2) to obtain the recommended route and recommended scenic spot information of the target user in the target scenic spot.
8. The device according to claim 5, in, The building block is further configured to: Perform entity recognition and extraction on the target scenic spot information to obtain entity information; According to the logical relationship between the scenic spots, scenic spots, and cultural data content in the target scenic spot, a scenic spot cultural knowledge map containing the spatial location information and geographical relationship of the scenic spots, scenic spots, and scenic nodes is constructed; The entity information is linked to the cultural knowledge graph of the scenic spot and the relationship between entities is constructed to obtain a cultural gene graph of the target scenic spot.
9. An electronic device, include: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
10. A computer readable medium having a computer program stored thereon, in, When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Cited By
Tourism content recommendation system for analyzing favorites of tourism scenic spots
CN119474552A
Vector database-based science and technology museum exhibition item intelligent retrieval and recommendation system and method
CN121166779A
Space positioning method and system based on intelligent wearable device
CN121558007A
