Tourist behavior prediction system and method based on big data

Through the tourist behavior prediction system based on big data, combined with multiple data sources to analyze tourist photos, the data privacy and timeliness issues in the existing technology are solved, more accurate tourist behavior prediction and scenic spot management are achieved, and resource allocation and tourist experience are optimized. .

CN118586959AActive Publication Date: 2024-09-03HANGZHOU MINGXUN SOFTWARE TECH CO LTD

Patent Information

Application Number
CN202411070520.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-09-03
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

Existing tourist behavior prediction technology has data privacy protection and security issues. It is difficult to ensure the timeliness and accuracy of image data, resulting in inaccurate prediction results. Furthermore, it is difficult to fully capture tourist behavior patterns solely relying on image data, and the generalization ability is insufficient to effectively respond. Unexpected events and unusual behavior.

Method used

Provides a tourist behavior prediction system based on big data, including a picture collection module, a picture processing module, a picture mining module and a regional division module. By collecting and analyzing tourist photos from multiple data sources, preprocessing, feature extraction and regional division are performed to predict tourists. Changes in the intensity of travel intention and the number of people, dynamically monitor changes in the number of tourists, and optimize the layout and management of scenic spots.

Benefits of technology

Achieve more accurate tourist behavior prediction and scenic spot management information, help scenic spot managers adjust resource allocation, understand tourist interest points and preferences, optimize services and facilities, improve tour experience and management efficiency, support data-driven decision-making, and enhance the overall tourism experience .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586959A
    Figure CN118586959A
Patent Text Reader

Abstract

The invention relates to the technical field of big data analysis, and relates to a tourist behavior prediction system and method based on big data, and the method comprises the steps: collecting all related photos of a target tourist city from all data sources, and obtaining a timestamp of the target tourist city corresponding to each related photo; the collected relevant photos of the target tourism city are preprocessed, tourist attraction classification is carried out on the relevant photos of the target tourism city, and meanwhile the tourist number change rate of the tourist attraction corresponding to the target tourism city is obtained through analysis; performing saturation quantification processing on the related photos of the tourist attractions corresponding to the target tourist city, and further predicting to obtain tourist travel willingness intensity of the tourist attractions corresponding to the target tourist city; therefore, region division is comprehensively performed on the target tourism city, the tourism experience of tourists and the management efficiency of scenic spots are improved, a scientific basis can be provided for scenic spot management, data-driven decisions are supported, and the scientificity and effectiveness of management are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of big data analysis and relates to a tourist behavior prediction system and method based on big data. Background Art

[0002] In recent years, with the rapid development of artificial intelligence, machine learning and other technologies, emerging technical methods such as image recognition, image classification, and image generation have provided good support for the field of tourism research. Social media pictures are an important carrier for tourists to express their tourism perception in a simple, direct and popular way. Studying the content represented by the pictures and the geographic information carried by the pictures is of great significance to understanding the evolution of tourists' perception and behavior of the destination, and provides a new dimension for studying tourist destinations.

[0003] Although the current technologies and methods for predicting tourist behavior have made some progress, there are still some significant defects and drawbacks. First, in terms of data collection and processing, privacy protection and data security issues are becoming increasingly prominent, and tourists may feel uneasy about their personal information being used for behavioral analysis. Second, prediction models often rely on historical data and current trends, which may lead to insufficiently timely or accurate responses to emerging trends and emergencies.

[0004] The current defects and disadvantages of predicting tourist behavior in the future through images mainly include: the timeliness and accuracy of image data are difficult to guarantee, resulting in inaccurate prediction results; in addition, it is difficult to fully capture the behavior patterns of tourists by relying solely on image data, and the lack of comprehensive analysis of tourist and historical behavior data may lead to insufficient generalization ability of the prediction model and inability to effectively respond to emergencies and abnormal behaviors. Summary of the invention

[0005] In view of the above problems existing in the prior art, the present invention provides a tourist behavior prediction system and method based on big data to solve the above technical problems.

[0006] In order to achieve the above purpose and other purposes, the technical solution adopted by the present invention is as follows: On one hand, the present invention provides a tourist behavior prediction system based on big data, including a picture collection module, a picture processing module, a picture mining module and a region division module; the above-mentioned units are connected by wired and / or wireless connection to realize data transmission between the units; Picture collection module: collects relevant photos of the target tourist city from various data sources and obtains the timestamps of the relevant photos of the target tourist city; Image processing module: pre-processing the collected relevant photos of the target tourist city, thereby classifying the relevant photos of the target tourist city into tourist attractions, and analyzing the change rate of the number of tourists corresponding to each tourist attraction in the target tourist city; Image mining module: Quantify the saturation of the relevant photos of each tourist attraction in the target tourist city, and further predict the intensity of tourists' travel intention in each tourist attraction in the target tourist city; Regional division module: Comprehensively divide the target tourist cities into regions, where the regions are divided into tourist core areas, tourist secondary core areas and tourist fringe areas.

[0007] Exemplarily, relevant photos of the target tourist city are collected from various data sources. The specific collection process is as follows: Filter various image sources within the administrative coordinates of the target tourist city from various data sources and record them as relevant photos; Eliminate the image sources within the administrative coordinates of the target tourist city from each data source, obtain the text descriptions of the remaining image sources in each data source, and extract the text description keywords of the remaining image sources in each data source, and then form a text description keyword set of the remaining image sources in each data source. , i represents the number of each data source, i=1,2,...j, b represents the number of each remaining image source, b=1,2,...a; Synchronously obtain the text description keyword set F corresponding to the preset target tourist city, according to the analysis formula , calculate the matching degree between the text description keyword set of each remaining image source in each data source and the text description keyword set corresponding to the target tourist city ; The matching degree between the text description keyword set of each remaining picture source in each data source and the text description keyword set corresponding to the target tourist city is compared with the preset text description keyword reference matching degree. If the matching degree between the text description keyword set of a remaining picture source in a data source and the text description keyword set corresponding to the target tourist city is greater than or equal to the preset text description keyword reference matching degree, the remaining picture source in the data source is recorded as a related photo, otherwise the remaining picture source in the data source is removed; Based on the above analysis method, relevant photos of the target tourist city are collected.

[0008] For example, the relevant photos of the target tourist city are classified into tourist attractions. The specific classification process is as follows: Resize the relevant photos of the target tourist city to the set standard photo size, and normalize the relevant photos of the target tourist city. The specific processing formula is as follows:

[0009] Normalization helps the training process of deep learning models because a smaller value range can improve numerical stability and speed up convergence; Collect and preprocess the photo datasets of tourist attractions in the target tourist cities. Use the Places365-CNNS model to extract features from the preprocessed photo datasets of tourist attractions in the target tourist cities. Map the extracted features to tourist attraction categories through the fully connected layer of the Places365-CNNS model. The normalized relevant photos are imported into the Places365-CNNS model to obtain the distribution probability of the relevant photos of the target tourist city corresponding to each tourist attraction. The specific recognition formula of the Places365-CNNS model can be abstracted as: ; X is the input related image, It is the function of the convolutional layer and pooling layer in the Places365-CNNS model, responsible for feature extraction. is the weight of the fully connected layer, is the distribution probability of tourist attraction y predicted by the Places365-CNNS model given the input related image X; The distribution probabilities of the tourist attractions corresponding to the relevant photos of the target tourist city are arranged in descending order, and then the tourist attractions with the highest distribution probability are selected as the tourist attractions of the relevant photos of the target tourist city, thereby classifying the relevant photos of the target tourist city into tourist attractions.

[0010] For example, the travel intention intensity of tourists in each tourist attraction in the target tourist city is predicted, and the prediction process is as follows: Obtain the mean value and variance of pixel saturation in each relevant photo of each tourist attraction in each time period of the target tourist city; The specific calculation process of the mean pixel saturation in each relevant photo of each tourist attraction in each time period of the target tourist city is as follows: the saturation value of each pixel in each relevant photo of each tourist attraction in each time period of the target tourist city is summed up, and the result of the summation is averaged to obtain the mean pixel saturation in each relevant photo of each tourist attraction in each time period of the target tourist city; The specific calculation process of the pixel saturation variance in each relevant photo of each tourist attraction in each time period of the target tourist city is as follows: the saturation value of each pixel in each relevant photo of each tourist attraction in each time period of the target tourist city is subtracted from the mean value of the pixel saturation in each relevant photo of each tourist attraction in each time period of the target tourist city, and the result of the subtraction calculation is squared, and the result after the square operation is summed, and the result after the sum operation is divided by the total number of pixels in each relevant photo of each tourist attraction in each time period of the target tourist city -1, so as to obtain the pixel saturation variance in each relevant photo of each tourist attraction in each time period of the target tourist city.

[0011] The pixel saturation mean and pixel saturation variance in each relevant photo of each tourist attraction in each time period of the target tourist city are combined into the feature vector of each tourist attraction in the target tourist city. ; Train the model, and then use the model to predict the intensity of tourists' travel intentions in the target tourist city corresponding to each tourist attraction , g is the trained model.

[0012] For example, the target tourist cities are divided into regions in a comprehensive manner, and the specific division process is as follows: Combined with the change rate of the number of tourists in each tourist attraction in the target tourist city and the intensity of tourists' travel intention, the expected number of tourists in each tourist attraction in the target tourist city is predicted; The estimated number of visitors to each tourist attraction corresponding to the target tourist city is compared with the interval of the number of visitors in each area. If the estimated number of visitors to a tourist attraction corresponding to the target tourist city is within the interval of the number of visitors in the tourist core area, a circle is drawn with the tourist attraction corresponding to the target tourist city as the center and the radius of the preset core area as the radius. The resulting area is recorded as the tourist core area; If the estimated number of visitors to a certain tourist attraction in the target tourist city is within the predetermined number range of the tourist secondary core area, a circle is constructed with the target tourist city corresponding to the tourist attraction as the center and the preset secondary core area radiation radius as the radius, and the resulting area is recorded as the tourist secondary core area; If the estimated number of visitors to a certain tourist attraction in the target tourist city is within the predetermined number range of the tourist edge area, a circle is constructed with the target tourist city corresponding to the tourist attraction as the center and the preset edge area radiation radius as the radius, and the resulting area is recorded as the tourist edge area; The target tourist cities are divided into regions in this way.

[0013] For example, the estimated number of visitors to each tourist attraction in the target tourist city is predicted, and the specific prediction process is as follows: Obtain various factors that affect the number of tourists, and number the factors that affect the number of tourists as 1, 2, ... w; Arrange the estimated number of tourists in each time period in each tourist attraction of the target tourist city in descending order according to the number of the time period, and obtain the last time period in the time period arrangement, which is recorded as the end time period; Using regression model , predict the expected number of visitors to each tourist attraction in the target tourist city , is the intercept term, are model parameters, representing the weight of each variable on the prediction of tourist numbers, is the error term, representing random disturbance, Represents the estimated number of tourists in the target tourist city corresponding to the end time period of the cth tourist attraction, It represents the impact value of the wth changing factor affecting the number of tourists.

[0014] Another aspect of the present invention provides a method for predicting tourist behavior based on big data, comprising: Image collection: Collect relevant photos of the target tourist city from various data sources, and obtain the timestamps of the relevant photos of the target tourist city; Image processing: pre-process the collected photos of the target tourist city, classify the photos into tourist attractions, and analyze the change rate of the number of tourists in each tourist attraction of the target tourist city; Image mining: Quantify the saturation of the relevant photos of each tourist attraction in the target tourist city, and further predict the intensity of tourists' travel intention in each tourist attraction in the target tourist city; Regional division: Comprehensively divide the target tourist cities into regions, among which the regions are divided into tourism core areas, tourism secondary core areas and tourism fringe areas.

[0015] As described above, the tourist behavior prediction system and method based on big data provided by the present invention have at least the following beneficial effects: The tourist behavior prediction system and method based on big data provided by the present invention collects relevant photos of the target tourist city from various data sources, and obtains the timestamp of the relevant photos corresponding to the target tourist city; pre-processes the collected relevant photos of the target tourist city, thereby classifies the relevant photos of the target tourist city into tourist attractions, and analyzes and obtains the rate of change of the number of tourists corresponding to each tourist attraction in the target tourist city; saturation quantization is performed on the relevant photos of each tourist attraction corresponding to the target tourist city, and further predicts the intensity of the tourists' travel intention corresponding to each tourist attraction in the target tourist city; and then comprehensively divides the target tourist city into regions, thereby providing more accurate tourist behavior prediction and scenic area management information. By combining timestamps and photos, the rate of change of the number of tourists can be dynamically monitored, helping scenic area managers to adjust resource allocation and management strategies in a timely manner to avoid overcrowding or waste of resources; by quantifying the saturation of photos, the intensity of tourists' travel intention can be better predicted, helping scenic area managers to understand tourists' interests and preferences, thereby optimizing the services and facilities of the scenic area; by comprehensively analyzing the changes in the number of tourists and travel intentions in each scenic area, scientific regional divisions can be made, the layout of scenic areas can be optimized, and the tourists' sightseeing experience and the management efficiency of scenic areas can be improved; it can provide a scientific basis for scenic area management, support data-driven decision-making, and improve the scientificity and effectiveness of management; through accurate prediction and management, the overall tourism experience can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0017] Figure 1 It is a schematic diagram of the connection of various modules of the system of the present invention.

[0018] Figure 2 It is a schematic diagram of the connection of each step of the method of the present invention. DETAILED DESCRIPTION

[0019] The above contents in combination with the implementation of the present invention are merely examples and explanations of the concept of the present invention. The technical personnel in the relevant technical field may make various modifications or supplements to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined by the claims, they shall all fall within the protection scope of the present invention.

[0020] Example 1: Please refer to Figure 1As shown, the tourist behavior prediction system based on big data includes a picture collection module, a picture processing module, a picture mining module and a region division module; the above-mentioned units are connected by wired and / or wireless connection to realize data transmission between the units; Picture collection module: collects relevant photos of the target tourist city from various data sources and obtains the timestamps of the relevant photos of the target tourist city; The relevant photos include promotional photos and tourist photos, and the data sources include but are not limited to travel websites, social media platforms and official websites of tourist attractions; It should be added that the Python crawler technology is used to call Flickr's API (Application Programming Interface), and the longitude and latitude range of the target tourist city is used as the bbox constraint. Since Flickr's API limits the number of data returned to 5,000 per request for a personal account, in order to ensure the integrity of the data, the period from 2010-01-01 to 2019-12-31 is divided into days, and the timestamps of the start and end times of each day are used as the constraints of the min taken date and the max taken date. After the collection is completed, the data is counted and summarized by day. If the summary data is greater than 5,000, the time constraints within the time range are divided twice, and so on, calling the flickr.photos.search method. Finally, we obtained the source data of 1,308,908 pictures within the coordinate range shared by tourists on the social media website Flickr from 2010 to 2019, including picture ID (id), user name (ownername), user ID (owner), longitude (latitude), latitude (longitude), shooting time (datetaken), theme (title), tags (tags), and the secret key (server, secret) required for picture downloading, etc. Among them, the user ID is used to screen inbound tourists, the longitude and latitude are used to distinguish regional correlation and analyze the changes in tourists' perception in different areas of the study area, the shooting time is used for the time-series tracking of tourists' footprints, and the secret key required for the download link is to download the link information of the picture data according to the picture ID combination, and further analyze the content represented by the picture.

[0021] Due to the limitations of Flickr, and the fact that inbound tourists can more objectively reflect the international influence of the target tourist city and avoid the impact of special periods on inbound tourism, and the tourism industry in the target tourist city requires coordinated development among various provinces and regions, the research data selected pictures taken by inbound tourists in the target tourist city from 2010 to 2019.

[0022] Based on the above embodiment, relevant photos of the target tourist city are collected from various data sources. The specific collection process is as follows: Filter various image sources within the administrative coordinates of the target tourist city from various data sources and record them as relevant photos; Eliminate the image sources within the administrative coordinates of the target tourist city from each data source, obtain the text descriptions of the remaining image sources in each data source, and extract the text description keywords of the remaining image sources in each data source, and then form a text description keyword set of the remaining image sources in each data source. , i represents the number of each data source, i=1,2,...j, b represents the number of each remaining image source, b=1,2,...a; Synchronously obtain the text description keyword set F corresponding to the preset target tourist city, according to the analysis formula , calculate the matching degree between the text description keyword set of each remaining image source in each data source and the text description keyword set corresponding to the target tourist city ; The matching degree between the text description keyword set of each remaining picture source in each data source and the text description keyword set corresponding to the target tourist city is compared with the preset text description keyword reference matching degree. If the matching degree between the text description keyword set of a remaining picture source in a data source and the text description keyword set corresponding to the target tourist city is greater than or equal to the preset text description keyword reference matching degree, the remaining picture source in the data source is recorded as a related photo, otherwise the remaining picture source in the data source is removed; Based on the above analysis method, relevant photos of the target tourist city are collected.

[0023] Image processing module: pre-processing the collected relevant photos of the target tourist city, thereby classifying the relevant photos of the target tourist city into tourist attractions, and analyzing the change rate of the number of tourists corresponding to each tourist attraction in the target tourist city; On the basis of the above embodiment, the relevant photos of the target tourist city are classified into tourist attractions. The specific classification process is as follows: Resize the relevant photos of the target tourist city to the set standard photo size, and normalize the relevant photos of the target tourist city. The specific processing formula is as follows:

[0024] This helps the training process of deep learning models because a smaller value range can improve numerical stability and speed up convergence; Collect and preprocess the photo datasets of tourist attractions in the target tourist cities. Use the Places365-CNNS model to extract features from the preprocessed photo datasets of tourist attractions in the target tourist cities. Map the extracted features to tourist attraction categories through the fully connected layer of the Places365-CNNS model. Convolutional Neural Network (CNN) is a deep learning model used for processing two-dimensional or three-dimensional data such as images, voice and video. Its core idea is to use convolution operations and pooling operations to extract features and reduce dimensions of data, so as to achieve tasks such as image recognition, voice recognition, and target detection. It mainly consists of four parts: convolutional layer, pooling layer, activation function, and fully connected layer. CNN can optimize model parameters through the back propagation algorithm, so that it can better fit the training data and obtain better generalization ability on the test data. In recent years, CNN has achieved great success in image recognition, target detection, natural language processing and other fields, and has become one of the important research directions in the field of deep learning. This study uses the deep learning model of Places-CNNS scene recognition in 2017. Places365-CNNS is a convolutional neural network model for scene recognition and visual general deep scene features trained on the open source database Places. The design of the Places dataset follows the principles of human visual cognition. Its goal is to build a core of visual knowledge that can be used to train artificial systems to perform high-level visual understanding tasks such as scene context, object recognition, action and event prediction, and theory of mind reasoning. The semantic categories of Places are labels representing environments, and the dataset has different categories of bedrooms or streets, etc., because they behave differently and have different predictions about what might happen next. Places contains more than 10 million images in total, including more than 400 unique scene categories. The dataset has 5,000 to 30,000 training images per class, consistent with the frequency of occurrence in the real world. Using convolutional neural networks (CNNs), the Places dataset allows deep scene features to be learned for a variety of scene recognition tasks, with the goal of establishing new state-of-the-art performance on scene-centric benchmarks.

[0025] The normalized relevant photos are imported into the Places365-CNNS model to obtain the distribution probability of the relevant photos of the target tourist city corresponding to each tourist attraction. The specific recognition formula of the Places365-CNNS model can be abstracted as: ; X is the input related image, It is the function of the convolutional layer and pooling layer in the Places365-CNNS model, responsible for feature extraction. is the weight of the fully connected layer, is the distribution probability of tourist attraction y predicted by the Places365-CNNS model given the input related image X; The specific implementation code is as follows: import torch import torchvision.transforms as transforms from torchvision import models from PIL import Image # Download and load the Places365-CNN model def load_model(): model = models.resnet18(pretrained=False, num_classes=365) checkpoint = torch.load('path_to_places365_model.pth.tar', map_location='cpu') state_dict = {str.replace(k, 'module.', ''): v for k, v incheckpoint['state_dict'].items()} model.load_state_dict(state_dict) model.eval() # Set model to evaluation mode return model # Image preprocessing def preprocess_image(image_path): preprocess = transforms.Compose([ transforms.Resize((256, 256)), transforms.CenterCrop(224), transforms.ToTensor(), transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229,0.224, 0.225]), ) image = Image.open(image_path).convert('RGB') image = preprocess(image).unsqueeze(0) # Add batch dimension return image # Perform inference def infer_image(model, image_tensor): with torch.no_grad(): output = model(image_tensor) probabilities = torch.nn.functional.softmax(output[0], dim=0) return probabilities # Get class labels def load_labels(): with open('path_to_places365_labels.txt') as f: labels = [line.strip() for line in f.readlines()] return labels # Main function def main(image_path): model = load_model() image_tensor = preprocess_image(image_path) probabilities = infer_image(model, image_tensor) labels = load_labels() # Print the previous prediction result Top1_prob, top1_catid = torch.topk(probabilities, 1) for i in range(top1_prob.size(0)): print(labels[top1_catid[i]], top1_prob[i].item()) if __name__ == "__main__": image_path = 'path_to_your_image.jpg' main(image_path) The load_model() function downloads and loads the weights of the Places365-CNN model.

[0026] Image preprocessing: The preprocess_image() function normalizes the input image to meet the input requirements of the model.

[0027] Inference: The infer_image() function performs inference on the preprocessed image to obtain the probability distribution of each category.

[0028] Get category labels: The load_labels() function loads the category label file of Places365.

[0029] Main function: main() The function combines the above steps, processes the input image and outputs the top 1 prediction result and its probability.

[0030] The distribution probabilities of the tourist attractions corresponding to the relevant photos of the target tourist city are arranged in descending order, and then the tourist attractions with the highest distribution probability are selected as the tourist attractions of the relevant photos of the target tourist city, thereby classifying the relevant photos of the target tourist city into tourist attractions.

[0031] Image mining module: Quantify the saturation of the relevant photos of each tourist attraction in the target tourist city, and further predict the intensity of tourists' travel intention in each tourist attraction in the target tourist city; Based on the above embodiment, the travel intention intensity of tourists corresponding to each tourist attraction in the target tourist city is predicted, and the prediction process is as follows: Obtain the mean value and variance of pixel saturation in each relevant photo of each tourist attraction in each time period of the target tourist city; The specific calculation process of the mean pixel saturation in each relevant photo of each tourist attraction in each time period of the target tourist city is as follows: the saturation value of each pixel in each relevant photo of each tourist attraction in each time period of the target tourist city is summed up, and the result of the summation is averaged to obtain the mean pixel saturation in each relevant photo of each tourist attraction in each time period of the target tourist city; The specific calculation process of the pixel saturation variance in each relevant photo of each tourist attraction in each time period of the target tourist city is as follows: the saturation value of each pixel in each relevant photo of each tourist attraction in each time period of the target tourist city is subtracted from the mean value of the pixel saturation in each relevant photo of each tourist attraction in each time period of the target tourist city, and the result of the subtraction calculation is squared, and the result after the square operation is summed, and the result after the sum operation is divided by the total number of pixels in each relevant photo of each tourist attraction in each time period of the target tourist city -1, so as to obtain the pixel saturation variance in each relevant photo of each tourist attraction in each time period of the target tourist city.

[0032] The pixel saturation mean and pixel saturation variance in each relevant photo of each tourist attraction in each time period of the target tourist city are combined into the feature vector of each tourist attraction in the target tourist city. ; Train the model, and then use the model to predict the intensity of tourists' travel intentions in the target tourist city corresponding to each tourist attraction , g is the trained model.

[0033] It should be added that the specific process of training the model is: Image data: Collect a large number of images of tourist attractions in the target tourist cities, ensuring that the images have different saturation levels; Tourist behavior data: Collect data on tourists’ travel intentions, which can be obtained through questionnaire surveys, social media data, and click-through rates of travel websites; Image processing: Use image processing tools (such as OpenCV, PIL, etc.) to extract the saturation data of the image. Calculate the average saturation value of each image; Data cleaning: Process missing values ​​and outliers to ensure data quality.

[0034] Feature engineering: Match the saturation data of the image with the tourists’ travel intention data to form a training data set.

[0035] Data exploration: Use statistical analysis tools (such as Pandas, NumPy, etc.) to conduct preliminary exploration of the data to understand the distribution, correlation, etc. of the data.

[0036] Data visualization: Use visualization tools (such as Matplotlib, seaborn, etc.) to draw scatter plots, histograms, heat maps, etc. to intuitively show the relationship between image saturation and tourists' travel intentions Model selection: If travel intention is a continuous variable, you can choose linear regression, ridge regression, Lasso regression, etc. If travel intention is a discrete variable (such as "willing" and "unwilling"), you can choose logistic regression, random forest, support vector machine (SVM), etc.

[0037] Data splitting: Divide the dataset into training and testing sets (e.g. 80% training, 20% testing).

[0038] Model training: Use the training set to train the model. This can be achieved using the machine learning library. The specific code is shown below: import cv2 import numpy as np from sklearn.ensemble import RandomForestRegressor # Image Processing def process_image(image_path): image = cv2.imread(image_path) hsv_image = cv2.cvtColor(image, cv2.COLOR_BGR2HSV) saturation = hsv_image[:, :, 1] mean_saturation = np.mean(saturation) variance_saturation = np.var(saturation) return mean_saturation, variance_saturation # Feature vector mean_sat, var_sat = process_image('path_to_image.jpg') X = np.array([[mean_sat, var_sat, other_feature1, other_feature2,...]]) # predict model = RandomForestRegressor() # Assume this is a trained model model.fit(X_train, y_train) # Assume that X_train and y_train are training data predicted_intention = model.predict(X) print(f'Predicted tourist intention strength: {predicted_intention[0]}') Regional division module: Comprehensively divide the target tourist cities into regions, where the regions are divided into tourist core areas, tourist secondary core areas and tourist fringe areas.

[0039] Based on the above embodiment, the target tourist city is divided into regions in a comprehensive manner. The specific division process is as follows: Combined with the change rate of the number of tourists in each tourist attraction in the target tourist city and the intensity of tourists' travel intention, the expected number of tourists in each tourist attraction in the target tourist city is predicted; The estimated number of visitors to each tourist attraction corresponding to the target tourist city is compared with the interval of the number of visitors in each area. If the estimated number of visitors to a tourist attraction corresponding to the target tourist city is within the interval of the number of visitors in the tourist core area, a circle is drawn with the tourist attraction corresponding to the target tourist city as the center and the radius of the preset core area as the radius. The resulting area is recorded as the tourist core area; If the estimated number of visitors to a certain tourist attraction in the target tourist city is within the predetermined number range of the tourist secondary core area, a circle is constructed with the target tourist city corresponding to the tourist attraction as the center and the preset secondary core area radiation radius as the radius, and the resulting area is recorded as the tourist secondary core area; If the estimated number of visitors to a certain tourist attraction in the target tourist city is within the predetermined number range of the tourist edge area, a circle is constructed with the target tourist city corresponding to the tourist attraction as the center and the preset edge area radiation radius as the radius, and the resulting area is recorded as the tourist edge area; The target tourist cities are divided into regions in this way.

[0040] Based on the above embodiment, the estimated number of visitors to each tourist attraction in the target tourist city is predicted. The specific prediction process is as follows: Obtain various factors that affect the number of tourists, and number the factors that affect the number of tourists as 1, 2, ... w in sequence; the factors include but are not limited to seasonal factors, weather conditions, socio-economic factors, transportation convenience, scenic spot attractiveness, social media popularity or travel booking data; Arrange the estimated number of tourists in each time period in each tourist attraction of the target tourist city in descending order according to the number of the time period, and obtain the last time period in the time period arrangement, which is recorded as the end time period; Using regression model , predict the expected number of visitors to each tourist attraction in the target tourist city , is the intercept term, are model parameters, representing the weight of each variable on the prediction of tourist numbers, is the error term, representing random disturbance, Represents the estimated number of tourists in the target tourist city corresponding to the end time period of the cth tourist attraction, It represents the impact value of the wth changing factor affecting the number of tourists.

[0041] Example 2: Please refer to Figure 2 As shown in the figure, the tourist behavior prediction method based on big data includes: Image collection: Collect relevant photos of the target tourist city from various data sources, and obtain the timestamps of the relevant photos of the target tourist city; Image processing: pre-process the collected photos of the target tourist city, classify the photos into tourist attractions, and analyze the change rate of the number of tourists in each tourist attraction of the target tourist city; Image mining: Quantify the saturation of the relevant photos of each tourist attraction in the target tourist city, and further predict the intensity of tourists' travel intention in each tourist attraction in the target tourist city; Regional division: Comprehensively divide the target tourist cities into regions, among which the regions are divided into tourism core areas, tourism secondary core areas and tourism fringe areas.

[0042] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0043] It should be understood that determining B based on A does not mean determining B only based on A. B can also be determined based on A and / or other information.

[0044] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0045] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. Tourist behavior prediction system based on big data, It is characterized in that It includes an image collection module, an image processing module, an image mining module and an area division module; the above-mentioned units are connected by wired and / or wireless connection to achieve data transmission between the units; Picture collection module: collects relevant photos of the target tourist city from various data sources and obtains the timestamps of the relevant photos of the target tourist city; Image processing module: pre-processing the collected relevant photos of the target tourist city, thereby classifying the relevant photos of the target tourist city into tourist attractions, and analyzing the change rate of the number of tourists corresponding to each tourist attraction in the target tourist city; Image mining module: Quantify the saturation of the relevant photos of each tourist attraction in the target tourist city, and further predict the intensity of tourists' travel intention in each tourist attraction in the target tourist city; Regional division module: Comprehensively divide the target tourist cities into regions, where the regions are divided into tourist core areas, tourist secondary core areas and tourist fringe areas.

2. According to the tourist behavior prediction system based on big data according to claim 1, It is characterized in that Collect relevant photos of the target tourist city from various data sources. The specific collection process is as follows: Filter various image sources within the administrative coordinates of the target tourist city from various data sources and record them as relevant photos; Eliminate the image sources within the administrative coordinates of the target tourist city from each data source, obtain the text descriptions of the remaining image sources in each data source, and extract the text description keywords of the remaining image sources in each data source, and then form a text description keyword set of the remaining image sources in each data source. , i represents the number of each data source, i=1,2,...j, b represents the number of each remaining image source, b=1,2,...a; Synchronously obtain the text description keyword set F corresponding to the preset target tourist city, according to the analysis formula , calculate the matching degree between the text description keyword set of each remaining image source in each data source and the text description keyword set corresponding to the target tourist city ; The matching degree between the text description keyword set of each remaining picture source in each data source and the text description keyword set corresponding to the target tourist city is compared with the preset text description keyword reference matching degree. If the matching degree between the text description keyword set of a remaining picture source in a data source and the text description keyword set corresponding to the target tourist city is greater than or equal to the preset text description keyword reference matching degree, the remaining picture source in the data source is recorded as a related photo, otherwise the remaining picture source in the data source is removed; Based on the above analysis method, relevant photos of the target tourist city are collected.

3. According to the tourist behavior prediction system based on big data as claimed in claim 1, It is characterized in that Classify the relevant photos of the target tourist city into tourist attractions. The specific classification process is as follows: Resize the relevant photos of the target tourist city to the set standard photo size, and normalize the relevant photos of the target tourist city. The specific processing formula is as follows: Collect and preprocess the photo datasets of tourist attractions in the target tourist cities. Use the Places365-CNNS model to extract features from the preprocessed photo datasets of tourist attractions in the target tourist cities. Map the extracted features to tourist attraction categories through the fully connected layer of the Places365-CNNS model. The normalized relevant photos are imported into the Places365-CNNS model to obtain the distribution probability of the relevant photos of the target tourist city corresponding to each tourist attraction. The specific recognition formula of the Places365-CNNS model can be abstracted as: ; X is the input related image, It is the function of the convolutional layer and pooling layer in the Places365-CNNS model, responsible for feature extraction. is the weight of the fully connected layer, is the distribution probability of tourist attraction y predicted by the Places365-CNNS model given the input related image X; The distribution probabilities of the tourist attractions corresponding to the relevant photos of the target tourist city are arranged in descending order, and then the tourist attractions with the highest distribution probability are selected as the tourist attractions of the relevant photos of the target tourist city, thereby classifying the relevant photos of the target tourist city into tourist attractions.

4. According to the tourist behavior prediction system based on big data as claimed in claim 1, It is characterized in that The change rate of the number of tourists in each tourist attraction in the target tourist city is obtained through analysis. The analysis process is as follows: According to the classification categories of tourist attractions corresponding to the target tourist city, obtain the timestamps of the relevant photos in the tourist attractions corresponding to the target tourist city; Divide the time periods into time periods according to the timestamps of the relevant photos in the tourist attractions corresponding to the target tourist city according to the preset timestamp intervals, thereby obtaining the relevant photos of the relevant photos in the tourist attractions corresponding to the target tourist city in each time period; Through spatial analysis, the estimated density of tourists in each tourist attraction in each time period in the target tourist city is obtained. , where s is the number of each related photo, s=1,2,...N, h is the bandwidth, K is the kernel function, is the total number of relevant photos in the vth time period in the cth tourist attraction of the target tourist city, c is the number of each tourist attraction, v is the number of each time period, v=1,2,...p, is the geographic coordinates of the sth related photo, The geographical coordinates of the cth tourist attraction corresponding to the target tourist city; Get the area of ​​each tourist attraction corresponding to the target tourist city , calculate the estimated number of tourists in each tourist attraction in each time period in the target tourist city ; For tourist attraction c, in time periods v and The change in the number of tourists between , is the preset timestamp interval; The change rate of the number of tourists in each tourist attraction in the target tourist city is calculated in this way. .

5. According to the tourist behavior prediction system based on big data as claimed in claim 1, It is characterized in that The prediction process is as follows: Obtain the mean value and variance of pixel saturation in each relevant photo of each tourist attraction in each time period of the target tourist city; The specific calculation process of the mean pixel saturation in each relevant photo of each tourist attraction in each time period of the target tourist city is as follows: the saturation value of each pixel in each relevant photo of each tourist attraction in each time period of the target tourist city is summed up, and the result of the summation is averaged to obtain the mean pixel saturation in each relevant photo of each tourist attraction in each time period of the target tourist city; The specific calculation process of the pixel saturation variance in each relevant photo of each tourist attraction in each time period of the target tourist city is as follows: the saturation value of each pixel in each relevant photo of each tourist attraction in each time period of the target tourist city is calculated by difference with the mean value of the pixel saturation in each relevant photo of each tourist attraction in each time period of the target tourist city, and the result of the difference calculation is squared, and the result after the square calculation is summed, and the result after the sum calculation is divided by the total number of each pixel in each relevant photo of each tourist attraction in each time period of the target tourist city -1, to obtain the pixel saturation variance in each relevant photo of each tourist attraction in each time period of the target tourist city; The pixel saturation mean and pixel saturation variance in each relevant photo of each tourist attraction in each time period of the target tourist city are combined into the feature vector of each tourist attraction in the target tourist city. ; Train the model, and then use the model to predict the intensity of tourists' travel intentions in the target tourist city corresponding to each tourist attraction , g is the trained model.

6. According to the tourist behavior prediction system based on big data as claimed in claim 1, It is characterized in that The target tourist cities are divided into regions in a comprehensive manner. The specific division process is as follows: Combined with the change rate of the number of tourists in each tourist attraction in the target tourist city and the intensity of tourists' travel intention, the expected number of tourists in each tourist attraction in the target tourist city is predicted; The estimated number of visitors to each tourist attraction corresponding to the target tourist city is compared with the interval of the number of visitors in each area. If the estimated number of visitors to a tourist attraction corresponding to the target tourist city is within the interval of the number of visitors in the tourist core area, a circle is drawn with the tourist attraction corresponding to the target tourist city as the center and the radius of the preset core area as the radius. The resulting area is recorded as the tourist core area; If the estimated number of visitors to a certain tourist attraction in the target tourist city is within the predetermined number range of the tourist secondary core area, a circle is constructed with the target tourist city corresponding to the tourist attraction as the center and the preset secondary core area radiation radius as the radius, and the resulting area is recorded as the tourist secondary core area; If the estimated number of visitors to a certain tourist attraction in the target tourist city is within the predetermined number range of the tourist edge area, a circle is constructed with the target tourist city corresponding to the tourist attraction as the center and the preset edge area radiation radius as the radius, and the resulting area is recorded as the tourist edge area; The target tourist cities are divided into regions in this way.

7. According to the tourist behavior prediction system based on big data according to claim 6, It is characterized in that The estimated number of visitors to each tourist attraction in the target tourist city is predicted. The specific prediction process is as follows: Obtain various factors that affect the number of tourists, and number the factors that affect the number of tourists as 1, 2, ... w in sequence; the factors include but are not limited to seasonal factors, weather conditions, socio-economic factors, transportation convenience, scenic spot attractiveness, social media popularity or travel booking data; Arrange the estimated number of tourists in each time period in each tourist attraction of the target tourist city in descending order according to the number of the time period, and obtain the last time period in the time period arrangement, which is recorded as the end time period; Using regression model , predict the expected number of visitors to each tourist attraction in the target tourist city , is the intercept term, are model parameters, representing the weight of each variable on the prediction of tourist numbers, is the error term, representing random disturbance, Represents the estimated number of tourists in the target tourist city corresponding to the end time period of the cth tourist attraction, It represents the impact value of the wth changing factor affecting the number of tourists.

8. Tourist behavior prediction method based on big data, Features: The system is implemented based on the tourist behavior prediction system based on big data according to any one of claims 1 to 7, and includes: Image collection: Collect relevant photos of the target tourist city from various data sources, and obtain the timestamps of the relevant photos of the target tourist city; Image processing: pre-process the collected photos of the target tourist city, classify the photos into tourist attractions, and analyze the change rate of the number of tourists in each tourist attraction of the target tourist city; Image mining: Quantify the saturation of the relevant photos of each tourist attraction in the target tourist city, and further predict the intensity of tourists' travel intention in each tourist attraction in the target tourist city; Regional division: Comprehensively divide the target tourist cities into regions, among which the regions are divided into tourism core areas, tourism secondary core areas and tourism fringe areas.

9. An electronic device, Features , comprising: a processor and a memory, wherein the memory stores a computer program that can be called by the processor; The processor executes the big data-based tourist behavior prediction system as described in any one of claims 1 to 7 by calling the computer program stored in the memory.

10. A computer program product stored on a computer readable medium, Features : It includes a computer-readable program, which, when executed on an electronic device, provides a user input interface to implement the tourist behavior prediction system based on big data as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Visual tourism interest recommendation information generation method based on tourism pictures

    CN109492168A

  • Self-driving tour digital line interactive generation system and working method thereof

    CN110648027A

  • Target removal method and device and target removal method and device based on large segmentation model

    CN117152167A

  • Macroscopic passenger flow volume prediction method and system

    CN117455079A

  • Method for predicting tourist flow in scenic area in real time based on tourists' spatio-temporal behavior pattern mining

    GB2615888A

Cited By

  • Deep learning-based tourist behavior prediction and scenic area congestion early warning system

    CN120764788A