A method of evaluating tourism regional resources based on image differences

Through crawler technology and Word2Vec model, combined with sentiment analysis, the virtual relevance quotient of tourism resources is evaluated, which solves the problem of traditional methods ignoring time series characteristics, achieves in-depth assessment and risk prediction of tourism resources, and provides a more accurate and comprehensive Scenic area operation support.

CN118132818BActive Publication Date: 2024-08-27INST OF GEOGRAPHICAL SCI & NATURAL RESOURCE RES CAS
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410355288.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-27
Publication Date
2024-08-27
Estimated Expiration
2044-03-27

AI Technical Summary

Technical Problem

The traditional tourism resource evaluation method based on image differences ignores the time series characteristics of tourist review data in the digital environment, and cannot reflect user attitudes and dynamic needs in a timely manner, resulting in one-sided and incomplete evaluation results and an inability to provide accurate operational risk prediction.

Method used

Use crawler technology to obtain tourist review data, calculate the virtual relevance quotient through Word2Vec model training and sentiment analysis, comprehensively consider the attention of the scenic spot in the virtual space, user emotional tendencies and word-of-mouth stability, and calculate the ranking, volatility and resilience index , assess the operational risks of scenic spots.

Benefits of technology

It achieves in-depth mining and semantic analysis of tourism resources, improves the accuracy and comprehensiveness of assessment, can promptly discover potential risks and room for improvement, and provides scientific decision-making support for scenic spot management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118132818B
    Figure CN118132818B
Patent Text Reader

Abstract

The present invention discloses a method for evaluating tourism regional resources based on image differences, which specifically relates to the field of tourism resource analysis. It is achieved by deeply mining online comment data of tourists, conducting sentiment analysis and attention trend calculation, as well as evaluating the stability of word-of-mouth, and finally obtaining a virtual correlation quotient. Taking into account multiple factors such as the attention of scenic spots in virtual space, user emotional tendencies, and word-of-mouth stability, the correlation and importance of virtual resources of scenic spots in a digital environment are comprehensively evaluated. Through the calculation of rankings, volatility indexes, and resilience indexes, not only an evaluation of the overall influence of scenic spots is provided, but also the stability and anti-volatility of operations can be discovered. This enables managers to have a more comprehensive and in-depth understanding of the operating status of scenic spots in virtual space, timely discover potential risks and room for improvement, and provide strong decision-making support for the digital operation of scenic spots.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of tourism resource analysis, and more specifically, to a tourism region resource evaluation method based on image differences. Background Art

[0002] A large amount of online data is generated in the digital environment, including social media comments, user interactions, virtual resources, etc. These data reflect users' attitudes, expectations and evaluations of tourism resources. By deeply analyzing these digital data, we can fully understand the image, relevance and influence of tourism resources in the virtual space. Assessing operational risks not only helps to discover potential problems and challenges, but also can warn of possible negative trends in advance, providing a scientific basis for tourism resource managers to formulate effective response strategies. In addition, the evaluation methods in the digital environment can use advanced technical means such as time series analysis, sentiment analysis, virtual relevance quotient, etc. to improve the objectivity and accuracy of the evaluation and make it more in line with the actual situation. Therefore, conducting tourism resource operation risk assessment in a digital environment can provide managers with comprehensive and in-depth information support, helping them to better understand market dynamics and user needs, thereby more effectively improving the competitiveness and sustainable development capabilities of tourism resources.

[0003] There are some problems with the traditional image difference-based evaluation of the operational risk of scenic spot tourism in a data-based environment: the traditional method may ignore the time series characteristics of tourist comment data and fail to capture the changing trend of users' attention to scenic spots over time. This makes the evaluation unable to reflect the actual attitudes and dynamic needs of users in a timely manner, affecting the accurate prediction of operational risks. In addition, the traditional method may lack in-depth mining and comprehensive analysis of tourist comment data, and cannot fully consider the correlation of comments in semantic space and context embedding, resulting in one-sidedness and incompleteness of the evaluation results. Therefore, the traditional screening and analysis methods may face problems such as information loss, lack of timeliness and lack of comprehensiveness, which limits the accurate evaluation of relevant comments on scenic spots. Therefore, when facing complex situations in a digital environment, the traditional method has problems such as insufficient information, strong subjectivity, and insufficient analysis depth, and cannot provide a comprehensive and accurate operational risk assessment.

[0004] In order to solve the above problems, a technical solution is now provided. Summary of the invention

[0005] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a tourism area resource evaluation method based on image differences, which deeply mines online comment data of tourists, performs sentiment analysis and attention trend calculation, and evaluates the stability of word-of-mouth, and finally obtains a virtual correlation quotient. Taking into account multiple factors such as the attention of the scenic spot in the virtual space, user emotional tendencies, and word-of-mouth stability, the correlation and importance of the virtual resources of the scenic spot in the digital environment are comprehensively evaluated. Through the calculation of rankings, volatility indexes, and resilience indexes, not only an evaluation of the overall influence of the scenic spot is provided, but also the stability and anti-volatility of operations can be discovered. This enables managers to have a more comprehensive and in-depth understanding of the operating status of the scenic spot in the virtual space, timely discover potential risks and room for improvement, and provide strong decision-making support for the digital operation of the scenic spot to solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] Step S1, using crawler technology to obtain tourist comment data related to the scenic spot in the target website;

[0008] Step S2, based on Word2Vec model training, combined with semantic space similarity and context embedding resonance, to select related words;

[0009] Step S3, through time series analysis and sentiment analysis, combined with positive attention trend and word-of-mouth stability, comprehensively calculate the positive attention trend score and the word-of-mouth stability score to obtain a virtual relevance quotient;

[0010] Step S4, counting the virtual correlation quotients of different scenic spots in the same region, calculating the ratio of the overall ranking fluctuation index to the overall virtual correlation quotient, evaluating the operation risk of the regional scenic spots in the digital environment, and obtaining corresponding early warning signals.

[0011] In a preferred embodiment, step S1 includes the following contents:

[0012] Use the built asynchronous crawler framework to crawl the visitor comment data of multiple target websites in turn. According to the set scheduled tasks, record the timestamp of the last crawl each time. Only obtain the newly added visitor comment data during the next crawl. Preprocess the crawled raw data, including cleaning and deduplication.

[0013] In a preferred embodiment, step S2 includes the following contents:

[0014] Collect a large-scale text corpus to train the Word2Vec tool library;

[0015] Use the trained Word2Vec tool library to train the word vector model;

[0016] After the training is completed, the word vector model is used to segment the review text collected in step S1, and each word is converted into a corresponding word vector;

[0017] Calculate the correlation information between each review word and the scenic spot keyword, which includes semantic space similarities and differences and context embedding resonance.

[0018] In a preferred embodiment, the process of obtaining the semantic space similarities and differences is as follows:

[0019] Step 1: Use the trained word vector model to obtain the word vector representation of the review words and scenic spot keywords;

[0020] Step 2: Use cosine similarity to calculate the semantic space similarities and differences between the review words and the scenic spot keywords: ;

[0021] in, and Represent the word vectors of review words and scenic spot keywords respectively;

[0022] The process of obtaining the context embedding resonance is as follows:

[0023] Step 1: Use the trained word vector model to construct a word distribution matrix for the entire corpus, where each row represents a word, each column represents a position in the context, and the elements in the matrix represent the probability of the word at the corresponding position;

[0024] Step 2: Use the vocabulary distribution matrix to calculate the resonance between the review words and the scenic spot keywords: ;

[0025] in, represents the vocabulary distribution of comment words, Represents the vocabulary distribution of scenic spot keywords.

[0026] In a preferred embodiment, the semantic space similarities and differences and context embedding resonance between each review word and the scenic spot keyword are comprehensively processed to obtain a relevance score;

[0027] The correlation score value is compared with the correlation threshold. If the correlation score value is greater than or equal to the correlation threshold, a related signal is generated; otherwise, if the correlation score value is less than the correlation threshold, an irrelevant signal is generated.

[0028] In a preferred embodiment, step S3 includes the following contents:

[0029] Based on the collected tourist comment data, sort the tourist comment data by time and construct a time series of attention trends;

[0030] Perform sentiment analysis on each comment and obtain a sentiment score;

[0031] Based on the data that has been sentimentally classified, the image information of the data is extracted, including the positive attention trend score and the word-of-mouth stability score.

[0032] In a preferred embodiment, the process of obtaining the positive attention trend score is as follows:

[0033] Step 1: Group the comments by time windows, with a specified overlap between each time window, and compare the positive sentiment ratios in different time windows to obtain the time series of attention.

[0034] Step 2: Use time series analysis to calculate the average of the proportion of positive sentiment comments in each time window to obtain the positive attention trend;

[0035] The process of obtaining word-of-mouth stability is as follows:

[0036] Use the normal distribution model to fit the time distribution of positive comments and get the parameters of the normal distribution. Let the normal distribution be ,in is the mean, is the standard deviation, the time distance of the comments , then the calculation formula of stability score is: ;

[0037] in, represents the probability density of positive reviews at each time point, i.e., the stability of word-of-mouth;

[0038] The positive attention trend score and word-of-mouth stability score are processed comprehensively to obtain the virtual relevance quotient.

[0039] In a preferred embodiment, step S4 includes the following contents:

[0040] The virtual correlation quotient of each scenic spot in the target area is counted, and the scenic spots are ranked from large to small according to the virtual correlation quotient to obtain a ranking table. Multiple ranking tables within the unit operation cycle are obtained, and the ratio of the overall ranking fluctuation index to the average value of the overall virtual correlation quotient is calculated to obtain the virtual resilience index.

[0041] Compare the virtual resilience index to the risk threshold;

[0042] If the virtual resilience index is greater than or equal to the risk threshold, a scenic spot operation stability signal is generated;

[0043] On the contrary, if the virtual resilience index is less than the risk threshold, an operational risk signal is generated.

[0044] The technical effects and advantages of the tourist area resource evaluation method based on image differences of the present invention are as follows:

[0045] 1. Through the training of the Word2Vec model and the calculation of the relevance of the comment vocabulary, the deep mining and semantic analysis of the tourist comment data are realized. First, through the collection and training of a large-scale corpus, the Word2Vec model can generate a word vector with semantic information for each word, and better capture the semantic relationship between words. Secondly, by calculating the similarities and differences in semantic space and the resonance of context embedding, the relevance between the comment words and the scenic spot keywords in the word vector space and context is comprehensively considered. This effectively solves the problems of traditional screening methods and improves the accuracy and comprehensiveness of tourist comment data. Finally, by setting the relevance threshold, the targeted extraction of comment vocabulary is realized, making the relevant information obtained more accurate, which is beneficial to the subsequent sentiment analysis and calculation of attention trends. Therefore, the beneficial effect of step S2 is to improve the deep understanding and relevance evaluation of tourist comment data, providing a more reliable basis for the comprehensive analysis of subsequent steps.

[0046] 2. By deeply mining the tourist comment data, conducting sentiment analysis and attention trend calculation, as well as evaluating the stability of word-of-mouth, we finally obtained the virtual relevance quotient. Taking into account multiple factors such as the attention of the scenic spot in the virtual space, user emotional tendencies, and word-of-mouth stability, we comprehensively evaluated the relevance and importance of the scenic spot's virtual resources in the digital environment. By calculating the ranking, volatility index, and resilience index, we can not only provide an assessment of the overall influence of the scenic spot, but also discover the stability and volatility of the operation. This enables managers to have a more comprehensive and in-depth understanding of the operating status of the scenic spot in the virtual space, promptly discover potential risks and room for improvement, and provide strong decision-making support for the digital operation of the scenic spot. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a flow chart of the tourism area resource evaluation method based on image difference of the present invention. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] Example 1

[0050] Figure 1 The present invention provides a method for evaluating tourism regional resources based on image differences, which is characterized by:

[0051] Step S1, using crawler technology to obtain tourist comment data related to the scenic spot in the target website;

[0052] Step S2, based on Word2Vec model training, combined with semantic space similarity and context embedding resonance, to select related words;

[0053] Step S3, through time series analysis and sentiment analysis, combined with positive attention trend and word-of-mouth stability, comprehensively calculate the positive attention trend score and the word-of-mouth stability score to obtain a virtual relevance quotient;

[0054] Step S4, counting the virtual correlation quotients of different scenic spots in the same region, calculating the ratio of the overall ranking fluctuation index to the overall virtual correlation quotient, evaluating the operation risk of the regional scenic spots in the digital environment, and obtaining corresponding early warning signals.

[0055] Step S1 includes the following contents:

[0056] Use asynchronous crawler frameworks, such as asyncio or aiohttp, to implement non-blocking asynchronous crawling. Asynchronous crawlers allow multiple network requests to be processed simultaneously without blocking program execution, which improves the efficiency of the crawler and is particularly suitable for large-scale data crawling tasks.

[0057] Asynchronous programming is a programming paradigm that allows a program to perform other operations while waiting for certain operations to complete without blocking the execution of the program. Asynchronous programming is usually implemented using event loops, callback functions, or coroutines. In crawlers, asynchronous crawlers can process multiple requests simultaneously in a non-blocking manner to improve efficiency, and are particularly suitable for I / O intensive tasks.

[0058] Example:

[0059] Install the asynchronous crawler framework. The corresponding code is as follows:

[0060] pip install aiohttp

[0061] Write asynchronous crawler code:

[0062] The corresponding code is as follows:

[0063] importaiohttp

[0064] importasyncio

[0065] asyncdeffetch_url(session,url):

[0066] asyncwithsession.get(url)asresponse:

[0067] return await response.text()

[0068] asyncdefmain():

[0069] urls=["https: / / example.com / page1","https: / / example.com / page2","https: / / example.com / page3"]

[0070] asyncwithaiohttp.ClientSession()assesssion:

[0071] tasks=[fetch_url(session,url)forurlinurls]

[0072] responses=awaitasyncio.gather(*tasks)

[0073] forresponseinresponses:

[0074] #Process the crawled data

[0075] print(response)

[0076] if__name__=="__main__":

[0077] asyncio.run(main())

[0078] In this example, the aiohttp library is used to initiate HTTP requests asynchronously, and asyncio is used to manage asynchronous tasks. By using the asyncwith syntax, you can make full use of the asynchronous mechanism to process multiple URL requests simultaneously without blocking the execution of the program.

[0079] By adopting an asynchronous crawler, it is possible to process multiple network requests simultaneously without blocking the execution of the program, thereby making full use of network resources and improving the concurrency and efficiency of the crawler. For large-scale tasks such as crawling tourist comment data of scenic spots, the asynchronous crawler framework can significantly speed up the data capture process, allowing the crawler to obtain a large amount of comment information more quickly and in real time. This is of great significance for the analysis of scenic spot comments with high real-time requirements and large amounts of data, and it also helps to understand and respond to user feedback more promptly.

[0080] Use the built asynchronous crawler framework to crawl the visitor comment data of multiple target websites in turn. According to the set scheduled tasks, record the timestamp of the last crawl each time. Only the newly added visitor comment data will be obtained during the next crawl, thereby achieving incremental crawling at the set time interval to ensure timeliness.

[0081] For the crawled raw data, the following preprocessing is performed:

[0082] Cleaning:

[0083] Use regular expressions to remove special characters, HTML tags, etc. from comment text;

[0084] Use Chinese word segmentation tools, such as jieba, to segment the comment text for subsequent processing.

[0085] Create a stop word list to remove stop words from comments and retain meaningful words.

[0086] Deduplication:

[0087] Calculate the hash value of the comment text and store the hash values ​​of the crawled comments to avoid duplication;

[0088] Use the database's unique index or primary key to ensure that the stored visitor review data is unique.

[0089] The comprehensive use of multi-threading, asynchronous crawler technology, incremental crawling, and real-time data cleaning and deduplication mechanisms has achieved an efficient and real-time crawler design. It ensures that tourist comment data is obtained from multiple sources, while reducing the number of repeated crawls, making the crawler system more stable and reliable.

[0090] Suppose the original text of a scenic spot review is as follows:

[0091] " This scenic spot is so beautiful! It feels like heaven. I really enjoyed the scenery here, it's definitely worth a visit! "

[0092] Now, we use regular expressions to remove special characters and HTML tags, use the Chinese word segmentation tool jieba to segment words, and create a stop word list to remove meaningless words.

[0093] The corresponding code is as follows:

[0094] importre

[0095] importjieba

[0096] defpreprocess_comment(comment):

[0097] #Regular expression to remove special characters and HTML tags

[0098] cleaned_comment=re.sub(r'<.*?>|&.*?;','',comment)

[0099] #Chinese word segmentation

[0100] seg_list=jieba.cut(cleaned_comment,cut_all=False)

[0101] segmented_comment="".join(seg_list)

[0102] #Create a stop word list

[0103] stop_words = set(["this","really","too","it","feels","like","same","I","very","like","here","of","definitely","worth","one","visit"])

[0104] meaningful_words=[wordforwordinsegmented_comment.split()ifwordnotinstop_words]

[0105] #Return the processed comment text

[0106] returnmeaningful_words

[0107] #test

[0108] original_comment=" This scenic spot is so beautiful! It feels like heaven. I really enjoyed the scenery here, it's definitely worth a visit! "

[0109] processed_comment=preprocess_comment(original_comment)

[0110] print(processed_comment)

[0111] The processed comment text will become a vocabulary list. The corresponding code is as follows:

[0112] ['scenic spot', 'beautiful', 'paradise', 'scenery', 'worth', 'travel']

[0113] In this example, such a process removes HTML tags and special characters, performs Chinese word segmentation, and removes some meaningless words through the stop word list, leaving more meaningful comment words. This pre-processing can provide cleaner and more useful data for subsequent analysis.

[0114] By adopting a word vector-based correlation analysis method, we can efficiently extract review words related to scenic spots. This method uses a pre-trained word vector model to segment the review text and convert each word into a corresponding word vector. By calculating the correlation between each review word and the scenic spot keyword, using methods such as cosine similarity, we can filter out words with a correlation higher than the set threshold as review words related to the scenic spot. This technical feature can more accurately capture semantic relevance, adapt to specific fields, and has the advantage of dynamic updates.

[0115] Step S2 includes the following contents:

[0116] Collect a large-scale text corpus and ensure that the corpus covers areas related to the scenic spot. Use open source pre-processed corpora.

[0117] The Word2Vec toolkit is trained using the corpus.

[0118] The following is the training process of Word2Vec, ensuring that data preprocessing, word segmentation and other operations have been completed. The corresponding code is as follows:

[0119] #Import Word2Vec model

[0120] fromgensim.modelsimportWord2Vec

[0121] #Assume sentences is your segmented text data, each element is the segmentation result of a sentence

[0122] sentences=[['word','embeddings','example'],...]

[0123] #Configure Word2Vec model

[0124] model=Word2Vec(sentences,vector_size=100,window=5,min_count=1,workers=4)

[0125] #Save the trained model

[0126] model.save("word2vec_model.model")

[0127] # Load the trained model

[0128] loaded_model=Word2Vec.load("word2vec_model.model")

[0129] The parameters in the above code are described as follows:

[0130] vector_size: The dimension of the word vector.

[0131] Window: The size of the context window, which means that the model will take into account the text range before and after a word.

[0132] min_count: Ignore words with a frequency lower than this value to avoid the influence of overly rare words on the model.

[0133] workers: The number of CPU cores used for training, which speeds up the training process.

[0134] In practical applications, these parameters can be adjusted according to the size and characteristics of the data set and the availability of computing resources. After the trained Word2Vec model is saved, it is used for subsequent word vector acquisition.

[0135] In addition, the vector_size in the code and the training corpus need to be adjusted and prepared according to the actual situation. When using the model, you can get the word vector of the vocabulary word through model.wv[word].

[0136] Use the trained Word2Vec tool library to train the word vector model. The code is as follows:

[0137] fromgensim.modelsimportWord2Vec

[0138] sentences=[['word','embeddings','example'],...]#Each element is the word segmentation result of a sentence

[0139] model=Word2Vec(sentences,vector_size=100,window=5,min_count=1,workers=4)

[0140] model.save("word2vec_model.model")

[0141] The parameters in the above code are described as follows:

[0142] vector_size: The dimension of the word vector.

[0143] window: The size of the context window.

[0144] min_count: Ignore words with a frequency less than this value.

[0145] workers: The number of CPU cores used for training.

[0146] After the training is completed, save the generated word vector model.

[0147] Use the word vector model to segment the review text collected in step S1 and convert each word into a corresponding word vector.

[0148] Calculate the correlation information between each review word and the scenic spot keyword, which includes semantic space similarities and differences and context embedding resonance.

[0149] The process of obtaining the similarities and differences in semantic space is as follows:

[0150] Step 1: Use the trained word vector model to obtain the word vector representation of the review words and scenic spot keywords;

[0151] Step 2: Use cosine similarity to calculate the semantic space similarities and differences between the review words and the scenic spot keywords: ;

[0152] in, and Represent the word vectors of review words and scenic spot keywords respectively;

[0153] The semantic space similarity reflects the similarity between the review words and the scenic spot keywords in the semantic space of the word vector. Specifically, the semantic space similarity measures the angle relationship between the two vectors. The closer the value is to 1, the more similar the vectors are and the smaller the angle is; while the closer the value is to -1, the more opposite the vectors are and the larger the angle is. The larger the semantic space similarity, the more similar the review words and the scenic spot keywords are in the semantic space and have closer semantic meanings; conversely, the smaller the similarity, the greater the difference in the semantic space and the different semantic features they have. Therefore, the size of the semantic space similarity reflects the degree of semantic association between the review words and the scenic spot keywords.

[0154] The process of obtaining the context embedding resonance is as follows:

[0155] Step 1: Use the trained word vector model to construct a word distribution matrix for the entire corpus, where each row represents a word, each column represents a position in the context, and the elements in the matrix represent the probability of the word at the corresponding position;

[0156] Step 2: Use the vocabulary distribution matrix to calculate the resonance between the review words and the scenic spot keywords: ;

[0157] in, represents the vocabulary distribution of comment words, Represents the vocabulary distribution of scenic spot keywords.

[0158] The context embedding resonance reflects the degree of resonance between the review words and the scenic spot keywords in the context, that is, the degree of semantic entanglement between them in different contexts. The magnitude of the resonance reflects the distribution similarity of the two words in the context. The larger the value, the closer the distribution of the review words and the scenic spot keywords in the context, and the stronger the semantic entanglement and resonance; conversely, the smaller the value, the greater the difference in their distribution in the context, and the weaker the semantic entanglement and resonance. Therefore, the change in the resonance can be used to measure the similarity of contextual information between the review words and the scenic spot keywords, and help capture the degree of semantic association between them in different contexts.

[0159] The semantic space similarities and differences between each comment word and the scenic spot keyword and the context embedding resonance are comprehensively processed to obtain a relevance score. For example, the following calculation formula can be used: ;

[0160] in:

[0161] Indicates the correlation score between the review words and the scenic spot keywords;

[0162] and is an adjustable hyperparameter used to balance the impact of semantic space similarity and context embedding resonance.

[0163] The calculation formula of the correlation score adopts the form of logistic function. The purpose of this formula is to express the correlation between the review words and the scenic spot keywords through complex nonlinear functions. The introduction of nonlinear relationships can more flexibly capture the complex correlation between the review words and the scenic spot keywords, and at the same time, it can adapt to different weight distributions through adjustable hyperparameters. The normalization and exponential function mapping of the formula ensure that the score is within a reasonable range and improves smoothness.

[0164] The correlation score indicates the degree of correlation between the review word and the scenic spot keyword. Specifically, a larger correlation score indicates that the review word and the scenic spot keyword are closer in terms of semantic space similarities and differences and contextual embedding resonance, and have a stronger correlation; conversely, a smaller correlation score indicates that they are more different in these two aspects and have a weaker correlation. Therefore, the size of the correlation score reflects the degree of semantic correlation between the review word and the scenic spot keyword. A larger value indicates a stronger correlation, and a smaller value indicates a weaker correlation.

[0165] Compare the relevance score with the relevant threshold. If the relevance score is greater than or equal to the relevant threshold, it means that the relevance between the review word and the scenic spot keyword has reached or exceeded the preset relevance standard. This means that the review word and the scenic spot keyword are semantically similar or have a strong resonance in the context, meet the set relevance requirements, generate relevant signals, and extract the corresponding review words;

[0166] On the contrary, if the correlation score is less than the relevant threshold, it means that the correlation between the review word and the scenic spot keyword does not meet the preset correlation standard. This means that the review word and the scenic spot keyword are semantically different or have weak resonance in the context, and do not meet the set correlation requirements, generating irrelevant signals, and the review word will not be extracted.

[0167] The present invention realizes the deep mining and semantic analysis of tourist comment data through the training of Word2Vec model and the calculation of the association of comment vocabulary. First, through the collection and training of large-scale corpus, Word2Vec model can generate word vectors with semantic information for each vocabulary, better capturing the semantic relationship between words. Secondly, by calculating the similarities and differences of semantic space and the resonance degree of context embedding, the association between comment words and scenic spot keywords in word vector space and context is comprehensively considered. This effectively solves the problem of traditional screening method and improves the accuracy and comprehensiveness of tourist comment data. Finally, by setting the association threshold, the targeted extraction of comment vocabulary is realized, so that the relevant information obtained is more accurate, which is beneficial to the calculation of subsequent sentiment analysis and attention trend. Therefore, the beneficial effect of step S2 is to improve the deep understanding and association evaluation of tourist comment data, and provide a more reliable basis for the comprehensive analysis of subsequent steps.

[0168] Step S3 includes the following contents:

[0169] Based on the collected tourist comment data, sort the tourist comment data by time and construct a time series of attention trends;

[0170] Perform sentiment analysis on each comment and get a sentiment score. This can be done using sentiment dictionaries, machine learning models, etc.

[0171] The sentiment scores are compared with the corresponding thresholds and divided into three categories:

[0172] Positive: Reviews with scores above the threshold are considered to have positive sentiment.

[0173] Negative: Reviews with scores below the threshold are considered to have negative sentiment.

[0174] Neutral: Reviews with scores within the threshold range are considered to have neutral sentiment.

[0175] Based on the data that has been sentimentally classified, extract the image information of the data, including the positive attention trend score and the word-of-mouth stability score;

[0176] The process of obtaining the positive attention trend score is as follows:

[0177] Step 1: Group the comments by time windows, with a specified overlap between each time window, and compare the positive sentiment ratios in different time windows to obtain the time series of attention.

[0178] For example, the proportion of positive sentiment within each time window can be calculated using the following formula: ;

[0179] in, represents the number of positive sentiment comments, Indicates the total number of comments in this time window.

[0180] After obtaining the attention scores of each time window, these scores are combined into a time series to better understand the changes in tourists' attention trends. This method combines the time factor and sentiment analysis to provide more comprehensive and accurate information for evaluating attention.

[0181] Step 2: Use the time series analysis method to calculate the average of the proportion of positive emotional comments in each time window to obtain the positive attention trend score. The calculation formula is: ;

[0182] in, Positive attention trend score, represents the proportion of positive sentiment in each time window, Indicates the total number of comments.

[0183] The positive attention trend score is used to indicate the average proportion of comments with positive sentiment in each time window. A higher score indicates a higher level of attention, and trend analysis can be determined by comparing the scores of different time windows.

[0184] A larger attention score indicates a stronger attention trend, that is, a higher proportion of positive emotional comments. This means that within a specific time window, tourists have a higher attention to the scenic spot or a specific topic, and express positive interest and expectations for the relevant information. A larger attention score can be interpreted as users on social media or comment platforms being more inclined to pay attention to and discuss topics related to the scenic spot during that time period, showing potential tourist interest. Conversely, a smaller attention score indicates a weaker attention trend, that is, a lower proportion of positive emotional comments. This indicates that within a specific time window, the attention to the scenic spot or related topics is relatively low, and tourists' interest is relatively weak. A smaller attention score may reflect that the scenic spot did not attract enough attention or discussion during that time period, and further analysis and improvement may be needed to increase the attention of the scenic spot.

[0185] The process of obtaining word-of-mouth stability is as follows:

[0186] Use the normal distribution model to fit the time distribution of positive comments and get the parameters of the normal distribution. Let the normal distribution be ,in is the mean, is the standard deviation, the time distance of the comments , then the calculation formula of stability score is: ;

[0187] in, Represents the probability density of positive reviews at each time point, that is, the stability of word-of-mouth.

[0188] The word-of-mouth stability score reflects the temporal distribution characteristics of positive word-of-mouth and is a comprehensive measure of the trend of word-of-mouth changes. Specifically, a larger word-of-mouth stability score indicates that the positive word-of-mouth is more evenly and stably distributed over time, that is, the trend of being well received by users is relatively continuous and without major fluctuations. This may indicate that the scenic spot or product has a relatively lasting popularity and that user satisfaction is relatively stable. Conversely, a smaller word-of-mouth stability score indicates that the word-of-mouth distribution is relatively unstable over time, and there may be large fluctuations in word-of-mouth and significant changes in user evaluations. Therefore, the size of the word-of-mouth stability score directly reflects the trend of word-of-mouth changes. The larger the score, the more stable it is, and the smaller the score, the more unstable it is. This provides companies or scenic spot managers with important information about user word-of-mouth feelings and continued appeal, which helps to adjust business strategies and improve services to ensure the stability and sustainability of word-of-mouth.

[0189] The positive attention trend score and the word-of-mouth stability score are processed comprehensively to obtain a virtual correlation quotient, which can be calculated, for example, by the following formula: ;

[0190] in, represents the virtual association quotient, and They are positive attention trend score and word-of-mouth stability score. and They are the preset proportional coefficients for the positive attention trend score and the word-of-mouth stability score, and both are greater than zero.

[0191] The virtual relevance quotient reflects the comprehensive evaluation of the relevance of virtual resources and emphasizes the relevance and importance of the scenic spot in the virtual space.

[0192] Here, virtual resources refer to the various online presences and influences of scenic spots in virtual space, including but not limited to attention on social media, user comments, word-of-mouth evaluations, etc. These digital information and online activities constitute the virtual image and brand of the scenic spot on the Internet, reflecting the degree of attention, evaluation and interaction of users on the scenic spot in the virtual space. Therefore, virtual resources cover all kinds of data and information related to the scenic spot generated in the digital environment, which is of great significance for evaluating the relevance and influence of the scenic spot in the virtual space. The purpose of the virtual relevance quotient is to more comprehensively measure the relevance and importance of the scenic spot in virtual resources by comprehensively processing the positive attention trend and word-of-mouth stability.

[0193] The virtual relevance quotient is used to reflect the relevance and importance of a scenic spot in the virtual space. This indicator takes into account the positive attention trend score and the word-of-mouth stability score, and aims to provide a comprehensive assessment of the relevance of the scenic spot's virtual resources. Specifically, a larger virtual relevance quotient indicates that the scenic spot has a higher relevance and importance in the virtual space. This may mean that the scenic spot continues to receive positive attention in social media and online reviews, and users' word-of-mouth evaluation of it is relatively consistent and stable. Therefore, a larger virtual relevance quotient reflects that the scenic spot has a strong brand influence and popularity in the virtual environment.

[0194] On the contrary, a smaller virtual relevance quotient indicates that the scenic spot has a lower relevance and importance in the virtual space. This may indicate that the scenic spot has relatively low attention in social media and online reviews, and there is a certain inconsistency or volatility in the user's word-of-mouth evaluation of it. Therefore, a smaller virtual relevance quotient may indicate that further attention should be paid to and improvements should be made to the image and user interaction of the scenic spot in the virtual environment to enhance its relevance in the virtual space. In summary, the size of the virtual relevance quotient reflects the overall influence and popularity of the scenic spot in the virtual space, and provides an important reference for the virtual resource management of the scenic spot.

[0195] Step S4 includes the following contents:

[0196] The virtual correlation quotient of each scenic spot in the target area is counted, and the scenic spots are ranked from large to small according to the virtual correlation quotient to obtain a ranking table, and multiple ranking tables within the unit operation cycle are obtained, and the ratio of the overall ranking fluctuation index to the average value of the overall virtual correlation quotient is calculated to obtain the virtual resilience index. For example, the calculation formula is as follows: ;

[0197] in, represents the virtual toughness index;

[0198] represents the standard deviation of the virtual relevance quotient ranking, which is used to measure the volatility of the ranking;

[0199] represents the average absolute fluctuation of the virtual relevance quotient ranking, taking into account the absolute changes in the ranking;

[0200] It represents the average value of the virtual correlation quotient of all scenic spots.

[0201] Compare the virtual resilience index to the risk threshold;

[0202] If the virtual resilience index is greater than or equal to the risk threshold, it means that the virtual resources have high resilience in the virtual space. This means that the overall ranking volatility of the scenic spot is relatively low, which is relatively stable compared with the overall virtual correlation quotient. In a digital environment, the scenic spot is relatively able to cope with changes and maintain a relatively stable virtual correlation. In this case, it is believed that the operation of the scenic spot in the virtual space is relatively reliable and has strong anti-volatility, generating a signal of stable operation of the scenic spot.

[0203] On the contrary, if the virtual resilience index is less than the risk threshold, it means that the virtual resources have low resilience in the virtual space. This may mean that the overall ranking volatility of the scenic spot is relatively high, which is unstable compared with the overall virtual relevance quotient. In a digital environment, scenic spots may be more susceptible to external factors, resulting in greater uncertainty in virtual relevance. In this case, attention should be paid and measures should be taken to improve the stability and volatility resistance of scenic spots in the virtual space, generate operational risk signals, and issue early warning prompts.

[0204] The present invention deeply mines tourist comment data, performs sentiment analysis and attention trend calculation, as well as evaluates word-of-mouth stability, and finally obtains a virtual relevance quotient. Taking into account multiple factors such as the attention of the scenic spot in the virtual space, user emotional tendencies, and word-of-mouth stability, the relevance and importance of the virtual resources of the scenic spot in the digital environment are comprehensively evaluated. Through the calculation of rankings, volatility indexes, and resilience indexes, not only an evaluation of the overall influence of the scenic spot is provided, but also the stability and volatility resistance of the operation can be discovered. This enables managers to understand the operating status of the scenic spot in the virtual space more comprehensively and deeply, discover potential risks and room for improvement in a timely manner, and provide strong decision-making support for the digital operation of the scenic spot. Therefore, this overall framework has significant beneficial effects in evaluating the operating risks and management effects of the virtual resources of the scenic spot.

[0205] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and thresholds in the formula are set by technicians in this field according to actual conditions.

[0206] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments 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 or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or may be transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium may be a solid-state hard disk.

[0207] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0208] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0209] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0210] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0211] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0212] 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.

[0213] 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. A tourism regional resource evaluation method based on image differences, characterized by: Step S1, using crawler technology to obtain tourist comment data related to the scenic spot in the target website; Step S2, based on Word2Vec model training, combined with semantic space similarity and context embedding resonance, to select related words; Step S3, through time series analysis and sentiment analysis, combined with positive attention trend and word-of-mouth stability, comprehensively calculate the positive attention trend score and the word-of-mouth stability score to obtain a virtual relevance quotient; Step S4, counting the virtual correlation quotients of different scenic spots in the same region, calculating the ratio of the overall ranking fluctuation index to the overall virtual correlation quotient, evaluating the operation risk of the regional scenic spots in the digital environment, and obtaining corresponding early warning signals; The process of obtaining the similarities and differences in semantic space is as follows: Step 1: Use the trained word vector model to obtain the word vector representation of the review words and scenic spot keywords; Step 2: Use cosine similarity to calculate the semantic space similarities and differences between the review words and the scenic spot keywords: Among them, v comment and v keyword Represent the word vectors of review words and scenic spot keywords respectively; The process of obtaining the context embedding resonance is as follows: Step 1: Use the trained word vector model to build a vocabulary distribution matrix for the entire corpus; Step 2: Use the vocabulary distribution matrix to calculate the resonance between the review words and the scenic spot keywords: Among them, P represents the vocabulary distribution of review words, and Q represents the vocabulary distribution of scenic spot keywords; The semantic space similarities and differences between each comment word and the scenic spot keyword and the context embedding resonance are processed comprehensively to obtain the relevance score; Compare the correlation score value with the correlation threshold value, if the correlation score value is greater than or equal to the correlation threshold value, generate a related signal; conversely, if the correlation score value is less than the correlation threshold value, generate an irrelevant signal; Step S3 includes the following contents: Based on the collected tourist comment data, sort the tourist comment data by time and construct a time series of attention trends; Perform sentiment analysis on each comment and obtain a sentiment score; Based on the data that has been sentimentally classified, extract the image information of the data, including the positive attention trend score and the word-of-mouth stability score; The process of obtaining the positive attention trend score is as follows: Step 1: Group the comments by time windows, with a specified overlap between each time window, and compare the positive sentiment ratios in different time windows to obtain the time series of attention. Step 2: Use time series analysis to calculate the average of the proportion of positive sentiment comments in each time window to obtain the positive attention trend; The process of obtaining word-of-mouth stability is as follows: Use the normal distribution model to fit the time distribution of positive comments and obtain the parameters of the normal distribution. Let the normal distribution be N(μ,σ 2 ), where μ is the mean, σ is the standard deviation, and the time distance of the review is t, then the calculation formula for the stability score is: Among them, S stability represents the probability density of positive reviews at each time point, i.e., the stability of word-of-mouth; The positive attention trend score and word-of-mouth stability score are processed comprehensively to obtain the virtual relevance quotient; Step S4 includes the following contents: The virtual correlation quotient of each scenic spot in the target area is counted, and the scenic spots are ranked from large to small according to the virtual correlation quotient to obtain a ranking table. Multiple ranking tables within a unit operation cycle are obtained, and the ratio of the overall ranking fluctuation index to the average value of the overall virtual correlation quotient is calculated to obtain the virtual resilience index; Compare the virtual resilience index to the risk threshold; If the virtual resilience index is greater than or equal to the risk threshold, a scenic spot operation stability signal is generated; On the contrary, if the virtual resilience index is less than the risk threshold, an operational risk signal is generated.

2. The method for evaluating tourism regional resources based on image differences according to claim 1 is characterized in that: Step S1 includes the following contents: Use the built asynchronous crawler framework to crawl the visitor comment data of multiple target websites in turn. According to the set scheduled tasks, record the timestamp of the last crawl each time. Only obtain the newly added visitor comment data during the next crawl. Preprocess the crawled raw data, including cleaning and deduplication.

3. The method for evaluating tourism regional resources based on image differences according to claim 2 is characterized in that: Step S2 includes the following contents: Collect a large-scale text corpus to train the Word2Vec tool library; Use the trained Word2Vec tool library to train the word vector model; After the training is completed, the word vector model is used to segment the review text collected in step S1, and each word is converted into a corresponding word vector; Calculate the correlation information between each review word and the scenic spot keyword, and the correlation information includes semantic space similarities and differences and context embedding resonance.

Citation Information

Cited By

  • Ecological tourism resource assessment method and sustainable development planning system

    CN120182048A