A method and system for storing reservation data in a smart park

By analyzing the similarities and differences of user reservation data and classifying and storing smart park reservation data, the problem of inefficiency caused by undifferentiated storage in distributed storage is solved, and storage efficiency and data analysis capabilities are improved.

CN118409715BActive Publication Date: 2024-09-10MUFENG TECH (SHANDONG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410873561.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-10
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

The existing smart park reservation data is stored indiscriminately in distributed storage without fully considering the specific situation of user reservation data, resulting in inefficient storage efficiency.

Method used

By obtaining users' reservation data, analyze the similarity of reservation branch library serial numbers between users, classify user reservation data, obtain popular branches and user-preferred branches, and classify and store the data according to the similarity of the user's final preferred branch categories. .

Benefits of technology

It improves the storage efficiency of smart park reservation data, analyzes user behavior differences and data similarities, optimizes data classification storage, and enhances the efficiency of subsequent data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118409715B
    Figure CN118409715B
Patent Text Reader

Abstract

The present invention relates to the technical field of smart park reservation data processing, and specifically to a method and system for storing reservation data of a smart park, including: extracting reservation data of a smart park, classifying the reservation data of the smart park according to the similarity of the serial numbers of the branches of the user's reservation in the smart park, classifying the reservation data of users with strong purpose according to the purpose of the user's reservation of the branch and the popularity of the branches in the smart park, and distributing and storing the classified smart park reservation data. The present invention classifies the reservation data according to the similarity and difference of the smart park reservation data, obtains several classifications with large differences, and distributes the classified data, further improving the storage efficiency of the smart park reservation data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart park reservation data processing, and in particular to a smart park reservation data storage method and system. Background Art

[0002] With the construction of smart parks, more and more businesses are being handled online, such as visit reservations. Compared with traditional telephone reservations, using mini-programs to make reservations allows you to view the reservation status of the venue on the day in real time, and you can also view the detailed information of each branch in the venue. This not only allows you to arrange your time reasonably, but also allows you to fully understand the venue information, thereby improving reservation efficiency. As the number of reservations continues to increase, conventional data storage methods are facing huge storage pressure. Therefore, it is necessary to improve the storage method to reduce storage space and improve data access efficiency, so as to better analyze user behavior and improve service quality.

[0003] At present, distributed storage is commonly used to store smart park data, specifically storing user data in different pairs of servers. However, due to the similarities and differences in user reservation data, all data is simply stored indiscriminately in different servers without fully considering the specific circumstances of user reservation data, resulting in insufficient storage efficiency. Summary of the invention

[0004] The present invention provides a smart park reservation data storage method and system to solve the problem that in the existing distributed storage of smart park reservation data, all data is indiscriminately stored in different servers, and the specific circumstances of user reservation data are not fully considered, resulting in insufficient storage efficiency.

[0005] A smart park reservation data storage method and system of the present invention adopts the following technical solutions:

[0006] An embodiment of the present invention provides a method for storing reservation data in a smart park, the method comprising the following steps:

[0007] Acquire reservation data of users for different branches in the smart park through terminal devices, wherein the reservation data includes user personal information, reservation time of the user's reservation branch, and the reservation branch serial number, and the user personal information includes at least the user's ID;

[0008] Based on all reservation data, a total reservation branch library sequence is obtained, wherein the total reservation branch library sequence includes a set of reservation branch libraries of several users; according to the similarity of the reservation branch library serial numbers between different users in the total reservation branch library sequence, the total reservation branch library sequence is classified to obtain a similar reservation branch library sequence;

[0009] Obtain a branch library reservation frequency sequence through a similar branch library reservation sequence; obtain a popular branch library set based on the number of branch library reservations made by the user and the number of branch library reservations made within the branch library reservation frequency sequence; obtain a user's preferred branch library set based on the user's multiple reservation information, obtain a preferred popular branch library set in combination with the popular branch library set, and obtain a Class I user set based on the preferred popular branch library set; obtain the final similarity of the preferred branch library categories between users in the Class I user set based on the similarity of the user's preferred popular branch library set in the Class I user set, the popularity of the branch library, and the number of branch library reservations made by the user;

[0010] The reservation data is classified based on the similarity of the final preferred library categories among users, and the user reservation data is stored according to the classification results.

[0011] Furthermore, the method of obtaining a total reservation branch sequence based on all reservation data, wherein the total reservation branch sequence includes a set of reservation branch libraries of several users, includes the following specific methods:

[0012] Sort the user IDs in ascending order, number the users in the sorted order, and obtain the serial numbers of all users; obtain the reserved branch library serial numbers corresponding to all branches reserved by each user, and record the set of reserved branch library serial numbers corresponding to all branches reserved by any user as the reserved branch library set of the user, and record the reserved branch library set of the user as , Indicates the serial number is The reservation branch set of all users is obtained in ascending order of user serial number, and the total reservation branch sequence is recorded as , ,in Indicates A collection of user's reserved branch libraries, Indicates the total number of users.

[0013] Furthermore, the method of classifying the total reservation branch library sequence according to the similarity of the reservation branch library serial numbers between different users in the total reservation branch library sequence and obtaining similar reservation branch library sequences includes the following specific methods:

[0014] Traverse the total reservation branch sequence, record any user as the target user, obtain several intersections of the reservation branch sets between the target user and each other user, record the intersection with the largest number of elements in all intersections as the maximum common subset of the target user, and record the sequence formed by the maximum common subsets of all users as the similar reservation branch sequence.

[0015] Furthermore, the specific method of obtaining the branch library reservation frequency sequence through the similar branch library reservation sequence is as follows:

[0016] Obtain the number of times each branch library is booked in the similar branch library booking sequence, and record the sequence formed by the number of times all branches are booked as the branch library booking number sequence;

[0017] The method for obtaining the branch library reservation frequency sequence is as follows:

[0018] The users included in each maximum common subset are recorded as the public users of the maximum common subset, and the number of public users of all maximum common subsets in the sequence of similar reservation branches is obtained, and the number of public users is recorded as the number of public users of each branch in each maximum common subset; the number of public users of the branches with the same serial number in all maximum common subsets is merged to obtain the number of public users of each branch, which is recorded as the number of reservations for each branch; the number of reservations of all branches is sorted in ascending order of the branch serial numbers to obtain a branch reservation number sequence.

[0019] Furthermore, the method of obtaining a set of popular branch libraries according to the number of branch library reservations made by the user and the number of branch library reservations in the branch library reservation number sequence includes the following specific methods:

[0020] First, the smart park The number of reservations for branch No. is recorded as ;

[0021] Then, all users who have made reservations The users of the branch library are recorded as Target users of branch number, obtain each in the total reservation branch sequence The number of branch libraries reserved by the target users ,Will Total number of branches in the smart park The ratio of The target users of the branch library are The reservation coefficient of the branch will be The number of users whose reservation coefficient of the branch is less than or equal to the preset first parameter is recorded as The interest reservation parameter of the branch is recorded as , expressed as The interest reservation parameters of the branch;

[0022] Next, according to The number of times the branch has been booked and The interest reservation parameters of the branch are obtained in the venue The popularity of the branch;

[0023] Finally, The branches whose values ​​are greater than or equal to the preset second parameter are recorded as popular branches, and all popular branches constitute a popular branch set.

[0024] Furthermore, in the venue The specific method of obtaining the popularity of a branch is as follows:

[0025] Inside the venue The popularity of a branch is obtained as follows:

[0026] ;

[0027] in, express The popularity of the branch Indicates the total number of branches. Indicates the total number of reservations for all branches in the venue. express Number of reservations for branch No. express The interest reservation parameters of the branch, Represents the normalization function.

[0028] Further, the method of obtaining the user's preferred branch library set according to the user's multiple reservation information, combining the popular branch library set to obtain the preferred popular branch library set, and obtaining the Class I user set according to the preferred popular branch library set includes the following specific methods:

[0029] First, for users who have made multiple reservations, the reservation branch sequence generated when the user makes multiple reservations is obtained and sorted according to the reservation time of the user, recorded as ,in For the User Booking data, Indicates the total number of reservations made by the user;

[0030] Secondly, the intersection of two adjacent branch library reservation sequences is recorded as the largest common subset, and the number in the largest common subset is recorded as the branch library sequence that the user is interested in. Then, the largest common subset of all two adjacent branch library reservation sequences of the user is obtained, and the number of branch library reservations is calculated. To record, Indicates User reservation The number of branch libraries with the same number as the maximum common subset is recorded as the set of preferred branch libraries of the users included in the maximum common subset. , Indicates A user's preferred library collection;

[0031] Then, traverse the sequence of branch library reservations generated when all users make multiple branch library reservations, and obtain the set of preferred branch libraries that the user has made multiple reservations for. ;

[0032] Finally, get the preferred branch collection Join popular branches The intersection between them is recorded as the user's preferred popular branch set, and the users whose preferred popular branch set is not an empty set are recorded as Class I users. All Class I users constitute the Class I user set.

[0033] Furthermore, the method of obtaining the similarity of the final preferred branch library categories between users in the I-type user set according to the similarity of the preferred branch library sets of users in the I-type user set, the popularity of the branch library, and the number of branch library reservations made by the users includes the following specific methods:

[0034] First, the similarity between the two users’ preferred popular library branches obtained by using the MinHash algorithm is recorded as the similarity between the two users’ initial preferred library branches.

[0035] Then, the final similarity of the two users' preferred branch library categories is obtained based on the similarity of the two users' initial preferred branch library categories, the popularity of the branch library, and the number of branch library reservations made by the users.

[0036] Furthermore, the specific method for obtaining the final similarity of the preferred branch library categories is as follows:

[0037] Number of users and The method for obtaining the similarity of the final favorite library categories of the user is as follows:

[0038] ;

[0039] in, express Number of users and The similarity of the final preferred library categories of the users; express Number of users and The similarity of the initial favorite library categories of users, The branch library number. is the total number of branches, and They are Number of users and User pair Number of reservations for branch No. and They are Number of users and Total number of reservations for users, for The popularity of the branch.

[0040] An embodiment of the present invention provides a smart park reservation data storage system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the steps of the smart park reservation data storage method when executing the computer program.

[0041] The beneficial effect of the technical solution of the present invention is: this solution optimizes the problem of insufficient storage efficiency caused by indiscriminate storage of user reservation data in the distributed storage process of reservation data in the smart park, analyzes the popularity of each branch in the smart park, analyzes the preference differences between users, and classifies the reservation data of the smart park based on the similarities and differences of the reservation data of the smart park. The reservation data of the smart park is distributedly stored according to the classification results, which improves the similarity of the reservation data in the same storage server, is beneficial to subsequent data analysis, and the degree of data compression, thereby improving the storage efficiency of the reservation data of the smart park. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0043] Figure 1 This is a flow chart of the steps of a smart park reservation data storage method of the present invention. DETAILED DESCRIPTION

[0044] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a smart park reservation data storage method and system proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0045] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0046] The specific scheme of a smart park reservation data storage method and system provided by the present invention is described in detail below with reference to the accompanying drawings.

[0047] See also Figure 1, which shows a flowchart of a method for storing reservation data in a smart park provided by an embodiment of the present invention, the method comprising the following steps:

[0048] Step S001, obtaining the reservation data of users for different branches in the smart park through terminal devices.

[0049] It should be noted that the venue adopts an online reservation method. Visitors can use mobile phones or other terminals to register as users through websites or software to make online reservations. After the user logs in to the system, he / she enters the reservation interface, which will display the details of each branch in the smart park and mark each branch so that users can understand and make reservations. After filling in basic reservation information, such as name, gender, reservation date, etc., users can choose the branch they are interested in to make reservations, which can not only improve reservation efficiency, but also avoid too many people in the branch at the same time, thus affecting the visiting experience. After the user completes the reservation, the system will upload the data to the server and record the user's reservation information.

[0050] Specifically, in order to implement a smart park reservation data storage method and system proposed in this embodiment, it is first necessary to obtain the reservation data of several users. The specific process is as follows:

[0051] The server is used to obtain the data uploaded by all users in the smart park when making reservations for branches of different venues in the smart park, store and record the data, and record it as reservation data. The reservation data includes user personal information, the reservation time of the user's reservation of the branch, and the reservation branch serial number. The user personal information includes at least the user's ID.

[0052] As an example, the reservation data may have the following format:

[0053] {Name: Zhang San, ID: 1, Gender: Female, Reservation Date: 20xx / xx / xx, Reservation Branch Number: 1, 2, 3}.

[0054] So far, the reservation data is obtained through the above method.

[0055] Step S002, based on all reservation data, a total reservation branch sequence is obtained, wherein the total reservation branch sequence includes a set of reservation branch libraries of several users; according to the similarity of the reservation branch library serial numbers between different users in the total reservation branch sequence, the total reservation branch sequence is classified to obtain a similar reservation branch sequence.

[0056] It should be noted that after the user successfully makes an appointment through the reservation system, the system will upload the data to the server, and the data will be stored in the memory at this time. The reservation status of the venue in the data user reservation data is analyzed, the reserved branch is extracted, and the reservation status of all visitors for each branch in the venue is obtained. The user reservation data with the same subset is divided into one category.

[0057] Specifically, in step 2.1, a total reservation branch sequence is obtained based on all reservation data, and the total reservation branch sequence includes a set of reservation branch libraries of several users.

[0058] It should be noted that the branch library selected by the user when making a reservation represents the user's intention to visit and is also the difference between the venues visited by each user. Therefore, the serial number of the user's reserved branch library in the reservation data can be extracted to obtain the serial number of each user's reserved branch library, which can be extracted as the user's reserved branch library sequence for subsequent analysis and processing.

[0059] It should be noted that after a user makes a reservation using the reservation system, the system will record the reservation data generated. In addition to the basic information filled in by the user, this data also includes the user's reservation branch number.

[0060] Specifically, the user IDs are sorted in ascending order, and the users are numbered in the sorted order to obtain the serial numbers of all users; the reserved branch library serial numbers corresponding to all branches reserved by each user are obtained, and the set of the reserved branch library serial numbers corresponding to all branches reserved by any user is recorded as the reserved branch library set of the user, and the reserved branch library set of the user is recorded as , Indicates the serial number is The reservation branch set of all users is obtained in ascending order of user serial number, and the total reservation branch sequence is recorded as , ,in Indicates A collection of user's reserved branch libraries, Indicates the total number of users.

[0061] It should be noted that if the same user makes multiple reservations, such as user No. 1 making the third reservation, the sequence of the branch reservations is , indicating the set of branch libraries reserved by user No. 1 for the third reservation.

[0062] So far, the total reservation branch library sequence is obtained through the above method, and the total reservation branch library sequence contains the reservation branch library sets of several users.

[0063] Step 2.2, according to the similarity of the reservation branch numbers between different users in the total reservation branch sequence, the total reservation branch sequence is classified to obtain similar reservation branch sequences.

[0064] It should be noted that since different users have different reservation requirements, each user has his or her own unique reservation set. After collecting all users’ branch library reservation data, due to the number of branch libraries Limited, but the number of tourists is relatively large, so a branch library may be selected multiple times. For example, the set of branch library numbers reserved by user No. 1 is , which means that user 1 intends to visit branches 1, 2, and 3, while user 2's reservation set is , then the reservations of both users include Branch 1 and Branch 3, so their reservation branch data have the largest common subset , which indicates that the two users chose to visit similar branch libraries.

[0065] Traverse the total reservation branch sequence, record any user as the target user, obtain several intersections of the reservation branch sets between the target user and each other user, record the intersection with the largest number of elements in all intersections as the maximum common subset of the target user, and obtain the sequence formed by the maximum common subsets of all users to obtain a similar reservation branch sequence.

[0066] It should be noted that, in the process of obtaining similar reservation branch sequences, if there is a maximum common subset with exactly the same elements among the maximum common subsets between any user and all other users, the maximum common subset with exactly the same elements will be recorded as a consistent subset, and all users corresponding to the consistent subset will be regarded as common users of the consistent subset; for users that exist in multiple maximum common subsets, they will only be retained in the maximum common subset with the most elements.

[0067] So far, a similar reservation branch sequence is obtained through the above method.

[0068] Step S003, obtaining a branch library reservation frequency sequence through a similar branch library reservation frequency sequence; obtaining a popular branch library set based on the number of branch library reservations made by the user and the number of branch library reservations in the branch library reservation frequency sequence; obtaining a user's preferred branch library set based on the user's multiple reservation information, and obtaining a preferred popular branch library set in combination with the popular branch library set, and obtaining a Class I user set based on the preferred popular branch library set; obtaining the similarity of the final preferred branch library categories between users in the Class I user set based on the similarity of the user's preferred popular branch library set in the Class I user set, the popularity of the branch library, and the number of branch library reservations made by the user.

[0069] Step 3.1, obtain the branch library reservation frequency sequence through similar branch library reservation sequences.

[0070] The number of times each branch library is booked in the similar booked branch library sequence is obtained, and the sequence formed by the number of times all branches are booked is recorded as the branch library booking number sequence.

[0071] Specifically, in one embodiment of the present invention, the method for obtaining the branch library reservation frequency sequence is:

[0072] The users included in each maximum common subset are recorded as the public users of the maximum common subset, and the number of public users of all maximum common subsets in the sequence of similar reservation branches is obtained, and the number of public users is recorded as the number of public users of each branch in each maximum common subset; the number of public users of the branches with the same serial number in all maximum common subsets is merged to obtain the number of public users of each branch, which is recorded as the number of reservations for each branch; the number of reservations of all branches is sorted in ascending order of the branch serial numbers to obtain a branch reservation number sequence.

[0073] So far, the branch library reservation frequency sequence is obtained through the above method.

[0074] Step 3.2, according to the number of branch library reservations made by the user and the number of branch library reservations in the branch library reservation number sequence, obtain the set of popular branch libraries.

[0075] First, the smart park The number of reservations for branch No. is recorded as .

[0076] It should be noted that the number of appointments This means the popularity of each branch. The more times a branch is booked, the more popular it is. At the same time, some users make a reservation to visit a branch or several branches in the venue, and have little interest in other branches. This shows that the branches booked by such users are more popular.

[0077] Then, all users who have made reservations The users of the branch library are recorded as Target users of branch number, obtain each in the total reservation branch sequence The number of branch libraries reserved by the target users ,Will Total number of branches in the smart park The ratio of The target users of the branch library are The reservation coefficient of the branch will be The number of users whose reservation coefficient of the branch is less than or equal to the preset first parameter is recorded as The interest reservation parameter of the branch is recorded as , expressed as The interest reservation parameters of the branch.

[0078] It should be noted that the first preset parameter is set to 0.2 based on experience, and can be adjusted according to actual conditions, and is not specifically limited in this embodiment.

[0079] As an example, the venue The popularity of a branch is obtained as follows:

[0080] ;

[0081] in, express The popularity of the branch Indicates the total number of branches. Indicates the total number of reservations for all branches in the venue. express Number of reservations for branch No. express The interest reservation parameters of the branch, Represents the normalization function.

[0082] It should be noted that in order to prevent the result from being 0, The value is 0, so The minimum value of is 1 (indicating that the branch has been visited by at least one person). express The ratio of the number of reservations for branch No. to the total number of reservations for all branches. The larger the value, the The more popular the branch is, the more popular it is; The more reservations users make at a branch, the more popular the branch is.

[0083] It should be noted that It means traversing each branch library in the smart park, obtaining the product of the ratio of the number of reservations for each branch library to the total number of reservations for each branch library in the smart park and the number of times each branch library in the smart park is specially selected by users, which indicates the popularity of each branch library in the venue. The greater the popularity, the more popular the branch library is, and vice versa.

[0084] Finally, The branches whose values ​​are greater than or equal to the preset second parameter are recorded as popular branches, and all popular branches constitute a popular branch set.

[0085] It should be noted that the second preset parameter is set to 0.4 based on experience, and can be adjusted according to actual conditions, and is not specifically limited in this embodiment.

[0086] At this point, a collection of popular branch libraries is obtained through the above method.

[0087] Step 3.3, obtain the user's preferred branch library set based on all the user's reservation information, combine it with the popular branch library set, obtain the preferred popular branch library set, and obtain the Class I user set based on the preferred popular branch library set.

[0088] It should be noted that the popular branch set in the venue is obtained through step 3.2, that is, when users make reservations for branches in the venue, the number of people who choose branches in the popular branch set is the largest, so the branches in the popular branch set have the largest amount of data.

[0089] It should be noted that after the user completes the reservation, the first-time visitor will choose to visit all branches in the venue, while the users who have visited multiple times will choose the branches they are interested in. The branches selected by the users who have made reservations may or may not include popular branches. For users who choose all branches, the sequence of branch reservations they make is not very meaningful for user preference research; while users who have visited multiple times will choose the branches they like to visit, and the user's preference category for the branch can be determined by the selection of the branch when making the reservation. Therefore, the data recorded in the venue reservation system includes data generated by a single person making multiple reservations at different times, that is, a user will visit the venue multiple times.

[0090] Specifically, based on the popular branches selected by each user, we further analyze whether the user data has research significance. First, for users with multiple reservations, we obtain the reservation branch sequence generated when the user makes multiple reservations, and sort them according to the timeline when the user makes reservations, recorded as ,in For the User Booking data, Indicates the total number of reservations made by the user.

[0091] Secondly, the intersection of two adjacent branch library reservation sequences is recorded as the maximum common subset, and the number in the maximum common subset is recorded as the branch library sequence number that the user of the two adjacent branch library reservation sequences is interested in. Then, the maximum common subset of all two adjacent branch library reservation sequences of the user is obtained, and the number of branch library reservations is calculated. To record, Indicates User reservation The number of branch libraries with the same number as the maximum common subset is recorded as the set of preferred branch libraries of the users included in the maximum common subset. , Indicates A collection of user's preferred branches.

[0092] Then, traverse the sequence of branch library reservations generated when all users make multiple branch library reservations, and obtain the set of preferred branch libraries that they have made multiple reservations for. .

[0093] Finally, get the preferred branch collection Join popular branches The intersection between them is recorded as the user's preferred popular branch set, and the users whose preferred popular branch set is not an empty set are recorded as Class I users. All Class I users constitute the Class I user set.

[0094] So far, the user set of type I is obtained through the above method.

[0095] Step 3.4, based on the similarity of the preferred popular branch library sets of users in the I-type user set, the popularity of the branch library, and the number of branch library reservations made by the users, obtain the similarity of the final preferred branch library categories between the users in the I-type user set.

[0096] Specifically, first, the similarity between the sets of popular branch libraries preferred by two users obtained by using the MinHash algorithm is recorded as the similarity between the initial preferred branch library categories of the two users.

[0097] It should be noted that the higher the similarity of the branch library categories preferred by the users, the higher the preference of the two users for the branch library, and they can be classified as one type of users.

[0098] It should be noted that the MinHash (minimum hash) algorithm is an existing algorithm for quickly determining whether two sets are similar, and therefore it is not described in detail in this embodiment.

[0099] Then, the final similarity of the two users' preferred branch library categories is obtained based on the similarity of the two users' initial preferred branch library categories, the popularity of the branch library, and the number of branch library reservations made by the users.

[0100] As an example, Number of users and The method for obtaining the similarity of the final favorite library categories of the user is as follows:

[0101] ;

[0102] in, express Number of users and The similarity of the final preferred library categories of the users; express Number of users and The similarity of the initial favorite library categories of users, The branch library number. is the total number of branches, and They are Number of users and User pair Number of reservations for branch No. and They are Number of users and Total number of reservations for users, for The popularity of the branch.

[0103] It should be noted that As a weight, The purpose of selecting range values ​​is to make the branches whose frequency of visits is compared to be the most popular ones.

[0104] It should be noted that and Two users respectively The ratio of the number of reservations for a branch to the total number of reservations for each branch. Indicates that two users have made an appointment The absolute value of the difference between the number of times the branch number is booked and the total number of times booked is used to represent the difference between the two users. The difference in the degree of preference for the branch library is as follows: the larger the value, the more the two users like The greater the difference in preferences between branch libraries, the smaller the difference.

[0105] So far, the final similarity of the preferred library categories among the users in the I-type user set is obtained through the above method.

[0106] Step S004, classifying the reservation data based on the similarity of the final favorite library branches among the users, and storing the user reservation data according to the classification results.

[0107] Specifically, first, the reservation data is classified based on the similarity of the final preferred library categories among users.

[0108] A preset third parameter is set, and starting from user No. 1 in the I-type user set, the similarity of the final favorite branch categories of the users after user No. 1 is determined. If it is greater than or equal to the preset third parameter, the two users are merged into the same user category. If it is less than the preset third parameter, they are reclassified into one category. A preset fourth parameter is set, and when user No. 1 completes the traversal, user No. 2 starts to repeat the operation. If in subsequent comparisons, a user with a similarity higher than that of the classified users appears, it is reclassified and merged into the category with the highest similarity in the final favorite branch categories. A preset fifth parameter is set, and if at this time the similarity of the final favorite branch categories of user No. 2 and user No. 3 is greater than or equal to the preset fifth parameter, user No. 2 is taken out of its category with user No. 1 and merged into the new category of user No. 2 and user No. 3. This is repeated in this way until the classification of user data of the I-type user set is completed.

[0109] Then, the users in the non-category I user set are classified into one category.

[0110] Finally, a distributed storage method is adopted to store the acquired user reservation data separately according to the user classification results.

[0111] At this point, the classified storage of user data is completed through the above method.

[0112] On the other hand, an embodiment of the present invention provides a smart park reservation data storage system, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, it implements steps S001 to S004 of a smart park reservation data storage method.

[0113] This embodiment optimizes the problem of insufficient storage efficiency caused by indiscriminate storage of user reservation data in the distributed storage process within the smart park, analyzes the popularity of each branch library in the smart park, analyzes the preference differences between users, and classifies the reservation data of the smart park based on the similarities and differences of the reservation data of the smart park. The reservation data of the smart park is distributedly stored according to the classification results, which improves the similarity of the reservation data in the same storage server, is beneficial to subsequent data analysis, and the degree of data compression, thereby improving the storage efficiency of the reservation data of the smart park.

[0114] 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 principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for storing reservation data in a smart park, characterized in that: The method comprises the following steps: Acquire reservation data of users for different branches in the smart park through terminal devices, wherein the reservation data includes user personal information, reservation time of the user's reservation branch, and the reservation branch serial number, and the user personal information includes at least the user's ID; Based on all reservation data, a total reservation branch library sequence is obtained, wherein the total reservation branch library sequence includes a set of reservation branch libraries of several users; according to the similarity of the reservation branch library serial numbers between different users in the total reservation branch library sequence, the total reservation branch library sequence is classified to obtain a similar reservation branch library sequence; Obtain a branch library reservation frequency sequence through a similar branch library reservation sequence; obtain a popular branch library set based on the number of branch library reservations made by the user and the number of branch library reservations made within the branch library reservation frequency sequence; obtain a user's preferred branch library set based on the user's multiple reservation information, obtain a preferred popular branch library set in combination with the popular branch library set, and obtain a Class I user set based on the preferred popular branch library set; obtain the final similarity of the preferred branch library categories between users in the Class I user set based on the similarity of the user's preferred popular branch library set in the Class I user set, the popularity of the branch library, and the number of branch library reservations made by the user; Classify the reservation data based on the similarity of the final preferred library categories among users, and store the user reservation data according to the classification results; The method of obtaining a total reservation branch sequence based on all reservation data, wherein the total reservation branch sequence includes a set of reservation branch libraries of several users, includes: Sort the user IDs in ascending order, number the users in the sorted order, and obtain the serial numbers of all users; obtain the reserved branch library serial numbers corresponding to all branches reserved by each user, and record the set of reserved branch library serial numbers corresponding to all branches reserved by any user as the reserved branch library set of the user, and record the reserved branch library set of the user as , Indicates the serial number is The reservation branch set of all users is obtained in ascending order of user serial number, and the total reservation branch sequence is recorded as , ,in Indicates A collection of user's reserved branch libraries, Indicates the total number of users; The method of obtaining the user's preferred branch library set according to the user's multiple reservation information, combining the popular branch library set to obtain the preferred popular branch library set, and obtaining the Class I user set according to the preferred popular branch library set includes the following specific methods: First, for users who have made multiple reservations, the reservation branch sequence generated when the user makes multiple reservations is obtained and sorted according to the reservation time of the user, recorded as ,in For the User Booking data, Indicates the total number of reservations made by the user; Secondly, the intersection of two adjacent branch library reservation sequences is recorded as the largest common subset, and the number in the largest common subset is recorded as the branch library sequence that the user is interested in. Then, the largest common subset of all two adjacent branch library reservation sequences of the user is obtained, and the number of branch library reservations is calculated. To record, Indicates User reservation The number of branch libraries with the same number as the maximum common subset is recorded as the set of preferred branch libraries of the users included in the maximum common subset. , Indicates A user's preferred library collection; Then, traverse the sequence of branch library reservations generated when all users make multiple branch library reservations, and obtain the set of preferred branch libraries that the user has made multiple reservations for. ; Finally, get the preferred branch collection Join popular branches The intersection between them is recorded as the user's preferred popular branch library set, and the users whose preferred popular branch library set is not an empty set are recorded as Class I users. All Class I users constitute the Class I user set; The method of obtaining the similarity of the final preferred branch library categories between users in the I-type user set according to the similarity of the preferred branch library sets of users in the I-type user set, the popularity of the branch library, and the number of branch library reservations made by users includes the following specific methods: First, the similarity between the two users’ preferred popular library branches obtained by using the MinHash algorithm is recorded as the similarity between the two users’ initial preferred library branches. Then, the final similarity of the two users' preferred branch library categories is obtained based on the similarity of the two users' initial preferred branch library categories, the popularity of the branch library, and the number of branch library reservations made by the users; The specific method for obtaining the similarity degree of the final preferred branch library category is: Number of users and The method for obtaining the similarity of the final favorite library categories of users is as follows: in, express Number of users and The similarity of the final preferred library categories of the users; express Number of users and The similarity of the initial favorite library categories of users, The branch library number. is the total number of branches, and They are Number of users and User pair Number of reservations for branch No. and They are Number of users and Total number of reservations for users, for The popularity of the branch.

2. According to claim 1, a smart park reservation data storage method is characterized in that: The method of classifying the total reservation branch library sequence according to the similarity of the reservation branch library serial numbers between different users in the total reservation branch library sequence and obtaining similar reservation branch library sequences includes the following specific methods: Traverse the total reservation branch sequence, record any user as the target user, obtain several intersections of the reservation branch sets between the target user and each other user, record the intersection with the largest number of elements in all intersections as the maximum common subset of the target user, and record the sequence formed by the maximum common subsets of all users as the similar reservation branch sequence.

3. According to claim 1, a smart park reservation data storage method is characterized in that: The specific method of obtaining the branch library reservation frequency sequence through the similar branch library reservation sequence includes: Obtain the number of times each branch library is booked in the similar branch library booking sequence, and record the sequence formed by the number of times all branches are booked as the branch library booking number sequence; The method for obtaining the branch library reservation frequency sequence is as follows: The users included in each maximum common subset are recorded as the public users of the maximum common subset, and the number of public users of all maximum common subsets in the sequence of similar reservation branches is obtained, and the number of public users is recorded as the number of public users of each branch in each maximum common subset; the number of public users of the branches with the same serial number in all maximum common subsets is merged to obtain the number of public users of each branch, which is recorded as the number of reservations for each branch; the number of reservations of all branches are sorted in ascending order of the branch serial numbers to obtain a branch reservation number sequence.

4. According to claim 1, a smart park reservation data storage method is characterized in that: The method of obtaining a set of popular branch libraries according to the number of branch library reservations made by the user and the number of branch library reservations in the branch library reservation number sequence includes: First, the smart park The number of reservations for branch No. is recorded as ; Then, all users who have made reservations The users of the branch library are recorded as Target users of branch number, obtain each in the total reservation branch sequence The number of branch libraries reserved by the target users ,Will Total number of branches in the smart park The ratio of The target users of the branch library are The reservation coefficient of the branch will be The number of users whose reservation coefficient of the branch is less than or equal to the preset first parameter is recorded as The interest reservation parameter of the branch is recorded as , expressed as The interest reservation parameters of the branch; Next, according to The number of times the branch has been booked and The interest reservation parameters of the branch are obtained in the venue The popularity of the branch; Finally, The branches whose values ​​are greater than or equal to the preset second parameter are recorded as popular branches, and all popular branches constitute a popular branch set.

5. According to claim 4, a smart park reservation data storage method is characterized in that: In the venue The specific method of obtaining the popularity of a branch is as follows: Inside the venue The popularity of a branch is obtained as follows: in, express The popularity of the branch Indicates the total number of branches. Indicates the total number of reservations for all branches in the venue. express Number of reservations for branch No. express The interest reservation parameters of the branch, Represents the normalization function.

6. A smart park reservation data storage system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.