Intelligent management system for cultural tourism construction based on big data
By designing a smart management system for cultural and tourism construction based on big data, the problem of scattered cultural and tourism information and single statistical method is solved, the precise storage and adaptive management of cultural and tourism data are realized, and the accuracy and storage efficiency of data are improved. Support the rapid development of the cultural tourism industry.
Patent Information
- Application Number
- CN202410889800.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-04
AI Technical Summary
The existing cultural tourism information is scattered and the statistical method is single, resulting in low accuracy of cultural tourism big data information, making it difficult to provide effective decision-making reference for tourism enterprises and management departments, affecting the rapid development of the cultural tourism industry.
A smart management system for cultural tourism construction based on big data is designed, including a data collection module and a partitioned storage module. By collecting cultural tourism project consumption data in real time, the level identification model and time series analysis model are used for data storage and management. Achieve accurate data storage and adaptive capacity adjustment, reducing real-time processing pressure.
It improves the rationality and value of cultural tourism data storage, reduces the real-time processing pressure of the system, enhances the accuracy and reliability of data, optimizes data management and storage efficiency, reduces management costs, and forms unified data access platform to facilitate analysis and decision-making.
Smart Images

Figure CN118428909B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data management technology, and in particular to a smart management system for cultural tourism construction based on big data. Background Art
[0002] At present, cultural tourism projects are mainly tourism projects developed from cultural tourism resources, and are a part of tourism projects generated to meet people's cultural tourism consumption needs. The cultural tourism industry is mainly a tourism industry developed from cultural tourism resources, and is a part of tourism industry generated to meet people's cultural tourism consumption needs. Its purpose is to improve the quality of people's tourism activities. The core of cultural tourism is creativity, with special emphasis on creating a cultural symbol. Cultural tourism activities have an important impact and significance on people's lives, local economic development, etc. The unified management of cultural tourism consumption information is conducive to further controlling the development trends of the cultural tourism industry.
[0003] The existing cultural and tourism information is scattered, and the information of each cultural and tourism area is counted separately, which is inconvenient to manage. At the same time, the statistical methods of each cultural and tourism area are single and the content is monotonous, resulting in low accuracy of cultural and tourism big data information. Therefore, it is not convenient for staff to summarize and conclude the big data information regularly.
[0004] Therefore, in order to enable cultural and tourism data to provide a reference for decision makers or management departments of tourism enterprises to formulate long-term plans and achieve the effect of promoting the rapid economic development of the cultural and tourism industry, an intelligent management system for cultural and tourism construction based on big data is extremely important. Summary of the invention
[0005] This application provides a smart management system for cultural and tourism construction based on big data, thereby improving the rationality and value of cultural and tourism data storage and reducing the pressure of real-time processing of the system.
[0006] This application provides a smart management system for cultural tourism construction based on big data, including a data acquisition module and a partition storage module;
[0007] The partition storage module is provided with a number of area blocks according to the obtained historical cultural tourism projects, each area block corresponds to a historical cultural tourism project, and stores all consumption type data corresponding to the historical cultural tourism project;
[0008] The data acquisition module is provided with an independent temporary storage space, which is specifically used for:
[0009] S101, collecting newly generated consumption type data of different cultural and tourism projects in real time and temporarily storing them in a temporary storage space, each cultural and tourism project includes at least one consumption type, and each consumption type data includes cultural and tourism consumption data, specifically, consumption amount and number of consumers;
[0010] S102, inputting all consumption type data of the cultural tourism project into a pre-trained grade recognition model to obtain a grade value of each consumption type in the cultural tourism project;
[0011] S103, presetting a time period, and periodically storing the cultural and tourism consumption data of all cultural and tourism projects within the time period into the partition storage module, specifically including:
[0012] Based on each cultural and tourism project within the time period, determine the target area block in the partition storage module;
[0013] Each cultural tourism project within the time period is determined as a cultural tourism project to be stored and transferred to the corresponding target area block.
[0014] Preferably, in S103, based on each cultural tourism project within the time period, determining the target area block in the partition storage module specifically includes:
[0015] B1. Based on each cultural tourism project within the time period, determine whether there is a historical cultural tourism project identical to the cultural tourism project in the area block of the partition storage module. If so, determine the corresponding area block as the target area block;
[0016] B2. If it does not exist, the similarity between the cultural tourism project and the historical cultural tourism projects in each area block in the partition storage module is calculated according to the following formula, and the area block with the smallest similarity value is taken as the target area block:
[0017] in, is the similarity value between cultural tourism project i and historical cultural tourism project j, Q is the number of the same consumption types in cultural tourism project i and historical cultural tourism project j, is the qth level value of the same consumption type, are the consumption amounts of the qth consumption type of cultural tourism project i and historical cultural tourism project j, respectively. are the number of consumers of the qth consumption type of cultural tourism project i and historical cultural tourism project j, and are the weight factors for adjusting the contribution of the consumption amount and consumption quantity differences to the similarity value.
[0018] Preferably, the partition storage module is also used for:
[0019] S201, based on each area block, according to the number of consumption types in the corresponding historical cultural tourism project, the area block is divided into a corresponding number of sub-area blocks, each sub-area block corresponds to a consumption type, and all consumption types in the historical cultural tourism project are stored in the corresponding sub-area blocks respectively;
[0020] S202, when the cultural tourism items to be stored are received from the data acquisition module, the cultural tourism consumption data of each consumption type is stored in the sub-region block corresponding to the level value according to the level values of all its consumption types.
[0021] Preferably, in S202, storing the cultural and tourism consumption data of each consumption type in the corresponding sub-region block also includes:
[0022] S301, obtaining the total data volume of all cultural tourism consumption data of the cultural tourism project to be stored, and determining whether the total data volume of the cultural tourism project to be stored is less than the remaining storage capacity of the corresponding target area block;
[0023] S302, if not, then delete the invalid cultural and tourism consumption data in the sub-regional blocks according to the order of the corresponding consumption type level values of the sub-regional blocks in the target region block from small to large, and repeat the step S301; if yes, execute step S303;
[0024] Among them, the expired cultural and tourism consumption data is set to the cultural and tourism consumption data that meets the preset time from the current time;
[0025] S303, determining whether the amount of data of the consumption type in the cultural tourism project to be stored is greater than the remaining storage capacity of the corresponding sub-region block;
[0026] S304, if it exists, the consumption type with a data volume greater than the remaining storage capacity of the corresponding sub-region block is determined as the first consumption type: when the level value of the first consumption type is greater than the preset level threshold, all sub-region blocks with remaining storage capacity and corresponding consumption type level values less than the preset level threshold are determined as sub-region blocks to be allocated, and step S305 is executed; otherwise, the invalid cultural and tourism consumption data in the sub-region block corresponding to the first consumption type is deleted;
[0027] S305: Split the remaining storage capacity in the sub-region block to be allocated and expand it to the sub-region block corresponding to the first consumption type.
[0028] Preferably, the S305 specifically includes:
[0029] The sub-region blocks to be allocated are sorted from small to large according to the consumption type level values, and the remaining storage capacity of the sub-region blocks to be allocated is expanded to the sub-region blocks corresponding to the first consumption type in sequence until all data of the first consumption type is successfully stored.
[0030] Preferably, the S201 specifically includes:
[0031] S401, before dividing the sub-region blocks, based on each historical cultural tourism project, according to the current time, obtain the cultural tourism consumption data of each consumption type in the historical cultural tourism project within a preset historical time period, and use a preset time series analysis model to obtain the trend factor of the consumption type within the preset current time period;
[0032] S402: Based on each consumption type of the historical cultural tourism project, the capacity of the sub-regional block of the consumption type in the corresponding region block is calculated according to the following formula: Among them, L is the number of consumption types in this historical cultural tourism project, For the The capacity of the sub-regional block in the corresponding region block for each consumption type, For the The trend factor of the cultural and tourism consumption data of each consumption type in the current time period, C is the total capacity of the corresponding regional block; This is the first historical and cultural tourism project The level value of each consumption type.
[0033] Preferably, in S202, storing the cultural and tourism consumption data of each consumption type in the corresponding sub-region block also includes:
[0034] S501, during the execution of step S301 to step S302, if the consumption level value of the sub-region block selected for deleting invalid cultural tourism consumption data is greater than the preset level threshold, stop the execution of step S302 and execute step S502;
[0035] S502, obtaining comprehensive trend factors of all consumption types in each area block other than the target area block;
[0036] S503, determining the regional block with remaining storage capacity and the smallest corresponding comprehensive trend factor as the regional block to be allocated, and jumping to step S303 to step S304, replacing the original sub-regional block to be allocated with the regional block to be allocated;
[0037] S504: Split the remaining storage capacity in the area block to be allocated and expand it to the area block corresponding to the first consumption type.
[0038] Preferably, the S502 specifically includes:
[0039] D1. Calculate the average trend factor for each other area block: , is the average trend factor of the xth other regional blocks, is the trend factor of the tourism consumption data of the yth consumption type in the xth other regional block in the current time period, is the number of consumption types in the xth other area block;
[0040] D2. Calculate the fluctuation value of the trend factor of each other area block: , is the fluctuation value of the trend factor of the xth other area block;
[0041] D3. Calculate the comprehensive trend factor of each other regional block: , is the comprehensive trend factor of the xth other regional block, is the maximum value of the trend factor of all consumption types in the xth other area block, Set to 0.001.
[0042] Preferably, each cultural tourism consumption data stored in each regional block in the partition storage module is represented as a first label vector, including a consumption type label, a consumption amount, a number of consumers, and a collection time label, and each first label vector is assigned a unique cultural tourism project label;
[0043] The system also includes a link module, specifically used for:
[0044] S601, retrieve the consumption type labels of all first label vectors in the partition storage module, and generate a plurality of data strips according to the consumption type labels, each data strip corresponding to a consumption type label;
[0045] S602, all first label vectors are generated based on their consumption type labels and positioned in corresponding data strips. The second label vectors include a cultural tourism project label, a consumption amount, a number of consumers, and a collection time label. Each second label vector is assigned a unique consumption type label.
[0046] S603, the cultural tourism project labels based on all the second label vectors are stored in corresponding data blocks in the order of collection time, each data strip is divided into several data blocks, and each data block corresponds to a cultural tourism project label.
[0047] Preferably, after S202, the partition storage module is further used to send an update response to the link module, and the link module is further used to:
[0048] S701, receiving an update response sent by the partition storage module, executing steps S601 to S603, converting all first label vectors in the latest time period received by the partition storage module into second label vectors and storing them in corresponding data strips;
[0049] S702, based on each data stripe, determining all second label vectors to be stored in the data stripe as label vectors to be stored, and determining whether the size of the label vectors to be stored is less than the remaining capacity of the corresponding data stripe;
[0050] S703, if not, then determine the data block in the data strip that meets the preset conditions as the target data block, and based on each target data block, normalize all the invalid label vectors therein, generate a reference label vector to replace all the original invalid label vectors, and the normalization process is specifically as follows: add the consumption amount and the number of consumers in all invalid label vectors to obtain the reference amount and the reference number of consumers, and combine the maximum collection time and the minimum collection time in the invalid label vector into a reference time period label. The reference label vector includes a cultural and tourism project label, a reference amount, a reference number of consumers, and a reference time period label.
[0051] The process of determining a data block in a data strip that meets a preset condition as a target data block specifically includes:
[0052] E1. According to the cultural tourism project labels corresponding to all data blocks in the data strip, locate the corresponding regional blocks in the partition storage module respectively, and retrieve the comprehensive trend factor of the regional block;
[0053] E2. Determine the data block where the cultural tourism project label corresponding to the regional block whose comprehensive trend factor is less than the preset trend threshold is located as the target data block;
[0054] The S703 also includes: sorting the target data blocks in ascending order according to their corresponding comprehensive trend factors, performing normalization processing in sequence, and returning to step S702 after each execution until the condition of S702 is met, and the normalization processing is terminated.
[0055] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0056] By setting up temporary storage space and periodic transfer storage strategies, the real-time processing pressure is reduced and the system processing efficiency is improved. Periodic data transfer and storage can provide sufficient and reliable cultural and tourism consumption data within a time period for calculation of target area block determination, thereby improving the accuracy and reliability of matching. By calculating the similarity between cultural and tourism projects and existing area blocks, they can be stored in the most similar area blocks, without the need to create new area blocks separately, saving system resources and avoiding chaos within the area blocks. By dividing each area block into sub-area blocks, accurate storage and management of cultural and tourism consumption data are achieved, improving the accuracy and efficiency of data storage. Based on the comparison of data size and remaining storage capacity, combined with the evaluation criteria of the level value of consumption type, the sub-area blocks to be allocated are determined, which can maximize the use of the capacity within the area block itself to perform adaptive storage space adjustment strategies, while minimizing the value loss of cultural and tourism consumption data in the area block, ensuring the rational use of storage capacity and system stability.
[0057] By dynamically allocating sub-region block capacity in advance, frequent deployment and expansion operations during the storage process are avoided, thereby improving the overall efficiency of data storage and processing; capacity allocation based on the level value of consumption type and the predicted trend factor ensures that important consumption types with obvious growth trends obtain sufficient storage space, thereby optimizing data management; the partition storage module can adaptively adjust storage space allocation according to the dynamic changes and growth trends of consumption data, enhancing the adaptability and flexibility of the system.
[0058] By introducing an allocation mechanism between regional blocks and cross-cooperating with the allocation mechanism between all sub-regional blocks in the target regional block, the problem of insufficient storage capacity allocation in a single regional block is solved, thereby minimizing the research value loss caused by capacity allocation in the target regional block; and by calculating the comprehensive trend factor of each regional block to reflect the differences in storage requirements between different regional blocks, when selecting the regional blocks to be allocated, the research value loss of other regional blocks (other cultural and tourism projects) caused by capacity allocation between regional blocks can be minimized, ensuring a more reasonable use of the storage capacity of the entire partition storage module, avoiding the situation where some regional blocks have insufficient storage space while other regional blocks are idle, thereby reducing management costs.
[0059] Through the link module, the consumption data of all cultural and tourism projects are classified and organized according to the consumption type, forming a unified data access platform, which is convenient for staff to view and analyze the data, and the data is updated simultaneously according to the update response sent by the partition storage module, ensuring the uniformity of the data; through normalization processing of invalid label vectors, historically unimportant data information is retained, avoiding overall misunderstanding and loss caused by data deletion; by combining the comprehensive trend factors of each cultural and tourism project defined by the partition storage module, data blocks with smaller comprehensive trend factors are selected for priority processing, which optimizes the data storage and allocation process and reduces value loss. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 This is a structural diagram of a smart management system for cultural and tourism construction based on big data according to an embodiment of the present invention. DETAILED DESCRIPTION
[0061] To facilitate the understanding of the present invention, the present application will be described more comprehensively below with reference to the relevant drawings; the drawings show preferred embodiments of the present invention, but the present invention can be implemented in many different forms and is not limited to the embodiments described herein; on the contrary, the purpose of providing these embodiments is to enable a more thorough and comprehensive understanding of the disclosed content of the present invention.
[0062] It should be noted that the terms “vertical”, “horizontal”, “up”, “down”, “left”, “right” and similar expressions used in this document are only for illustrative purposes and do not represent the only implementation method.
[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which the present invention belongs; the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the term "and / or" used herein includes any and all combinations of one or more related listed items.
[0064] Embodiment 1: Figure 1 It is a structural diagram of a smart management system for cultural tourism construction based on big data in an embodiment of the present invention.
[0065] like Figure 1 As shown, a smart management system for cultural tourism construction based on big data includes: a data acquisition module and a partition storage module.
[0066] In some embodiments, the partition storage module is provided with a number of area blocks according to the obtained historical cultural tourism projects, each area block corresponds to a historical cultural tourism project, and stores all consumption type data corresponding to the historical cultural tourism project.
[0067] In some embodiments, the data acquisition module is provided with an independent temporary storage space, which is specifically used for:
[0068] S101, collect the consumption type data of different cultural and tourism projects newly generated in real time and temporarily store them in a temporary storage space.
[0069] Specifically, each cultural and tourism project includes at least one consumption type, and each consumption type includes cultural and tourism consumption data, such as consumption amount, number of consumers, user portrait information, etc.
[0070] S102, inputting all consumption type data of the cultural tourism project into the pre-trained grade recognition model respectively to obtain the grade value of each consumption type in the cultural tourism project.
[0071] Among them, by dividing all consumption types in cultural and tourism projects into grade values, reliable data support is provided for the selection of target area blocks for subsequent transfer and storage to the partition storage module.
[0072] Specifically, the pre-trained level recognition model is built on:
[0073] A1. Obtain the feature vector of each consumption type in a fixed historical time period. The feature vector is expressed as (X, M, N, A), where X represents the unique label of the consumption type, M represents the consumption amount, N represents the number of consumers, and A represents the average age of the consumer users.
[0074] A2. Label the feature vector of each consumption type with a grade value, and use all the labeled feature vectors as a training set to train the model to obtain a grade recognition model.
[0075] S103, pre-set a time period, and periodically store the cultural and tourism consumption data of all cultural and tourism projects within the time period into the partition storage module.
[0076] Among them, since the consumption data of cultural and tourism projects generally undergo regular changes over a period of time, it is considered to set the time period to each month, so that sufficient consumption type data can be available when similarity values are calculated later, thereby improving the reliability and accuracy of the calculation. Furthermore, the cultural and tourism consumption data of cultural and tourism projects is periodically transferred and stored, which effectively reduces the system resource pressure of real-time collection and real-time storage and processing, and improves the stability of the system.
[0077] In some embodiments, step S103, periodically storing the cultural and tourism consumption data of all cultural and tourism projects within the time period into the partition storage module, specifically includes:
[0078] B1. Based on each cultural tourism project within the time period, determine whether there is a historical cultural tourism project identical to the cultural tourism project in the area block of the partition storage module. If so, determine the corresponding area block as the target area block.
[0079] B2. If it does not exist, the similarity value between the cultural tourism project and the historical cultural tourism projects in each area block in the partition storage module is calculated according to the following formula: in, is the similarity value between cultural tourism project i and historical cultural tourism project j, Q is the number of the same consumption types in cultural tourism project i and historical cultural tourism project j, is the qth level value of the same consumption type, are the consumption amounts of the qth consumption type of cultural tourism project i and historical cultural tourism project j, respectively. are the number of consumers of the qth consumption type of cultural tourism project i and historical cultural tourism project j, and They are weight factors for adjusting the contribution of the consumption amount and consumption quantity differences to the similarity value, and can be adjusted according to actual conditions.
[0080] The region block with the smallest similarity value is taken as the target region block.
[0081] Therefore, through this calculation formula, combined with the differences in the level values of consumption types, consumption amounts, and number of consumers between different cultural and tourism projects, the similarity between the two can be calculated to improve the accuracy of similarity judgment.
[0082] B3. Each cultural tourism project within the time period is determined as a cultural tourism project to be stored and transferred to the corresponding target area block.
[0083] In some embodiments, the partition storage module is further used to:
[0084] S201, based on each area block, according to the number of consumption types in the corresponding historical cultural tourism project, the area block is divided into a corresponding number of sub-area blocks, each sub-area block corresponds to a consumption type, and all consumption types in the historical cultural tourism project are stored in the corresponding sub-area blocks respectively.
[0085] S202, when the cultural tourism items to be stored are received from the data acquisition module, the cultural tourism consumption data of each consumption type is stored in the sub-region block corresponding to the level value according to the level values of all its consumption types.
[0086] Specifically, in step S202, the cultural and tourism consumption data of each consumption type is stored in the corresponding sub-region block, which also includes:
[0087] S301, obtaining the total data volume of all cultural and tourism consumption data of the cultural and tourism projects to be stored, and determining whether the total data volume of the cultural and tourism projects to be stored is less than the remaining storage capacity of the corresponding target area block.
[0088] S302, if not, then delete the invalid cultural and tourism consumption data in the sub-regional blocks according to the order of the corresponding consumption type level values of the sub-regional blocks in the target region block from small to large, and repeat the step S301; if yes, execute step S303.
[0089] Among them, the expired cultural and tourism consumption data is set to the cultural and tourism consumption data that meets the preset time length from the current time. For example, the preset time length can be set to 5 years, or it can be set according to the actual situation of different cultural and tourism projects.
[0090] Specifically, the first deletion starts from the cultural and tourism consumption data in the sub-region block with the lowest consumption type level value, and step S301 is re-executed after each deletion, that is, judging whether the total data volume of the cultural and tourism items to be stored is less than the remaining storage capacity of the corresponding target region block, until the judgment condition is met.
[0091] S303, determining whether the amount of data of a consumption type in the cultural and tourism project to be stored is greater than the remaining storage capacity of the corresponding sub-region block.
[0092] S304, if it exists, the consumption type with a data volume greater than the remaining storage capacity of the corresponding sub-region block is determined as the first consumption type: when the level value of the first consumption type is greater than the preset level threshold, all sub-region blocks with remaining storage capacity and corresponding consumption type level values less than the preset level threshold are determined as sub-region blocks to be allocated, and step S305 is executed; otherwise, the invalid cultural and tourism consumption data in the sub-region block corresponding to the first consumption type is deleted.
[0093] If it does not exist, directly store all consumption type data of the cultural tourism project to be stored in the corresponding sub-region block.
[0094] S305: Split the remaining storage capacity in the sub-region block to be allocated and expand it to the sub-region block corresponding to the first consumption type.
[0095] Specifically, the sub-regional blocks to be allocated are sorted from small to large according to the consumption type level value, and the remaining storage capacity of the sub-regional blocks to be allocated is expanded to the sub-regional blocks corresponding to the first consumption type in order, until all data of the first consumption type is successfully stored. For example, the remaining storage capacity of the sub-regional block to be allocated with the smallest consumption type level value is first expanded to the sub-regional block corresponding to the first consumption type. If the data of the first consumption type still cannot be completely stored, the remaining storage capacity of the sub-regional block to be allocated with the second lowest level value is expanded to the sub-regional block corresponding to the first consumption type in turn, until all cultural and tourism consumption data of all first consumption types can be completely stored successfully.
[0096] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0097] By setting up temporary storage space and periodic transfer storage strategy, the real-time processing pressure is reduced, the system processing efficiency is improved, and periodic data transfer and storage can provide sufficient and reliable cultural and tourism consumption data within a time period for calculation of target area block determination, thereby improving the accuracy and reliability of matching;
[0098] By calculating the similarity between cultural and tourism projects and existing regional blocks, they can be stored in the most similar regional blocks, without the need to create new regional blocks separately, saving system resources and avoiding chaos within the regional blocks;
[0099] By dividing each regional block into sub-regional blocks, accurate storage and management of cultural and tourism consumption data is achieved, the accuracy and efficiency of data storage are improved, and based on the comparison of data size and remaining storage capacity, combined with the evaluation criteria of the level value of consumption type, the sub-regional blocks to be allocated are determined. The capacity within the regional block itself can be maximized to perform adaptive storage space adjustment strategies, while minimizing the loss of value of cultural and tourism consumption data in the regional block, ensuring the rational use of storage capacity and system stability.
[0100] Embodiment 2: In the aforementioned embodiment, the regional block is divided into a corresponding number of sub-regional blocks according to the number of consumption types. However, since the size of each sub-regional block is not limited, if there is an excessive or insufficient amount of data of certain consumption types, it may lead to unreasonable allocation of storage capacity of the regional block. As a result, when processing the storage of new data, frequent deployment and expansion operations of sub-regional blocks are required within the regional block, affecting the overall data processing efficiency.
[0101] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.
[0102] It should be noted that the larger the level value of a consumption type, the more consumers there are in that consumption type or the higher the consumption amount. When storing data of this consumption type, the storage capacity requirement is higher. In addition, each consumption type has a regular trend change within a certain period of time. The changing trend of the consumption type in this period of time in previous years can be used to predict the changing trend of the consumption type in the future period of time. Based on these two parameters, reasonable storage capacity can be pre-allocated for the consumption type.
[0103] In some embodiments, step S201 specifically includes:
[0104] S401, before dividing the sub-region blocks, based on each historical cultural and tourism project, according to the current time, obtain the cultural and tourism consumption data of each consumption type in the historical cultural and tourism project within a preset historical time period, and use the corresponding time series analysis model to obtain the trend factor of the consumption type within the preset current time period.
[0105] Specifically, the time period can be set to one month and can be adjusted according to actual conditions. According to the current time, the historical time that is the same as the current time in previous years is obtained, and the trend change of cultural and tourism consumption data in the time period starting from the historical time is obtained, and the time period starting from the historical time is determined as the preset historical time period; the preset current time period is the time period starting from the current time.
[0106] In an embodiment of the present invention, the size of the above-mentioned time period can be set to be the same as the size of a time period pre-set in S103 of Example 1, so that the predicted current time period size is consistent with the time period size corresponding to the cultural and tourism consumption data transmitted by the data acquisition module, thereby making the corresponding sub-area block capacity planning before the new data is stored more time-reliable and targeted.
[0107] The corresponding time series analysis model is used to obtain the trend factor of the consumption type in the preset current time period, specifically including:
[0108] C1. Collect the cultural and tourism consumption data of each consumption type in the historical cultural and tourism project in different historical time periods of the years, including the consumption amount, number of consumers, and key indicators of the consumption time period, to form a cultural and tourism consumption data feature vector, and arrange it in chronological order, where the historical time period is set to a smaller time period, such as a week.
[0109] C2. Trend annotation is performed on the characteristic vectors of cultural and tourism consumption data in all historical time periods. The trend annotation can be set to rapid rise, steady rise, rapid decline, steady decline, and no fluctuation. Each trend annotation corresponds to a trend factor, which can be set according to expert advice. For example, trend factors are assigned in the order of rapid rise, steady rise, no fluctuation, steady decline, and rapid decline, and in descending order of numerical values.
[0110] C3. Use the labeled training set to train the time series analysis model. During the training process, the parameters of the model can be continuously adjusted to optimize the prediction performance.
[0111] C4. Input the characteristic vector of the cultural and tourism consumption data of this consumption type in the historical time period of last year into the trained time series analysis model, and output the trend factor of this consumption type in the preset current time period.
[0112] It should be noted that the specific working principle of the time series analysis model can refer to the existing known content, and the present invention will not elaborate on it.
[0113] S402: Based on each consumption type of the historical cultural tourism project, the capacity of the sub-regional block of the consumption type in the corresponding region block is calculated according to the following formula: Among them, L is the number of consumption types in this historical cultural tourism project, For the The capacity of the sub-regional block in the corresponding region block for each consumption type, For the The trend factor of the cultural and tourism consumption data of each consumption type in the current time period, C is the total capacity of the corresponding regional block; This is the first historical and cultural tourism project The level value of each consumption type.
[0114] Therefore, the sub-region block capacity of each consumption type in the corresponding region block is dynamically allocated in advance according to the level value and trend factor of the consumption type, which can ensure that important consumption types with obvious growth trends obtain sufficient storage space, thereby improving storage efficiency and optimizing data management.
[0115] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0116] By dynamically allocating sub-region block capacity in advance, frequent deployment and expansion operations during the storage process are avoided, thereby improving the overall efficiency of data storage and processing; capacity allocation based on the level value of consumption type and the predicted trend factor ensures that important consumption types with obvious growth trends obtain sufficient storage space, thereby optimizing data management; the partition storage module can adaptively adjust storage space allocation according to the dynamic changes and growth trends of consumption data, enhancing the adaptability and flexibility of the system.
[0117] Embodiment 3: In the aforementioned embodiment, when new data transmitted by the data acquisition module is received for storage, the capacity allocation and expansion between sub-regional blocks within a single regional block is limited. However, in actual applications, the amount of consumption data between regional blocks corresponding to different cultural and tourism projects or the amount of new consumption data that is about to come may vary greatly. This may lead to insufficient storage capacity in some regional blocks while other regional blocks are more idle, thereby increasing management costs. In addition, since it is limited to the allocation of sub-regional blocks within the target regional block itself, when the required allocation is too large (for example, during certain tourist peak seasons or when the popularity suddenly soars), there is excessive deletion of invalid data within a single regional block (insufficient storage capacity allocation within a single regional block), which is likely to cause excessive loss of value of a single regional block, causing research losses for later staff when analyzing the consumption of the cultural and tourism project.
[0118] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.
[0119] In some embodiments, step S202 sequentially stores the cultural and tourism consumption data of each consumption type in the corresponding sub-region block, and further includes:
[0120] S501, during the execution of step S301 to step S302, if the consumption level value of the sub-region block selected for deleting invalid cultural and tourism consumption data is greater than the preset level threshold, stop the execution of step S302 and execute step S502.
[0121] S502, obtaining comprehensive trend factors of all consumption types in each area block other than the target area block.
[0122] In some embodiments, step S502 specifically includes:
[0123] D1. Calculate the average trend factor for each other area block: , is the average trend factor of the xth other regional blocks, is the trend factor of the tourism consumption data of the yth consumption type in the xth other regional block in the current time period, is the number of consumption types in the xth other area block.
[0124] D2. Calculate the fluctuation value of the trend factor of each other area block: , is the fluctuation value of the trend factor of the xth other regional block.
[0125] D3. Calculate the comprehensive trend factor of each other regional block: , is the comprehensive trend factor of the xth other regional block, is the maximum value of the trend factor of all consumption types in the xth other area block, Set to a very small positive number to avoid division by zero, which can be set to 0.001.
[0126] Thus, a more accurate and reasonable comprehensive trend factor of the regional block can be obtained, so that the difference in storage requirements between different regional blocks can be better reflected when selecting the deployable regional blocks.
[0127] S503, determining the regional block with remaining storage capacity and the smallest corresponding comprehensive trend factor as the regional block to be allocated, so as to minimize the value loss of capacity allocation between regional blocks, and jumping to step S303 to step S304, replacing the original sub-regional block to be allocated with the regional block to be allocated.
[0128] S504: Split the remaining storage capacity in the area block to be allocated and expand it to the area block corresponding to the first consumption type.
[0129] In some embodiments, step S504 specifically includes:
[0130] All sub-region blocks with remaining storage capacity in the area block to be allocated and whose level value of consumption type is less than the preset level threshold are arranged in order of level value from small to large, and the remaining storage capacity of the sub-region blocks is expanded in sequence to the sub-region blocks corresponding to the first consumption type of the target area block until all data of the first consumption type is successfully stored.
[0131] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0132] By introducing an allocation mechanism between regional blocks and cross-cooperating with the allocation mechanism between all sub-regional blocks in the target regional block, the problem of insufficient storage capacity allocation in a single regional block is solved, thereby minimizing the research value loss caused by capacity allocation in the target regional block; and by calculating the comprehensive trend factor of each regional block to reflect the differences in storage requirements between different regional blocks, when selecting the regional blocks to be allocated, the research value loss of other regional blocks (other cultural and tourism projects) caused by capacity allocation between regional blocks can be minimized, ensuring a more reasonable use of the storage capacity of the entire partition storage module, avoiding the situation where some regional blocks have insufficient storage space while other regional blocks are idle, thereby reducing management costs.
[0133] Embodiment 4: In the process of analyzing and studying actual cultural and tourism consumption data, in order to improve the research efficiency and quality of the staff, the aforementioned embodiment uses a partitioned storage module to perform regional block storage based on different cultural and tourism projects. There are also multiple similar cultural and tourism types in one regional block, which is not conducive to the development research of the staff for the application of specific consumption types in all cultural and tourism projects. There are limitations. The development differences between different cultural and tourism projects are compared only based on the consumption data of different cultural and tourism projects. There is a lack of development research on all cultural and tourism projects under the same consumption type, which can help managers explore the potential development of different local consumption types.
[0134] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.
[0135] In some embodiments, each cultural and tourism consumption data stored in each regional block in the partitioned storage module is represented as a first label vector, including a consumption type label, a consumption amount, a number of consumers, and a collection time label, and each first label vector is assigned a unique cultural and tourism project label.
[0136] In some embodiments, the system further includes a link module, specifically configured to:
[0137] S601, retrieve the consumption type labels of all first label vectors in the partition storage module, and generate a number of data strips according to the consumption type labels, each data strip corresponding to a consumption type label, and the number of data strips is consistent with the number of all consumption types;
[0138] S602, all first label vectors are generated based on their consumption type labels and positioned in corresponding data strips. The second label vectors include a cultural tourism project label, a consumption amount, a number of consumers, and a collection time label. Each second label vector is assigned a unique consumption type label.
[0139] S603, the cultural tourism project labels based on all the second label vectors are stored in corresponding data blocks in the order of collection time, each data strip is divided into several data blocks, and each data block corresponds to a cultural tourism project label.
[0140] In some embodiments, the system further comprises an analysis module, specifically configured to:
[0141] Receive analysis indicator information sent by the staff client, the analysis indicator information includes a first label and a second label, the analysis level of the first label is greater than that of the second label, if the first label is a cultural and tourism project label, it is located in the corresponding area block of the partition storage module; if the first label is a consumption type label, it is located in the corresponding data strip of the link module.
[0142] Therefore, by obtaining analytical indicator information, we can judge the analytical tendencies of the staff, that is, whether they are inclined towards cultural and tourism projects or development research on consumption types, and conduct targeted data links to the staff, thereby improving the work efficiency of the staff.
[0143] In some embodiments, after step S202, the partition storage module is further used to send an update response to the link module, and the link module is further used to:
[0144] S701, receiving an update response sent by a partition storage module, executing steps S601 to S603, converting all first label vectors in a time period received by the partition storage module for the latest time period into second label vectors and storing them in corresponding data stripes.
[0145] S702: Based on each data stripe, all second label vectors to be stored in the data stripe are determined as label vectors to be stored, and it is determined whether the size of the label vectors to be stored is less than the remaining capacity of the corresponding data stripe.
[0146] S703, if not, then determine the data block in the data strip that meets the preset conditions as the target data block, and based on each target data block, normalize all the invalid label vectors therein, generate a reference label vector to replace all the original invalid label vectors, and the normalization process is specifically as follows: add the consumption amount and the number of consumers in all invalid label vectors to obtain the reference amount and the reference number of consumers, and combine the maximum collection time and the minimum collection time in the invalid label vector into a reference time period label. The reference label vector includes a cultural and tourism project label, a reference amount, a reference number of consumers, and a reference time period label.
[0147] Specifically, the invalid label vector is determined as: a second label vector that meets a preset time length from the current time. For example, the preset time length can be set to 5 years.
[0148] The process of determining a data block in a data strip that meets a preset condition as a target data block specifically includes:
[0149] E1. According to the cultural tourism project labels corresponding to all data blocks in the data strip, locate the corresponding regional blocks in the partition storage module respectively, and retrieve the comprehensive trend factor of the regional block.
[0150] E2. Determine the data block where the cultural tourism project label corresponding to the regional block whose comprehensive trend factor is less than the preset trend threshold is located as the target data block.
[0151] Specifically, the smaller the comprehensive trend factor is, the more likely it is that the corresponding area block has received less data in the most recent time period, so the amount of data to be received in the data block corresponding to the cultural and tourism project label is also likely to be smaller. By introducing this preset condition judgment, the value loss caused by the invalid label vector processing of each data block can also be minimized. However, in this embodiment, the invalid label vectors are normalized and a number of label vectors are replaced by a reference label vector. While further reducing the value loss, it can also provide certain data support for the staff to conduct analysis and research, thereby ensuring the integrity of the data in the data block.
[0152] In some embodiments, step S703 further includes:
[0153] The target data blocks are sorted in ascending order according to their corresponding comprehensive trend factors, and normalization processing is performed in sequence. After each execution, the process returns to step S702 until the condition of S702 is met and the normalization processing is terminated.
[0154] It should be noted that the method of normalizing failed data in this embodiment can also be applied to the sub-regional blocks in each regional block in the partitioned storage module. The principle is the same as that in this embodiment, and the present invention will not elaborate on this, which ensures the smooth progress of capacity allocation and avoids the risk of serious value loss of regional blocks or data blocks due to excessive allocation.
[0155] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0156] Through the link module, the consumption data of all cultural and tourism projects are classified and sorted according to consumption types, forming a unified data access platform, which is convenient for staff to view and analyze data, and update data simultaneously according to the update response sent by the partition storage module, ensuring the uniformity of the data.
[0157] By normalizing the invalid label vector, historically unimportant data information is retained, avoiding overall misunderstanding and loss caused by data deletion.
[0158] By combining the comprehensive trend factors of each cultural and tourism project defined by the partition storage module, data blocks with smaller comprehensive trend factors are selected for priority processing, which optimizes the data storage and allocation process and reduces value loss.
[0159] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A smart management system for cultural tourism construction based on big data, characterized in that: Including data acquisition module and partition storage module; The partition storage module is provided with a number of area blocks according to the obtained historical cultural tourism projects, each area block corresponds to a historical cultural tourism project, and stores all consumption type data corresponding to the historical cultural tourism project; The data acquisition module is provided with an independent temporary storage space, which is specifically used for: S101, collecting new consumption type data of different cultural and tourism projects in real time and temporarily storing them in a temporary storage space, where each cultural and tourism project includes at least one consumption type, and each consumption type data includes cultural and tourism consumption data, specifically, consumption amount and number of consumers; S102, inputting all consumption type data of the cultural tourism project into a pre-trained grade recognition model to obtain a grade value of each consumption type in the cultural tourism project; S103, presetting a time period, and periodically storing the cultural and tourism consumption data of all cultural and tourism projects within the time period into the partition storage module, specifically including: Based on each cultural and tourism project within the time period, determine the target area block in the partition storage module; Determine each cultural tourism project within the time period as a cultural tourism project to be stored and transfer it to the corresponding target area block; The partition storage module is also used for: S201, based on each area block, according to the number of consumption types in the corresponding historical cultural tourism project, the area block is divided into a corresponding number of sub-area blocks, each sub-area block corresponds to a consumption type, and all consumption types in the historical cultural tourism project are stored in the corresponding sub-area blocks respectively; S202, when receiving the cultural tourism items to be stored transmitted by the data acquisition module, according to the level values of all consumption types thereof, the cultural tourism consumption data of each consumption type is sequentially stored in the sub-region block corresponding to the level value; In the above S202, the cultural tourism consumption data of each consumption type is stored in the corresponding sub-region block, which also includes: S301, obtaining the total data volume of all cultural tourism consumption data of the cultural tourism project to be stored, and determining whether the total data volume of the cultural tourism project to be stored is less than the remaining storage capacity of the corresponding target area block; S302, if not, then delete the invalid cultural and tourism consumption data in the sub-regional blocks according to the order of the corresponding consumption type level values of the sub-regional blocks in the target region block from small to large, and repeat the step S301; if yes, execute step S303; S303, determining whether the amount of data of the consumption type in the cultural tourism project to be stored is greater than the remaining storage capacity of the corresponding sub-region block; S304, if it exists, the consumption type with a data volume greater than the remaining storage capacity of the corresponding sub-region block is determined as the first consumption type: when the level value of the first consumption type is greater than the preset level threshold, all sub-region blocks with remaining storage capacity and corresponding consumption type level values less than the preset level threshold are determined as sub-region blocks to be allocated, and step S305 is executed; otherwise, the invalid cultural and tourism consumption data in the sub-region block corresponding to the first consumption type is deleted; S305, dividing the remaining storage capacity in the sub-region block to be allocated and expanding it to the sub-region block corresponding to the first consumption type; The S201 specifically includes: S401, before dividing the sub-region blocks, based on each historical cultural tourism project, according to the current time, obtain the cultural tourism consumption data of each consumption type in the historical cultural tourism project within a preset historical time period, and use a preset time series analysis model to obtain the trend factor of the consumption type within the preset current time period; S402: Based on each consumption type of the historical cultural tourism project, the capacity of the sub-regional block of the consumption type in the corresponding region block is calculated according to the following formula: Among them, L is the number of consumption types in this historical cultural tourism project, is the capacity of the sub-region block in the corresponding region block for the lth consumption type, is the trend factor of the cultural tourism consumption data of the lth consumption type in the current time period, and C is the total capacity of the corresponding regional block; It is the level value of the lth consumption type in this historical and cultural tourism project.
2. The smart management system for cultural tourism construction based on big data as claimed in claim 1, characterized in that: In S103, based on each cultural tourism project within the time period, determining the target area block in the partition storage module specifically includes: B1. Based on each cultural tourism project within the time period, determine whether there is a historical cultural tourism project identical to the cultural tourism project in the area block of the partition storage module. If so, determine the corresponding area block as the target area block; B2. If it does not exist, the similarity between the cultural tourism project and the historical cultural tourism projects in each area block in the partition storage module is calculated according to the following formula, and the area block with the smallest similarity value is taken as the target area block: in, is the similarity value between cultural tourism project i and historical cultural tourism project j, Q is the number of the same consumption types in cultural tourism project i and historical cultural tourism project j, is the qth level value of the same consumption type, , are the consumption amounts of the qth consumption type of cultural tourism project i and historical cultural tourism project j, respectively. , are the number of consumers of the qth consumption type of cultural tourism project i and historical cultural tourism project j, and are the weight factors for adjusting the contribution of the consumption amount and consumption quantity differences to the similarity value.
3. The smart management system for cultural tourism construction based on big data as claimed in claim 1, characterized in that: The expired cultural and tourism consumption data is set to be cultural and tourism consumption data that meets a preset time distance from the current time.
4. The smart management system for cultural tourism construction based on big data as claimed in claim 1, characterized in that: The S305 specifically includes: The sub-region blocks to be allocated are sorted from small to large according to the consumption type level values, and the remaining storage capacity of the sub-region blocks to be allocated is expanded to the sub-region blocks corresponding to the first consumption type in sequence until all data of the first consumption type is successfully stored.
5. The smart management system for cultural tourism construction based on big data as claimed in claim 1, characterized in that: In the step S202, storing the cultural and tourism consumption data of each consumption type in the corresponding sub-region block also includes: S501, during the execution of step S301 to step S302, if the consumption level value of the sub-region block selected for deleting invalid cultural tourism consumption data is greater than the preset level threshold, stop the execution of step S302 and execute step S502; S502, obtaining comprehensive trend factors of all consumption types in each area block other than the target area block; S503, determining the regional block with remaining storage capacity and the smallest corresponding comprehensive trend factor as the regional block to be allocated, and jumping to step S303 to step S304, replacing the original sub-regional block to be allocated with the regional block to be allocated; S504: Split the remaining storage capacity in the area block to be allocated and expand it to the area block corresponding to the first consumption type.
6. The smart management system for cultural tourism construction based on big data as claimed in claim 5, characterized in that: The S502 specifically includes: D1. Calculate the average trend factor for each other area block: , is the average trend factor of the xth other regional blocks, is the trend factor of the tourism consumption data of the yth consumption type in the xth other regional block in the current time period, is the number of consumption types in the xth other area block; D2. Calculate the fluctuation value of the trend factor of each other area block: , is the fluctuation value of the trend factor of the xth other area block; D3. Calculate the comprehensive trend factor of each other regional block: , is the comprehensive trend factor of the xth other regional block, is the maximum value of the trend factor of all consumption types in the xth other area block, Set to 0.
001.
7. The smart management system for cultural tourism construction based on big data as claimed in claim 5, characterized in that: Each cultural tourism consumption data stored in each regional block in the partition storage module is represented as a first label vector, including a consumption type label, a consumption amount, a number of consumers, and a collection time label, and each first label vector is assigned a unique cultural tourism project label; The system also includes a link module, specifically used for: S601, retrieve the consumption type labels of all first label vectors in the partition storage module, and generate a plurality of data strips according to the consumption type labels, each data strip corresponding to a consumption type label; S602, all first label vectors are generated based on their consumption type labels and positioned in corresponding data strips. The second label vectors include a cultural tourism project label, a consumption amount, a number of consumers, and a collection time label. Each second label vector is assigned a unique consumption type label. S603, the cultural tourism project labels based on all the second label vectors are stored in corresponding data blocks in the order of collection time, each data strip is divided into several data blocks, and each data block corresponds to a cultural tourism project label.
8. The smart management system for cultural tourism construction based on big data as claimed in claim 7, characterized in that: After S202, the partition storage module is further used to send an update response to the link module, and the link module is further used to: S701, receiving an update response sent by the partition storage module, executing steps S601 to S603, converting all first label vectors in the latest time period received by the partition storage module into second label vectors and storing them in corresponding data strips; S702, based on each data stripe, determining all second label vectors to be stored in the data stripe as label vectors to be stored, and determining whether the size of the label vectors to be stored is less than the remaining capacity of the corresponding data stripe; S703, if not, then determine the data block that meets the preset conditions in the data strip as the target data block, and based on each target data block, normalize all the invalid label vectors therein, generate a reference label vector to replace all the original invalid label vectors, and the normalization process is specifically as follows: add the consumption amount and the number of consumers in all invalid label vectors to obtain the reference amount and the reference number of consumers, and combine the maximum collection time and the minimum collection time in the invalid label vector into a reference time period label. The reference label vector includes a cultural tourism project label, a reference amount, a reference number of consumers, and a reference time period label; The process of determining a data block in a data strip that meets a preset condition as a target data block specifically includes: E1. According to the cultural tourism project labels corresponding to all data blocks in the data strip, locate the corresponding regional blocks in the partition storage module respectively, and retrieve the comprehensive trend factor of the regional block; E2. Determine the data block where the cultural tourism project label corresponding to the regional block whose comprehensive trend factor is less than the preset trend threshold is located as the target data block; The S703 also includes: sorting the target data blocks in ascending order according to their corresponding comprehensive trend factors, performing normalization processing in sequence, and returning to step S702 after each execution until the condition of S702 is met, and the normalization processing is terminated.
Citation Information
Patent Citations
Block chain-based flexible employment data processing method, device and system
CN112053090A
Information processing apparatus, method of controlling the same, and storage medium
CN113296881A
Big data-based text travel consumption popularity analysis method
CN115018474A
Beautiful village text travel consumption data analysis system
CN115330470A
Cloud resource governance optimization method and system
CN117610738A
