WO2019184833A1 - Tourism information recommending method and device - Google Patents

Tourism information recommending method and device Download PDF

Info

Publication number
WO2019184833A1
WO2019184833A1 PCT/CN2019/079335 CN2019079335W WO2019184833A1 WO 2019184833 A1 WO2019184833 A1 WO 2019184833A1 CN 2019079335 W CN2019079335 W CN 2019079335W WO 2019184833 A1 WO2019184833 A1 WO 2019184833A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
data
attraction
travel
information
Prior art date
Application number
PCT/CN2019/079335
Other languages
French (fr)
Chinese (zh)
Inventor
黄晓鸣
陈怒潭
顾元勋
陈旭亮
Original Assignee
上海程向信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海程向信息科技有限公司 filed Critical 上海程向信息科技有限公司
Publication of WO2019184833A1 publication Critical patent/WO2019184833A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • G06Q10/047Optimisation of routes or paths, e.g. travelling salesman problem
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0251Targeted advertisements
    • G06Q30/0269Targeted advertisements based on user profile or attribute
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0251Targeted advertisements
    • G06Q30/0255Targeted advertisements based on user history
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/14Travel agencies

Definitions

  • the present application relates to the field of information processing, and in particular, to a travel information recommendation method and apparatus.
  • the application for tourism generally adopts the following methods when recommending tourist attractions for users.
  • One method is to require the user to select the desired destination, to recommend the attraction according to the user's choice and to make a schedule.
  • the method requires the user to input the target attraction and calculate, when the user does not know which destination to go or the information of the attraction is not clear. This method is not applicable, so it is less practical and not suitable for the general public.
  • the object of the present application is to overcome the above problems or at least partially solve or alleviate the above problems.
  • a travel information recommendation method comprising:
  • a user information obtaining step acquiring first user data, where the first user data includes identity information of the first user and user history information;
  • a recommendation information generating step inputting the first user data into the trained deep neural network to generate a travel information recommendation result, the travel information recommendation result characterizing a probability that the first user will go to at least one attraction tour;
  • the deep neural network is obtained through a training step, and the training steps include:
  • User data labeling step for each user in the user set, acquiring the travel history data of the user, and using the data before the time point T in the travel history data as the input data of the training data, and the time point T After that, the first tourist attraction that the user has visited and other attractions outside the tourist attraction are marked separately to obtain actual tourism result data;
  • Sight data acquisition step obtaining, for each attraction in the collection of attractions, attraction data, the attraction data including basic information data of the attraction and behavior data of each user for the attraction;
  • a model prediction step inputting the attraction data, the identity information of each user, and the training data of the user into a deep neural network to obtain a probability set of each of the users going to each attraction tour;
  • the model correction step comparing the actual travel result data with a probability set, and modifying the deep neural network to obtain the trained deep neural network.
  • the method adopts a machine learning method to acquire and analyze the user's behavior data through the image of the attraction and social sharing, and automatically recommend the tourist attraction for the user, and the user can obtain the result that meets the user's inner expectation without selecting the tourist attraction to be visited in advance. Saves users time and brings a new and better user experience.
  • Social sharing, etc. plays an important role in the data analysis of this application, providing a source of data for the model and providing a good platform for capturing user behavior.
  • model prediction step includes:
  • Input step inputting the training data and the attraction data to an input layer of the deep neural network
  • Processing step converting each item of the training data and each item of the attraction data into corresponding feature data
  • a conversion step converting feature data corresponding to the training data into a user feature matrix, and converting feature data corresponding to the attraction data into an attraction feature matrix;
  • Correlation step associating the user feature matrix with the attraction feature matrix of each attraction, and calculating a probability that the user represented by the user feature matrix goes to the attraction;
  • Output step calculating a probability set of each user in the set of users going to each attraction tour and outputting the probability set.
  • model correction step comprises:
  • a data type conversion step comparing the probability data in the probability set with a preset threshold, and converting the probability data into an integer type of data;
  • a residual calculation step comparing the integer type data with the actual travel result data to obtain residual data
  • Correction step correcting the deep neural network by reverse neural propagation using the residual data.
  • the method analyzes the actual behavior of the user and corrects the model as a feedback result, so that the model is more accurate, and the travel recommendation result closer to the user's real requirements and expectations is calculated.
  • the method further includes:
  • Sight preference step at least one attraction included in the travel information recommendation result and behavior of the first user to the at least one attraction at every predetermined time interval or in response to the first user's route planning instruction Data identifies preferred attractions;
  • Route planning step path planning is performed on the preferred attraction according to the objective function and the constraint, and a travel route is generated.
  • the method adds route planning steps after recommending tourist attractions, and incorporates the perspective of tourism psychology into the design of the method, so that the results are more in line with user needs.
  • the method further includes: after the route planning step:
  • a route determining step determining whether the travel route needs to be modified, and if it is necessary to modify, re-planning the route according to the modification of the scenic spot in the travel route by the first user;
  • Attraction marking step marking the preferred attraction as the behavior data of the first user according to the feedback of the first user, so as to be the data required for the training step.
  • the user's real feedback data can be obtained, and the data can be used as the data of the modified model to make the model more accurate.
  • a travel information recommendation apparatus including:
  • a user information obtaining module configured to acquire first user data, where the first user data includes identity information of the first user and user history information;
  • a recommendation information generating module configured to input the first user data into the trained deep neural network to generate a travel information recommendation result, the travel information recommendation result characterizing a probability that the first user will travel to at least one attraction;
  • the deep neural network is obtained through a training module, and the training module includes:
  • a user data labeling module configured to acquire, for each user in the user set, travel history data of the user, and use data before the time point T in the travel history data as input data of training data, After the time point T, the first tourist attraction that the user has visited and other attractions outside the tourist attraction are respectively marked to obtain actual tourism result data;
  • An attraction data acquisition module configured to acquire attraction data for each attraction in the collection of attractions, the attraction data including basic information data of the attraction and behavior data of the user to the attraction;
  • a model prediction module configured to input the training data and the attraction data into a deep neural network to obtain a probability set for each user in the user set to travel to each attraction;
  • a model correction module configured to compare the actual travel result data with a probability set, and modify the deep neural network to obtain the trained deep neural network.
  • the device adopts a machine learning method to automatically recommend the tourist attractions by acquiring and analyzing the user's behavior data, and the user can obtain the result that meets the user's inner expectation without having to select the tourist attraction to be visited in advance, thereby saving the user's time. Come to a new and better user experience.
  • model prediction module includes:
  • An input module configured to input the training data and the attraction data to an input layer of the deep neural network
  • a processing module configured to convert each item of the training data and each item of the attraction data into corresponding feature data
  • a conversion module configured to convert feature data corresponding to the training data into a user feature matrix, and convert feature data corresponding to the attraction data into an attraction feature matrix
  • An association module configured to associate the user feature matrix with an attraction feature matrix of each attraction, and calculate a probability that the user represented by the user feature matrix goes to the attraction;
  • An output module configured to calculate a probability set for each of the user sets to travel to each attraction and output the probability set.
  • the device is further connected after the recommendation information generating device:
  • a scenic spot preference module configured to, according to the first user's route planning instruction, at least one attraction included in the travel information recommendation result and the first user pair the at least one Behavioral data of the attraction determines the preferred attraction
  • a route planning module configured to perform path planning on the preferred attraction according to an objective function and a constraint to generate a travel route.
  • a computer apparatus comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor executes the computer program
  • the travel information recommendation method as described above is implemented.
  • a computer readable storage medium preferably a non-transitory readable storage medium having stored therein a computer program, which when executed by a processor, is implemented as described above Tourist information recommendation method.
  • FIG. 1 is a flow chart of one embodiment of a travel information recommendation method according to the present application.
  • FIG. 2 is a flow chart of one embodiment of a training step in accordance with the method of the present application.
  • FIG. 3 is a flow diagram of one embodiment of a model prediction step of a method in accordance with the present application.
  • FIG. 4 is a flow diagram of one embodiment of a model modification step in accordance with the method of the present application.
  • FIG. 5 is a flowchart of another embodiment of a travel information recommendation method according to the present application.
  • FIG. 6 is a block diagram of one embodiment of a deep neural network in accordance with the present application.
  • Figure 7 is a block diagram of one embodiment of a travel information recommending apparatus according to the present application.
  • FIG. 8 is a block diagram of one embodiment of a training module of the apparatus in accordance with the present application.
  • FIG. 9 is a block diagram of one embodiment of a model prediction module of a device in accordance with the present application.
  • FIG. 10 is a block diagram of another embodiment of a travel information recommending apparatus according to the present application.
  • a travel information recommendation method is provided. 1 is a flow chart of one embodiment of a travel information recommendation method in accordance with the present application. The method includes:
  • a user information obtaining step acquiring first user data, where the first user data includes identity information of the first user and user history information;
  • the recommendation information generating step inputting the first user data into the trained deep neural network to generate a travel information recommendation result, and the travel information recommendation result characterizes a probability that the first user will go to at least one attraction tour.
  • the first user data is used to describe basic information and historical information of the user, and the basic information may be identity information, and the basic information may include one or more of the following data: user identification information (user ID), name, gender, age, Occupation, family status, user label.
  • User tags can include travel preferences and personal preferences such as: adventure, sports, beach, leisure, sightseeing, activities, culture, adventure, party, people, food, ocean, mountain, nature, city, museum, travel, quiet, backpack, outdoor , buildings, lakes, sunsets, forests, sunrise, warmth, cold, etc.
  • Historical information is used to describe the behavior history of the user on the social platform.
  • the social platform may include a social networking website and/or an application (APP).
  • APP application
  • the historical information may include one or more of the following data: user travel history data, user-related travel-related search records, spending habits, and attention content.
  • the user travel history data can be used to describe the travel history of the user.
  • the "features" of each attraction that the user has been to For example, a record published by a user on a social platform about which of the attractions the user visits, the data may be a picture and/or text, and the text may include a log, a message, a status of the publication, and the like.
  • the user retrieval data may include a record of the user retrieving an attraction or information related to the attraction on the social platform.
  • Information related to the attraction may include one or more of the following data: food around the attraction, accommodation, transportation, tickets, other attractions associated with the attraction.
  • the first user data is input into the trained deep neural network to generate a travel information recommendation result, and the travel information recommendation result represents a probability that the first user will go to at least one attraction tour. If you get the probability that the user will go to multiple attractions, the probabilities are sorted in descending order. You can give priority to recommending and displaying the most probable attractions, as well as displaying the first few attractions.
  • the deep neural network model also known as the multilayer perceptron model, is an artificial neural network with a forward structure that maps a set of input data to a set of output data. It can be thought of as a directed graph consisting of multiple node layers, each connected to the next layer. In addition to the input nodes, each node is a neuron (or processing unit) with a nonlinear activation function.
  • the deep neural network generally includes an input layer, a hidden layer, and an output layer, wherein the hidden layer includes at least one layer, or may be two or more layers.
  • the process of neural network is divided into forward process and reverse process. The forward process is generally used for prediction, and the reverse process is generally used for training.
  • each neuron has a weight, offset, and activation function for an input.
  • the activation function can include one or more of identity, sigmoid, ReLU, and variations thereof.
  • the data is input to the input layer, that is, the first layer, and the output result is obtained after the neuron operation, and then the output result of the first layer is used as the input of the second layer. And so on, until the output layer outputs the final result. If the deep neural network is trained, the weights and offsets have been determined. For a new input, the prediction process can be output through the above process.
  • the association relationship between the user data and the attraction data is established in the deep neural network, so the first user data is input into the deep neural network, and the travel information recommendation result can be obtained, and the result can represent the first The probability that the user will travel to at least one attraction.
  • FIG. 1 is a flow diagram of one embodiment of the training steps of the method according to the present application.
  • the training steps include:
  • User data labeling step for each user in the user set, acquiring the travel history data of the user, and using the data before the time point T in the travel history data as the input data of the training data, and the time point T After that, the first tourist attraction that the user has visited and other attractions outside the tourist attraction are marked separately to obtain actual tourist result data.
  • the training data can also include basic information of the user.
  • the set of users may be all users who registered one or more travel-related social platforms.
  • the social platform may be a specific platform developed according to the requirements of the present application, and the platform may be a tourism-themed platform on which users can publish travel-related articles, pictures, Comments, in addition, users can also like, click on the platform recommended connections, payments, and so on.
  • the user's travel history data may be travel related data that has been generated after the user operates on the platform.
  • the travel history data is divided into two parts at a certain time point, for example, the time point T, and the data occurring before the time point T in the travel history data is extracted, and the data is used as input data of the training data. .
  • By analyzing the travel history data between the time point T and the current time it is possible to obtain whether the user travels to some or some attractions. If the user has visited at least one tourist attraction, the first tourist attraction that the user goes to is marked as 1 and the other tourist attractions are marked as 0. Other attractions may be those that the user has visited after going to the first field attraction. It can also be that the user has not been to.
  • the tourist attractions that have not been visited may be a certain range of attractions around the tourist attractions. It can be understood that other identification methods can also be adopted as long as the first tourist attraction that has been visited can be distinguished from other tourist attractions.
  • the result is actual travel result data.
  • a number of time points T can be set. For example, T can take January 1, 2015, July 1, 2016, etc., in this way, multiple training data can be generated for the entire data of one user. The formation of multiple samples increases the amount of data in the training data set, making the training results of the deep neural network model more accurate.
  • the training step further includes: an attraction data acquisition step. Obtaining attraction data for each of the attractions in the collection of attractions, the attraction data including basic information data of the attraction and behavior data of each user to the attraction;
  • the collection of attractions can include: attractions within the country of the user, attractions and venues around the world.
  • the venues include but are not limited to: networking parties, concert venues, fashion show venues, etc.
  • the basic information data of the scenic spot may include one or more of the following data: attraction identification information (attraction ID), attraction type, article, picture, rating, and comment.
  • the article includes an article describing and/or introducing the attraction, and an article describing the store and the merchant in the attraction.
  • the article can be a log. Comments include comments on attractions, articles, pictures, and attractions. Intelligent analysis of logs and comments can be implemented using semantic analysis techniques.
  • the basic information data of the attraction is a statistical analysis performed for all users in the user collection.
  • the behavior data of the user in the user collection for the attraction may also be referred to as user dependency data, which characterizes the user's dependence on the attraction.
  • user dependency data For example, for the first user, when performing the scenic spot data obtaining step, for a certain scenic spot, the behavior data includes the first user's likes of the scenic spot, browsing the articles related to the scenic spot, the duration, the number of times, and the comment.
  • Behavioral data is a statistical analysis of the behavior of a user in a data tagging step.
  • the training step further includes a model prediction step.
  • the attraction data, the identity information of each user, and the training data of the user are input into a deep neural network to obtain a probability set of each of the users going to each attraction.
  • model prediction step may include an input step of inputting the training data and the attraction data to an input layer of the deep neural network.
  • the model prediction step may further include a processing step of converting each item of the training data and each item of the attraction data into corresponding feature data.
  • the feature data can be in the form of a vector.
  • Each item of data has a one-to-one correspondence with the feature data. For example, converting ID information into ID features converts articles into article features.
  • the obtained feature data is transmitted to the hidden layer. For the user's travel history data and the search record related to the travel, when inputting, a plurality of records can be input, and the feature data obtained in the processing step is the average feature data of the plurality of records.
  • a vector can be obtained when characterizing each travel history data, due to the limitation of the model on the data input format.
  • the average feature data obtained by averaging the feature data corresponding to each of the plurality of travel history data of one user is substituted into the deep neural network for calculation.
  • the “user travel history information feature” is obtained by summing the travel history data and then taking the mean value. The obtained results can meet the requirements of the model for the data format and also reflect all the travel history.
  • the model prediction step may further include a converting step of converting feature data corresponding to the training data into a user feature matrix, and converting feature data corresponding to the attraction data into an attraction feature matrix.
  • the conversion step can be performed in the hidden layer, and the hidden layer further calculates and processes the feature data to obtain a feature matrix, and the hidden layer used in the calculation can be one layer or multiple layers.
  • all of the feature data associated with the user can be transformed into a user feature matrix, and all feature data associated with the attraction can be transformed into an attraction feature matrix.
  • the model prediction step may further include an associating step of associating the user feature matrix with an attraction feature matrix of each attraction, and calculating a probability that the user represented by the user feature matrix goes to the attraction.
  • the association step can also be done at the hidden layer.
  • the model prediction step may further include an outputting step of calculating a probability set for each of the user sets to go to each attraction tour and outputting the probability set. This step can be performed at the output layer.
  • the output layer of the deep neural network outputs a probability that characterizes the likelihood that the user will travel to the attraction.
  • the deep neural network model includes three layers, in which the lowest layer represents the input layer, the penultimate layer is the hidden layer, and the reciprocal The third layer is the output layer.
  • Part of the data in the input layer is connected to the data processed in the hidden layer through the fully connected layer, for example, user ID, gender, occupation, age, travel preferences, user's travel history data, user search history, and attraction data in the training data.
  • the attraction ID the type of attraction, the name of the attraction, the rating, the comment, the like, the first user's likes of the attraction, the duration and number of times the picture or log is viewed.
  • a convolutional neural network (CNN) connection is used between the input layer and the hidden layer.
  • CNN recurrent neural network
  • “user attraction relevance” is a probability value.
  • the loss function of the training model is cross entropy.
  • N "user attraction relevance features” probability values are obtained, and sorting is performed according to the probability values.
  • the softmax activation function is implemented between the user feature and the user's scenic spot correlation feature. The function can be applied to different kinds of neural networks such as multi-layer neural network and convolutional neural network.
  • the present application extracts features by deep learning, for example, using a deep neural network model to calculate the relevance of a user to an attraction.
  • a deep neural network model to calculate the relevance of a user to an attraction.
  • the data with similar features will gradually approach, and finally the feature matrix is obtained.
  • the output layer can sort the attractions and/or activities and recommend them to the user.
  • the training step further includes a model correction step.
  • 4 is a flow diagram of one embodiment of a model modification step in accordance with the method of the present application.
  • the correcting step the actual travel result data and the probability set are compared, and the deep neural network is corrected to obtain the trained deep neural network.
  • the model modification step includes a data type conversion step of comparing the probability data in the probability set with a preset threshold, and converting the probability data into an integer type of data.
  • the purpose of this step is to align the probability data with the type of actual travel result data.
  • the model correction step further includes a residual calculation step of comparing the integer type of data with the actual travel result data to obtain residual data.
  • the probability data can be converted to an integer and then compared with the actual travel result to obtain residual data.
  • the model modification step further includes a correction step of correcting the deep neural network by reverse neural propagation using the residual data.
  • the correction method may include: an outlier test, a homogeneity test of the variance, a normality test of the error, a correlation test, and a concomitant variance stabilization transformation, a normalization transformation, and the like.
  • the user does not need to input the target spot that he wants to go, and the special planner does not consult the user, and the user's behavior can be analyzed to automatically analyze the tourist attraction that the customer wants to go.
  • This method takes into account the knowledge of tourism psychology in design, so it is more intelligent and user-friendly, and the recommendation results are more accurate.
  • the method may further include an attraction optimization step and a route planning step after the recommendation information generating step.
  • the scenic spot optimization step includes: at least one attraction included in the travel information recommendation result and the first user to the at least one attraction at every predetermined time interval or in response to the first user's route planning instruction Behavioral data identifies preferred attractions.
  • the route planning step performs path planning on the preferred attraction according to the objective function and the constraint condition to generate a travel route.
  • the first is to adopt a method of regularly recommending tourist routes. For example, every fixed time interval, for example, one week or one month, according to the travel information recommendation result, path planning is performed according to one or several tourist attractions. When planning with multiple attractions, these attractions preferably belong to one city or are relatively close. For example, the number of attractions, the name of the attraction, and the route planning are selected for the user according to the length of the weekend, the short holiday, and the long holiday. With this method, user time can be saved, and a practical travel plan can be provided for the user.
  • a method of regionalized path recommendation may be employed.
  • the user may select at least one city or a range of areas, and then the system selects attractions belonging to the city or the area from the recommended tourist attractions for path planning. With this method, the travel route developed is more in line with the user's psychological expectations.
  • the method may also directly perform a route planning step in the recommendation information generating step.
  • the route planning step includes: performing path planning on all or some of the scenic spots included in the travel information recommendation result according to the objective function and the constraint condition, and generating a travel route.
  • the objective function of the path plan can be as shown in equation (1):
  • R is the path with the smallest overall distance planned
  • c ij is the distance from attraction i to attraction j
  • constraints of the objective function include:
  • the formula (3) indicates that only one of the other attractions reaches the attraction j
  • the formula (4) indicates that only one of the other attractions can be reached from the attraction i.
  • the constraint of the objective function may further include at least one of the following conditions:
  • the data can be obtained from articles, comments, other websites or channels published by the user on the social platform of the application;
  • the time required to visit the attraction which may be the time required to normally visit an attraction or calculate the average time of time for multiple users to browse the attraction under statistical conditions;
  • the constraint condition may be determined according to the user's selection, or may be determined according to analysis of other users, or the user's travel travel habits may be obtained according to the user's travel history data, search records, and the like;
  • the maximum carrying capacity of the user indicates the maximum duration of the user's daily outgoing time.
  • the data can be learned and predicted from the user's historical travel preferences through machine learning calculations, or can be obtained through travel arrangements, such as flight information. For example, if the user is analyzed as a leisurely type through machine learning calculation, it indicates that the maximum load capacity is too small, and the user can be arranged with fewer attractions every day; if the user is a card type, the maximum load is biased. Large, you can arrange more attractions for the user every day.
  • the total length of one day or the total length of travel time does not exceed the first threshold.
  • the total length of the journey or time does not include the distance and time of the visit.
  • the first threshold may be obtained by machine learning predicting user historical travel data, or obtained by user customization.
  • the total amount of time spent visiting the attraction one day does not exceed the second threshold.
  • the total amount of time spent visiting the attraction does not include the time spent on the journey.
  • the second threshold may be predicted by machine learning to obtain historical user travel data, or user-defined acquisition. It can be understood that the sixth point and the seventh point can also be combined to form a constraint condition.
  • Process relevance Specifically, for example, if the user requests that the attraction A must be visited before the attraction B, the system judges the restriction condition. For example, the priority of the attraction is determined according to the application scenario.
  • the application scenario can be time. If time is limited, then attraction A has a higher priority than attraction B than attraction B, and attraction B may not be in the path planning result.
  • Priority data can be obtained by sorting the attractions in the travel information recommendation results.
  • FIG. 5 is a flow chart of another embodiment of a travel information recommendation method according to the present application.
  • the travel information recommendation method may further include: after the route planning step:
  • a route determining step determining whether the travel route needs to be modified, and if it is necessary to modify, re-planning the route according to the modification of the scenic spot in the travel route by the first user;
  • Attraction marking step marking the preferred attraction as the behavior data of the first user according to the feedback of the first user, so as to be the data required for the training step.
  • Fig. 7 is a block diagram of an embodiment of a travel information recommending apparatus according to the present application.
  • the device includes:
  • a user information obtaining module configured to acquire first user data, where the first user data includes identity information of the first user and user history information;
  • a recommendation information generating module configured to input the first user data into the trained deep neural network to generate a travel information recommendation result, the travel information recommendation result characterizing a probability that the first user will travel to at least one attraction;
  • the deep neural network is obtained through a training module, and the training module includes:
  • a user data labeling module configured to acquire, for each user in the user set, travel history data of the user, and use data before the time point T in the travel history data as input data of training data, After the time point T, the first tourist attraction that the user has visited and other attractions outside the tourist attraction are respectively marked to obtain actual tourism result data;
  • An attraction data acquisition module configured to acquire attraction data for each attraction in the collection of attractions, the attraction data including basic information data of the attraction and behavior data of the user to the attraction;
  • a model prediction module configured to input the training data and the attraction data into a deep neural network to obtain a probability set for each user in the user set to travel to each attraction;
  • a model correction module configured to compare the actual travel result data with a probability set, and modify the deep neural network to obtain the trained deep neural network.
  • the device adopts a machine learning method to automatically recommend the tourist attractions by acquiring and analyzing the user's behavior data, and the user can obtain the result that meets the user's inner expectation without having to select the tourist attraction to be visited in advance, thereby saving the user's time. Come to a new and better user experience.
  • model correction module includes:
  • a data type conversion module configured to compare the probability data in the probability set with a preset threshold, and convert the probability data into an integer type of data
  • a residual calculation module configured to compare the integer type of data with the actual travel result data to obtain residual data
  • a correction module configured to modify the deep neural network with the residual data.
  • model prediction module includes:
  • An input module configured to input the training data and the attraction data to an input layer of the deep neural network
  • a processing module configured to convert each item of the training data and each item of the attraction data into corresponding feature data
  • a conversion module configured to convert feature data corresponding to the training data into a user feature matrix, and convert feature data corresponding to the attraction data into an attraction feature matrix
  • An association module configured to associate the user feature matrix with an attraction feature matrix of each attraction, and calculate a probability that the user represented by the user feature matrix goes to the attraction;
  • An output module configured to calculate a probability set for each of the user sets to travel to each attraction and output the probability set.
  • the device is further connected after the recommendation information generating device:
  • a scenic spot preference module configured to, according to the first user's route planning instruction, at least one attraction included in the travel information recommendation result and the first user pair the at least one Behavioral data of the attraction determines the preferred attraction
  • a route planning module configured to perform path planning on the preferred attraction according to an objective function and a constraint to generate a travel route.
  • FIG. 10 is a block diagram of another embodiment of a travel information recommending apparatus according to the present application.
  • the route planning module is further connected with:
  • a user intention judging module judging whether the travel route meets the expectation of the first user, if yes, executing a line determination module, and if not, executing an attraction labeling module;
  • a route determining module configured to determine whether the travel route needs to be modified, and if necessary, re-planning the path according to the modification of the scenic spot in the travel route by the first user;
  • An attraction tag module configured to mark the preferred attraction as behavior data of the first user based on feedback from the first user to serve as data required for the training step.
  • the application adopts artificial intelligence instead of human to make decision, first obtains data information through a specific channel, and finally realizes a recommendation function of fully generating a personalized travel route conforming to the user image.
  • the present application acquires a user's travel behavior characteristics through a social platform, and the information is obtained from the user's travel behavior and social behavior.
  • This application mainly uses artificial intelligence to make predictions and recommendations, and uses a linear programming algorithm to perform path planning.
  • this application uses the basic theory of tourism psychology to verify and explain the characteristics of the user's travel behavior, and uses the machine learning algorithm to predict and recommend the user's travel behavior.
  • the present application formulates a travel route by means of an integer linear programming algorithm for the manner in which a user travels during a trip. Since artificial intelligence does not have a very strong advantage in accurate calculation, this application combines a linear programming algorithm to calculate the part that requires precise calculation, thus realizing the effect of "customization".
  • the main parameters considered by the algorithm include: the point of interest selected by the user at the user terminal or the point of view of the user's optimal choice predicted by artificial intelligence, the type of the tool to be selected, the point of arrival, the path most likely to be selected by the user. , the user's time requirements for viewing attractions, and so on.
  • the path is planned using the objective function and constraints, and the simulation route is designed.
  • the corresponding user's feedback and requirements are obtained, for example, whether the route needs to be modified, whether the time schedule is reasonable, whether the user is willing to purchase the scenic spot ticket or the transportation ticket on the route, and refer to the route to travel, etc., preliminary determination result. Since the existing technology only adopts the linear programming method in path planning, the application combines artificial intelligence and path planning, so that more accurate calculation results can be obtained to meet the needs of different types of customers.
  • the platform will also be able to collect data through big data, such as user ratings of attractions, restaurants recommended by other users, more accurate traffic information, and the like.
  • a computer apparatus comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor executes the computer At the time of the program, any one of the travel information recommendation methods described above is implemented.
  • a computer readable storage medium preferably a non-volatile readable storage medium having stored therein a computer program that, when executed by a processor, implements Any one of the recommended travel information methods.
  • a computer program product comprising instructions is also provided.
  • the computer program product is run on a computer, the computer is caused to execute any one of the above-described travel information recommendation methods.
  • the computer program product includes one or more computer instructions.
  • the computer loads and executes the computer program instructions, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Abstract

Disclosed in the present application are a tourism information recommending method and device, The method comprises: a user information obtaining step: acquiring data of a first user, the data of the first user comprising identity information of the first user and history information of the user; and a recommendation information generating step: inputting the data of the first user into a trained deep neural network, and generating a tourism information recommendation result which expresses the probability that the first user will go to at least one tourist attraction, wherein the deep neural network is obtained by means of a training step, and the training step comprises: a user data marking step, a tourist attraction data acquisition step, a model prediction step and a model correction step. The described method employs a machine learning method to automatically recommend tourist attractions for a user by acquiring and analyzing behavior data of the user, which saves the time of the user and brings a brand new and better user experience.

Description

旅游信息推荐方法和装置Tourist information recommendation method and device 技术领域Technical field
本申请涉及信息处理领域,特别是涉及一种旅游信息推荐方法和装置。The present application relates to the field of information processing, and in particular, to a travel information recommendation method and apparatus.
背景技术Background technique
目前,关于旅游方面的应用程序(APP)在为用户推荐旅游景点时,一般采用如下几种方法。一种方法是需要用户自行选择想去的目标景点,根据用户的选择推荐景点并且制作行程表,该方法需要用户输入目标景点后进行计算,当用户不知道想去哪个景点或者不太清楚景点信息时,该方法并不适用,因此实用性较低,不适合一般大众。还有一种方法由旅行社的专业定制师通过人工来完成,首先,定制师需要了解大量的旅游信息与资讯,对各地的特点非常了解;其次,定制师需要花费大量的时间与用户沟通并根据沟通结果对推荐的景点进行调整,该方法需要花费大量的人力资源,效率很低。At present, the application for tourism (APP) generally adopts the following methods when recommending tourist attractions for users. One method is to require the user to select the desired destination, to recommend the attraction according to the user's choice and to make a schedule. The method requires the user to input the target attraction and calculate, when the user does not know which destination to go or the information of the attraction is not clear. This method is not applicable, so it is less practical and not suitable for the general public. There is also a method that is done manually by the professional customizer of the travel agency. First, the customizer needs to know a lot of travel information and information, and has a good understanding of the characteristics of each place. Secondly, the customizer needs to spend a lot of time communicating with the user and communicating according to the communication. As a result, the recommended attractions are adjusted. This method requires a lot of human resources and is inefficient.
发明内容Summary of the invention
本申请的目的在于克服上述问题或者至少部分地解决或缓减解决上述问题。The object of the present application is to overcome the above problems or at least partially solve or alleviate the above problems.
根据本申请的一个方面,提供了一种旅游信息推荐方法,该方法包括:According to an aspect of the present application, a travel information recommendation method is provided, the method comprising:
用户信息获取步骤:获取第一用户数据,所述第一用户数据包括第一用户的身份信息和用户历史信息;a user information obtaining step: acquiring first user data, where the first user data includes identity information of the first user and user history information;
推荐信息生成步骤:将所述第一用户数据输入经过训练的深度神经网络,生成旅游信息推荐结果,所述旅游信息推荐结果表征所述第一用户将去至少一个景点旅游的概率;a recommendation information generating step: inputting the first user data into the trained deep neural network to generate a travel information recommendation result, the travel information recommendation result characterizing a probability that the first user will go to at least one attraction tour;
其中,深度神经网络通过训练步骤得到,所述训练步骤包括:Wherein, the deep neural network is obtained through a training step, and the training steps include:
用户数据标注步骤:对于用户集合中的每一个用户,获取该用户的旅游历史数据,将所述旅游历史数据中发生在时间点T之前的数据作为训练数据的输入数据,将所述时间点T后该用户到过的第一个旅游景点和该旅游景点之外的其他景点分别进行标记,得到实际旅游结果数据;User data labeling step: for each user in the user set, acquiring the travel history data of the user, and using the data before the time point T in the travel history data as the input data of the training data, and the time point T After that, the first tourist attraction that the user has visited and other attractions outside the tourist attraction are marked separately to obtain actual tourism result data;
景点数据获取步骤:对于景点集合中的每一个景点,获取景点数据,所述景点数据包括该景点的基本信息数据和每一个用户对该景点的行为数据;Sight data acquisition step: obtaining, for each attraction in the collection of attractions, attraction data, the attraction data including basic information data of the attraction and behavior data of each user for the attraction;
模型预测步骤:将所述景点数据、所述每一个用户的身份信息和该用户的所述训练数据输入到深度神经网络中,得到所述每一个用户去每个景点旅游的概率集合;a model prediction step: inputting the attraction data, the identity information of each user, and the training data of the user into a deep neural network to obtain a probability set of each of the users going to each attraction tour;
模型修正步骤:将所述实际旅游结果数据和概率集合进行比对,对所述深度神经网络进行修正,得到所述经过训练的深度神经网络。The model correction step: comparing the actual travel result data with a probability set, and modifying the deep neural network to obtain the trained deep neural network.
该方法采用机器学习的方法,通过景点图片及社交分享等方法获取并且分析用户的行为数据,自动为用户推荐旅游景点,用户无需事先选择要去的旅游景点就能得到符合用户内心期望的结果,节省了用户的时间,带来了全新的更好的用户体验。社交分享等在本申请的数据分析中占有重要的地位,能够为模型提供数据来源,并且为捕捉用户行为提供了良好的平 台。The method adopts a machine learning method to acquire and analyze the user's behavior data through the image of the attraction and social sharing, and automatically recommend the tourist attraction for the user, and the user can obtain the result that meets the user's inner expectation without selecting the tourist attraction to be visited in advance. Saves users time and brings a new and better user experience. Social sharing, etc., plays an important role in the data analysis of this application, providing a source of data for the model and providing a good platform for capturing user behavior.
可选地,所述模型预测步骤包括:Optionally, the model prediction step includes:
输入步骤:将所述训练数据和所述景点数据输入到所述深度神经网络的输入层;Input step: inputting the training data and the attraction data to an input layer of the deep neural network;
处理步骤:将所述训练数据中的每一项数据和所述景点数据中的每一项数据分别转化为对应的特征数据;Processing step: converting each item of the training data and each item of the attraction data into corresponding feature data;
转化步骤:将与所述训练数据对应的特征数据转化为用户特征矩阵,并且将与所述景点数据对应的特征数据转化为景点特征矩阵;a conversion step: converting feature data corresponding to the training data into a user feature matrix, and converting feature data corresponding to the attraction data into an attraction feature matrix;
关联步骤:将所述用户特征矩阵与每一个景点的景点特征矩阵相关联,计算所述用户特征矩阵所代表的用户去该景点的概率;Correlation step: associating the user feature matrix with the attraction feature matrix of each attraction, and calculating a probability that the user represented by the user feature matrix goes to the attraction;
输出步骤:计算所述用户集合中的每一个用户去每个景点旅游的概率集合并输出所述概率集合。Output step: calculating a probability set of each user in the set of users going to each attraction tour and outputting the probability set.
通过该方法能够训练出更加符合用户习惯、与用户近期的行为和心理一致的深度神经网络模型,从而使得通过该模型进行预测的结果更加准确。Through this method, a deep neural network model that is more in line with the user's habits and consistent with the user's recent behavior and psychology can be trained, so that the prediction result by the model is more accurate.
可选地,所述模型修正步骤包括:Optionally, the model correction step comprises:
数据类型转化步骤:将所述概率集合中的概率数据与预设的阈值进行比较,将所述概率数据转化为整数类型的数据;a data type conversion step: comparing the probability data in the probability set with a preset threshold, and converting the probability data into an integer type of data;
残差计算步骤:将所述整数类型的数据与所述实际旅游结果数据进行比较,得到残差数据;a residual calculation step: comparing the integer type data with the actual travel result data to obtain residual data;
修正步骤:利用所述残差数据通过反向神经传播对所述深度神经网络进行修正。Correction step: correcting the deep neural network by reverse neural propagation using the residual data.
该方法通过对用户的实际行为进行分析并作为反馈结果对模型进行修正,从而使模型更加准确,计算出更加接近用户的真实要求和期望的旅游推荐结果。The method analyzes the actual behavior of the user and corrects the model as a feedback result, so that the model is more accurate, and the travel recommendation result closer to the user's real requirements and expectations is calculated.
可选地,该方法在所述推荐信息生成步骤后还包括:Optionally, after the step of generating the recommendation information, the method further includes:
景点优选步骤:每隔预定的时间间隔或者响应于所述第一用户的路线规划指令,根据所述旅游信息推荐结果中包括的至少一个景点和所述第一用户对所述至少一个景点的行为数据确定优选景点;Sight preference step: at least one attraction included in the travel information recommendation result and behavior of the first user to the at least one attraction at every predetermined time interval or in response to the first user's route planning instruction Data identifies preferred attractions;
路线规划步骤:根据目标函数和约束条件,对所述优选景点进行路径规划,生成旅行线路。Route planning step: path planning is performed on the preferred attraction according to the objective function and the constraint, and a travel route is generated.
该方法在推荐旅游景点后还增加了路线规划步骤,将旅游心理学的观点融入该方法的设计当中,使得结果更加符合用户需求。The method adds route planning steps after recommending tourist attractions, and incorporates the perspective of tourism psychology into the design of the method, so that the results are more in line with user needs.
可选地,该方法在所述路线规划步骤后还包括:Optionally, the method further includes: after the route planning step:
用户意向判断步骤:判断所述旅行线路是否符合所述第一用户的预期,如果是,则执行线路确定步骤,如果否,则执行景点标注步骤;a user intention determining step of: determining whether the travel route meets the expectation of the first user, and if so, performing a route determining step, and if not, performing an attraction marking step;
路线确定步骤:判断所述旅行线路是否需要修改,如果需要修改,则根据所述第一用户对所述旅行线路中的景点的修改,重新规划路径;a route determining step: determining whether the travel route needs to be modified, and if it is necessary to modify, re-planning the route according to the modification of the scenic spot in the travel route by the first user;
景点标记步骤:根据所述第一用户的反馈,将所述优选景点标记为所述第一用户的行为数据,以便作为所述训练步骤所需的数据。Attraction marking step: marking the preferred attraction as the behavior data of the first user according to the feedback of the first user, so as to be the data required for the training step.
通过该方法能够获得用户真实的反馈数据,将该数据作为修正模型的数据能够使得模型 更加准确。Through this method, the user's real feedback data can be obtained, and the data can be used as the data of the modified model to make the model more accurate.
根据本申请的另一个方面,提供了一种旅游信息推荐装置,包括:According to another aspect of the present application, a travel information recommendation apparatus is provided, including:
用户信息获取模块,其配置成获取第一用户数据,所述第一用户数据包括第一用户的身份信息和用户历史信息;a user information obtaining module, configured to acquire first user data, where the first user data includes identity information of the first user and user history information;
推荐信息生成模块,其配置成将所述第一用户数据输入经过训练的深度神经网络,生成旅游信息推荐结果,所述旅游信息推荐结果表征所述第一用户将去至少一个景点旅游的概率;a recommendation information generating module configured to input the first user data into the trained deep neural network to generate a travel information recommendation result, the travel information recommendation result characterizing a probability that the first user will travel to at least one attraction;
其中,深度神经网络通过训练模块得到,所述训练模块包括:The deep neural network is obtained through a training module, and the training module includes:
用户数据标注模块,其配置成对于用户集合中的每一个用户,获取该用户的旅游历史数据,将所述旅游历史数据中发生在时间点T之前的数据作为训练数据的输入数据,将所述时间点T后该用户到过的第一个旅游景点和该旅游景点之外的其他景点分别进行标记,得到实际旅游结果数据;a user data labeling module configured to acquire, for each user in the user set, travel history data of the user, and use data before the time point T in the travel history data as input data of training data, After the time point T, the first tourist attraction that the user has visited and other attractions outside the tourist attraction are respectively marked to obtain actual tourism result data;
景点数据获取模块,其配置成对于景点集合中的每一个景点,获取景点数据,所述景点数据包括该景点的基本信息数据和该用户对该景点的行为数据;An attraction data acquisition module configured to acquire attraction data for each attraction in the collection of attractions, the attraction data including basic information data of the attraction and behavior data of the user to the attraction;
模型预测模块,其配置成将所述训练数据和所述景点数据输入到深度神经网络中,得到所述用户集合中的每一个用户去每个景点旅游的概率集合;a model prediction module configured to input the training data and the attraction data into a deep neural network to obtain a probability set for each user in the user set to travel to each attraction;
模型修正模块,其配置成将所述实际旅游结果数据和概率集合进行比对,对所述深度神经网络进行修正,得到所述经过训练的深度神经网络。And a model correction module configured to compare the actual travel result data with a probability set, and modify the deep neural network to obtain the trained deep neural network.
该装置采用机器学习的方法,通过获取并且分析用户的行为数据,自动为用户推荐旅游景点,用户无需事先选择要去的旅游景点就能得到符合用户内心期望的结果,节省了用户的时间,带来了全新的更好的用户体验。The device adopts a machine learning method to automatically recommend the tourist attractions by acquiring and analyzing the user's behavior data, and the user can obtain the result that meets the user's inner expectation without having to select the tourist attraction to be visited in advance, thereby saving the user's time. Come to a new and better user experience.
可选地,所述模型预测模块包括:Optionally, the model prediction module includes:
输入模块,其配置成将所述训练数据和所述景点数据输入到所述深度神经网络的输入层;An input module configured to input the training data and the attraction data to an input layer of the deep neural network;
处理模块,其配置成将所述训练数据中的每一项数据和所述景点数据中的每一项数据分别转化为对应的特征数据;a processing module configured to convert each item of the training data and each item of the attraction data into corresponding feature data;
转化模块,其配置成将与所述训练数据对应的特征数据转化为用户特征矩阵,并且将与所述景点数据对应的特征数据转化为景点特征矩阵;a conversion module configured to convert feature data corresponding to the training data into a user feature matrix, and convert feature data corresponding to the attraction data into an attraction feature matrix;
关联模块,其配置成将所述用户特征矩阵与每一个景点的景点特征矩阵相关联,计算所述用户特征矩阵所代表的用户去该景点的概率;An association module, configured to associate the user feature matrix with an attraction feature matrix of each attraction, and calculate a probability that the user represented by the user feature matrix goes to the attraction;
输出模块,其配置成计算所述用户集合中的每一个用户去每个景点旅游的概率集合并输出所述概率集合。An output module configured to calculate a probability set for each of the user sets to travel to each attraction and output the probability set.
可选地,该装置在所述推荐信息生成装置后还连接有:Optionally, the device is further connected after the recommendation information generating device:
景点优选模块,其配置成每隔预定的时间间隔或者响应于所述第一用户的路线规划指令,根据所述旅游信息推荐结果中包括的至少一个景点和所述第一用户对所述至少一个景点的行为数据确定优选景点;a scenic spot preference module configured to, according to the first user's route planning instruction, at least one attraction included in the travel information recommendation result and the first user pair the at least one Behavioral data of the attraction determines the preferred attraction;
路线规划模块,其配置成根据目标函数和约束条件,对所述优选景点进行路径规划,生成旅行线路。A route planning module configured to perform path planning on the preferred attraction according to an objective function and a constraint to generate a travel route.
根据本申请的另一个方面,提供了一种计算机设备,包括存储器、处理器和存储在所述 存储器内并能由所述处理器运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如上所述的旅游信息推荐方法。According to another aspect of the present application, a computer apparatus is provided comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor executes the computer program The travel information recommendation method as described above is implemented.
根据本申请的另一个方面,提供了一种计算机可读存储介质,优选为非易失性可读存储介质,其内存储有计算机程序,所述计算机程序在由处理器执行时实现如上所述的旅游信息推荐方法。According to another aspect of the present application, there is provided a computer readable storage medium, preferably a non-transitory readable storage medium having stored therein a computer program, which when executed by a processor, is implemented as described above Tourist information recommendation method.
根据下文结合附图对本申请的具体实施例的详细描述,本领域技术人员将会更加明了本申请的上述以及其他目的、优点和特征。The above and other objects, advantages and features of the present application will become apparent to those skilled in the <RTI
附图说明DRAWINGS
后文将参照附图以示例性而非限制性的方式详细描述本申请的一些具体实施例。附图中相同的附图标记标示了相同或类似的部件或部分。本领域技术人员应该理解,这些附图未必是按比例绘制的。附图中:Some specific embodiments of the present application will be described in detail below by way of example and not limitation. The same reference numbers in the drawings identify the same or similar parts. Those skilled in the art should understand that the drawings are not necessarily drawn to scale. In the figure:
图1是根据本申请的旅游信息推荐方法的一个实施例的流程图;1 is a flow chart of one embodiment of a travel information recommendation method according to the present application;
图2是根据本申请的方法的训练步骤的一个实施例的流程图;2 is a flow chart of one embodiment of a training step in accordance with the method of the present application;
图3是根据本申请的方法的模型预测步骤的一个实施例的流程图;3 is a flow diagram of one embodiment of a model prediction step of a method in accordance with the present application;
图4是根据本申请的方法的模型修正步骤的一个实施例的流程图;4 is a flow diagram of one embodiment of a model modification step in accordance with the method of the present application;
图5是根据本申请的旅游信息推荐方法的另一个实施例的流程图;FIG. 5 is a flowchart of another embodiment of a travel information recommendation method according to the present application; FIG.
图6是根据本申请的深度神经网络的一个实施例的框图;6 is a block diagram of one embodiment of a deep neural network in accordance with the present application;
图7是根据本申请的旅游信息推荐装置的一个实施例的框图;Figure 7 is a block diagram of one embodiment of a travel information recommending apparatus according to the present application;
图8是根据本申请的装置的训练模块的一个实施例的框图;Figure 8 is a block diagram of one embodiment of a training module of the apparatus in accordance with the present application;
图9是根据本申请的装置的模型预测模块的一个实施例的框图;9 is a block diagram of one embodiment of a model prediction module of a device in accordance with the present application;
图10是根据本申请的旅游信息推荐装置的另一个实施例的框图。FIG. 10 is a block diagram of another embodiment of a travel information recommending apparatus according to the present application.
具体实施方式detailed description
根据下文结合附图对本申请的具体实施例的详细描述,本领域技术人员将会更加明了本申请的上述以及其他目的、优点和特征。The above and other objects, advantages and features of the present application will become apparent to those skilled in the <RTI
根据本申请的一个方面,提供了一种旅游信息推荐方法。图1是根据本申请的旅游信息推荐方法的一个实施例的流程图。该方法包括:According to an aspect of the present application, a travel information recommendation method is provided. 1 is a flow chart of one embodiment of a travel information recommendation method in accordance with the present application. The method includes:
用户信息获取步骤:获取第一用户数据,所述第一用户数据包括第一用户的身份信息和用户历史信息;a user information obtaining step: acquiring first user data, where the first user data includes identity information of the first user and user history information;
推荐信息生成步骤:将所述第一用户数据输入经过训练的深度神经网络,生成旅游信息推荐结果,所述旅游信息推荐结果表征所述第一用户将去至少一个景点旅游的概率。The recommendation information generating step: inputting the first user data into the trained deep neural network to generate a travel information recommendation result, and the travel information recommendation result characterizes a probability that the first user will go to at least one attraction tour.
第一用户数据用于描述用户的基本信息和历史信息,基本信息可以是身份信息,基本信息可以包括以下数据中的一种或者多种:用户标识信息(用户ID)、姓名、性别、年龄、职业、家庭状况、用户标签。用户标签可以包括旅游偏好和个人爱好例如:探险、运动、沙滩、休闲、观光、活动、文化、探险、聚会、人、食物、海洋、山河、自然、城市、博物馆、旅行、安静、背包、户外、建筑、湖泊、日落、森林、日出、温暖、寒冷等。历史信息用于描述用户在的社交平台上的行为历史例如,社交平台可以包括社交网站和/或应用程序(APP)。 该历史信息可以包括以下数据中的一种或者多种:用户旅游历史数据、用户与旅游相关的检索记录、消费习惯、及关注内容。在一个优选实施方案中,用户旅游历史数据可以用于描述用户在上的旅游历史。例如,用户去过的每个景点的“特征”。例如,用户在社交平台上发表的关于该用户去哪些景点旅游的记录,该数据可以是图片和/或文字,文字可以包括日志、留言、发表的状态等。用户检索数据可以包括用户在社交平台上对某个景点或者与该景点相关的信息进行检索的记录。与该景点相关的信息可以包括以下数据中的一种或者多种:景点周围的美食、住宿、交通、车票、与该景点相关的其他景点。The first user data is used to describe basic information and historical information of the user, and the basic information may be identity information, and the basic information may include one or more of the following data: user identification information (user ID), name, gender, age, Occupation, family status, user label. User tags can include travel preferences and personal preferences such as: adventure, sports, beach, leisure, sightseeing, activities, culture, adventure, party, people, food, ocean, mountain, nature, city, museum, travel, quiet, backpack, outdoor , buildings, lakes, sunsets, forests, sunrise, warmth, cold, etc. Historical information is used to describe the behavior history of the user on the social platform. For example, the social platform may include a social networking website and/or an application (APP). The historical information may include one or more of the following data: user travel history data, user-related travel-related search records, spending habits, and attention content. In a preferred embodiment, the user travel history data can be used to describe the travel history of the user. For example, the "features" of each attraction that the user has been to. For example, a record published by a user on a social platform about which of the attractions the user visits, the data may be a picture and/or text, and the text may include a log, a message, a status of the publication, and the like. The user retrieval data may include a record of the user retrieving an attraction or information related to the attraction on the social platform. Information related to the attraction may include one or more of the following data: food around the attraction, accommodation, transportation, tickets, other attractions associated with the attraction.
然后,将所述第一用户数据输入经过训练的深度神经网络,生成旅游信息推荐结果,所述旅游信息推荐结果表征所述第一用户将去至少一个景点旅游的概率。如果得到用户将去多个景点的概率,则将概率按照从大到小的顺序排序。可以优先推荐和显示概率最高的景点,也可以显示前若干个景点。Then, the first user data is input into the trained deep neural network to generate a travel information recommendation result, and the travel information recommendation result represents a probability that the first user will go to at least one attraction tour. If you get the probability that the user will go to multiple attractions, the probabilities are sorted in descending order. You can give priority to recommending and displaying the most probable attractions, as well as displaying the first few attractions.
深度神经网络模型也称多层感知器模型,是一种具有前向结构的人工神经网络,映射一组输入数据到一组输出数据。其可以被看作是一个有向图,由多个节点层组成,每一层全连接到下一层。除了输入节点,每个节点都是一个带有非线性激活函数的神经元(或称处理单元)。深度神经网络一般包括输入层、隐藏层和输出层,其中隐藏层包括至少一层,也可以是两层以上。神经网络的流程分为前向过程和反向过程。前向过程一般用于预测,反向过程一般用于训练。The deep neural network model, also known as the multilayer perceptron model, is an artificial neural network with a forward structure that maps a set of input data to a set of output data. It can be thought of as a directed graph consisting of multiple node layers, each connected to the next layer. In addition to the input nodes, each node is a neuron (or processing unit) with a nonlinear activation function. The deep neural network generally includes an input layer, a hidden layer, and an output layer, wherein the hidden layer includes at least one layer, or may be two or more layers. The process of neural network is divided into forward process and reverse process. The forward process is generally used for prediction, and the reverse process is generally used for training.
在前向过程中,每个神经元上都具有针对一个输入的权值、偏置和激活函数。激活函数可以包括identity、sigmoid、ReLU及其变体中的一种或几种。在使用该深度神经网络进行预测的过程中,将所述数据输入输入层,即第一层,经过神经元运算后得到输出结果,然后,将第一层的输出结果作为第二层的输入,以此类推,直到输出层输出最终结果。如果该深度神经网络是训练好的,则权值和偏置已经确定。对于一个新的输入,通过上述过程,能够输出预测结果。在本申请中,深度神经网络中建立了用户数据与景点数据之间的关联关系,因此将所述第一用户数据输入深度神经网络,能够得到旅游信息推荐结果,该结果可以表征所述第一用户将去至少一个景点旅游的概率。In the forward process, each neuron has a weight, offset, and activation function for an input. The activation function can include one or more of identity, sigmoid, ReLU, and variations thereof. In the process of using the deep neural network for prediction, the data is input to the input layer, that is, the first layer, and the output result is obtained after the neuron operation, and then the output result of the first layer is used as the input of the second layer. And so on, until the output layer outputs the final result. If the deep neural network is trained, the weights and offsets have been determined. For a new input, the prediction process can be output through the above process. In the present application, the association relationship between the user data and the attraction data is established in the deep neural network, so the first user data is input into the deep neural network, and the travel information recommendation result can be obtained, and the result can represent the first The probability that the user will travel to at least one attraction.
在反向过程中,深度神经网络通过如下训练步骤得到,图2是根据本申请的方法的训练步骤的一个实施例的流程图。所述训练步骤包括:In the reverse process, the deep neural network is obtained by the following training steps, and Figure 2 is a flow diagram of one embodiment of the training steps of the method according to the present application. The training steps include:
用户数据标注步骤:对于用户集合中的每一个用户,获取该用户的旅游历史数据,将所述旅游历史数据中发生在时间点T之前的数据作为训练数据的输入数据,将所述时间点T后该用户到过的第一个旅游景点和该旅游景点之外的其他景点分别进行标记,得到实际旅游结果数据。训练数据也可以包括用户的基本信息。User data labeling step: for each user in the user set, acquiring the travel history data of the user, and using the data before the time point T in the travel history data as the input data of the training data, and the time point T After that, the first tourist attraction that the user has visited and other attractions outside the tourist attraction are marked separately to obtain actual tourist result data. The training data can also include basic information of the user.
用户集合可以是注册一个或者多个和旅游相关的社交平台的所有用户。在一个可选的实施方案中,该社交平台可以是根据本申请的需求研发的特定平台,该平台可以是以旅游为主题的平台,用户可以在该平台上发表与旅游相关的文章、图片、评论,此外,用户还可以点赞、点击平台推荐的连接、支付等等。The set of users may be all users who registered one or more travel-related social platforms. In an optional implementation, the social platform may be a specific platform developed according to the requirements of the present application, and the platform may be a tourism-themed platform on which users can publish travel-related articles, pictures, Comments, in addition, users can also like, click on the platform recommended connections, payments, and so on.
用户的旅游历史数据可以是用户在该平台上进行操作后已经产生的与旅游相关的数据。以某个时间点,例如时间点T为节点,将该旅游历史数据分成两个部分,将所述旅游历史数 据中发生在时间点T之前的数据进行提取,将该数据作为训练数据的输入数据。对所述时间点T后直至当前时刻之间的旅游历史数据进行分析,能够得到该用户是否去某个或某些景点旅游。如果用户到过至少一个旅游景点,则将该用户去到的第一个旅游景点标记为1,将其他旅游景点标注为0,其他景点可以是用户在去过第一个领域景点之后去过的,也可以是用户没有去过的。该没有去的旅游景点可以是去过的旅游景点周围一定范围内的景点。可以理解的是,也可以采用其他的标识方式,只要能够将去过的第一个旅游景点和其他旅游景点区分开来即可。将各个景点进行标记后,所得到的结果是实际旅游结果数据。对于一个用户,可以设置若干个时间点T,例如,T可以取2015年1月1日,2016年7月1日等等,通过这样的方式可以将一个用户的整个数据生成多个训练数据,形成多个样本,从而增加训练数据集的数据量,使得深度神经网络模型的训练结果更加准确。The user's travel history data may be travel related data that has been generated after the user operates on the platform. The travel history data is divided into two parts at a certain time point, for example, the time point T, and the data occurring before the time point T in the travel history data is extracted, and the data is used as input data of the training data. . By analyzing the travel history data between the time point T and the current time, it is possible to obtain whether the user travels to some or some attractions. If the user has visited at least one tourist attraction, the first tourist attraction that the user goes to is marked as 1 and the other tourist attractions are marked as 0. Other attractions may be those that the user has visited after going to the first field attraction. It can also be that the user has not been to. The tourist attractions that have not been visited may be a certain range of attractions around the tourist attractions. It can be understood that other identification methods can also be adopted as long as the first tourist attraction that has been visited can be distinguished from other tourist attractions. After marking each attraction, the result is actual travel result data. For a user, a number of time points T can be set. For example, T can take January 1, 2015, July 1, 2016, etc., in this way, multiple training data can be generated for the entire data of one user. The formation of multiple samples increases the amount of data in the training data set, making the training results of the deep neural network model more accurate.
所述训练步骤还包括:景点数据获取步骤。对于景点集合中的每一个景点,获取景点数据,所述景点数据包括该景点的基本信息数据和每一个用户对该景点的行为数据;The training step further includes: an attraction data acquisition step. Obtaining attraction data for each of the attractions in the collection of attractions, the attraction data including basic information data of the attraction and behavior data of each user to the attraction;
景点集合可以包括:该用户所在的国家范围内的景点、世界范围内的景点和活动场地。其中,活动场地包括但不限于:联谊聚会场所,演唱会场地,时装秀场地等。景点的基本信息数据可以包括以下数据中的一种或者几种:景点标识信息(景点ID)、景点类型、文章、图片、评分、评论。其中,文章包括描述和/或介绍该景点的文章,介绍该景点内店铺、商家的文章。文章可以是日志。评论包括对景点、文章、图片、景点周边的评论。日志和评论的智能分析可以采用语义分析技术实现。景点的基本信息数据是针对用户集合中所有用户进行的统计分析。The collection of attractions can include: attractions within the country of the user, attractions and venues around the world. Among them, the venues include but are not limited to: networking parties, concert venues, fashion show venues, etc. The basic information data of the scenic spot may include one or more of the following data: attraction identification information (attraction ID), attraction type, article, picture, rating, and comment. Among them, the article includes an article describing and/or introducing the attraction, and an article describing the store and the merchant in the attraction. The article can be a log. Comments include comments on attractions, articles, pictures, and attractions. Intelligent analysis of logs and comments can be implemented using semantic analysis techniques. The basic information data of the attraction is a statistical analysis performed for all users in the user collection.
所述用户集合中的用户对该景点的行为数据也可以被称为用户依赖数据,该行为数据表征该用户对于该景点的依赖程度。例如,对于第一用户,在进行景点数据获取步骤时,对于某个景点,该行为数据包括第一用户对该景点的点赞,浏览与该景点有关的文章、图片的时长、次数、评论。行为数据是针对数据标记步骤中的某一用户的行为进行的统计分析。The behavior data of the user in the user collection for the attraction may also be referred to as user dependency data, which characterizes the user's dependence on the attraction. For example, for the first user, when performing the scenic spot data obtaining step, for a certain scenic spot, the behavior data includes the first user's likes of the scenic spot, browsing the articles related to the scenic spot, the duration, the number of times, and the comment. Behavioral data is a statistical analysis of the behavior of a user in a data tagging step.
所述训练步骤还包括:模型预测步骤。将所述景点数据、所述每一个用户的身份信息和该用户的所述训练数据输入到深度神经网络中,得到所述每一个用户去每个景点旅游的概率集合。The training step further includes a model prediction step. The attraction data, the identity information of each user, and the training data of the user are input into a deep neural network to obtain a probability set of each of the users going to each attraction.
图3是根据本申请的方法的模型预测步骤的一个实施例的流程图。在一个可选实施方案中,所述模型预测步骤可以包括:输入步骤:将所述训练数据和所述景点数据输入到所述深度神经网络的输入层。3 is a flow diagram of one embodiment of a model prediction step of a method in accordance with the present application. In an optional embodiment, the model prediction step may include an input step of inputting the training data and the attraction data to an input layer of the deep neural network.
所述模型预测步骤还可以包括处理步骤:将所述训练数据中的每一项数据和所述景点数据中的每一项数据分别转化为对应的特征数据。特征数据可以是向量的形式。每一项数据与特征数据是一一对应的关系。例如,将ID信息转化为ID特征,将文章在转化为文章特征。输入层将输入的数据进行处理后,将得到的特征数据传输到隐藏层。对于用户的旅游历史数据和用于与旅游相关的检索记录这两种数据,在输入时,可以输入多个记录,在处理步骤中得到的特征数据是多个记录的平均特征数据。以用户的旅游历史数据为例,由于在某一个时间段内,旅游历史数据量可能很大,对每一条旅游历史数据进行特征转化时,均能得到一个向量,由于模型对数据输入格式的限制,在进行模型训练时,将一个用户的多个每一条旅游 历史数据对应的特征数据取平均值后得到的平均特征数据代入深度神经网络进行运算。通过将旅游历史数据求和再取均值的方式得到“用户旅游历史信息特征”,所得结果既可以满足模型对数据格式的要求,也能体现所有的旅游历史。The model prediction step may further include a processing step of converting each item of the training data and each item of the attraction data into corresponding feature data. The feature data can be in the form of a vector. Each item of data has a one-to-one correspondence with the feature data. For example, converting ID information into ID features converts articles into article features. After the input layer processes the input data, the obtained feature data is transmitted to the hidden layer. For the user's travel history data and the search record related to the travel, when inputting, a plurality of records can be input, and the feature data obtained in the processing step is the average feature data of the plurality of records. Taking the user's travel history data as an example, since the amount of travel history data may be large in a certain period of time, a vector can be obtained when characterizing each travel history data, due to the limitation of the model on the data input format. When performing model training, the average feature data obtained by averaging the feature data corresponding to each of the plurality of travel history data of one user is substituted into the deep neural network for calculation. The “user travel history information feature” is obtained by summing the travel history data and then taking the mean value. The obtained results can meet the requirements of the model for the data format and also reflect all the travel history.
所述模型预测步骤还可以包括转化步骤:将与所述训练数据对应的特征数据转化为用户特征矩阵,并且将与所述景点数据对应的特征数据转化为景点特征矩阵。转化步骤可以在隐藏层进行,隐藏层对特征数据进一步进行计算和处理,得到特征矩阵,计算所使用的隐藏层可以是一层,也可以是多层。可选地,与用户相关的所有特征数据可以被转化为一个用户特征矩阵,与景点相关的所有特征数据可以被转化为一个景点特征矩阵。The model prediction step may further include a converting step of converting feature data corresponding to the training data into a user feature matrix, and converting feature data corresponding to the attraction data into an attraction feature matrix. The conversion step can be performed in the hidden layer, and the hidden layer further calculates and processes the feature data to obtain a feature matrix, and the hidden layer used in the calculation can be one layer or multiple layers. Alternatively, all of the feature data associated with the user can be transformed into a user feature matrix, and all feature data associated with the attraction can be transformed into an attraction feature matrix.
所述模型预测步骤还可以包括关联步骤:将所述用户特征矩阵与每一个景点的景点特征矩阵相关联,计算所述用户特征矩阵所代表的用户去该景点的概率。关联步骤也可以在在隐藏层进行。The model prediction step may further include an associating step of associating the user feature matrix with an attraction feature matrix of each attraction, and calculating a probability that the user represented by the user feature matrix goes to the attraction. The association step can also be done at the hidden layer.
所述模型预测步骤还可以包括输出步骤:计算所述用户集合中的每一个用户去每个景点旅游的概率集合并输出所述概率集合。该步骤可以在输出层进行。在训练过程中,深度神经网络的输出层输出的是概率,其表征了用户去该景点旅游的可能性。The model prediction step may further include an outputting step of calculating a probability set for each of the user sets to go to each attraction tour and outputting the probability set. This step can be performed at the output layer. During the training process, the output layer of the deep neural network outputs a probability that characterizes the likelihood that the user will travel to the attraction.
图6是根据本申请的深度神经网络的一个实施例的框图,可选地,深度神经网络模型包括三层,在该图中,最低层表示输入层,倒数第二次层为隐藏层,倒数第三层为输出层。输入层中的部分数据与隐藏层中处理的数据通过全连接层连接,例如,训练数据中的用户ID、性别、职业、年龄、旅游偏好、用户的旅游历史数据、用户检索记录,以及景点数据中的景点ID、景点类型、景点名称、评分、评论、点赞和第一用户对景点的点赞、对图片或日志浏览的时长和次数。对于景点数据中的日志,输入层和隐藏层之间采用卷积神经网络(CNN)连接。对于景点数据中的图片,输入层和隐藏层之前采用递归神经网络(RNN)连接。该图中“用户景点相关度”为概率值。训练模型的损失函数是交叉熵。在输入N个景点信息后,可得N个“用户景点相关度特征”概率值,根据该概率值进行排序。用户特征与用户景点相关度特征之间采用softmax激活函数实现,该函数可以应用于多层神经网络、卷积神经网络等不同种类的神经网络中。6 is a block diagram of one embodiment of a deep neural network according to the present application. Optionally, the deep neural network model includes three layers, in which the lowest layer represents the input layer, the penultimate layer is the hidden layer, and the reciprocal The third layer is the output layer. Part of the data in the input layer is connected to the data processed in the hidden layer through the fully connected layer, for example, user ID, gender, occupation, age, travel preferences, user's travel history data, user search history, and attraction data in the training data. The attraction ID, the type of attraction, the name of the attraction, the rating, the comment, the like, the first user's likes of the attraction, the duration and number of times the picture or log is viewed. For the logs in the attraction data, a convolutional neural network (CNN) connection is used between the input layer and the hidden layer. For pictures in the attraction data, the input layer and the hidden layer are previously connected using a recurrent neural network (RNN). In the figure, "user attraction relevance" is a probability value. The loss function of the training model is cross entropy. After inputting N scenic spots information, N "user attraction relevance features" probability values are obtained, and sorting is performed according to the probability values. The softmax activation function is implemented between the user feature and the user's scenic spot correlation feature. The function can be applied to different kinds of neural networks such as multi-layer neural network and convolutional neural network.
本申请通过深度学习提取特征,例如使用深度神经网络模型计算用户与景点的关联性。在模型隐藏层中特征相近的数据将会逐渐靠近,最后得到特征矩阵,输出层可以对景点和/或活动进行排序并向用户推荐。The present application extracts features by deep learning, for example, using a deep neural network model to calculate the relevance of a user to an attraction. In the hidden layer of the model, the data with similar features will gradually approach, and finally the feature matrix is obtained. The output layer can sort the attractions and/or activities and recommend them to the user.
所述训练步骤还包括:模型修正步骤。图4是根据本申请的方法的模型修正步骤的一个实施例的流程图。在修正步骤中,将所述实际旅游结果数据和概率集合进行比对,对所述深度神经网络进行修正,得到所述经过训练的深度神经网络。The training step further includes a model correction step. 4 is a flow diagram of one embodiment of a model modification step in accordance with the method of the present application. In the correcting step, the actual travel result data and the probability set are compared, and the deep neural network is corrected to obtain the trained deep neural network.
其中,所述模型修正步骤包括数据类型转化步骤:将所述概率集合中的概率数据与预设的阈值进行比较,将所述概率数据转化为整数类型的数据。该步骤的目的是将概率数据与实际旅游结果数据的类型一致。The model modification step includes a data type conversion step of comparing the probability data in the probability set with a preset threshold, and converting the probability data into an integer type of data. The purpose of this step is to align the probability data with the type of actual travel result data.
所述模型修正步骤还包括残差计算步骤:将所述整数类型的数据与所述实际旅游结果数据进行比较,得到残差数据。可以将概率数据转化为整数后与实际旅游结果作差,得到残差数据。The model correction step further includes a residual calculation step of comparing the integer type of data with the actual travel result data to obtain residual data. The probability data can be converted to an integer and then compared with the actual travel result to obtain residual data.
所述模型修正步骤还包括修正步骤:利用所述残差数据通过反向神经传播对所述深度神经网络进行修正。修正方法可以包括:异常值检验、方差齐性检验、误差的正态性检验、相关性检验以及相伴随的方差稳定化变换,正态化变换等。The model modification step further includes a correction step of correcting the deep neural network by reverse neural propagation using the residual data. The correction method may include: an outlier test, a homogeneity test of the variance, a normality test of the error, a correlation test, and a concomitant variance stabilization transformation, a normalization transformation, and the like.
通过该方法,不需要用户输入想要去的目标景点,也不要专门的规划师对用户进行咨询,通过对用户的行为进行分析就能自动分析出客户想要去的旅游景点。本方法在设计时考虑了旅游心理学的知识,因此更加智能和人性化,推荐结果也较为准确。Through this method, the user does not need to input the target spot that he wants to go, and the special planner does not consult the user, and the user's behavior can be analyzed to automatically analyze the tourist attraction that the customer wants to go. This method takes into account the knowledge of tourism psychology in design, so it is more intelligent and user-friendly, and the recommendation results are more accurate.
参见图1,可选地,该方法在所述推荐信息生成步骤后还可以包括景点优选步骤和路线规划步骤。景点优选步骤包括:每隔预定的时间间隔或者响应于所述第一用户的路线规划指令,根据所述旅游信息推荐结果中包括的至少一个景点和所述第一用户对所述至少一个景点的行为数据确定优选景点。该路线规划步骤根据目标函数和约束条件,对所述优选景点进行路径规划,生成旅行线路。Referring to FIG. 1 , optionally, the method may further include an attraction optimization step and a route planning step after the recommendation information generating step. The scenic spot optimization step includes: at least one attraction included in the travel information recommendation result and the first user to the at least one attraction at every predetermined time interval or in response to the first user's route planning instruction Behavioral data identifies preferred attractions. The route planning step performs path planning on the preferred attraction according to the objective function and the constraint condition to generate a travel route.
在推荐旅游景点步骤后可以采用两种方法进行路径规划。第一种是采用定期推荐旅游路线的方法。例如,每隔固定的时间间隔,例如,一个星期或者一个月,根据旅游信息推荐结果,根据其中的一个或者几个旅游景点进行路径规划。在采用多个景点进行规划时,这些景点优选地属于一个城市或者距离比较近。例如,根据周末、短假期、长假期的时间长度为用户选择景点的个数、景点名称,并且进行路径规划。采用该方法,能够节省用户时间,并且能够为用户提供切实可行的出行方案。There are two ways to make a path plan after recommending a tourist attraction step. The first is to adopt a method of regularly recommending tourist routes. For example, every fixed time interval, for example, one week or one month, according to the travel information recommendation result, path planning is performed according to one or several tourist attractions. When planning with multiple attractions, these attractions preferably belong to one city or are relatively close. For example, the number of attractions, the name of the attraction, and the route planning are selected for the user according to the length of the weekend, the short holiday, and the long holiday. With this method, user time can be saved, and a practical travel plan can be provided for the user.
在另一个可选的实施方案中,可以采用区域化路径推荐的方法。在该实施方案中,用户可以选择至少一个城市或者一个区域范围,然后系统从推荐旅游景点中选择属于该城市或者该区域范围的景点进行路径规划。采用该方法,制定出的旅游线路更加符合用户心理预期。In another alternative embodiment, a method of regionalized path recommendation may be employed. In this embodiment, the user may select at least one city or a range of areas, and then the system selects attractions belonging to the city or the area from the recommended tourist attractions for path planning. With this method, the travel route developed is more in line with the user's psychological expectations.
可选地,该方法也可以在所述推荐信息生成步骤直接进行路线规划步骤。该路线规划步骤包括:根据目标函数和约束条件,对所述旅游信息推荐结果中包括的全部或者部分景点进行路径规划,生成旅行线路。Optionally, the method may also directly perform a route planning step in the recommendation information generating step. The route planning step includes: performing path planning on all or some of the scenic spots included in the travel information recommendation result according to the objective function and the constraint condition, and generating a travel route.
采用该方法,能够根据用户的行为数据进行智能分析得到旅游景点概率,根据旅游景点概率进行路径规划,该方法将用户行为与旅游心理学进行了结合,更加符合用户的需求和心理预期。Using this method, intelligent analysis can be carried out according to the user's behavior data to obtain the probability of tourist attractions, and path planning is carried out according to the probability of tourist attractions. This method combines user behavior with tourism psychology, which is more in line with user needs and psychological expectations.
在一个可选的实施方案中,路径规划的目标函数可以如公式(1)所示:In an alternative embodiment, the objective function of the path plan can be as shown in equation (1):
Figure PCTCN2019079335-appb-000001
Figure PCTCN2019079335-appb-000001
其中,R为规划的总体距离最小的路径,c ij为景点i到景点j的距离,x ij表示从景点i到景点j是否存在路径,如果x ij=1,表示两个景点之间存在连通的路径,如果x ij=0,则表示,两个景点之间不存在路径,n表示景点的总数。 Where R is the path with the smallest overall distance planned, c ij is the distance from attraction i to attraction j, and x ij indicates whether there is a path from attraction i to attraction j. If x ij =1, there is communication between the two attractions. The path, if x ij =0, means that there is no path between the two attractions, and n represents the total number of attractions.
该目标函数的约束条件包括:The constraints of the objective function include:
0≤x ij≤1,i=1,...,n,j=1,...,n   (2) 0≤x ij ≤1, i=1,...,n,j=1,...,n (2)
Figure PCTCN2019079335-appb-000002
Figure PCTCN2019079335-appb-000002
Figure PCTCN2019079335-appb-000003
Figure PCTCN2019079335-appb-000003
其中,公式(3)表示其他景点中只有一个景点到达景点j,公式(4)表示从景点i出发只能到达其他景点中一个景点。Among them, the formula (3) indicates that only one of the other attractions reaches the attraction j, and the formula (4) indicates that only one of the other attractions can be reached from the attraction i.
可选地,该目标函数的约束条件还可以包括以下条件中的至少一个:Optionally, the constraint of the objective function may further include at least one of the following conditions:
(1)景点开放时间,该数据可以从用户在本申请的社交平台上发表的文章、评论、其他网站或者渠道获得;(1) Attraction opening time, the data can be obtained from articles, comments, other websites or channels published by the user on the social platform of the application;
(2游览景点所需的时间,该时间可以是通常情况下游览某个景点所需的时间或者采用统计情况下,计算多个用户浏览该景点时间的平均值;(2) The time required to visit the attraction, which may be the time required to normally visit an attraction or calculate the average time of time for multiple users to browse the attraction under statistical conditions;
(3)交通工具,该约束条件可以根据用户的选择确定,也可以根据对其他用户的分析确定,或者根据该用户的旅游历史数据、检索记录等分析得到该用户的旅游出行习惯;(3) Vehicles, the constraint condition may be determined according to the user's selection, or may be determined according to analysis of other users, or the user's travel travel habits may be obtained according to the user's travel history data, search records, and the like;
(4)用户的最大承载量,最大承载量表明该用户每天外出时间的最大时长。该数据可以通过机器学习计算对用户历史旅游偏好学习并预测得到,也可以通过行程安排,如航班信息来获取。例如,如果通过机器学习计算,分析出该用户为悠闲型,则表明其最大承载量偏小,则可以每天给该用户安排较少的景点;如果该用户是打卡型,则其最大承载量偏大,则可以每天给该用户安排较多的景点。(4) The maximum carrying capacity of the user, and the maximum carrying capacity indicates the maximum duration of the user's daily outgoing time. The data can be learned and predicted from the user's historical travel preferences through machine learning calculations, or can be obtained through travel arrangements, such as flight information. For example, if the user is analyzed as a leisurely type through machine learning calculation, it indicates that the maximum load capacity is too small, and the user can be arranged with fewer attractions every day; if the user is a card type, the maximum load is biased. Large, you can arrange more attractions for the user every day.
(5)行程的起始点和终点,可以理解的是,起始点和终点可以相同也可以不同,该数据可通过用户定义来获取;(5) The starting point and the ending point of the itinerary, it can be understood that the starting point and the ending point can be the same or different, and the data can be obtained by user definition;
(6)一天路程长度或者路程时间的总量不超过第一阈值。路程长度或时间的总量不包括参观景点的路程和时间。第一阈值可以由机器学习对用户历史旅游数据进行预测而获取,或者通过用户自定义获取。(6) The total length of one day or the total length of travel time does not exceed the first threshold. The total length of the journey or time does not include the distance and time of the visit. The first threshold may be obtained by machine learning predicting user historical travel data, or obtained by user customization.
(7)一天参观景点时间总量不超过第二阈值。参观景点时间总量不包括路程上消耗时间。第二阈值可以由机器学习对用户历史旅游数据预测获取,或用户自定义获取。可以理解的是,也可以将第6点和第7点结合形成一个约束条件。(7) The total amount of time spent visiting the attraction one day does not exceed the second threshold. The total amount of time spent visiting the attraction does not include the time spent on the journey. The second threshold may be predicted by machine learning to obtain historical user travel data, or user-defined acquisition. It can be understood that the sixth point and the seventh point can also be combined to form a constraint condition.
(8)进程关联度。具体地,例如:如果用户要求景点A必须排在景点B之前参观,系统则判断限制条件。例如,根据应用场景确定景点的优先级。其中,应用场景可以是时间。如果时间有限,则景点A和景点B相比,景点A的优先级高于景点B,景点B可以不在路径规划结果当中。优先级的数据可以通过旅游信息推荐结果中对景点的排序获取。(8) Process relevance. Specifically, for example, if the user requests that the attraction A must be visited before the attraction B, the system judges the restriction condition. For example, the priority of the attraction is determined according to the application scenario. The application scenario can be time. If time is limited, then attraction A has a higher priority than attraction B than attraction B, and attraction B may not be in the path planning result. Priority data can be obtained by sorting the attractions in the travel information recommendation results.
图5是根据本申请的旅游信息推荐方法的另一个实施例的流程图。该实施例中,旅游信息推荐方法在所述路线规划步骤后还可以包括:FIG. 5 is a flow chart of another embodiment of a travel information recommendation method according to the present application. In this embodiment, the travel information recommendation method may further include: after the route planning step:
用户意向判断步骤:判断所述旅行线路是否符合所述第一用户的预期,如果是,则执行线路确定步骤,如果否,则执行景点标注步骤;a user intention determining step of: determining whether the travel route meets the expectation of the first user, and if so, performing a route determining step, and if not, performing an attraction marking step;
路线确定步骤:判断所述旅行线路是否需要修改,如果需要修改,则根据所述第一用户对所述旅行线路中的景点的修改,重新规划路径;a route determining step: determining whether the travel route needs to be modified, and if it is necessary to modify, re-planning the route according to the modification of the scenic spot in the travel route by the first user;
景点标记步骤:根据所述第一用户的反馈,将所述优选景点标记为所述第一用户的行为数据,以便作为所述训练步骤所需的数据。Attraction marking step: marking the preferred attraction as the behavior data of the first user according to the feedback of the first user, so as to be the data required for the training step.
根据本申请的另一个方面,还提供了一种旅游信息推荐装置,图7是根据本申请的旅游 信息推荐装置的一个实施例的框图。该装置包括:According to another aspect of the present application, there is also provided a travel information recommending apparatus, and Fig. 7 is a block diagram of an embodiment of a travel information recommending apparatus according to the present application. The device includes:
用户信息获取模块,其配置成获取第一用户数据,所述第一用户数据包括第一用户的身份信息和用户历史信息;a user information obtaining module, configured to acquire first user data, where the first user data includes identity information of the first user and user history information;
推荐信息生成模块,其配置成将所述第一用户数据输入经过训练的深度神经网络,生成旅游信息推荐结果,所述旅游信息推荐结果表征所述第一用户将去至少一个景点旅游的概率;a recommendation information generating module configured to input the first user data into the trained deep neural network to generate a travel information recommendation result, the travel information recommendation result characterizing a probability that the first user will travel to at least one attraction;
其中,深度神经网络通过训练模块得到,所述训练模块包括:The deep neural network is obtained through a training module, and the training module includes:
用户数据标注模块,其配置成对于用户集合中的每一个用户,获取该用户的旅游历史数据,将所述旅游历史数据中发生在时间点T之前的数据作为训练数据的输入数据,将所述时间点T后该用户到过的第一个旅游景点和该旅游景点之外的其他景点分别进行标记,得到实际旅游结果数据;a user data labeling module configured to acquire, for each user in the user set, travel history data of the user, and use data before the time point T in the travel history data as input data of training data, After the time point T, the first tourist attraction that the user has visited and other attractions outside the tourist attraction are respectively marked to obtain actual tourism result data;
景点数据获取模块,其配置成对于景点集合中的每一个景点,获取景点数据,所述景点数据包括该景点的基本信息数据和该用户对该景点的行为数据;An attraction data acquisition module configured to acquire attraction data for each attraction in the collection of attractions, the attraction data including basic information data of the attraction and behavior data of the user to the attraction;
模型预测模块,其配置成将所述训练数据和所述景点数据输入到深度神经网络中,得到所述用户集合中的每一个用户去每个景点旅游的概率集合;a model prediction module configured to input the training data and the attraction data into a deep neural network to obtain a probability set for each user in the user set to travel to each attraction;
模型修正模块,其配置成将所述实际旅游结果数据和概率集合进行比对,对所述深度神经网络进行修正,得到所述经过训练的深度神经网络。And a model correction module configured to compare the actual travel result data with a probability set, and modify the deep neural network to obtain the trained deep neural network.
该装置采用机器学习的方法,通过获取并且分析用户的行为数据,自动为用户推荐旅游景点,用户无需事先选择要去的旅游景点就能得到符合用户内心期望的结果,节省了用户的时间,带来了全新的更好的用户体验。The device adopts a machine learning method to automatically recommend the tourist attractions by acquiring and analyzing the user's behavior data, and the user can obtain the result that meets the user's inner expectation without having to select the tourist attraction to be visited in advance, thereby saving the user's time. Come to a new and better user experience.
图8是根据本申请的装置的训练装置的一个实施例的框图。在该实施例中,模型修正模块包括:8 is a block diagram of one embodiment of a training device of a device in accordance with the present application. In this embodiment, the model correction module includes:
数据类型转化模块,其配置成用于将所述概率集合中的概率数据与预设的阈值进行比较,将所述概率数据转化为整数类型的数据;a data type conversion module configured to compare the probability data in the probability set with a preset threshold, and convert the probability data into an integer type of data;
残差计算模块,其配置成用于将所述整数类型的数据与所述实际旅游结果数据进行比较,得到残差数据;a residual calculation module configured to compare the integer type of data with the actual travel result data to obtain residual data;
修正模块,其配置成用于利用所述残差数据对所述深度神经网络进行修正。A correction module configured to modify the deep neural network with the residual data.
图9是根据本申请的装置的模型训练装置的一个实施例的框图。可选地,所述模型预测模块包括:9 is a block diagram of one embodiment of a model training device of a device in accordance with the present application. Optionally, the model prediction module includes:
输入模块,其配置成将所述训练数据和所述景点数据输入到所述深度神经网络的输入层;An input module configured to input the training data and the attraction data to an input layer of the deep neural network;
处理模块,其配置成将所述训练数据中的每一项数据和所述景点数据中的每一项数据分别转化为对应的特征数据;a processing module configured to convert each item of the training data and each item of the attraction data into corresponding feature data;
转化模块,其配置成将与所述训练数据对应的特征数据转化为用户特征矩阵,并且将与所述景点数据对应的特征数据转化为景点特征矩阵;a conversion module configured to convert feature data corresponding to the training data into a user feature matrix, and convert feature data corresponding to the attraction data into an attraction feature matrix;
关联模块,其配置成将所述用户特征矩阵与每一个景点的景点特征矩阵相关联,计算所述用户特征矩阵所代表的用户去该景点的概率;An association module, configured to associate the user feature matrix with an attraction feature matrix of each attraction, and calculate a probability that the user represented by the user feature matrix goes to the attraction;
输出模块,其配置成计算所述用户集合中的每一个用户去每个景点旅游的概率集合并输出所述概率集合。An output module configured to calculate a probability set for each of the user sets to travel to each attraction and output the probability set.
参见图7,可选地,该装置在所述推荐信息生成装置后还连接有:Referring to FIG. 7, optionally, the device is further connected after the recommendation information generating device:
景点优选模块,其配置成每隔预定的时间间隔或者响应于所述第一用户的路线规划指令,根据所述旅游信息推荐结果中包括的至少一个景点和所述第一用户对所述至少一个景点的行为数据确定优选景点;a scenic spot preference module configured to, according to the first user's route planning instruction, at least one attraction included in the travel information recommendation result and the first user pair the at least one Behavioral data of the attraction determines the preferred attraction;
路线规划模块,其配置成根据目标函数和约束条件,对所述优选景点进行路径规划,生成旅行线路。A route planning module configured to perform path planning on the preferred attraction according to an objective function and a constraint to generate a travel route.
图10是根据本申请的旅游信息推荐装置的另一个实施例的框图。可选地,在该装置中,所述路线规划模块还连接有:FIG. 10 is a block diagram of another embodiment of a travel information recommending apparatus according to the present application. Optionally, in the device, the route planning module is further connected with:
用户意向判断模块,判断所述旅行线路是否符合所述第一用户的预期,如果是,则执行线路确定模块,如果否,则执行景点标注模块;a user intention judging module, judging whether the travel route meets the expectation of the first user, if yes, executing a line determination module, and if not, executing an attraction labeling module;
路线确定模块,其配置成用于判断所述旅行线路是否需要修改,如果需要修改,则根据所述第一用户对所述旅行线路中的景点的修改,重新规划路径;和a route determining module configured to determine whether the travel route needs to be modified, and if necessary, re-planning the path according to the modification of the scenic spot in the travel route by the first user;
景点标记模块,其配置成用于根据所述第一用户的反馈,将所述优选景点标记为所述第一用户的行为数据,以便作为所述训练步骤所需的数据。An attraction tag module configured to mark the preferred attraction as behavior data of the first user based on feedback from the first user to serve as data required for the training step.
本申请采用利用人工智能代替人进行决策,先通过特定渠道获取数据信息,最终实现全自动化生成符合用户图像的个性化旅行路线的推荐功能。The application adopts artificial intelligence instead of human to make decision, first obtains data information through a specific channel, and finally realizes a recommendation function of fully generating a personalized travel route conforming to the user image.
本申请通过社交平台获取用户的旅行行为特征,这些信息从用户的旅游行为及社交行为中获取。本申请主要利用人工智能进行预测和推荐,并且利用线性规划算法来进行路径规划。本申请在景点推荐部分,利用旅游心理学的基本理论对用户的旅行行为特征进行验证及解释,采用机器学习算法实现对用户进行旅游行为的预测和推荐。使用本发明的方法和装置,能够节省用户的时间,并且能够根据用户的行为自动为其推荐景点信息和路径信息,更加方便、快捷和人性化。本申请在路径规划方面,通过整数线性规划算法针对用户在旅行过程中的行进方式制定旅行路线。由于人工智能在精准计算方面并不具备非常强的优势,因此本申请结合线性规划算法来计算需要精准运算的部分,从而真正实现了“定制”的效果。算法考虑的主要参数包括:用户在用户终端自行选择去的景点或用人工智能预测得到的用户最优选择的景点、将会选择的通工具的类型、到达的景点、用户最有可能选项的路径、用户对景点观看的时间要求等等。利用目标函数和约束条件进行路径规划,设计模拟路线。再通过本平台的设计,获取对应的用户的反馈及要求,例如是否需要修改该路线、时间安排是否合理、用户是否愿意购买该路线上的景点门票或者交通票并参考该路线出行等,初步确定结果。由于现有的技术在路径规划时,仅采用了线性规划方法,而本申请是将人工智能和路径规划进行了结合,因此能够得到更加精准的计算结果,从而满足不同类型的客户的需要。The present application acquires a user's travel behavior characteristics through a social platform, and the information is obtained from the user's travel behavior and social behavior. This application mainly uses artificial intelligence to make predictions and recommendations, and uses a linear programming algorithm to perform path planning. In the recommendation part of the attraction, this application uses the basic theory of tourism psychology to verify and explain the characteristics of the user's travel behavior, and uses the machine learning algorithm to predict and recommend the user's travel behavior. By using the method and device of the invention, the user's time can be saved, and the attraction information and the route information can be automatically recommended for the user according to the behavior of the user, which is more convenient, quick and user-friendly. In the aspect of path planning, the present application formulates a travel route by means of an integer linear programming algorithm for the manner in which a user travels during a trip. Since artificial intelligence does not have a very strong advantage in accurate calculation, this application combines a linear programming algorithm to calculate the part that requires precise calculation, thus realizing the effect of "customization". The main parameters considered by the algorithm include: the point of interest selected by the user at the user terminal or the point of view of the user's optimal choice predicted by artificial intelligence, the type of the tool to be selected, the point of arrival, the path most likely to be selected by the user. , the user's time requirements for viewing attractions, and so on. The path is planned using the objective function and constraints, and the simulation route is designed. Through the design of the platform, the corresponding user's feedback and requirements are obtained, for example, whether the route needs to be modified, whether the time schedule is reasonable, whether the user is willing to purchase the scenic spot ticket or the transportation ticket on the route, and refer to the route to travel, etc., preliminary determination result. Since the existing technology only adopts the linear programming method in path planning, the application combines artificial intelligence and path planning, so that more accurate calculation results can be obtained to meet the needs of different types of customers.
通过本平台中移动互联网应用,能够获得大量的用户反馈,再以此修改特征数据,对算法参数进行优化。一旦用户确定最终路线并且参考路线进行旅游活动,平台也将能够通过大数据收集,例如用户对景点的评价,其他用户推荐的沿途餐馆,更加准确的交通信息等。Through the mobile Internet application in this platform, a large amount of user feedback can be obtained, and then the feature data is modified to optimize the algorithm parameters. Once the user determines the final route and travels with reference to the route, the platform will also be able to collect data through big data, such as user ratings of attractions, restaurants recommended by other users, more accurate traffic information, and the like.
根据本申请的另一个方面,还提供了一种计算机设备,包括存储器、处理器和存储在所述存储器内并能由所述处理器运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如上所述的旅游信息推荐方法中的任意一个。According to another aspect of the present application, there is also provided a computer apparatus comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor executes the computer At the time of the program, any one of the travel information recommendation methods described above is implemented.
根据本申请的另一个方面,还提供了一种计算机可读存储介质,优选为非易失性可读存储介质,其内存储有计算机程序,所述计算机程序在由处理器执行时实现如上所述的旅游信息推荐方法中的任意一个。According to another aspect of the present application, there is also provided a computer readable storage medium, preferably a non-volatile readable storage medium having stored therein a computer program that, when executed by a processor, implements Any one of the recommended travel information methods.
根据本申请的另一个方面,还提供了一种包含指令的计算机程序产品。当该计算机程序产品在计算机上运行时,使得计算机执行上述旅游信息推荐方法中的任意一个。According to another aspect of the present application, a computer program product comprising instructions is also provided. When the computer program product is run on a computer, the computer is caused to execute any one of the above-described travel information recommendation methods.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、获取其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer loads and executes the computer program instructions, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person skilled in the art should further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令处理器完成,所述的程序可以存储于计算机可读存储介质中,所述存储介质是非短暂性(英文:non-transitory)介质,例如随机存取存储器,只读存储器,快闪存储器,硬盘,固态硬盘,磁带(英文:magnetic tape),软盘(英文:floppy disk),光盘(英文:optical disc)及其任意组合。It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be performed by a program, and the program may be stored in a computer readable storage medium, which is non-transitory ( English: non-transitory) media, such as random access memory, read-only memory, flash memory, hard disk, solid state disk, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), CD (English: optical disc) And any combination thereof.
以上所述,仅为本申请较佳的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。The above description is only a preferred embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed in the present application. Replacement should be covered by the scope of this application. Therefore, the scope of protection of the present application should be determined by the scope of protection of the claims.

Claims (10)

  1. 一种旅游信息推荐方法,该方法包括:A method for recommending tourist information, the method comprising:
    用户信息获取步骤:获取第一用户数据,所述第一用户数据包括第一用户的身份信息和用户历史信息;和a user information obtaining step: acquiring first user data, where the first user data includes identity information of the first user and user history information;
    推荐信息生成步骤:将所述第一用户数据输入经过训练的深度神经网络,生成旅游信息推荐结果,所述旅游信息推荐结果表征所述第一用户将去至少一个景点旅游的概率;a recommendation information generating step: inputting the first user data into the trained deep neural network to generate a travel information recommendation result, the travel information recommendation result characterizing a probability that the first user will go to at least one attraction tour;
    其中,深度神经网络通过训练步骤得到,所述训练步骤包括:Wherein, the deep neural network is obtained through a training step, and the training steps include:
    用户数据标注步骤:对于用户集合中的每一个用户,获取该用户的旅游历史数据,将所述旅游历史数据中发生在时间点T之前的数据作为训练数据的输入数据,将所述时间点T后该用户到过的第一个旅游景点和该旅游景点之外的其他景点分别进行标记,得到实际旅游结果数据;User data labeling step: for each user in the user set, acquiring the travel history data of the user, and using the data before the time point T in the travel history data as the input data of the training data, and the time point T After that, the first tourist attraction that the user has visited and other attractions outside the tourist attraction are marked separately to obtain actual tourism result data;
    景点数据获取步骤:对于景点集合中的每一个景点,获取景点数据,所述景点数据包括该景点的基本信息数据和每一个用户对该景点的行为数据;Sight data acquisition step: obtaining, for each attraction in the collection of attractions, attraction data, the attraction data including basic information data of the attraction and behavior data of each user for the attraction;
    模型预测步骤:将所述景点数据、所述每一个用户的身份信息和该用户的所述训练数据输入到深度神经网络中,得到所述每一个用户去每个景点旅游的概率集合;和a model prediction step: inputting the attraction data, the identity information of each user, and the training data of the user into a deep neural network to obtain a probability set of each of the users going to each attraction tour; and
    模型修正步骤:将所述实际旅游结果数据和概率集合进行比对,对所述深度神经网络进行修正,得到所述经过训练的深度神经网络。The model correction step: comparing the actual travel result data with a probability set, and modifying the deep neural network to obtain the trained deep neural network.
  2. 根据权利要求1所述的方法,其特征在于,所述模型预测步骤包括:The method of claim 1 wherein said model prediction step comprises:
    输入步骤:将所述训练数据和所述景点数据输入到所述深度神经网络的输入层;Input step: inputting the training data and the attraction data to an input layer of the deep neural network;
    处理步骤:将所述训练数据中的每一项数据和所述景点数据中的每一项数据分别转化为对应的特征数据;Processing step: converting each item of the training data and each item of the attraction data into corresponding feature data;
    转化步骤:将与所述训练数据对应的特征数据转化为用户特征矩阵,并且将与所述景点数据对应的特征数据转化为景点特征矩阵;a conversion step: converting feature data corresponding to the training data into a user feature matrix, and converting feature data corresponding to the attraction data into an attraction feature matrix;
    关联步骤:将所述用户特征矩阵与每一个景点的景点特征矩阵相关联,计算所述用户特征矩阵所代表的用户去该景点的概率;和Correlation step: associating the user feature matrix with an attraction feature matrix of each attraction, and calculating a probability that the user represented by the user feature matrix goes to the attraction; and
    输出步骤:计算所述用户集合中的每一个用户去每个景点旅游的概率集合并输出所述概率集合。Output step: calculating a probability set of each user in the set of users going to each attraction tour and outputting the probability set.
  3. 根据权利要求1所述的方法,其特征在于,所述模型修正步骤包括:The method of claim 1 wherein said model modifying step comprises:
    数据类型转化步骤:将所述概率集合中的概率数据与预设的阈值进行比较,将所述概率数据转化为整数类型的数据;a data type conversion step: comparing the probability data in the probability set with a preset threshold, and converting the probability data into an integer type of data;
    残差计算步骤:将所述整数类型的数据与所述实际旅游结果数据进行比较,得到残差数据;和a residual calculation step: comparing the integer type of data with the actual travel result data to obtain residual data; and
    修正步骤:利用所述残差数据通过反向神经传播对所述深度神经网络进行修正。Correction step: correcting the deep neural network by reverse neural propagation using the residual data.
  4. 根据权利要求1至3的任一项所述的方法,其特征在于,该方法在所述推荐信息生 成步骤后还包括:The method according to any one of claims 1 to 3, further comprising: after the step of generating the recommendation information, the method further comprises:
    景点优选步骤:每隔预定的时间间隔或者响应于所述第一用户的路线规划指令,根据所述旅游信息推荐结果中包括的至少一个景点和所述第一用户对所述至少一个景点的行为数据确定优选景点;和Sight preference step: at least one attraction included in the travel information recommendation result and behavior of the first user to the at least one attraction at every predetermined time interval or in response to the first user's route planning instruction Data identifies preferred attractions; and
    路线规划步骤:根据目标函数和约束条件,对所述优选景点进行路径规划,生成旅行线路。Route planning step: path planning is performed on the preferred attraction according to the objective function and the constraint, and a travel route is generated.
  5. 根据权利要求4所述的方法,其特征在于,该方法在所述路线规划步骤后还包括:The method according to claim 4, further comprising: after the route planning step:
    用户意向判断步骤:判断所述旅行线路是否符合所述第一用户的预期,如果是,则执行线路确定步骤,如果否,则执行景点标注步骤;a user intention determining step of: determining whether the travel route meets the expectation of the first user, and if so, performing a route determining step, and if not, performing an attraction marking step;
    路线确定步骤:判断所述旅行线路是否需要修改,如果需要修改,则根据所述第一用户对所述旅行线路中的景点的修改,重新规划路径;和a route determining step: determining whether the travel route needs to be modified, and if it is necessary to modify, re-planning the route according to the modification of the scenic spot in the travel route by the first user;
    景点标记步骤:根据所述第一用户的反馈,将所述优选景点标记为所述第一用户的行为数据,以便作为所述训练步骤所需的数据。Attraction marking step: marking the preferred attraction as the behavior data of the first user according to the feedback of the first user, so as to be the data required for the training step.
  6. 一种旅游信息推荐装置,包括:A tourist information recommendation device, comprising:
    用户信息获取模块,其配置成获取第一用户数据,所述第一用户数据包括第一用户的身份信息和用户历史信息;和a user information obtaining module configured to acquire first user data, where the first user data includes identity information of the first user and user history information;
    推荐信息生成模块,其配置成将所述第一用户数据输入经过训练的深度神经网络,生成旅游信息推荐结果,所述旅游信息推荐结果表征所述第一用户将去至少一个景点旅游的概率;a recommendation information generating module configured to input the first user data into the trained deep neural network to generate a travel information recommendation result, the travel information recommendation result characterizing a probability that the first user will travel to at least one attraction;
    其中,深度神经网络通过训练模块得到,所述训练模块包括:The deep neural network is obtained through a training module, and the training module includes:
    用户数据标注模块,其配置成对于用户集合中的每一个用户,获取该用户的旅游历史数据,将所述旅游历史数据中发生在时间点T之前的数据作为训练数据的输入数据,将所述时间点T后该用户到过的第一个旅游景点和该旅游景点之外的其他景点分别进行标记,得到实际旅游结果数据;a user data labeling module configured to acquire, for each user in the user set, travel history data of the user, and use data before the time point T in the travel history data as input data of training data, After the time point T, the first tourist attraction that the user has visited and other attractions outside the tourist attraction are respectively marked to obtain actual tourism result data;
    景点数据获取模块,其配置成对于景点集合中的每一个景点,获取景点数据,所述景点数据包括该景点的基本信息数据和该用户对该景点的行为数据;An attraction data acquisition module configured to acquire attraction data for each attraction in the collection of attractions, the attraction data including basic information data of the attraction and behavior data of the user to the attraction;
    模型预测模块,其配置成将所述训练数据和所述景点数据输入到深度神经网络中,得到所述用户集合中的每一个用户去每个景点旅游的概率集合;和a model prediction module configured to input the training data and the attraction data into a deep neural network to obtain a probability set for each user in the user set to travel to each attraction; and
    模型修正模块,其配置成将所述实际旅游结果数据和概率集合进行比对,对所述深度神经网络进行修正,得到所述经过训练的深度神经网络。And a model correction module configured to compare the actual travel result data with a probability set, and modify the deep neural network to obtain the trained deep neural network.
  7. 根据权利要求6所述的装置,其特征在于,所述模型预测模块包括:The apparatus according to claim 6, wherein the model prediction module comprises:
    输入模块,其配置成将所述训练数据和所述景点数据输入到所述深度神经网络的输入层;An input module configured to input the training data and the attraction data to an input layer of the deep neural network;
    处理模块,其配置成将所述训练数据中的每一项数据和所述景点数据中的每一项数据分别转化为对应的特征数据;a processing module configured to convert each item of the training data and each item of the attraction data into corresponding feature data;
    转化模块,其配置成将与所述训练数据对应的特征数据转化为用户特征矩阵,并且将与所述景点数据对应的特征数据转化为景点特征矩阵;a conversion module configured to convert feature data corresponding to the training data into a user feature matrix, and convert feature data corresponding to the attraction data into an attraction feature matrix;
    关联模块,其配置成将所述用户特征矩阵与每一个景点的景点特征矩阵相关联,计算所述用户特征矩阵所代表的用户去该景点的概率;和An association module configured to associate the user feature matrix with an attraction feature matrix of each attraction, and calculate a probability that the user represented by the user feature matrix goes to the attraction; and
    输出模块,其配置成计算所述用户集合中的每一个用户去每个景点旅游的概率集合并输出所述概率集合。An output module configured to calculate a probability set for each of the user sets to travel to each attraction and output the probability set.
  8. 根据权利要求6或7所述的装置,其特征在于,该装置在所述推荐信息生成装置后还连接有:The device according to claim 6 or 7, wherein the device is further connected after the recommendation information generating device:
    景点优选模块,其配置成每隔预定的时间间隔或者响应于所述第一用户的路线规划指令,根据所述旅游信息推荐结果中包括的至少一个景点和所述第一用户对所述至少一个景点的行为数据确定优选景点;和a scenic spot preference module configured to, according to the first user's route planning instruction, at least one attraction included in the travel information recommendation result and the first user pair the at least one The behavioral data of the attraction determines the preferred attraction; and
    路线规划模块,其配置成根据目标函数和约束条件,对所述优选景点进行路径规划,生成旅行线路。A route planning module configured to perform path planning on the preferred attraction according to an objective function and a constraint to generate a travel route.
  9. 一种计算机设备,包括存储器、处理器和存储在所述存储器内并能由所述处理器运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1至5中任一项所述的方法。A computer device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor executes the computer program as claimed in any one of claims 1 to 5 One of the methods described.
  10. 一种计算机可读存储介质,优选为非易失性可读存储介质,其内存储有计算机程序,所述计算机程序在由处理器执行时实现如权利要求1至5中任一项所述的方法。A computer readable storage medium, preferably a non-volatile readable storage medium, having stored therein a computer program, when executed by a processor, implements the method of any one of claims 1 to 5 method.
PCT/CN2019/079335 2018-03-27 2019-03-22 Tourism information recommending method and device WO2019184833A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810259835.7 2018-03-27
CN201810259835.7A CN108537373A (en) 2018-03-27 2018-03-27 Travel information recommends method and apparatus

Publications (1)

Publication Number Publication Date
WO2019184833A1 true WO2019184833A1 (en) 2019-10-03

Family

ID=63485190

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/079335 WO2019184833A1 (en) 2018-03-27 2019-03-22 Tourism information recommending method and device

Country Status (2)

Country Link
CN (1) CN108537373A (en)
WO (1) WO2019184833A1 (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108537373A (en) * 2018-03-27 2018-09-14 黄晓鸣 Travel information recommends method and apparatus
CN109815309A (en) * 2018-12-21 2019-05-28 航天信息股份有限公司 A kind of user information recommended method and system based on personalization
CN109710848A (en) * 2018-12-26 2019-05-03 巨轮智能装备股份有限公司 A kind of recommendation method for personalized information based on Fuzzy Optimum Neural Network
CN111489131A (en) * 2019-01-25 2020-08-04 北京搜狗科技发展有限公司 Information recommendation method and device
CN109872065A (en) * 2019-02-15 2019-06-11 深圳易至科技有限公司 A kind of method of the preferred house ornamentation personnel of intelligence
CN111695920B (en) * 2019-03-11 2023-06-13 新疆丝路大道信息科技有限责任公司 Tourist attraction recommendation system and method of automobile leasing platform and electronic equipment
CN109977283B (en) * 2019-03-14 2021-03-05 中国人民大学 Tourism recommendation method and system based on knowledge graph and user footprint
CN110297964A (en) * 2019-03-28 2019-10-01 特斯联(北京)科技有限公司 A kind of tourist attractions recommended method and device based on big data analysis
CN109993668B (en) * 2019-04-09 2021-07-13 桂林电子科技大学 Scenic spot recommendation method based on gated cyclic unit neural network
CN110335099B (en) * 2019-05-06 2021-01-01 盛威时代科技集团有限公司 Method for recommending ticket purchase line based on user historical data
CN110222902B (en) * 2019-06-13 2021-10-22 衢州学院 Tourist attraction recommendation system and path planning method
CN110321516B (en) * 2019-07-12 2022-01-28 四川亨通网智科技有限公司 Universal tourism public service platform and management system thereof
CN111104614A (en) * 2019-12-11 2020-05-05 上海携旅信息技术有限公司 Method for generating recall information for tourist destination recommendation system
CN111612590A (en) * 2020-03-19 2020-09-01 江苏智檬智能科技有限公司 Scenic spot recommendation method and device based on artificial intelligence big data
CN111522979B (en) * 2020-04-20 2023-09-29 携程旅游网络技术(上海)有限公司 Picture sorting recommendation method and device, electronic equipment and storage medium
CN114065014A (en) * 2020-07-31 2022-02-18 北京达佳互联信息技术有限公司 Information matching method, device, equipment and storage medium
CN116457810A (en) * 2020-08-06 2023-07-18 Ipass科技股份有限公司 Method, system, equipment and device for realizing fluency of travel program
CN112200334A (en) * 2020-10-28 2021-01-08 上海伯瑞斯健康管理发展有限公司 Self-driving public platform
CN112465276A (en) * 2021-01-28 2021-03-09 湖南惠旅云网络科技有限公司 Method for automatically generating scenic spot playing recommended route
CN113724069B (en) * 2021-08-31 2024-02-13 平安科技(深圳)有限公司 Deep learning-based pricing method, device, electronic equipment and storage medium
CN114374854A (en) * 2021-12-20 2022-04-19 广西壮族自治区公众信息产业有限公司 Cloud tourism live broadcasting method and system
CN114543831B (en) * 2022-04-18 2022-10-18 季华实验室 Route planning method, device and equipment based on driving style and storage medium
CN115292630A (en) * 2022-10-09 2022-11-04 深圳市明源云客电子商务有限公司 Data processing method, device and computer readable storage medium
CN116433269B (en) * 2023-06-13 2023-08-18 四川交通职业技术学院 Method and device for charging parking lot of zone type unmanned vehicle based on big data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103886368A (en) * 2014-03-26 2014-06-25 南京航空航天大学 Satellite accurate orbit prediction method
CN107436950A (en) * 2017-08-07 2017-12-05 苏州大学 A kind of itinerary recommends method and system
CN108537373A (en) * 2018-03-27 2018-09-14 黄晓鸣 Travel information recommends method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103886368A (en) * 2014-03-26 2014-06-25 南京航空航天大学 Satellite accurate orbit prediction method
CN107436950A (en) * 2017-08-07 2017-12-05 苏州大学 A kind of itinerary recommends method and system
CN108537373A (en) * 2018-03-27 2018-09-14 黄晓鸣 Travel information recommends method and apparatus

Also Published As

Publication number Publication date
CN108537373A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
WO2019184833A1 (en) Tourism information recommending method and device
Lim et al. Personalized trip recommendation for tourists based on user interests, points of interest visit durations and visit recency
Chiang et al. User-adapted travel planning system for personalized schedule recommendation
US9183497B2 (en) Performance-efficient system for predicting user activities based on time-related features
Huang Mining online footprints to predict user’s next location
KR101808739B1 (en) Apparatus and Method for recommending a content based on emotion
WO2022088661A1 (en) Group tourist route recommendation method based on attention mechanism
CN110929162A (en) Recommendation method and device based on interest points, computer equipment and storage medium
KR102301086B1 (en) Travel route recommendation system on big data and travel route recommendation method
US20190139165A1 (en) Contextual trip itinerary generator
KR20200102500A (en) Method, apparatus and selection engine for classification matching of videos
KR101094484B1 (en) Tour information guide system using the recommendation algorithm by experts and method thereof
US20200387988A1 (en) Magellan: a context-aware itinerary recommendation system built only using card-transaction data
KR20200133976A (en) Contents Curation Method and Apparatus thereof
Xu et al. Store location selection via mining search query logs of baidu maps
KR101861828B1 (en) Method of providing personalized content and computer program for the same
CN116226537A (en) Layout and display method, device, equipment and medium of page modules in page
Al-Ghossein Context-aware recommender systems for real-world applications
US11138615B1 (en) Location-based place attribute prediction
Yuan et al. An optimal travel route recommendation system for tourists’ first visit to Japan
KR102228398B1 (en) Method and system for providing costomized information based on image analysis
CN114417166A (en) Continuous interest point recommendation method based on behavior sequence and dynamic social influence
CN116049566A (en) Object representation method, apparatus, device, storage medium and computer program product
Petrevska et al. Recommending ideal holiday at national level
KR102655723B1 (en) Place recommendation method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19777120

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21/01/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19777120

Country of ref document: EP

Kind code of ref document: A1