Parking point-based grouping clustering method and apparatus

By filtering and clustering user operation data, parking point groups with equivalent substitution relationships are merged, solving the problem of coarse parking point grouping based on distance in existing technologies, and achieving more accurate demand forecasting and inventory calculation.

CN117892147BActive Publication Date: 2026-11-27NINGBO XIAOLIU SHARING INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311842905.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2026-11-27
Estimated Expiration
2043-12-28

Smart Images

  • Figure CN117892147B_ABST
    Figure CN117892147B_ABST
Patent Text Reader

Abstract

The application provides a parking point-based grouping clustering method, first operation data corresponding to a plurality of first users is acquired; for each first user, according to current first operation data corresponding to the current first user, first parking points respectively corresponding to each unit time period within a preset historical time period of the current first user are determined; according to the first parking points respectively corresponding to each unit time period of each first user, a merged parking point group is obtained through clustering grouping; the method clusters and groups the first parking points respectively corresponding to all unit time periods within the preset historical time period of all first users, and obtains the merged parking point group; since each parking point in the same merged parking point group has an equivalent replacement relationship for user riding demand, the grouping method is more accurate and reasonable, and is more convenient for subsequent demand prediction, inventory calculation and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of shared vehicle technology, and more specifically, to a grouping and clustering method and apparatus based on parking locations. Background Technology

[0002] In the shared electric bicycle industry, a P-point, or parking spot, is a location concept that defines where vehicles are parked. Because P-points vary in size and can be densely packed, using a single P-point for forecasting, inventory calculation, and scheduling can lead to inaccurate results due to drift and interference. Therefore, P-points are usually grouped for unified demand forecasting and inventory calculation. Related technologies typically group P-points by distance. However, not all P-points that are close together can be grouped. Sometimes, two seemingly close locations may represent significantly different user needs. Therefore, the grouping methods in related technologies are relatively crude and not conducive to subsequent demand forecasting and inventory calculation. Summary of the Invention

[0003] The purpose of this invention is to provide a grouping and clustering method and apparatus based on parking points, so as to accurately and reasonably group parking points.

[0004] One aspect provides a grouping and clustering method based on parking spots. The method includes: obtaining first operation data corresponding to multiple first users; for each first user, determining the first parking spot corresponding to each unit time period within a preset historical time period based on the current first operation data corresponding to the current first user; obtaining a merged parking spot group by clustering based on the first parking spot corresponding to each first user in each unit time period; wherein each parking spot in the same merged parking spot group has an equivalent substitution relationship for the user's riding needs.

[0005] In this embodiment of the application, the first parking points corresponding to all unit time periods of all first users within a preset historical time period are clustered and grouped to obtain a merged parking point group. Since each parking point in the same merged parking point group has an equivalent substitution relationship with the user's riding needs, this grouping method is more accurate and reasonable, and is more convenient for subsequent demand forecasting, inventory calculation, etc.

[0006] Furthermore, the steps for obtaining the first operation data corresponding to multiple first users include: obtaining the original operation data of multiple users using shared vehicles; filtering the first operation data corresponding to multiple first users from the original operation data according to preset filtering conditions; wherein, the preset filtering conditions include: preset historical time period and ride count threshold.

[0007] In this embodiment of the application, by filtering the original operation data of multiple users using shared vehicles according to preset filtering conditions, more statistically valuable first operation data corresponding to multiple first users can be obtained, ensuring the rationality and reasonableness of subsequent parking point grouping, and making it more in line with actual needs.

[0008] Furthermore, the step of obtaining a merged parking point group by clustering based on the first parking point corresponding to each first user in each unit time period includes: for each unit time period, determining each current parking point corresponding to the current first user in the current unit time period; for each current parking point, taking the current parking point as the center and a preset distance as the radius, determining the parking point group corresponding to the current parking point from all current parking points; integrating the parking point groups corresponding to each current parking point that have overlapping parking points to obtain the first parking point group corresponding to the current first user in the current unit time period; wherein, there are no duplicate parking points between different first parking point groups, and the union of all first parking point groups is all the current parking points corresponding to the current first user in the current unit time period; and obtaining the merged parking point group based on the first parking point group corresponding to each first user in each unit time period.

[0009] In this embodiment of the application, by integrating the parking spot groups corresponding to each current parking spot, the first parking spot group corresponding to the first user in the current unit time period is obtained. This can correct the influence of the number of vehicles in the parking spot itself, so as to purely reflect the "equivalence" of the parking spots.

[0010] Furthermore, the steps for obtaining the merged parking point group based on the first parking point group corresponding to each first user in each unit time period include: for each unit time period, determining the number of times the current first user requests each current parking point corresponding to the current unit time period; for each first parking point group, obtaining the average inventory corresponding to each sub-parking point in the current first parking point group within the current unit time period; calculating the weighted demand ratio of each sub-parking point in the current first parking point group based on the number of requests and the average inventory; and obtaining the merged parking point group based on each first parking point group corresponding to each unit time period of each first user in historical time periods, and the weighted demand ratio of each sub-parking point in each first parking point group within the corresponding first parking point group.

[0011] In this embodiment, the weighted demand ratio of each sub-parking point in the current first parking point group is calculated based on the demand frequency and average inventory. This can reflect the rationality of parking point grouping. Determining the merged parking point group based on the weighted demand ratio can improve the accuracy and rationality of merging parking point groups.

[0012] Furthermore, the steps for calculating the weighted demand percentage of each sub-parking point in the current first parking point group based on the demand frequency and average inventory include: determining the total inventory of the current first parking point group within the current unit time period based on the average inventory of each sub-parking point; calculating the weighted demand value of each sub-parking point within the current unit time period based on the demand frequency, average inventory, and total inventory of each sub-parking point; calculating the total weighted demand based on the weighted demand value of each sub-parking point; and calculating the weighted demand percentage of each sub-parking point in the current first parking point group based on the weighted demand value and the total weighted demand.

[0013] In this embodiment of the application, the method for determining the weighted demand ratio is clarified. The weighted demand value corresponding to each sub-parking point in the current unit time period can be calculated based on the demand frequency, average inventory and inventory of each sub-parking point. Then, the weighted demand ratio of each sub-parking point in the current first parking point group can be calculated. The weighted demand ratio can effectively reflect the rationality of the grouping of parking points.

[0014] Furthermore, the method also includes: determining the group information entropy corresponding to the current first parking point group based on the weighted demand ratio of each sub-parking point in the current first parking point group.

[0015] In this embodiment of the application, by determining the group information entropy corresponding to the current first parking point group, the rationality of the parking point grouping can be reflected, and subsequent dispatchers can select appropriate relevant dispatching measures based on the group information entropy.

[0016] Furthermore, the steps to obtain the merged parking point group based on each first user's corresponding first parking point group for each unit time period within the historical time period, and the weighted demand ratio of each sub-parking point in each first parking point group within the corresponding first parking point group, include: determining the sum of information entropy corresponding to each parking point based on each first user's corresponding first parking point group for each unit time period within the historical time period, and the weighted demand ratio of each sub-parking point in each first parking point group within the corresponding first parking point group; determining the information entropy threshold based on the number of rides threshold; selecting designated parking points from each parking point whose sum of information entropy is greater than the information entropy threshold; determining the second parking point group corresponding to each first user for each unit time period within the historical time period based on the designated parking points and the first parking point groups corresponding to each first user within the historical time period; and determining the merged parking point group based on each second parking point group.

[0017] In this embodiment, the sum of the information entropy corresponding to each parking point is compared with the information entropy threshold, and the designated parking points with more statistical value are selected. This can reduce the amount of data calculation and improve the grouping efficiency while ensuring the rationality and accuracy of parking point grouping.

[0018] Furthermore, the step of determining the merged parking point group based on each second parking point group includes: for each second parking point group, determining the number of groups containing at least one parking point within that group; calculating the ratio of the sum of the information entropy corresponding to each sub-parking point in that second parking point group to the number of groups, to obtain the average information entropy corresponding to each sub-parking point in that second parking point group; filtering out redundant parking points with an average information entropy less than the information entropy threshold from each sub-parking point in that second parking point group, to obtain a new second parking point group corresponding to that second parking point group; determining the sub-parking point with the largest average information entropy as the core parking point of the new second parking point group; for each core parking point, obtaining the target parking point group containing that core parking point; merging the target parking point groups to obtain the merged parking point group corresponding to that core parking point.

[0019] In this embodiment of the application, redundant parking points that do not belong to the second parking point group can be filtered out by removing redundant parking points whose average information entropy is less than the information entropy threshold from each sub-parking point of the second parking point group. By determining the core parking points and determining the merged parking point group based on the core parking points, the rationality and effectiveness of subsequent parking point grouping can be improved, and it is more in line with actual applications.

[0020] Furthermore, the method also includes: for each parking spot in the merged parking spot group, obtaining the target average information entropy of that parking spot in the target parking spot group; calculating the mean of each target average information entropy to obtain the cluster value of that parking spot in the merged parking spot group.

[0021] In this application embodiment, the method for determining the cluster value of each parking point in the merged parking point group is clarified. The cluster value can express the group similarity of each parking point in the merged parking point group, reflecting the degree of equivalent substitution for the user's riding needs.

[0022] On the other hand, a grouping and clustering device based on parking spots is provided. The device includes: an acquisition module for acquiring first operation data corresponding to multiple first users; a first determination module for determining, for each first user, the first parking spot corresponding to each unit time period within a preset historical time period based on the current first operation data corresponding to the current first user; and a grouping module for obtaining a merged parking spot group by clustering based on the first parking spots corresponding to each first user in each unit time period; wherein each parking spot in the same merged parking spot group has an equivalent substitution relationship for the user's riding needs. Attached Figure Description

[0023] Figure 1 A flowchart illustrating a grouping and clustering method based on parking points provided in an embodiment of the present invention;

[0024] Figure 2 A flowchart illustrating a grouping and clustering method based on parking points provided in an embodiment of the present invention;

[0025] Figure 3 This is a schematic diagram of a grouping and clustering device based on parking points provided in an embodiment of the present invention;

[0026] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0027] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0028] In practical applications, many points P are practically the same location and are equivalent to users. Related technologies typically group points P by distance. However, not all nearby points can be grouped together. Sometimes, two seemingly close locations may have significantly different user needs, and conversely, relatively distant points P are not necessarily unequal. Therefore, the grouping methods in related technologies are rather crude and inconvenient for subsequent demand forecasting, inventory calculation, etc. Based on this, this invention provides a grouping and clustering method and apparatus based on parking points. This technology can be applied to applications that require grouping parking points (P points).

[0029] First, we will introduce a grouping and clustering method based on parking points disclosed in the embodiments of the present invention, such as... Figure 1 As shown, the method includes the following steps:

[0030] Step S102: Obtain first operation data corresponding to multiple first users;

[0031] The aforementioned "first user" refers to a user who has used shared vehicles. To ensure the rationality of parking spot grouping, users who have used shared vehicles relatively frequently are usually selected. The aforementioned "first operation data" typically includes the date, start time, end time, starting point, and associated parking spots of the first user when using the shared vehicle, as well as the end point and associated parking spots. In actual implementation, the first operation data corresponding to multiple first users that meet the requirements can be selected from the database.

[0032] Step S104: For each first user, based on the current first operation data corresponding to the current first user, determine the first parking point corresponding to each unit time period within the preset historical time period for the current first user.

[0033] The aforementioned preset historical time period can be set according to actual needs, such as 60 days, 90 days, etc.; the aforementioned unit time period can also be selected and set according to actual needs, and there can be multiple unit time periods, such as 7:00-8:00, 8:00-9:00, etc. It should be noted that the unit time period here usually includes multiple identical time intervals; for example, taking a historical time period of 90 days and a unit time period of 7:00-8:00 as an example, this unit time period counts the first parking point counted every day from 7:00 to 8:00 within the 90 days, that is, all the first parking points with demand. In actual implementation, the first parking point corresponding to each unit time period within the preset historical time period can be determined based on the current first user's current first operation data, which can be denoted as P-LIST; the first parking points corresponding to different unit time periods may be the same or different, or only some parking points may be the same.

[0034] Step S106: Based on the first parking point corresponding to each first user in each unit time period, a merged parking point group is obtained by clustering; wherein, each parking point in the same merged parking point group has an equivalent substitution relationship for the user's riding needs.

[0035] Clustering grouping can be understood as dividing multiple parking spots into several groups based on the similarity between them. In this embodiment, based on the first parking spots corresponding to all unit time periods of all first users within a preset historical time period, all the statistically identified parking spots can be regrouped through clustering grouping to obtain merged parking spot groups. There are usually multiple merged parking spot groups, and each parking spot in the same merged parking spot group is equivalent. For example, when an offline operation encounters an abnormal situation at a certain parking spot, the scheduling operation can be completed through other parking spots in the same merged parking spot group. For another example, the same merged parking spot group includes parking spot A and parking spot B. Parking spot A is at the east gate of the community where user M is located, and parking spot B is at the south gate of the community where user M is located. For user M, parking spot A and parking spot B are equivalent.

[0036] The above-described parking spot-based clustering method obtains first operation data corresponding to multiple first users. For each first user, based on the current first operation data, the first parking spot corresponding to each unit time period within a preset historical time period is determined. Based on the first parking spots corresponding to each first user in each unit time period, a merged parking spot group is obtained through clustering. This method clusters and groups the first parking spots corresponding to all first users in all unit time periods within a preset historical time period to obtain a merged parking spot group. Since each parking spot in the same merged parking spot group has an equivalent substitution relationship with the user's riding needs, this grouping method is more accurate and reasonable, and more convenient for subsequent demand forecasting, inventory calculation, etc.

[0037] This invention discloses a flowchart of another grouping and clustering method based on parking points, which is based on the method in the above embodiments, such as... Figure 2 As shown, the method includes the following steps:

[0038] Step S202: Obtain the original operation data of multiple users using shared vehicles;

[0039] The aforementioned raw operation data may include the date, start time, end time, starting point, and associated parking spots for each user when using the shared vehicle, as well as the end point and associated parking spots. In actual implementation, user operation data can be used to statistically analyze user needs. In this case, raw operation data of multiple users using shared vehicles can be obtained first. These multiple users typically include users who use shared vehicles more frequently and users who use shared vehicles less frequently.

[0040] Step S204: According to preset filtering conditions, filter out the first operation data corresponding to multiple first users from the original operation data; wherein, the preset filtering conditions include: preset historical time period and riding number threshold.

[0041] The aforementioned ride count threshold can be set according to actual needs, such as 10 times. In actual implementation, to ensure the authenticity and rationality of parking spot grouping and to better align with actual needs, the multiple users obtained can be filtered. For example, taking a historical period of 90 days and a ride count threshold of 10 times as an example, the first user with more than 10 rides within 90 days can be filtered based on the original operation data of multiple users using shared vehicles. There are usually multiple such first users, and the first operation data corresponding to the first user can be obtained. The specific parking spot can be associated with the first operation data.

[0042] Step S206: For each first user, based on the current first operation data corresponding to the current first user, determine the first parking point corresponding to each unit time period within the preset historical time period for the current first user;

[0043] Step S208: For each unit time period, determine each current parking point corresponding to the current first user in the current unit time period;

[0044] For example, taking a historical period of 90 days and the current time period as 7:00-8:00, then for the current first user, during the 7:00-8:00 period each day of the 90 days, the current parking locations counted include parking location A, parking location B, and parking location C. It can also be understood that during the statistical time of 7:00-8:00 each day of the 90 days, the current first user only used shared vehicles at parking locations A, B, and C.

[0045] Step S210: For each current parking point, take the current parking point as the center and a preset distance as the radius, and determine the parking point group corresponding to the current parking point from all current parking points;

[0046] The preset distance can be set according to actual needs. In actual implementation, each current parking point can be used as the center, and all current parking points in the P-LIST corresponding to the current first user in the current unit time period can be searched within a preset distance L. This forms a parking point group corresponding to each current time point. For example, if user M's car usage needs in the same time period (e.g., 7:00-8:00) include five parking points: A, B, C, D, and E, the parking points with a radius of L centered on parking point A can be searched. Group A' includes two parking spots, A and B, and parking spots with radius L centered on parking spot B. Group B' includes three parking spots, A, B, and C, and parking spots with radius L centered on parking spot C. Group C' includes two parking spots, B and C, and parking spots with radius L centered on parking spot D. Group D' includes two parking spots, D and E, and parking spots with radius L centered on parking spot E. Group E' includes two parking spots, D and E.

[0047] Step S212: Integrate the parking point groups with overlapping parking points in each current parking point group to obtain the first parking point group corresponding to the first user in the current unit time period; wherein, there are no duplicate parking points between different first parking point groups, and the union of all first parking point groups is all the current parking points corresponding to the first user in the current unit time period.

[0048] The number of overlapping parking spots can be one or more. In actual implementation, after determining the parking spot group corresponding to each current parking spot, all groups with overlapping parking spots can be integrated to form one or more first parking spot groups corresponding to the current first user in the current unit time period. If there are multiple first parking spot groups, there are no duplicate parking spots between different first parking spot groups, and the union of multiple first parking spot groups is all the current parking spots corresponding to the current first user in the current unit time period. For example, continuing with the example in the above steps, since there are overlapping parking spots between parking spot groups A', B', and C', and between parking spot groups D' and E', two first parking spot groups can be formed. One first parking spot group includes three parking spots: A, B, and C, and the other first parking spot group includes two parking spots: D and E.

[0049] For example, if user N has car rental needs at four parking spots (D, E, F, and G) during the same time period (e.g., 18:00-19:00), and parking spot group D' with radius L centered on parking spot D includes three parking spots (D, E, and F), parking spot group E' with radius L centered on parking spot E includes two parking spots (D and E), parking spot group F' with radius L centered on parking spot F includes two parking spots (D and F), and parking spot group G' with radius L centered on parking spot G includes one parking spot (G), then two first parking spot groups can be formed. One first parking spot group includes three parking spots (D, E, and F), and the other first parking spot group includes one parking spot (G).

[0050] The main purpose of this step is to correct for the influence of the number of vehicles at the parking spot itself, so as to purely reflect the "equivalence" of the parking spots. For example, the probability of parking spot A being selected is only 1 / 10 of that of parking spot B. It seems that the two points are not equivalent, but if we consider that the two parking spots are different sizes, the number of vehicles in parking spot A is actually 1 / 10 of that in parking spot B. Then, the "weighted probabilities" of the two parking spots are actually similar, so they can be considered "equivalent".

[0051] It should be noted that the aforementioned first parking spot group is related to the first user and the unit time period. The first parking spot groups of different first users cannot be merged. For example, the first parking spot group of user M (including parking spots D and E) and the first parking spot group of user N (including parking spots D, E, and F) cannot be merged. In addition, the first parking spot groups corresponding to the same first user in different unit time periods cannot be merged.

[0052] Step S214: Based on the first parking point group corresponding to each first user in each unit time period, obtain the merged parking point group.

[0053] Step S214 can be specifically achieved through the following steps one through four:

[0054] Step 1: For each time period, determine the number of times the current first user needs each parking spot for the current time period.

[0055] The aforementioned number of requests can be understood as the number of times shared vehicles are used. In actual implementation, for each first user, the number of requests for each current parking spot within each unit time period during a preset historical time period can be counted, which can be expressed as Up-Qd. For example, user M requests parking spot A 43 times, parking spot B 11 times, and parking spot C 5 times within a time period (90 days) (e.g., 7:00-8:00). Then Up-Qd(user M, 7:00-8:00, parking spot A) = 43, Up-Qd(user M, 7:00-8:00, parking spot B) = 11, Up-Qd(user M, 7:00-8:00, parking spot C) = 5.

[0056] Step 2: For each group of first parking points, obtain the average inventory of each sub-parking point within the current first parking point group during the current time period.

[0057] The above average inventory can be understood as the average number of shared vehicles stored at each sub-parking point within the corresponding unit time period.

[0058] Step 3: Calculate the weighted demand percentage of each sub-parking point in the current first parking point group based on the demand frequency and average inventory level.

[0059] Step three can be achieved through the following steps 30 to 33:

[0060] Step 30: Based on the average inventory corresponding to each sub-parking point, determine the total inventory of the current first parking point group within the current unit time period;

[0061] Step 31: Calculate the weighted demand value for each sub-parking point within the current time period based on the demand frequency, average inventory, and inventory sum corresponding to each sub-parking point.

[0062] In practical implementation, within each first parking point group, the weighted demand value corresponding to each first user at each specific sub-parking point within each unit time period can be calculated and denoted as Up-WQd. The weighted demand value is calculated as follows: Up-WQd = Up-Qd / (X / Y); where Up-WQd represents the weighted demand value corresponding to the sub-parking point within the current first parking point group within the current unit time period; Up-Qd represents the number of demands corresponding to the sub-parking point within the current unit time period; X represents the average inventory corresponding to the sub-parking point within the current unit time period; and Y represents the total inventory corresponding to the current first parking point group.

[0063] Step 32: Calculate the total weighted demand based on the weighted demand value corresponding to each sub-parking point;

[0064] In actual implementation, the weighted demand values ​​corresponding to each sub-parking point within the current unit time period are directly added together to obtain the weighted demand sum of all sub-parking points in the current first parking point group, which can be represented as Up-WQd.

[0065] Step 33: Calculate the weighted demand percentage of each sub-parking point in the current first parking point group based on the weighted demand value and the total weighted demand for each sub-parking point.

[0066] The weighted demand percentage of each sub-parking point within the current first parking point group can be calculated as follows: PR = Up - WQd / Up - WQd sum; where PR represents the weighted demand percentage of the sub-parking point within the current first parking point group; Up - WQd represents the weighted demand value of the sub-parking point within the current time period; and Up - WQd sum represents the total weighted demand of all sub-parking points within the current first parking point group within the current time period. For example, a first parking point group for user M includes three parking points: A, B, and C (time period: 7:00-8:00). Parking point A has an average inventory of 6 vehicles, parking point B has an average inventory of 15 vehicles, and parking point C has an average inventory of 9 vehicles. The total average inventory of this first parking point group is 6 + 15 + 9 = 30 vehicles.

[0067] As described above, in conjunction with the aforementioned embodiments, the number of times user M needs at each parking spot can be calculated as follows: User M's Up-WQd = 43 / (6 / 30) = 215 times at parking spot A during the 7:00-8:00 time period; Up-WQd = 11 / (15 / 30) = 22 times at parking spot B; and Up-WQd = 5 / (9 / 30) = 16.7 times at parking spot C.

[0068] PR for parking spot A = 215 / (215+22+16.7) = 84.75%, PR for parking spot B = 22 / (215+22+16.7) = 8.67%, PR for parking spot C = 16.7 / (215+22+16.7) = 6.58%.

[0069] Calculating the PageRank (PR) can reflect the rationality of parking spot grouping. Specifically, the closer the PRs of the various parking spots in a first-level parking spot group, the more rational the grouping; the greater the difference in PRs among the various parking spots in a first-level parking spot group, the less rational the grouping.

[0070] Step 34: Determine the group information entropy corresponding to the current first parking point group based on the weighted demand ratio of each sub-parking point in the current first parking point group.

[0071] In practice, the group information entropy of each first parking point group can be calculated by the weighted demand ratio of each sub-parking point in each first parking point group. For each first parking point group, the following calculation method can be used: H = -∑PRlog2PR; where H represents the group information entropy of the first parking point group; PR represents the weighted demand ratio of different sub-parking points in the same first parking point group.

[0072] Within the same first parking spot group, all sub-parking spots share the group information entropy. This formula is calculated for each first user's first parking spot group, and this group information entropy describes the value of group rationality. Specifically, the larger the information entropy value, the more random the probability distribution and the more reasonable the grouping; the smaller the information entropy value, the less random the probability distribution and the less reasonable the grouping. This can be understood as follows: a more reasonable grouping means that the probability of the first user choosing a car at each sub-parking spot within the group is consistent; a less reasonable grouping means that the first user's car selection is more biased. For example, for user M, parking spots A, B, and C have the fewest available vehicles but the greatest demand. This indicates that the grouping of parking spots A, B, and C is only moderately reasonable. Ideally, the more vehicles a parking spot has available, the greater the demand for that parking spot should be.

[0073] Step 4: Based on each first user's first parking spot group corresponding to each unit time period in the historical time period, and the weighted demand ratio of each sub-parking spot in each first parking spot group in the corresponding first parking spot group, the merged parking spot group is obtained.

[0074] This fourth step can be achieved through the following steps 40 to 44:

[0075] Step 40: Based on each first user's first parking spot group corresponding to each unit time period in the historical time period, and the weighted demand ratio of each sub-parking spot in each first parking spot group in the corresponding first parking spot group, determine the sum of information entropy corresponding to each parking spot.

[0076] To calculate the sum of the information entropy of all first parking spot groups for all first users, the following formula is used: Q = -∑PRlog2PR; where Q represents the sum of the information entropy of the same sub-parking spot determined based on all first parking spot groups, and PR represents the weighted demand ratio of the same sub-parking spot in different first parking spot groups. It should be noted that this calculation refers to a single sub-parking spot, and PR in the formula is the PR value of that single sub-parking spot in different first parking spot groups. This includes the same sub-parking spot within different first parking spot groups formed by the same user at different times, as well as the same sub-parking spot within different first parking spot groups formed by different first users at the same (or different) times.

[0077] Step 41: Determine the information entropy threshold based on the number of rides threshold;

[0078] The information entropy threshold can be calculated using the following formula: W = (1 / n * log2(1 / n) + ((n-1) / n) * log2((n-1) / n)) * k; where W represents the information entropy threshold, n represents the number of rides threshold, and k is a preset configuration coefficient; the value of k in the above formula can be determined based on actual needs and experience, for example, k = 1; since the values ​​of n and k can be predetermined, the information entropy threshold W here can also be regarded as a fixed value.

[0079] Step 42: From each parking spot, select the designated parking spots whose sum of information entropy is greater than the information entropy threshold;

[0080] Step 43: Based on the designated parking spots and the first parking spot groups corresponding to each first user in each unit time period within the historical time period, determine the second parking spot groups corresponding to each first user in each unit time period within the historical time period.

[0081] From each parking spot, select the designated parking spots where Q is greater than W. This means selecting parking spots with high information entropy. Parking spots with low information entropy do not dominate within their respective groups and can be disregarded. These low-entropy parking spots will appear in other, less dominant first-group parking spots. By filtering each first-group parking spot, a second-group parking spot can be obtained.

[0082] Step 44: Based on each second parking point group, determine the merged parking point group.

[0083] This step 44 can be achieved through the following steps A to F:

[0084] Step A: For each second group of parking spots, determine the number of groups in which at least one parking spot belonging to the second group of parking spots exists;

[0085] For each second group of parking spots, one or more parking spots in the second group of parking spots may also exist in other second groups of parking spots, and at this time, the number of all second groups of parking spots in which the relevant parking spots exist can be determined.

[0086] Step B: Calculate a ratio between a sum of information entropy corresponding to each sub-parking spot in the second group of parking spots and the number of groups, to obtain an average information entropy corresponding to each sub-parking spot in the second group of parking spots;

[0087] For example, the average information entropy is represented by Qbar, and the number of groups is represented by Y, then Qbar=Q / Y; Q represents the sum of information entropy corresponding to the sub-parking spots; Y represents the number of groups in which the sub-parking spots in the second group of parking spots where the sub-parking spot is located appear; for example, a second group of parking spots includes three parking spots A, B, and C, and the three parking spots appear in 12 second groups of parking spots in total, then Qbar=Q / 12. In calculation, Q takes Q values corresponding to the parking spots A, B, and C, and each Q value is divided by 12, to obtain Qbar corresponding to each parking spot in the second group of parking spots.

[0088] Step C: Filter out, from each sub-parking spot in the second group of parking spots, a redundant parking spot whose average information entropy is less than an information entropy threshold, to obtain a new second group of parking spots corresponding to the second group of parking spots;

[0089] The average information entropy corresponding to each sub-parking spot in the second group of parking spots is compared with the information entropy threshold, and a sub-parking spot corresponding to Qbar<W (corresponding to the foregoing redundant parking spot) is filtered out from the second group of parking spots, to obtain a new second group of parking spots. For example, still using the example in the foregoing step, if Qbar corresponding to the parking spot A and Qbar corresponding to the parking spot B are both greater than W, and Qbar corresponding to the parking spot C is less than W, the parking spot C is deleted from the second group of parking spots, and only the parking spot A and the parking spot B are left.

[0090] Step D: Determine a sub-parking spot with a maximum average information entropy as a core parking spot of the new second group of parking spots;

[0091] Continuing with the example from the above steps, if the Qbar corresponding to parking point A is greater than the Qbar corresponding to parking point B, then parking point A is the core parking point of the new second parking point group. Generally, the larger the average information entropy Qbar, the more likely the parking point is to be grouped; the smaller the Qbar, the weaker the relationship between the parking point and other parking points in this group, and it can be deleted from the group.

[0092] For example, in a large group of user M, there are three parking spots: Parking A, Parking B, and Parking C. Parking spot A has a higher PageRank (PR) than Parking spot C, its information entropy (Q) is higher than Parking spot C to some extent, and its average information entropy (Qbar) is also higher than Parking spot C to some extent. Parking spot C may be deleted from the large group.

[0093] Step E: For each core parking spot, obtain the target parking spot group containing that core parking spot;

[0094] Step F involves merging the target parking spot groups to obtain the merged parking spot group corresponding to the core parking spot.

[0095] The target parking point groups with the same core are merged. The merged parking point group is the grouping result of all parking points involved in all unit time periods of all first users within the preset historical time period. For example: if the aforementioned parking point A has the largest average information entropy Qbar in the group (A, B, C), this group is the target parking point group, and parking point A is the core of this group; if parking point A also has the largest average information entropy Qbar in another group (A, D, E, F), this group is also the target parking point group, and parking point A is the core of this group; then, the groups (A, B, C) and (A, D, E, F) can be merged. This is because parking point A can be replaced by parking points B and C in the group (A, B, C); and parking point A can be replaced by parking points D, E, and F in the group (A, D, E, F), meaning that these two groups are one large group.

[0096] Step G: For each parking spot in the merged parking spot group, obtain the target average information entropy of that parking spot in the target parking spot group.

[0097] Step H: Calculate the mean of the average information entropy of each target to obtain the cluster value of the parking point in the merged parking point group.

[0098] For each parking spot in the merged parking spot group, the average target information entropy of that parking spot in the larger group of target parking spots being merged is taken. The mean of the average target information entropy is calculated as the cluster value of that parking spot in the merged parking spot group. This cluster value is used to express the group similarity of these parking spots. Different merged parking spot groups can have overlapping parking spots, and the same parking spot can also have different cluster values ​​in different merged parking spot groups. Subsequently, the intelligent scheduling decision algorithm can select a suitable merged parking spot group based on the specific situation.

[0099] The aforementioned parking spot-based clustering method does not rely on distance calculations but rather on user needs, considering which parking spots are equivalent to the user's needs. This results in more accurate and reasonable merged parking spot groups. Using these merged parking spot groups for subsequent demand forecasting and inventory calculations allows for more accurate intelligent scheduling decisions and improved scheduling efficiency. Furthermore, parking spots within the same merged parking spot group are considered equivalent during operations. Therefore, if an anomaly occurs at a particular parking spot, the scheduling operation can be completed using other parking spots within the same merged group, thus enhancing the flexibility of intelligent scheduling of offline operations.

[0100] This invention provides a grouping and clustering device based on parking points, such as... Figure 3 As shown, the device includes: an acquisition module 30, used to acquire first operation data corresponding to multiple first users; a first determination module 31, used to determine, for each first user, the first parking point corresponding to each unit time period within a preset historical time period based on the current first operation data corresponding to the current first user; and a grouping module 32, used to obtain a merged parking point group by clustering based on the first parking points corresponding to each first user in each unit time period; wherein each parking point in the same merged parking point group has an equivalent substitution relationship for the user's riding needs.

[0101] The aforementioned parking spot-based grouping and clustering device clusters the first parking spots corresponding to all unit time periods within a preset historical time period for all first users, resulting in merged parking spot groups. Since each parking spot in the same merged parking spot group has an equivalent substitution relationship with the user's riding needs, this grouping method is more accurate and reasonable, and is more convenient for subsequent demand forecasting, inventory calculation, etc.

[0102] Furthermore, the acquisition module is also used to: acquire the original operation data of multiple users using shared vehicles; and filter out the first operation data corresponding to multiple first users from the original operation data according to preset filtering conditions; wherein the preset filtering conditions include: preset historical time period and ride number threshold.

[0103] Furthermore, the grouping module is also used to: determine each current parking spot corresponding to the current first user in the current unit time period for each unit time period; for each current parking spot, determine the corresponding parking spot group from all current parking spots, with the current parking spot as the center and a preset distance as the radius; integrate the parking spot groups with overlapping parking spots in each current parking spot group to obtain the first parking spot group corresponding to the current first user in the current unit time period; wherein, there are no duplicate parking spots between different first parking spot groups, and the union of all first parking spot groups is all the current parking spots corresponding to the current first user in the current unit time period; and obtain the merged parking spot group based on the first parking spot group corresponding to each first user in each unit time period.

[0104] Furthermore, the grouping module is also used to: determine the number of times the current first user requests each parking spot corresponding to the current unit time period for each unit time period; obtain the average inventory of each sub-parking spot within the current first parking spot group within the current unit time period for each first parking spot group; calculate the weighted demand ratio of each sub-parking spot in the current first parking spot group based on the number of requests and the average inventory; and obtain the merged parking spot group based on each first parking spot group corresponding to each unit time period of each first user in the historical time period, and the weighted demand ratio of each sub-parking spot in each first parking spot group in the corresponding first parking spot group.

[0105] Furthermore, the grouping module is also used to: determine the total inventory of the current first parking point group within the current unit time period based on the average inventory of each sub-parking point; calculate the weighted demand value of each sub-parking point within the current unit time period based on the demand frequency, average inventory, and total inventory of each sub-parking point; calculate the weighted total demand based on the weighted demand value of each sub-parking point; and calculate the weighted demand percentage of each sub-parking point in the current first parking point group based on the weighted demand value and the weighted total demand of each sub-parking point.

[0106] Furthermore, the grouping module is also used to: determine the group information entropy corresponding to the current first parking point group based on the weighted demand ratio of each sub-parking point in the current first parking point group.

[0107] Furthermore, the grouping module is also used to: determine the sum of information entropy corresponding to each parking spot based on each first user's first parking spot group corresponding to each unit time period within the historical time period, and the weighted demand ratio of each sub-parking spot in each first parking spot group within the corresponding first parking spot group; determine the information entropy threshold based on the number of rides threshold; select designated parking spots from each parking spot whose sum of information entropy is greater than the information entropy threshold; determine the second parking spot group corresponding to each first user's first user's first parking spot group for each unit time period within the historical time period based on the designated parking spots and the first parking spot groups corresponding to each first user's first user's first parking spot group within the historical time period; and determine the merged parking spot group based on each second parking spot group.

[0108] Furthermore, the grouping module is also used to: determine the number of groups containing at least one parking point within each second parking point group; calculate the ratio of the sum of the information entropy corresponding to each sub-parking point in the second parking point group to the number of groups, thereby obtaining the average information entropy corresponding to each sub-parking point in the second parking point group; filter out redundant parking points with an average information entropy less than the information entropy threshold from each sub-parking point in the second parking point group, thereby obtaining a new second parking point group; determine the sub-parking point with the largest average information entropy as the core parking point of the new second parking point group; for each core parking point, obtain the target parking point group containing that core parking point; and merge the target parking point groups to obtain the merged parking point group corresponding to the core parking point.

[0109] Furthermore, the grouping module is also used to: for each parking point in the merged parking point group, obtain the target average information entropy of that parking point in the target parking point group; calculate the mean of each target average information entropy to obtain the cluster value of that parking point in the merged parking point group.

[0110] The parking point-based grouping and clustering device provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned parking point-based grouping and clustering method embodiment. For the sake of brevity, any parts not mentioned in the parking point-based grouping and clustering device embodiment can be referred to the corresponding content in the aforementioned parking point-based grouping and clustering method embodiment.

[0111] This invention also provides an electronic device, see [link to relevant documentation]. Figure 4 As shown, the electronic device includes a processor 130 and a memory 131. The memory 131 stores machine-executable instructions that can be executed by the processor 130. The processor 130 executes the machine-executable instructions to implement the above-described parking point-based grouping clustering method.

[0112] Furthermore, Figure 4The electronic device shown also includes a bus 132 and a communication interface 133, with the processor 130, the communication interface 133 and the memory 131 connected via the bus 132.

[0113] The memory 131 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 133 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 132 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 4 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0114] Processor 130 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 130 or by instructions in software form. Processor 130 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 131, and processor 130 reads the information in memory 131 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.

[0115] This invention also provides a machine-readable storage medium storing machine-executable instructions. When these machine-executable instructions are called and executed by a processor, they cause the processor to implement the above-described parking point-based grouping and clustering method. For specific implementation details, please refer to the method embodiments, which will not be repeated here.

[0116] The computer program product of the parking point-based grouping clustering method, apparatus, and electronic device provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.

[0117] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0118] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of the invention; therefore, the scope of protection of the present invention should be determined by the scope defined in the claims.

Claims

1. A grouping and clustering method based on parking points, characterized in that, The method includes: Retrieve the first operation data corresponding to multiple first users; For each first user, based on the current first operation data corresponding to the current first user, determine the first parking point corresponding to each unit time period within the preset historical time period for the current first user; Based on the first parking point corresponding to each user in each unit time period, a merged parking point group is obtained by clustering; wherein, each parking point in the same merged parking point group has an equivalent substitution relationship for the user's riding needs; The steps to obtain the first operation data corresponding to multiple first users include: Obtain raw operational data from multiple users using shared vehicles; According to preset filtering conditions, multiple first operation data corresponding to first users are filtered out from the original operation data; wherein, the preset filtering conditions include: preset historical time period and riding number threshold; The steps for obtaining a merged parking spot group by clustering based on the first parking spot corresponding to each first user in each unit time period include: For each unit time period, determine each current parking point corresponding to the current first user in the current unit time period; For each current parking spot, with the current parking spot as the center and a preset distance as the radius, determine the parking spot group corresponding to the current parking spot from all the current parking spots; Integrate the parking spot groups with overlapping parking spots in each current parking spot group to obtain the first parking spot group corresponding to the current first user in the current unit time period; wherein, there are no duplicate parking spots between different first parking spot groups, and the union of all first parking spot groups is all the current parking spots corresponding to the current first user in the current unit time period. Based on the first parking spot group corresponding to each first user in each unit time period, a merged parking spot group is obtained; The steps for merging parking spot groups based on the first parking spot group corresponding to each first user in each unit time period include: For each unit time period, determine the number of times the current first user requests each current parking spot corresponding to the current unit time period; For each first parking point group, obtain the average inventory of each sub-parking point within the current first parking point group during the current unit time period; Based on the demand frequency and the average inventory, calculate the weighted demand percentage of each sub-parking point in the current first parking point group; Based on each first user's first parking spot group corresponding to each unit time period within the historical time period, and the weighted demand ratio of each sub-parking spot in each first parking spot group within the corresponding first parking spot group, a merged parking spot group is obtained.

2. The method according to claim 1, characterized in that, The steps for calculating the weighted demand percentage of each sub-parking point in the current first parking point group based on the demand frequency and the average inventory level include: Based on the average inventory corresponding to each sub-parking point, determine the total inventory corresponding to the current first parking point group within the current unit time period; Based on the demand frequency, average inventory, and inventory of each sub-parking point, the weighted demand value corresponding to each sub-parking point within the current unit time period is calculated. The total weighted demand is calculated based on the weighted demand value corresponding to each sub-parking point. Based on the weighted demand value corresponding to each sub-parking point and the total weighted demand, calculate the weighted demand ratio of each sub-parking point in the current first parking point group.

3. The method according to claim 1, characterized in that, The method further includes: The group information entropy corresponding to the current first parking point group is determined based on the weighted demand ratio of each sub-parking point in the current first parking point group.

4. The method according to claim 1, characterized in that, Based on each first user's corresponding first parking spot group for each unit time period within the historical time period, and the weighted demand ratio of each sub-parking spot in each first parking spot group within the corresponding first parking spot group, the steps to obtain the merged parking spot group include: Based on each first user's first parking spot group corresponding to each unit time period within the historical time period, and the weighted demand ratio of each sub-parking spot in each first parking spot group in the corresponding first parking spot group, the sum of information entropy corresponding to each parking spot is determined. Based on the aforementioned cycling frequency threshold, the information entropy threshold is determined; From each parking spot, select designated parking spots whose sum of information entropy is greater than the information entropy threshold; Based on the designated parking spots and the first parking spot groups corresponding to each first user in each unit time period within the historical time period, determine the second parking spot groups corresponding to each first user in each unit time period within the historical time period. Based on each second parking point group, determine the merged parking point group.

5. The method according to claim 4, characterized in that, Based on each second parking spot group, the steps for determining the merged parking spot groups include: For each second parking spot group, determine the number of groups in which at least one parking spot exists within that second parking spot group; Calculate the ratio of the sum of the information entropy of each sub-parking point in the second parking point group to the number of the group, and obtain the average information entropy of each sub-parking point in the second parking point group. From each sub-parking point of the second parking point group, redundant parking points whose average information entropy is less than the information entropy threshold are filtered out to obtain a new second parking point group corresponding to the second parking point group. The sub-parking point with the highest average information entropy is determined as the core parking point of the new second parking point group. For each core parking spot, obtain the target parking spot group that contains that core parking spot; The target parking spot groups are merged to obtain the merged parking spot group corresponding to the core parking spot.

6. The method according to claim 5, characterized in that, The method further includes: For each parking spot in the merged parking spot group, obtain the target average information entropy of that parking spot in the target parking spot group. Calculate the mean of the average information entropy for each target to obtain the cluster value of that parking spot in the merged parking spot group.

7. A grouping and clustering device based on parking points, characterized in that, The device includes: The acquisition module is used to acquire the first operation data corresponding to multiple first users; The first determining module is used to determine the first parking point corresponding to each first user in each unit time period within a preset historical time period, based on the current first operation data corresponding to the current first user. The grouping module is used to obtain a merged parking point group based on the first parking point corresponding to each first user in each unit time period through clustering; wherein, each parking point in the same merged parking point group has an equivalent substitution relationship for the user's riding needs. The acquisition module is also used for: Obtain raw operational data from multiple users using shared vehicles; According to preset filtering conditions, multiple first operation data corresponding to first users are filtered out from the original operation data; wherein, the preset filtering conditions include: preset historical time period and riding number threshold; The grouping module is also used for: For each unit time period, determine each current parking point corresponding to the current first user in the current unit time period; For each current parking spot, with the current parking spot as the center and a preset distance as the radius, determine the parking spot group corresponding to the current parking spot from all the current parking spots; Integrate the parking spot groups with overlapping parking spots in each current parking spot group to obtain the first parking spot group corresponding to the current first user in the current unit time period; wherein, there are no duplicate parking spots between different first parking spot groups, and the union of all first parking spot groups is all the current parking spots corresponding to the current first user in the current unit time period. Based on the first parking spot group corresponding to each first user in each unit time period, a merged parking spot group is obtained; The grouping module is also used for: For each unit time period, determine the number of times the current first user requests each current parking spot corresponding to the current unit time period; For each first parking point group, obtain the average inventory of each sub-parking point within the current first parking point group during the current unit time period; Based on the demand frequency and the average inventory, calculate the weighted demand percentage of each sub-parking point in the current first parking point group; Based on each first user's first parking spot group corresponding to each unit time period within the historical time period, and the weighted demand ratio of each sub-parking spot in each first parking spot group within the corresponding first parking spot group, a merged parking spot group is obtained.

Citation Information

Patent Citations

  • Shared vehicle station clustering method, system and device and storage medium

    CN111914940A

  • Shared bicycle space-time layout determination method based on clustering

    CN115796942A