[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2023045062A1 - Method and apparatus for dividing time periods, and electronic device and storage medium - Google Patents

Method and apparatus for dividing time periods, and electronic device and storage medium Download PDF

Info

Publication number
WO2023045062A1
WO2023045062A1 PCT/CN2021/133148 CN2021133148W WO2023045062A1 WO 2023045062 A1 WO2023045062 A1 WO 2023045062A1 CN 2021133148 W CN2021133148 W CN 2021133148W WO 2023045062 A1 WO2023045062 A1 WO 2023045062A1
Authority
WO
WIPO (PCT)
Prior art keywords
time period
loss
candidate
group
periods
Prior art date
Application number
PCT/CN2021/133148
Other languages
French (fr)
Chinese (zh)
Inventor
凌玮岑
梅雨
Original Assignee
阿波罗智联(北京)科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿波罗智联(北京)科技有限公司 filed Critical 阿波罗智联(北京)科技有限公司
Publication of WO2023045062A1 publication Critical patent/WO2023045062A1/en

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/07Controlling traffic signals
    • G08G1/08Controlling traffic signals according to detected number or speed of vehicles

Definitions

  • the present disclosure relates to the field of artificial intelligence, specifically to the field of intelligent transportation and big data, and more specifically to a method, device, electronic device and storage medium for dividing time periods.
  • time-segmented control of traffic signals at intersections is particularly important for alleviating traffic pressure and making full use of traffic resources.
  • it is necessary to improve the rationality and accuracy of time-segmentation.
  • a method for dividing time periods including: based on historical traffic data at intersections, determining the respective flow values of n unit periods included in a predetermined time period; based on the flow values, using an alternative division scheme to divide n unit time period, to obtain the alternative time period group; and based on the group similarity between the alternative time period group and the existing time period group obtained by using the existing division scheme, determine the target time period group in the alternative time period group, where n is an integer greater than 1.
  • a device for dividing periods including: a flow value determination module, configured to determine the respective flow values of the n unit periods included in the predetermined period based on historical traffic data at intersections; alternative determination A module for dividing n unit time periods by using an alternative division scheme based on the flow value to obtain an alternative time period group; and a target group determination module for dividing an existing time period based on the alternative time period group and the existing division scheme
  • the group similarity between groups determines the target time period group in the candidate time period group, where n is an integer greater than 1.
  • an electronic device including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are Execution by at least one processor, so that at least one processor can execute the method for dividing time periods provided in the present disclosure.
  • a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method for dividing time periods provided in the present disclosure.
  • a computer program product including a computer program, and when the computer program is executed by a processor, the method for dividing time periods provided in the present disclosure is implemented.
  • FIG. 1 is a schematic diagram of an application scenario of a method and device for dividing time periods according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for dividing time periods according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of the principle of dividing n unit time periods by using an alternative division scheme to obtain an alternative time period group according to an embodiment of the present disclosure
  • Fig. 4 is a schematic diagram of the principle of determining the loss with the jth unit period as an alternative division point according to an embodiment of the present disclosure
  • Fig. 5 is a schematic diagram of the principle of determining a target time period group in an alternative time period group according to an embodiment of the present disclosure
  • FIG. 6 is a structural block diagram of an apparatus for dividing time periods according to an embodiment of the present disclosure.
  • FIG. 7 is a block diagram of an electronic device used to implement the method for dividing time periods according to an embodiment of the present disclosure.
  • the present disclosure provides a method for dividing time periods, which includes a flow determination phase, an alternative determination phase, and a target group determination phase.
  • the flow determination stage based on the historical flow data of the intersection, the respective flow values of n unit periods included in the predetermined period are determined, wherein n is an integer greater than 1.
  • an alternative division scheme is used to divide n unit time periods to obtain an alternative time period group.
  • the target time period group in the candidate time period group is determined.
  • Fig. 1 is an application scenario diagram of a method and device for dividing time periods according to an embodiment of the present disclosure.
  • an application scenario 100 of this embodiment includes a monitoring personnel 110 , a terminal 120 , a communication base station 130 and a road traffic network.
  • the road traffic network may include roads and intersections formed by intersections of roads.
  • the road traffic network includes at least an intersection 140 and roads 151 , 152 , and 153 that meet to form the intersection 140 .
  • FIG. 1 there may be vehicles running on a road that merges to form an intersection 140 , and the vehicles may pass through the intersection according to the indication of a traffic light 160 .
  • the application scene 100 can also set a video capture device at the intersection 140 .
  • the video acquisition device may be a camera, which is used to photograph vehicles driving on the road.
  • the video collection device can send the captured video to the terminal 120 via the communication base station 130 .
  • the monitoring personnel can monitor the road conditions in real time.
  • the terminal 120 may store the received video in a database.
  • the terminal 120 can also periodically process the video stored in the database to obtain the traffic flow at the intersection in the historical period.
  • most of the vehicles driving on the roads that meet to form an intersection may have integrated navigation systems, or the hand-held terminals of the drivers in the vehicles may be installed with navigation applications.
  • the navigation system or navigation application can upload real-time data to the terminal 120 through the communication base station 130 .
  • the terminal 120 can, for example, analyze the traffic flow at the intersection according to the real-time data.
  • the terminal may store real-time data in a database.
  • the terminal 120 can also regularly acquire historical data from the database, and obtain the traffic flow at the intersection in the historical period by analyzing the historical data.
  • the terminal 120 can determine multiple time periods in a day for signal control of the traffic light 160 according to the analyzed traffic flow within a predetermined time period, and set a reasonable time period for each time period in the multiple time periods.
  • control information may include, for example, the signal period and green signal ratio of the traffic light 160 .
  • the terminal 120 can also communicate with the traffic light 160 through the network, so as to control the operation of the traffic light 160 according to the timing scheme, so that the operation of the traffic light 160 can better meet the needs of vehicles on the road. demand and effectively alleviate road congestion.
  • the method for dividing time periods provided in the present disclosure may generally be executed by the terminal 120 .
  • the device for dividing time periods provided in the present disclosure may be set in the terminal 120 .
  • the method for dividing time periods provided in the present disclosure may also be executed by a server connected in communication with the terminal 120 .
  • the device for dividing time periods provided in the present disclosure may be set in a server connected in communication with the terminal 120 .
  • terminals, roads, vehicles, communication base stations, and signal indicator lights in FIG. 1 are only schematic. According to the implementation requirements, there can be any number and types of terminals, roads, vehicles, communication base stations and signal lamps.
  • Fig. 2 is a schematic flowchart of a method for dividing time periods according to an embodiment of the present disclosure.
  • the method 200 for dividing time periods in this embodiment may include operation S210 to operation S230.
  • the length of the predetermined time period may be one day, that is, the predetermined time period is from 0:00 to 24:00.
  • the predetermined time period may also be a time period that is more sensitive to the timing scheme, such as 6:00 to 22:00.
  • the predetermined period may also be a certain sub-period in a longer period belonging to a certain type, so as to improve the accuracy of period division.
  • a certain type may be a weekday type, a holiday type, a holiday day type, a weekend type, and the like.
  • the predetermined time period may be an all-day period on weekdays, or may be an all-day period on holidays, weekends and the like.
  • the historical traffic data of the intersection may include, for example, traffic data of one or more historical time periods corresponding to a predetermined time period. For example, if the predetermined time period is the whole day period of a Monday that belongs to a working day, the historical traffic data of the intersection may include the traffic data of one or more working days before the current date, and may also include one or more Mondays before the current date traffic data.
  • the historical traffic data of the intersection may include the traffic data of each road in each unit period among multiple roads that meet to form the intersection.
  • the flow data may include, for example, vehicle flow data, pedestrian flow data, non-motor vehicle flow data, and the like.
  • the length of the unit time period may be, for example, 5 min, 10 min, 15 min, or 30 min, which is set according to actual needs, which is not limited in the present disclosure.
  • the historical traffic data can be obtained from the interface provided by the map navigation system or the data interface provided by the traffic control department.
  • the average value of the flow data of all roads at the intersection in each unit period can be taken as the flow value of the intersection in each unit period.
  • the historical traffic data of the intersection includes the traffic data of multiple historical periods corresponding to the predetermined time period
  • the traffic value of an intersection in each unit period can be obtained for each historical period, and for each unit period, the total can be obtained. flow value.
  • the average value of the plurality of flow values for each unit period is used as the flow value for each unit period.
  • unit conversion may be performed on the flow values of each unit period to obtain flow values in units of number/h.
  • n is an integer greater than 1.
  • the n unit time periods are divided using an alternative division scheme to obtain an alternative time period group.
  • the alternative division scheme may be set with, for example, the number of time periods obtained by dividing n unit time periods.
  • the alternative division scheme may set a threshold value for the number of unit periods included in each divided period. For example, the number of unit periods included in each period in the divided periods should be greater than a first predetermined value, and/or the number of unit periods included in each period in the divided periods should be smaller than a second predetermined value.
  • the alternative division scheme may be set such that the difference of flow values between the unit periods included in each period cannot be greater than the difference threshold, so as to ensure the rationality of the divided alternative period groups. It can be understood that one or more division conditions may be set in the above alternative division scheme, and the number and type of the division conditions may be set according to actual requirements, which is not limited in the present disclosure.
  • the alternative division scheme may also be set by the staff according to the obtained flow values of n unit periods.
  • Each candidate time period group includes a plurality of time periods, and each time period includes at least one unit time period.
  • the n unit periods may be numbered according to chronological order to obtain n unit periods numbered 1 to n respectively.
  • Multiple time periods included in each candidate time period may be arranged in chronological order.
  • the maximum code of at least one unit period included in the time period ranked earlier may be used as the identifier I i representing the division point of the two adjacent time periods.
  • an alternative time period group may include (k-1) dividing points, k is the number of multiple time periods included in the one candidate time period, and i is a value greater than or equal to 1 and less than or equal to (k-1) .
  • a target time period group in the candidate time period group is determined based on the group similarity between the candidate time period group and the existing time period group divided by using the existing division scheme.
  • the existing division scheme may include a period division scheme in the timing scheme currently adopted by the traffic lights.
  • the existing time period group divided by the existing division scheme also includes a plurality of time periods. Based on a principle similar to the principle that the candidate time period group includes division points, the existing division scheme also includes at least one division point.
  • the group similarity between the candidate time period group and the existing time period group may be determined according to the distance between the division points included in the candidate time period group and the division points included in the existing time period group.
  • the distance between each division point in the candidate time period group and each division point in the existing time period group may be calculated pair by pair.
  • the group similarity is determined based on the average of all distances obtained. For example, the average value of the distance can be normalized, and the value obtained by the normalization can be used as the group similarity.
  • the candidate time period group with the largest group similarity with the existing time period group may be selected from the multiple candidate time period groups as the target time period group.
  • Multiple time periods in the target time period group are the division results of the method for dividing time periods.
  • the method of the embodiment of the present disclosure by referring to the historical traffic data to determine the candidate time period group for screening, and by considering the similarity between the candidate time period group and the existing time period group to determine the target time period group as the division result, it can Effectively avoid missing the suboptimal solution that is close to the original time division scheme. Therefore, the accuracy and rationality of time division can be improved, and favorable conditions can be provided for alleviating traffic pressure and improving the utilization rate of traffic resources.
  • Fig. 3 is a schematic diagram of the principle of dividing n unit time periods by adopting an alternative division scheme to obtain an alternative time period group according to an embodiment of the present disclosure.
  • the alternative division scheme may, for example, provide a plurality of alternative numbers, where the alternative number is the number of time periods obtained by dividing n unit time periods.
  • the alternative number is the number of time periods obtained by dividing n unit time periods.
  • one candidate period group can be determined for each candidate number. In this way, when determining the target time period group, both the number of divided time periods and the division scheme can be selected. Therefore, the accuracy of the obtained target period group can be further improved.
  • the n unit time periods described above can be divided into k time periods based on the flow value, so as to obtain a group of time periods for each candidate number.
  • k is an integer greater than or equal to 1 and less than or equal to n.
  • n integers from 1 to n may be used as n candidate numbers, and one candidate period group is obtained for each candidate number.
  • the candidate time period group can cover the number of time periods that may be obtained in all division situations.
  • losses may be assigned to each time period group obtained by dividing n unit periods based on flow values. In this way, if n unit time periods are divided into k time periods to obtain p time period groups, then p losses can be obtained. Finally, the period group corresponding to the smallest loss among the p losses is used as the candidate period group for the candidate number k. In this way, the accuracy of the obtained candidate period groups can be improved.
  • the loss allocated to each period group may be determined according to the deviation of dividing a unit period into one period. For example, for each time period in each time period group, the average value of the numbers of the unit time periods included in each time period may be calculated first. Then calculate the sum of the squares of the differences between the numbers of all unit periods included in each period and the average value. The sum of squares is used as the deviation for each period, that is, the unit period with the largest number in each period is used as the loss of the dividing point. Finally, the biases of all time periods in each time period group can be summed to obtain the assigned loss for each time period group.
  • a dynamic programming algorithm or the like may be used to determine each candidate number of candidate period groups.
  • each candidate number of candidate period groups can be determined through operations S310 to S360 .
  • j may be assigned as k first. Subsequently, operation S310 is performed to determine the minimum loss for dividing the first (j-1) unit periods among the n unit periods into (k-1) periods as the first loss.
  • the first loss can be determined as dividing the previous (j-1) unit periods into (k-1) periods.
  • the first loss may be a deviation of dividing each unit period into a period.
  • operation S320 may be performed to determine a loss of dividing the last (n-j+1) unit periods of the n unit periods into one period as the second loss. Operation S320 may also be performed before operation S310, or may be performed after operation S310, which is not limited in the present disclosure.
  • the second loss may be determined by using a deviation that divides the last (n-j+1) unit periods into one period. For example, the average value of (n-j+1) flow values of the next (n-j+1) unit periods may be determined first. Then, based on the respective deviations of the (n-j+1) flow values relative to the average value, the loss of dividing the next (n-j+1) unit periods into one period is determined.
  • the deviations of the (n-j+1) flow values relative to the average value can be, for example, the square of the difference between the (n-j+1) flow values and the average value, or can be the The absolute value of the difference between the (n-j+1) flow values and the mean value.
  • the sum of the deviations or the average value of the deviations can be used as the second loss.
  • the i-th unit period to the j-th unit period arranged in chronological order is divided into a deviation of one period, for example, the following formula (1) can be used to express:
  • X i is the flow value of the i-th unit period, is the average value from the flow value of the i-th unit period to the flow value of the j-th unit period.
  • operation S330 may be performed, based on the first loss and the second loss, to determine a loss using the jth unit period among the n unit periods as a candidate division point.
  • the sum of the first loss and the second loss may be used as the loss of the jth unit period as the candidate division point.
  • the last division point for dividing n unit periods into k periods may be determined.
  • the first (k-2) dividing points for dividing n unit periods into k periods may be determined. In this way, through operations S310 to S330, a division scheme for dividing n unit time periods into k time periods can be obtained.
  • operation S340 may be performed first to determine whether j is equal to n.
  • k is used as the initial value of j, because in all schemes of dividing n unit periods into k periods, the most front position of the last division point of k periods is (k-1) . Therefore, if j is less than n, it means that all cases of the last division point of k time periods have not been searched. Then set j to j+1 through operation S350, and return to perform operation S310. That is to say, it is equivalent to moving the last division point of the k time periods backward by one unit time period, and continuing to search for unsearched situations.
  • operation S360 may be performed to divide n unit time periods into k time periods based on the candidate division point corresponding to the smallest loss among (n-k+1) losses. According to the full text description, for each j, a division scheme can be obtained, and for each division scheme, a loss with the jth unit period as an alternative division point will be obtained.
  • the optimal division scheme for the candidate number k can be obtained, and this embodiment will adopt the optimal division scheme for the candidate number k to obtain
  • the period group of is used as the alternative period group for each alternative number.
  • j when j is greater than k, there may be multiple division schemes for dividing (j-1) unit time periods into (k-1) time periods, so that multiple division results may be obtained.
  • losses are allocated to each division result based on the foregoing principle of allocating losses to each candidate period group.
  • the smallest loss among the multiple losses of the multiple division results is taken as the first loss.
  • the implementation principle of the above operation S310 to operation S360 can refer to the following formula (2):
  • SubL(1, j-1) is the loss of dividing the first (j-1) unit periods into one period
  • SubL(j, n) is the division of the j-th unit period to the n-th unit period into one time period loss.
  • the SubL(1, j-1) and SubL(j, n) can be calculated by using the formula (1) described above.
  • L[c(n, 2)] is the loss for dividing n unit periods into two periods.
  • minL[c(j-1, k-1)] is the loss of dividing the previous (j-1) unit periods into (k-1) periods.
  • formula (3) and formula (2) are equivalent formulas .
  • Fig. 4 is a schematic diagram of the principle of determining the loss with the jth unit period as an alternative dividing point according to an embodiment of the present disclosure.
  • the alternative when determining the loss of the j-th unit period in the n unit periods as an alternative division point, for example, when the j-th unit period is used as an alternative division point, the alternative The similarity between the partition point and the existing partition scheme.
  • the candidate time period group determined for each candidate number can be as close as possible to the existing time period group. And thus can further increase the probability of finding a suboptimal solution close to the original time division scheme.
  • the jth unit period when determining the loss 410 with the jth unit period as an alternative division point, in addition to considering the first loss 420 and the second loss 430, the jth unit period can also be considered The second similarity 440 between the unit time period and the existing time period group.
  • the second similarity 440 may be determined, for example, according to the difference between the candidate division point and each division point in the existing time period group when the jth unit period is used as the candidate division point.
  • I j 401 to represent the j-th unit period as an alternative division point
  • set each division point in the existing period group as Then you can first determine I j 401 and The difference between, get a difference dif 1 404, and so on, determine I j 401 with The difference between, get a difference dif m 405, get m differences in total. Then based on the m differences, a second degree of similarity is determined. Among them, m is the total number of dividing points in the existing time period group.
  • the sum of the m differences may be used as the second similarity.
  • the average of the m differences may be used as the second similarity.
  • the largest difference among the m differences may be used as the second similarity.
  • the following formula (4) may be used to determine the difference between the candidate division point and the division points in the existing time period group. And use the following formula (5) to determine the second similarity.
  • s(I j , C o ) represents the similarity between the candidate division point I j and the existing period group C o , Indicates the i-th dividing point in the existing period group C o .
  • a threshold may be set for the difference. In this way, the situation that the reference value for the similarity is low due to the large difference between the candidate division point and the previous division point in the existing time period group is avoided. Therefore, the accuracy of the determined second similarity and the loss of the jth unit period as a candidate division point can be improved.
  • the absolute value of the difference between the candidate division point and each division point in the existing period group may be determined first, Get the first difference.
  • the first difference can be calculated by using the formula (4) described above.
  • the absolute value of the difference between the first difference and a predetermined threshold is determined to obtain a second difference.
  • the smaller of the second difference and a predetermined threshold is determined as the difference between the candidate division point and each division point in the existing time period group.
  • T is a predetermined threshold, which may be, for example, 4 or other value set according to actual needs, which is not limited in the present disclosure.
  • Fig. 5 is a schematic diagram of the principle of determining a target time period group in an alternative time period group according to an embodiment of the present disclosure.
  • the group similarity between each time period group in the candidate time period groups and an existing time period group may be determined first.
  • the similarity between each time period group and the existing time period group may be determined according to the similarity between each dividing point in each time period group and the existing time period group. For example, the similarity between each dividing point in each time period group and an existing time period group may be determined first to obtain at least one first similarity.
  • the method for calculating the first similarity may adopt a method similar to the method for calculating the second similarity described above, which will not be repeated here.
  • the number of the first similarities is the same as the number of time periods in each time period group.
  • the average value of the at least one first similarity can be used as the group similarity between each time period group and the existing time period group.
  • the average value of the at least one first similarity relative to the number of target time periods may be used as the group similarity between each time period group and an existing time period group.
  • the target number of time periods is the greater value between the number of time periods in each time period group and the number of time periods in an existing time period group.
  • the group similarity between each time period group and an existing time period group can be calculated using the following formula (7):
  • S(C, C o ) is the group similarity
  • k is the number of time periods in each time period group
  • k o is the number of time periods in the existing time period group
  • s(I i , C o ) represents the similarity between the i-th dividing point in each time period group and the existing time period group.
  • the group similarity can also be standardized to a value interval [0, 1], for example, through linear transformation.
  • the grouping deviation when determining the target time period group in the candidate time period group, in addition to considering the group similarity with the existing time period group, for example, the grouping deviation can also be considered. And based on the grouping deviation and group similarity, the grouping loss of each candidate time period group is determined. Finally, according to the grouping loss, the target period group is selected from the candidate period groups. In this way, the accuracy of the obtained target period group can be improved.
  • the alternative time period groups can be set to include time period group C 1 501 to time period group C n 502, and for each time period group in the n time period groups, a grouping can be obtained respectively Deviation, so as to obtain the grouping deviation 511 ⁇ grouping deviation 512.
  • the group similarity between each time period group and the existing time period group C o 503 can be calculated, and the group similarity 521-522 can be obtained.
  • the group loss 531 of the period group C 1 501 can be obtained.
  • the group loss 532 of the period group C n 502 can be obtained.
  • the target period group 540 in the period group C 1 501 -the period group C n 502 can be determined according to the group loss 531 -the group loss 532 .
  • the target time period group 540 may be determined by comparing the magnitude relationship between the packet loss 531 to the packet loss 532 . For example, if the packet loss of time period group C 1 501 is the smallest, then this time period group C 1 501 may be determined as the target time period group 540 .
  • the grouping deviation may be determined, for example, according to a sum of losses of dividing each time period in each time period group into one time period.
  • the grouping deviation can be represented by the ratio between the sum of the loss sum of dividing each time period in each time period group into one time period and the unsegmented loss when n unit time periods are not divided, so as to further In order to objectively reflect the relative size relationship of the group losses in different time periods.
  • the formula (1) described above can be used to calculate the loss that each time period in each time period group is divided into one time period, and for each time period group, at least one segmentation loss can be obtained.
  • the following formula (8) can be used to obtain the sum of the at least one segment loss:
  • SD(i, j) v represents the loss that the v-th period among the k periods included in each period group is divided into one period.
  • SDC is the sum of the at least one segment loss.
  • the unsegmented loss when n unit periods are not divided can be calculated using the following formula (9), for example:
  • grouping loss may be negatively correlated with group similarity and positively correlated with grouping deviation, for example.
  • this embodiment can select the time period group with the smallest packet loss from the candidate time period groups as the target time period group. In this way, the obtained time period group can be most similar to the existing time period group, and at the same time, the grouping deviation can be minimized.
  • the packet loss can be calculated using the following formula (10):
  • SDR is the grouping deviation
  • is the similarity weight coefficient
  • L is the grouping loss.
  • the loss reduction range can be calculated for the grouping losses of the two time period groups of adjacent candidate numbers.
  • the two adjacent time period groups of the candidate number may be, for example, a time period group of the candidate number k and a time period group of the candidate number (k-1). In this manner, it can be determined whether the losses of the divided time period groups tend to converge as the number of divided segments increases. In this way, it is possible to avoid the situation that the number of optimal time divisions always takes the maximum value due to the fact that the more time periods obtained by division, the smaller the packet loss, which does not meet the actual demand.
  • (n-1) candidate numbers whose values belong to the value interval [2, n] among the n candidate numbers may be sequentially searched based on the order of the candidate numbers from small to large, until the target period group is obtained.
  • the search process first determine the loss difference between the packet loss for the candidate number (k-1) of the candidate period groups and the packet loss for the candidate number k of the candidate period groups. Then, based on the ratio between the loss difference and the packet loss for the candidate number (k-1) of the candidate period groups, the loss reduction for the candidate number k is determined. Finally, in the case that the loss reduction range for the candidate number k is less than the predetermined range, the candidate time period group for the candidate number (k-1) is determined as the target time period group.
  • the ratio between the loss difference and the packet loss for the candidate number (k-1) of the candidate period groups may be used as the loss reduction range for the candidate number k.
  • the sum of the ratio and a predetermined value may be used as the loss reduction range.
  • the predetermined range may be set according to actual needs, which is not limited in the present disclosure.
  • this embodiment may also divide n unit periods into a predetermined number of periods based on the traffic value, and divide all The time period group obtained by the possible division scheme is used as the alternative time period group. Then, using a principle similar to that described in FIG. 5 , the target time period group in the candidate time period group is obtained.
  • the present disclosure also provides a device for dividing time periods.
  • the device will be described in detail below with reference to FIG. 6 .
  • the apparatus 600 for dividing time periods in this embodiment may include a traffic value determination module 610 , an alternative determination module 620 and a target group determination module 630 .
  • the flow value determination module 610 is used to determine the respective flow values of the n unit periods included in the predetermined period based on the historical flow data of the intersection. Wherein, n is an integer greater than 1. In an embodiment, the flow value determination module 610 may be used to perform the operation S210 described above, which will not be repeated here.
  • the alternative determining module 620 is configured to divide n unit time periods by using an alternative division scheme based on the traffic value, to obtain an alternative time period group.
  • the candidate determining module 620 may be configured to perform the operation S220 described above, which will not be repeated here.
  • the target group determination module 630 is configured to determine a target time period group in the candidate time period groups based on the group similarity between the candidate time period groups and the existing time period groups divided by using the existing division scheme. In an embodiment, the target group determination module 630 may be used to perform the operation S230 described above, which will not be repeated here.
  • the above-mentioned apparatus 600 for dividing time periods may further include a similarity determination module and a group similarity determination module.
  • the similarity determination module is used to determine the similarity between each dividing point in each time period group and the existing time period group, and obtain at least one first similarity.
  • the group similarity determining module is used to determine the average value of at least one first similarity relative to the number of target time periods as the group similarity between each time period group and an existing time period group. Wherein, the target number of time periods is the greater value between the number of time periods in each time period group and the number of time periods in an existing time period group.
  • the above-mentioned alternative determination module 620 is configured to divide n unit time periods into k time periods based on flow values for each of the multiple alternative numbers, and obtain Alternative period groups for .
  • the plurality of alternative numbers are all integers greater than or equal to 1 and less than or equal to n, and k is the value of each alternative number.
  • the above-mentioned candidate determination module 620 may include a first loss determination submodule and a period division submodule.
  • the first loss determination sub-module is used to take k as the initial value of j, and take 1 as the step size, and perform the following operations in a loop until the value of j is n, and obtain (n-k+1) losses: based on the flow value, determine the The first (j-1) unit period of n unit periods is divided into the minimum loss of (k-1) periods, as the first loss; determine the last (n-j+1) of n unit periods The unit period is divided into a period of loss, as the second loss; and based on the first loss and the second loss, determine the jth unit period in the n unit period as the loss of the candidate division point, and set j to j+1.
  • the period division sub-module is used to divide n unit periods into k periods based on the candidate division point corresponding to the minimum loss among (n-k+1) losses.
  • the above-mentioned first loss determining submodule may include a similarity determining unit and a first loss determining unit.
  • the similarity determination unit is configured to determine a second similarity between the candidate division point and the existing time period group based on the difference between the candidate division point and each division point in the existing time period group.
  • the first loss determining unit is configured to determine a loss using the jth unit period among the n unit periods as a candidate division point based on the second similarity, the first loss, and the second loss.
  • the above-mentioned similarity determination unit is configured to determine the difference between the candidate division point and the existing time period group based on the largest difference among the multiple differences between the candidate division point and the multiple division points in the existing time period group. The second similarity between.
  • the first loss determining submodule further includes a first difference determining unit, a second difference determining unit, and a difference determining unit.
  • the first difference determination unit is configured to determine the absolute value of the difference between the candidate division point and each division point in the existing time period group to obtain the first difference.
  • the second difference determining unit is used to determine the absolute value of the difference between the first difference and the predetermined threshold to obtain the second difference.
  • the difference determination unit is configured to determine the smaller of the second difference and a predetermined threshold as the difference between the candidate division point and each division point in the existing time period group.
  • the first loss determination sub-module further includes a flow averaging unit and a second loss determination unit.
  • the flow average unit is used to determine the average value of (n-j+1) flow values in the next (n-j+1) unit periods.
  • the second loss determination unit is configured to determine the loss after dividing the last (n-j+1) unit periods into one period based on the deviations of the (n-j+1) flow values respectively relative to the average value.
  • the above target group determination module 630 may include a second loss determination submodule and a target group determination submodule.
  • the second loss determination submodule is used for each time period group in the alternative time period group: based on the group similarity between each time period group and the existing time period group and the grouping deviation of each time period group, determine each time period group group loss.
  • the target group determination submodule is used to determine the target time period group in the candidate time period group based on the packet loss of each time period group in the candidate time period group.
  • grouping loss and group similarity are negatively correlated with each other, and grouping loss and grouping deviation are positively correlated with each other.
  • the plurality of candidate numbers includes n candidate numbers.
  • the above-mentioned target group determination sub-module is used to use the following units, based on the order of the number of candidates from small to large, sequentially search for (n-1) of the n candidate numbers whose value belongs to the value interval [2, n] Select the number until the target period group is obtained: the loss difference determination unit is used to determine the difference between the grouping loss for the candidate period group of the alternative number (k-1) and the grouping loss for the candidate period group for the alternative number k The loss difference value;
  • the decline range determination unit is used to determine the loss reduction range for the alternative number k based on the ratio between the loss difference value and the grouping loss for the alternative time period group of the alternative number (k-1);
  • a target group determining unit configured to determine the candidate time period group for the candidate number (k-1) as the target time period group when the loss reduction range for the candidate number k is less than a predetermined range.
  • the above-mentioned apparatus 600 for dividing time periods may further include a segmentation loss determination module, a non-segmentation loss determination module, and a grouping deviation determination module.
  • the segmentation loss determination module is used for each time period group in the candidate time period group: based on the traffic value, determine the loss of dividing each time period in each time period group into a time period, and obtain at least one segmentation loss.
  • the unsegmented loss determination module is used to obtain the unsegmented loss based on the deviations of the n flow values in n unit time periods relative to the average value of the n flow values.
  • the grouping deviation determination module is used for determining the grouping deviation of each time period group based on the ratio between the sum of at least one segmentation loss and the non-segmentation loss.
  • the above-mentioned candidate determining module 620 is configured to divide n unit time periods into a predetermined number of time periods based on the flow value to obtain a group of candidate time periods.
  • the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
  • FIG. 7 shows a schematic block diagram of an example electronic device 700 that can be used to implement the method for dividing a time period according to an embodiment of the present disclosure.
  • Electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers.
  • Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smart phones, wearable devices, and other similar computing devices.
  • the components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
  • the device 700 includes a computing unit 701 that can execute according to a computer program stored in a read-only memory (ROM) 702 or loaded from a storage unit 708 into a random-access memory (RAM) 703. Various appropriate actions and treatments. In the RAM 703, various programs and data necessary for the operation of the device 700 can also be stored.
  • the computing unit 701, ROM 702, and RAM 703 are connected to each other through a bus 704.
  • An input/output (I/O) interface 705 is also connected to the bus 704 .
  • the I/O interface 705 includes: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a magnetic disk, an optical disk, etc. ; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, and the like.
  • the communication unit 709 allows the device 700 to exchange information/data with other devices over a computer network such as the Internet and/or various telecommunication networks.
  • the computing unit 701 may be various general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of computing units 701 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc.
  • the computing unit 701 executes the various methods and processes described above, such as the method of dividing time periods. For example, in some embodiments, the method of dividing time periods may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 708 .
  • part or all of the computer program may be loaded and/or installed on the device 700 via the ROM 702 and/or the communication unit 709.
  • the computer program When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method for dividing time periods described above may be performed.
  • the computing unit 701 may be configured in any other appropriate way (for example, by means of firmware) to execute the method for dividing time periods.
  • Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips Implemented in a system of systems (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof.
  • FPGAs field programmable gate arrays
  • ASICs application specific integrated circuits
  • ASSPs application specific standard products
  • SOC system of systems
  • CPLD load programmable logic device
  • computer hardware firmware, software, and/or combinations thereof.
  • programmable processor can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.
  • Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented.
  • the program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user. ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer.
  • a display device e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor
  • a keyboard and pointing device eg, a mouse or a trackball
  • Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.
  • the systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system.
  • the components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
  • a computer system may include clients and servers.
  • Clients and servers are generally remote from each other and typically interact through a communication network.
  • the relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.
  • the server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the problem of traditional physical host and VPS service ("Virtual Private Server", or "VPS" for short). ′′), there are defects such as high management difficulty and weak business scalability.
  • the server can also be a server of a distributed system, or a server combined with a blockchain.
  • steps may be reordered, added or deleted using the various forms of flow shown above.
  • each step described in the present disclosure may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method and apparatus for dividing time periods, and an electronic device and a storage medium, which are applied to the field of artificial intelligence, and specifically relate to the field of intelligent transportation and the field of big data. A specific implementation solution of the method for dividing time periods is: on the basis of historical traffic data of an intersection, determining respective traffic values of n unit time periods that are comprised in a predetermined time period (S210); on the basis of the traffic values, dividing the n unit time periods by using an alternative division solution, so as to obtain alternative time period groups (S220); and determining a target time period group from among the alternative time period groups on the basis of the group similarities between the alternative time period groups and existing time period groups that are divided by using an existing division solution (S230), wherein n is an integer greater than 1.

Description

划分时段的方法、装置、电子设备和存储介质Method, device, electronic device and storage medium for dividing time periods
本申请要求于2021年9月27日提交的、申请号为202111139260.3的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application with application number 202111139260.3 filed on September 27, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本公开涉及人工智能领域,具体涉及智能交通领域和大数据领域,更具体地涉及一种划分时段的方法、装置、电子设备和存储介质。The present disclosure relates to the field of artificial intelligence, specifically to the field of intelligent transportation and big data, and more specifically to a method, device, electronic device and storage medium for dividing time periods.
背景技术Background technique
随着网络技术的发展,智能交通得到快速发展。作为智能交通的一个分支,交叉路口处交通信号的分时段控制对缓解交通压力、充分利用交通资源尤为重要。为了实现交叉路口处交通信号的分时段精准控制,需要提高时段划分的合理性和准确度。With the development of network technology, intelligent transportation has developed rapidly. As a branch of intelligent transportation, the time-segmented control of traffic signals at intersections is particularly important for alleviating traffic pressure and making full use of traffic resources. In order to realize the precise time-segmented control of traffic signals at intersections, it is necessary to improve the rationality and accuracy of time-segmentation.
发明内容Contents of the invention
提供了一种划分时段的方法、装置、电子设备和存储介质。Provided are a method, device, electronic equipment and storage medium for dividing time periods.
根据本公开的一个方面,提供了一种划分时段的方法,包括:基于路口的历史流量数据,确定预定时段包括的n个单位时段各自的流量值;基于流量值,采用备选划分方案划分n个单位时段,得到备选时段组;以及基于备选时段组与采用已有划分方案划分得到的已有时段组之间的组相似度,确定备选时段组中的目标时段组,其中,n为大于1的整数。According to one aspect of the present disclosure, there is provided a method for dividing time periods, including: based on historical traffic data at intersections, determining the respective flow values of n unit periods included in a predetermined time period; based on the flow values, using an alternative division scheme to divide n unit time period, to obtain the alternative time period group; and based on the group similarity between the alternative time period group and the existing time period group obtained by using the existing division scheme, determine the target time period group in the alternative time period group, where n is an integer greater than 1.
根据本公开的另一个方面,提供了一种划分时段的装置,包括:流量值确定模块,用于基于路口的历史流量数据,确定预定时段包括的n个单位时段各自的流量值;备选确定模块,用于基于流量值,采用备选划分方案划分n个单位时段,得到备选时段组;以及目标组确定模块,用于基于备选时段组与采用已有划分方案划分得到的已有时段组之间的组相似度,确定备选时段组中的目标时段组,其中,n为大于1的整数。According to another aspect of the present disclosure, there is provided a device for dividing periods, including: a flow value determination module, configured to determine the respective flow values of the n unit periods included in the predetermined period based on historical traffic data at intersections; alternative determination A module for dividing n unit time periods by using an alternative division scheme based on the flow value to obtain an alternative time period group; and a target group determination module for dividing an existing time period based on the alternative time period group and the existing division scheme The group similarity between groups determines the target time period group in the candidate time period group, where n is an integer greater than 1.
根据本公开的另一个方面,提供了一种电子设备,包括:至少一个处理器;以及与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行本公开提供的划分时段 的方法。According to another aspect of the present disclosure, an electronic device is provided, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are Execution by at least one processor, so that at least one processor can execute the method for dividing time periods provided in the present disclosure.
根据本公开的另一个方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,计算机指令用于使计算机执行本公开提供的划分时段的方法。According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method for dividing time periods provided in the present disclosure.
根据本公开的另一个方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现本公开提供的划分时段的方法。According to another aspect of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method for dividing time periods provided in the present disclosure is implemented.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood through the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used to better understand the present solution, and do not constitute a limitation to the present disclosure. in:
图1是根据本公开实施例的划分时段的方法和装置的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of a method and device for dividing time periods according to an embodiment of the present disclosure;
图2是根据本公开实施例的划分时段的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for dividing time periods according to an embodiment of the present disclosure;
图3是根据本公开实施例的采用备选划分方案划分n个单位时段,得到备选时段组的原理示意图;FIG. 3 is a schematic diagram of the principle of dividing n unit time periods by using an alternative division scheme to obtain an alternative time period group according to an embodiment of the present disclosure;
图4是根据本公开实施例的确定以第j个单位时段作为备选划分点的损失的原理示意图;Fig. 4 is a schematic diagram of the principle of determining the loss with the jth unit period as an alternative division point according to an embodiment of the present disclosure;
图5是根据本公开实施例的确定备选时段组中的目标时段组的原理示意图;Fig. 5 is a schematic diagram of the principle of determining a target time period group in an alternative time period group according to an embodiment of the present disclosure;
图6是根据本公开实施例的划分时段的装置的结构框图;以及FIG. 6 is a structural block diagram of an apparatus for dividing time periods according to an embodiment of the present disclosure; and
图7是用来实施本公开实施例的划分时段的方法的电子设备的框图。FIG. 7 is a block diagram of an electronic device used to implement the method for dividing time periods according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
本公开提供了一种划分时段的方法,该方法包括流量确定阶段、备选确定阶段和目标组确定阶段。在流量确定阶段中,基于路口的历史流量数据,确定预定时段包括的n个单位时段各自的流量值,其中,n为大于1的整数。在备选确定阶段中,基于流量值,采用备选划分方案划分n个单位时段,得到备选时段组。在目标组确定阶段中,基于备选时段组与采用已有划分方案划分得到的已有时段组之间的组相似度,确定备选时段组 中的目标时段组。The present disclosure provides a method for dividing time periods, which includes a flow determination phase, an alternative determination phase, and a target group determination phase. In the flow determination stage, based on the historical flow data of the intersection, the respective flow values of n unit periods included in the predetermined period are determined, wherein n is an integer greater than 1. In the alternative determination stage, based on the flow value, an alternative division scheme is used to divide n unit time periods to obtain an alternative time period group. In the stage of determining the target group, based on the group similarity between the candidate time period group and the existing time period group divided by the existing division scheme, the target time period group in the candidate time period group is determined.
以下将结合图1对本公开提供的方法和装置的应用场景进行描述。The application scenarios of the method and device provided by the present disclosure will be described below with reference to FIG. 1 .
图1是根据本公开实施例的划分时段的方法和装置的应用场景图。Fig. 1 is an application scenario diagram of a method and device for dividing time periods according to an embodiment of the present disclosure.
如图1所示,该实施例的应用场景100包括监控人员110、终端120、通信基站130和道路交通网。其中道路交通网中可以包括道路及由道路交汇形成的路口。例如,在该场景100中,道路交通网至少包括路口140及交汇形成路口140的道路151、道路152、道路153等。As shown in FIG. 1 , an application scenario 100 of this embodiment includes a monitoring personnel 110 , a terminal 120 , a communication base station 130 and a road traffic network. The road traffic network may include roads and intersections formed by intersections of roads. For example, in the scene 100 , the road traffic network includes at least an intersection 140 and roads 151 , 152 , and 153 that meet to form the intersection 140 .
示例性地,如图1所示,在交汇形成路口140的道路上可以行驶有车辆,车辆可以根据交通指示灯160的指示通过该路口。Exemplarily, as shown in FIG. 1 , there may be vehicles running on a road that merges to form an intersection 140 , and the vehicles may pass through the intersection according to the indication of a traffic light 160 .
在一实施例中,该应用场景100还可以在路口140处设置视频采集设备。该视频采集设备可以为摄像头,用于拍摄道路上行驶的车辆。该视频采集设备可以将拍摄到的视频经由通信基站130发送给终端120。如此,监控人员可以对路况进行实时监控。或者,终端120可以将接收到的视频存储至数据库中。该终端120还可以定期对数据库中存储的视频进行处理,以得到历史时段中路口处的交通流量。In an embodiment, the application scene 100 can also set a video capture device at the intersection 140 . The video acquisition device may be a camera, which is used to photograph vehicles driving on the road. The video collection device can send the captured video to the terminal 120 via the communication base station 130 . In this way, the monitoring personnel can monitor the road conditions in real time. Alternatively, the terminal 120 may store the received video in a database. The terminal 120 can also periodically process the video stored in the database to obtain the traffic flow at the intersection in the historical period.
在一实施例中,在交汇形成路口的道路上行驶的大部分车辆可以集成有导航系统,或者车辆中驾驶员的手持终端安装有导航应用程序。该导航系统或导航应用程序可以通过通信基站130向终端120上传实时数据。终端120例如可以根据该实时数据分析路口处的交通流量。或者,终端可以将实时数据存储至数据库中。终端120还可以定期从数据库中获取历史数据,通过对历史数据的分析得到历史时段中路口处的交通流量。In an embodiment, most of the vehicles driving on the roads that meet to form an intersection may have integrated navigation systems, or the hand-held terminals of the drivers in the vehicles may be installed with navigation applications. The navigation system or navigation application can upload real-time data to the terminal 120 through the communication base station 130 . The terminal 120 can, for example, analyze the traffic flow at the intersection according to the real-time data. Alternatively, the terminal may store real-time data in a database. The terminal 120 can also regularly acquire historical data from the database, and obtain the traffic flow at the intersection in the historical period by analyzing the historical data.
在一实施例中,终端120例如可以根据分析得到的预定时段内的交通流量来确定一天中对交通指示灯160进行信号控制的多个时段,并针对多个时段中的每个时段设定合理的控制信息,从而得到交通指示灯160的配时方案。其中,控制信息例如可以包括交通指示灯160的信号周期和绿信比等。In one embodiment, the terminal 120 can determine multiple time periods in a day for signal control of the traffic light 160 according to the analyzed traffic flow within a predetermined time period, and set a reasonable time period for each time period in the multiple time periods. control information, so as to obtain the timing scheme of the traffic light 160. Wherein, the control information may include, for example, the signal period and green signal ratio of the traffic light 160 .
在一实施例中,终端120例如还可以通过网络与交通指示灯160通信,以根据配时方案控制交通指示灯160的运行,使得交通指示灯160的运行能够更好的满足道路上车辆的行驶需求,有效缓解道路拥堵情况。In one embodiment, the terminal 120 can also communicate with the traffic light 160 through the network, so as to control the operation of the traffic light 160 according to the timing scheme, so that the operation of the traffic light 160 can better meet the needs of vehicles on the road. demand and effectively alleviate road congestion.
需要说明的是,本公开所提供的划分时段的方法一般可以由终端120执行。相应地,本公开所提供的划分时段的装置可以设置于终端120中。或者,本公开所提供的划分时段的方法也可以由与终端120通信连接的服务器执行。相应地,本公开所提供的划分时段的装置可以设置于与终端120通信连接的服务器中。It should be noted that the method for dividing time periods provided in the present disclosure may generally be executed by the terminal 120 . Correspondingly, the device for dividing time periods provided in the present disclosure may be set in the terminal 120 . Alternatively, the method for dividing time periods provided in the present disclosure may also be executed by a server connected in communication with the terminal 120 . Correspondingly, the device for dividing time periods provided in the present disclosure may be set in a server connected in communication with the terminal 120 .
应该理解,图1中的终端、道路、车辆、通信基站和信号指示灯的数目和类型仅仅是示意性的。根据实现需要,可以具有任意数目和类型的终端、道路、车辆、通信基站和信号指示灯。It should be understood that the numbers and types of terminals, roads, vehicles, communication base stations, and signal indicator lights in FIG. 1 are only schematic. According to the implementation requirements, there can be any number and types of terminals, roads, vehicles, communication base stations and signal lamps.
以下将结合图1,通过图2~图5对本公开提供的划分时段的方法进行详细描述。The method for dividing time periods provided by the present disclosure will be described in detail below with reference to FIG. 1 and FIG. 2 to FIG. 5 .
图2是根据本公开实施例的划分时段的方法的流程示意图。Fig. 2 is a schematic flowchart of a method for dividing time periods according to an embodiment of the present disclosure.
如图2所示,该实施例的划分时段的方法200可以包括操作S210~操作S230。As shown in FIG. 2 , the method 200 for dividing time periods in this embodiment may include operation S210 to operation S230.
在操作S210,基于路口的历史流量数据,确定预定时段包括的n个单位时段各自的流量值。In operation S210, based on the historical traffic data of the intersection, the respective traffic values of n unit periods included in the predetermined period are determined.
根据本公开的实施例,预定时段的长度可以为一天,即预定时段为0:00~24:00。或者,该预定时段也可以为6:00~22:00等对配时方案更为敏感的时段。或者,预定时段也可以为属于某一类型的较长时段中的某个子时段,以此提高时段划分的精度。例如,某一类型可以为工作日类型、节假日类型、调休日类型、周末类型等。例如,该预定时段可以为工作日的全天时段,或者可以为节假日、双休日等的全天时段。According to an embodiment of the present disclosure, the length of the predetermined time period may be one day, that is, the predetermined time period is from 0:00 to 24:00. Alternatively, the predetermined time period may also be a time period that is more sensitive to the timing scheme, such as 6:00 to 22:00. Alternatively, the predetermined period may also be a certain sub-period in a longer period belonging to a certain type, so as to improve the accuracy of period division. For example, a certain type may be a weekday type, a holiday type, a holiday day type, a weekend type, and the like. For example, the predetermined time period may be an all-day period on weekdays, or may be an all-day period on holidays, weekends and the like.
根据本公开的实施例,路口的历史流量数据例如可以包括与预定时段对应的一个或多个历史时段的流量数据。例如,若预定时段为属于工作日的周一的全天时段,则路口的历史流量数据可以包括当前日期之前的一个或多个工作日的流量数据,也可以包括当前日期之前的一个或多个周一的流量数据。According to an embodiment of the present disclosure, the historical traffic data of the intersection may include, for example, traffic data of one or more historical time periods corresponding to a predetermined time period. For example, if the predetermined time period is the whole day period of a Monday that belongs to a working day, the historical traffic data of the intersection may include the traffic data of one or more working days before the current date, and may also include one or more Mondays before the current date traffic data.
根据本公开的实施例,路口的历史流量数据可以包括交汇形成路口的多个道路中,每个道路在各个单位时段的流量数据。该流量数据例如可以包括车流量数据、行人流量数据、非机动车的流量数据等。其中,单位时段的长度例如可以为5min、10min、15min或30min等根据实际需求设定的长度,本公开对此不做限定。该历史流量数据可以从地图导航系统提供的接口或交管部门提供的数据接口处获取。According to an embodiment of the present disclosure, the historical traffic data of the intersection may include the traffic data of each road in each unit period among multiple roads that meet to form the intersection. The flow data may include, for example, vehicle flow data, pedestrian flow data, non-motor vehicle flow data, and the like. Wherein, the length of the unit time period may be, for example, 5 min, 10 min, 15 min, or 30 min, which is set according to actual needs, which is not limited in the present disclosure. The historical traffic data can be obtained from the interface provided by the map navigation system or the data interface provided by the traffic control department.
在得到路口的历史流量数据后,可以将路口处所有道路在各个单位时段的流量数据的平均值,作为该路口在各个单位时段的流量值。或者,若路口的历史流量数据包括与预定时段对应的多个历史时段的流量数据,则可以针对每个历史时段得到一个路口在各个单位时段的流量值,针对每个单位时段,总计可以得到多个流量值。然后,将针对每个单位时段的多个流量值的平均值,作为该每个单位时段的流量值。After obtaining the historical flow data of the intersection, the average value of the flow data of all roads at the intersection in each unit period can be taken as the flow value of the intersection in each unit period. Or, if the historical traffic data of the intersection includes the traffic data of multiple historical periods corresponding to the predetermined time period, the traffic value of an intersection in each unit period can be obtained for each historical period, and for each unit period, the total can be obtained. flow value. Then, the average value of the plurality of flow values for each unit period is used as the flow value for each unit period.
根据本公开的实施例,在得到n个单位时段的流量值后,例如还可以对每个单位时段的流量值进行单位转换,得到以个数/h为单位的流量值。其中,n为大于1的整数。According to an embodiment of the present disclosure, after obtaining the flow values of n unit periods, for example, unit conversion may be performed on the flow values of each unit period to obtain flow values in units of number/h. Wherein, n is an integer greater than 1.
在操作S220,基于流量值,采用备选划分方案划分n个单位时段,得到备选时段组。In operation S220, based on the traffic value, the n unit time periods are divided using an alternative division scheme to obtain an alternative time period group.
根据本公开的实施例,备选划分方案例如可以设定有划分n个单位时段得到的时段个数。或者,备选划分方案可以设定有划分后各时段包括的单位时段的个数的阈值。例如,划分得到的时段中每个时段包括的单位时段的个数应大于第一预定值,和/或划分得到的时段中每个时段包括的单位时段的个数应小于第二预定值。或者,备选划分方案可以设定有每个时段包括的单位时段彼此之间流量值的差值不能大于差值阈值,以此保证划分得到的备选时段组的合理性。可以理解的是,上述备选划分方案可以设定有一个或多个划分条件,该划分条件的个数和类型可以根据实际需求进行设定,本公开对此不做限定。According to an embodiment of the present disclosure, the alternative division scheme may be set with, for example, the number of time periods obtained by dividing n unit time periods. Alternatively, the alternative division scheme may set a threshold value for the number of unit periods included in each divided period. For example, the number of unit periods included in each period in the divided periods should be greater than a first predetermined value, and/or the number of unit periods included in each period in the divided periods should be smaller than a second predetermined value. Alternatively, the alternative division scheme may be set such that the difference of flow values between the unit periods included in each period cannot be greater than the difference threshold, so as to ensure the rationality of the divided alternative period groups. It can be understood that one or more division conditions may be set in the above alternative division scheme, and the number and type of the division conditions may be set according to actual requirements, which is not limited in the present disclosure.
根据本公开的实施例,备选划分方案还可以由工作人员根据得到的n个单位时段的流量值来进行设定。According to an embodiment of the present disclosure, the alternative division scheme may also be set by the staff according to the obtained flow values of n unit periods.
通过采用备选划分方案划分n个单位时段,例如可以得到一个或多个备选时段组。每个备选时段组中包括多个时段,每个时段包括至少一个单位时段。By dividing n unit time periods by using an alternative division scheme, for example, one or more alternative time period groups can be obtained. Each candidate time period group includes a plurality of time periods, and each time period includes at least one unit time period.
示例性地,可以为n个单位时段根据时间先后顺序进行编号,得到编号分别为1~n的n个单位时段。每个备选时段中包括的多个时段可以按时间先后顺序排列。针对每个备选时段中相邻的两个时段,可以将排在较前位置的时段所包括的至少一个单位时段的最大编码作为表示该相邻的两个时段的划分点的标识I i。如此,一个备选时段组可以包括(k-1)个划分点,k为该一个备选时段包括的多个时段的个数,i为大于等于1、且小于等于(k-1)的值。 Exemplarily, the n unit periods may be numbered according to chronological order to obtain n unit periods numbered 1 to n respectively. Multiple time periods included in each candidate time period may be arranged in chronological order. For two adjacent time periods in each candidate time period, the maximum code of at least one unit period included in the time period ranked earlier may be used as the identifier I i representing the division point of the two adjacent time periods. In this way, an alternative time period group may include (k-1) dividing points, k is the number of multiple time periods included in the one candidate time period, and i is a value greater than or equal to 1 and less than or equal to (k-1) .
在操作S230,基于备选时段组与采用已有划分方案划分得到的已有时段组之间的组相似度,确定备选时段组中的目标时段组。In operation S230, a target time period group in the candidate time period group is determined based on the group similarity between the candidate time period group and the existing time period group divided by using the existing division scheme.
根据本公开的实施例,已有划分方案可以包括交通指示灯当前采用的配时方案中的时段划分方案。该已有划分方案划分得到的已有时段组同样包括多个时段,基于与备选时段组包括划分点的原理类似的原理,该已有划分方案中同样包括至少一个划分点。According to an embodiment of the present disclosure, the existing division scheme may include a period division scheme in the timing scheme currently adopted by the traffic lights. The existing time period group divided by the existing division scheme also includes a plurality of time periods. Based on a principle similar to the principle that the candidate time period group includes division points, the existing division scheme also includes at least one division point.
根据本公开的实施例,可以根据备选时段组包括的划分点与已有时段组包括的划分点之间的距离,来确定备选时段组与已有时段组之间的组相似度。在备选时段组或已有时段组包括多个划分点的情况下,可以计算备选时段组中的每个划分点与已有时段组中的每个划分点两两之间的距离。随后,基于得到的所有距离的平均值来确定组相似度。例如,可以将距离的平均值进行归一化处理,将归一化处理得到的值作为组相似度。According to an embodiment of the present disclosure, the group similarity between the candidate time period group and the existing time period group may be determined according to the distance between the division points included in the candidate time period group and the division points included in the existing time period group. In the case that the candidate time period group or the existing time period group includes multiple division points, the distance between each division point in the candidate time period group and each division point in the existing time period group may be calculated pair by pair. Subsequently, the group similarity is determined based on the average of all distances obtained. For example, the average value of the distance can be normalized, and the value obtained by the normalization can be used as the group similarity.
根据本公开的实施例,若备选时段组为多个,则可以从多个备选时段组中选择与已有时段组之间的组相似度最大的备选时段组,作为目标时段组。该目标时段组中的多个 时段即为划分时段的方法的划分结果。According to an embodiment of the present disclosure, if there are multiple candidate time period groups, the candidate time period group with the largest group similarity with the existing time period group may be selected from the multiple candidate time period groups as the target time period group. Multiple time periods in the target time period group are the division results of the method for dividing time periods.
因此,本公开实施例的方法,通过参考历史流量数据来确定供筛选的备选时段组,并通过考虑备选时段组与已有时段组的相似度来确定作为划分结果的目标时段组,可以有效避免错过与原时段划分方案接近的次优解的情况。因此,可以提高划分时段的准确度和合理性,为缓解交通压力、提高交通资源利用率提供有利条件。Therefore, in the method of the embodiment of the present disclosure, by referring to the historical traffic data to determine the candidate time period group for screening, and by considering the similarity between the candidate time period group and the existing time period group to determine the target time period group as the division result, it can Effectively avoid missing the suboptimal solution that is close to the original time division scheme. Therefore, the accuracy and rationality of time division can be improved, and favorable conditions can be provided for alleviating traffic pressure and improving the utilization rate of traffic resources.
图3是根据本公开实施例的采用备选划分方案划分n个单位时段,得到备选时段组的原理示意图。Fig. 3 is a schematic diagram of the principle of dividing n unit time periods by adopting an alternative division scheme to obtain an alternative time period group according to an embodiment of the present disclosure.
根据本公开的实施例,备选划分方案例如可以提供有多个备选数目,该备选数目为划分n个单位时段得到的时段个数。该实施例可以针对每个备选数目确定一个备选时段组。通过该方式,在确定目标时段组时,可以对划分得到的时段个数和划分方案均进行挑选。从而可以进一步提高得到的目标时段组的精度。According to an embodiment of the present disclosure, the alternative division scheme may, for example, provide a plurality of alternative numbers, where the alternative number is the number of time periods obtained by dividing n unit time periods. In this embodiment, one candidate period group can be determined for each candidate number. In this way, when determining the target time period group, both the number of divided time periods and the division scheme can be selected. Therefore, the accuracy of the obtained target period group can be further improved.
例如,设定备选数目为k,则对于每个备选数目,可以基于流量值将前文描述的n个单位时段划分为k个时段,从而得到针对每个备选数目的备选时段组。其中,k为大于等于1、且小于等于n的整数。For example, if the number of candidates is set to be k, then for each number of candidates, the n unit time periods described above can be divided into k time periods based on the flow value, so as to obtain a group of time periods for each candidate number. Wherein, k is an integer greater than or equal to 1 and less than or equal to n.
在一实施例中,可以将1~n共计n个整数作为n个备选数目,针对每个备选数目得到一个备选时段组。如此,可以使得备选时段组涵盖所有划分情况可能得到的时段个数。In an embodiment, a total of n integers from 1 to n may be used as n candidate numbers, and one candidate period group is obtained for each candidate number. In this way, the candidate time period group can cover the number of time periods that may be obtained in all division situations.
根据本公开的实施例,在确定每个备选数目的备选时段组时,可以根据时段组中时段的分布情况,为基于流量值划分n个单位时段所得到的每个时段组分配损失。如此,若将n个单位时段划分为k个时段可以得到p个时段组,则可以得到p个损失。最终将该p个损失中的最小损失对应的时段组作为针对备选数目k的备选时段组。如此,可以提高得到的备选时段组的精度。According to an embodiment of the present disclosure, when each candidate number of candidate time period groups is determined, according to the distribution of time periods in the time period groups, losses may be assigned to each time period group obtained by dividing n unit periods based on flow values. In this way, if n unit time periods are divided into k time periods to obtain p time period groups, then p losses can be obtained. Finally, the period group corresponding to the smallest loss among the p losses is used as the candidate period group for the candidate number k. In this way, the accuracy of the obtained candidate period groups can be improved.
示例性地,为每个时段组分配的损失可以根据将单位时段划分为一个时段的偏差来确定。例如,对于每个时段组中的每个时段,可以先计算该每个时段包括的单位时段的编号的平均值。然后计算该每个时段包括的所有单位时段的编号与该平均值的差值的平方和。将该平方和作为针对该每个时段的偏差,即将该每个时段中最大编号的单位时段作为划分点的损失。最后,可以将每个时段组中所有时段的偏差求和,得到为每个时段组分配的损失。Exemplarily, the loss allocated to each period group may be determined according to the deviation of dividing a unit period into one period. For example, for each time period in each time period group, the average value of the numbers of the unit time periods included in each time period may be calculated first. Then calculate the sum of the squares of the differences between the numbers of all unit periods included in each period and the average value. The sum of squares is used as the deviation for each period, that is, the unit period with the largest number in each period is used as the loss of the dividing point. Finally, the biases of all time periods in each time period group can be summed to obtain the assigned loss for each time period group.
在一实施例中,可以采用动态规划算法等来确定每个备选数目的备选时段组。In an embodiment, a dynamic programming algorithm or the like may be used to determine each candidate number of candidate period groups.
例如,如图3所示,在该实施例300中,在得到n个单位时段各自的流量值301后,可以通过操作S310~操作S360来确定每个备选数目的备选时段组。For example, as shown in FIG. 3 , in this embodiment 300 , after the respective flow values 301 of n unit periods are obtained, each candidate number of candidate period groups can be determined through operations S310 to S360 .
例如,在该实施例300中,可以先将j赋值为k。随后执行操作S310,确定将n个单位时段中的前(j-1)个单位时段划分为(k-1)个时段的最小损失,作为第一损失。For example, in the embodiment 300, j may be assigned as k first. Subsequently, operation S310 is performed to determine the minimum loss for dividing the first (j-1) unit periods among the n unit periods into (k-1) periods as the first loss.
根据本公开的实施例,在j为k的情况下,将前(j-1)个单位时段划分为(k-1)个时段的划分方案仅为一个,则可以确定第一损失为将前(j-1)个单位时段中的每个单位时段划分为一个时段的损失。该第一损失可以为将每个单位时段划分为一个时段的偏差。According to an embodiment of the present disclosure, when j is k, there is only one division scheme for dividing the previous (j-1) unit periods into (k-1) periods, then the first loss can be determined as dividing the previous Each of the (j-1) unit periods is divided into a period of loss. The first loss may be a deviation of dividing each unit period into a period.
在执行操作S310的同时,可以执行操作S320,确定将n个单位时段中的后(n-j+1)个单位时段划分为一个时段的损失,作为第二损失。该操作S320还可以在操作S310之前执行,也可以在操作S310之后执行,本公开对此不做限定。While performing operation S310, operation S320 may be performed to determine a loss of dividing the last (n-j+1) unit periods of the n unit periods into one period as the second loss. Operation S320 may also be performed before operation S310, or may be performed after operation S310, which is not limited in the present disclosure.
根据本公开的实施例,该第二损失可以采用将后(n-j+1)个单位时段划分为一个时段的偏差来确定。例如,可以先确定后(n-j+1)个单位时段的(n-j+1)个流量值的平均值。然后基于该(n-j+1)个流量值分别相对于平均值的偏差,确定将后(n-j+1)个单位时段划分为一个时段的损失。According to an embodiment of the present disclosure, the second loss may be determined by using a deviation that divides the last (n-j+1) unit periods into one period. For example, the average value of (n-j+1) flow values of the next (n-j+1) unit periods may be determined first. Then, based on the respective deviations of the (n-j+1) flow values relative to the average value, the loss of dividing the next (n-j+1) unit periods into one period is determined.
其中,该(n-j+1)个流量值分别相对于平均值的偏差例如可以为该(n-j+1)个流量值分别与平均值之间的差值的平方,也可以为该(n-j+1)个流量值分别与平均值之间的差值的绝对值。在得到该(n-j+1)个流量值分别相对于平均值的偏差后,可以将偏差的和或偏差的平均值作为第二损失。Wherein, the deviations of the (n-j+1) flow values relative to the average value can be, for example, the square of the difference between the (n-j+1) flow values and the average value, or can be the The absolute value of the difference between the (n-j+1) flow values and the mean value. After obtaining the respective deviations of the (n-j+1) flow values relative to the average value, the sum of the deviations or the average value of the deviations can be used as the second loss.
例如,按时间顺序排列的第i个单位时段到第j个单位时段被划分为一个时段的偏差,例如可以采用以下公式(1)来表示:For example, the i-th unit period to the j-th unit period arranged in chronological order is divided into a deviation of one period, for example, the following formula (1) can be used to express:
Figure PCTCN2021133148-appb-000001
Figure PCTCN2021133148-appb-000001
其中,X i为第i个单位时段的流量值,
Figure PCTCN2021133148-appb-000002
为第i个单位时段的流量值到第j个单位时段的流量值的平均值。
Among them, X i is the flow value of the i-th unit period,
Figure PCTCN2021133148-appb-000002
is the average value from the flow value of the i-th unit period to the flow value of the j-th unit period.
在执行操作S310和操作S320后,可以执行操作S330,基于第一损失和第二损失,确定以n个单位时段中的第j个单位时段作为备选划分点的损失。After performing operation S310 and operation S320, operation S330 may be performed, based on the first loss and the second loss, to determine a loss using the jth unit period among the n unit periods as a candidate division point.
根据本公开的实施例,可以将第一损失和第二损失的和,作为第j个单位时段作为备选划分点的损失。通过该操作S330可以确定将n个单位时段划分为k个时段的最后一个划分点。通过操作S310中确定第一损失的流程,可以确定将n个单位时段划分为k个时段的前(k-2)的划分点。如此,通过操作S310~操作S330,可以得到将n个单位时段划分为k个时段的一种划分方案。According to an embodiment of the present disclosure, the sum of the first loss and the second loss may be used as the loss of the jth unit period as the candidate division point. Through this operation S330, the last division point for dividing n unit periods into k periods may be determined. Through the process of determining the first loss in operation S310, the first (k-2) dividing points for dividing n unit periods into k periods may be determined. In this way, through operations S310 to S330, a division scheme for dividing n unit time periods into k time periods can be obtained.
在执行操作S330后,可以先执行操作S340,确定j是否等于n。该实施例以k为作 为j的初始值,是由于在将n个单位时段划分为k个时段的所有方案中,k个时段的最后一个划分点最靠前的位置即为(k-1)。因此,若j小于n,则说明还没有搜索完k个时段的最后一个划分点的所有情况。则通过操作S350将j置为j+1,并返回执行操作S310。即相当于将k个时段的最后一个划分点向后移动一个单位时段,继续搜索未搜索到的情况。After operation S330 is performed, operation S340 may be performed first to determine whether j is equal to n. In this embodiment, k is used as the initial value of j, because in all schemes of dividing n unit periods into k periods, the most front position of the last division point of k periods is (k-1) . Therefore, if j is less than n, it means that all cases of the last division point of k time periods have not been searched. Then set j to j+1 through operation S350, and return to perform operation S310. That is to say, it is equivalent to moving the last division point of the k time periods backward by one unit time period, and continuing to search for unsearched situations.
若j等于n,则说明已经搜索完k个时段的最后一个划分点的所有情况,共计可以得到(n-k+1)个损失。如此,可以执行操作S360,基于(n-k+1)个损失中的最小损失所对应的备选划分点,将n个单位时段划分为k个时段。根据全文描述可知,对于每一个j,可以得到一种划分方案,对于每一种划分方案,会得到一个以第j个单位时段作为备选划分点的损失。因此,在确定(n-k+1)个损失中的最小损失后,即可得到对于备选数目k的最佳划分方案,该实施例将采用该对于备选数目k的最佳划分方案得到的时段组作为每个备选数目的备选时段组。If j is equal to n, it means that all cases of the last division point of k periods have been searched, and a total of (n-k+1) losses can be obtained. In this way, operation S360 may be performed to divide n unit time periods into k time periods based on the candidate division point corresponding to the smallest loss among (n-k+1) losses. According to the full text description, for each j, a division scheme can be obtained, and for each division scheme, a loss with the jth unit period as an alternative division point will be obtained. Therefore, after determining the minimum loss among the (n-k+1) losses, the optimal division scheme for the candidate number k can be obtained, and this embodiment will adopt the optimal division scheme for the candidate number k to obtain The period group of is used as the alternative period group for each alternative number.
根据本公开的实施例,在j大于k的情况下,将(j-1)个单位时段划分为(k-1)个时段的划分方案可以为多个,从而可以得到多个划分结果。该实施例基于前文为每个备选时段组分配损失的原理,为每个划分结果分配损失。最终将多个划分结果的多个损失中的最小损失作为第一损失。According to an embodiment of the present disclosure, when j is greater than k, there may be multiple division schemes for dividing (j-1) unit time periods into (k-1) time periods, so that multiple division results may be obtained. In this embodiment, losses are allocated to each division result based on the foregoing principle of allocating losses to each candidate period group. Finally, the smallest loss among the multiple losses of the multiple division results is taken as the first loss.
根据本公开的实施例,在备选数目为2的情况,上述操作S310~操作S360的实现原理可以参考以下公式(2):According to an embodiment of the present disclosure, when the number of alternatives is 2, the implementation principle of the above operation S310 to operation S360 can refer to the following formula (2):
minL[c(n,2)]=min j∈[2,n]{SubL(1,j-1)+SubL(j,n)};公式(2) minL[c(n, 2)] = min j∈[2, n] {SubL(1, j-1)+SubL(j, n)}; formula (2)
其中,SubL(1,j-1)为将前(j-1)个单位时段划分为一个时段的损失,SubL(j,n)为将第j个单位时段~第n个单位时段划分为一个时段的损失。该SubL(1,j-1)与SubL(j,n)可以采用前文描述的公式(1)计算得到。L[c(n,2)]为将n个单位时段划分为两个时段的损失。Among them, SubL(1, j-1) is the loss of dividing the first (j-1) unit periods into one period, and SubL(j, n) is the division of the j-th unit period to the n-th unit period into one time period loss. The SubL(1, j-1) and SubL(j, n) can be calculated by using the formula (1) described above. L[c(n, 2)] is the loss for dividing n unit periods into two periods.
以此类推,在备选数目为k的情况下,上述操作S310~操作S360的实现原理可以参考以下公式(3):By analogy, when the number of alternatives is k, the implementation principles of the above operation S310 to operation S360 can refer to the following formula (3):
minL[c(n,k)]=min j∈[k,n]{minL[c(j-1,k-1)]+SubL(j,n)};公式(3) minL[c(n,k)]=min j∈[k,n] {minL[c(j-1,k-1)]+SubL(j,n)}; formula (3)
其中,minL[c(j-1,k-1)]即为将前(j-1)个单位时段划分为(k-1)个时段的损失。其中,在k=2的情况下,由于将前(j-1)个单位时段划分为一个时段仅有一种方案,因此,此种情况下,公式(3)与公式(2)为等价公式。Among them, minL[c(j-1, k-1)] is the loss of dividing the previous (j-1) unit periods into (k-1) periods. Among them, in the case of k=2, since there is only one solution for dividing the first (j-1) unit periods into one period, in this case, formula (3) and formula (2) are equivalent formulas .
图4是根据本公开实施例的确定以第j个单位时段作为备选划分点的损失的原理示 意图。Fig. 4 is a schematic diagram of the principle of determining the loss with the jth unit period as an alternative dividing point according to an embodiment of the present disclosure.
根据本公开的实施例,在确定以n个单位时段中的第j个单位时段作为备选划分点的损失时,例如还可以考虑以第j个单位时段作为备选划分点时,该备选划分点与已有划分方案之间的相似度。如此,可以使得为每个备选数目确定的备选时段组与已有时段组尽可能相近。并因此可以进一步增加找到与原时段划分方案接近的次优解的几率。According to an embodiment of the present disclosure, when determining the loss of the j-th unit period in the n unit periods as an alternative division point, for example, when the j-th unit period is used as an alternative division point, the alternative The similarity between the partition point and the existing partition scheme. In this way, the candidate time period group determined for each candidate number can be as close as possible to the existing time period group. And thus can further increase the probability of finding a suboptimal solution close to the original time division scheme.
例如,如图4所示,该实施例400在确定以第j个单位时段作为备选划分点的损失410时,除了考虑第一损失420和第二损失430外,还可以考虑该第j个单位时段与已有时段组之间的第二相似度440。For example, as shown in FIG. 4 , in this embodiment 400, when determining the loss 410 with the jth unit period as an alternative division point, in addition to considering the first loss 420 and the second loss 430, the jth unit period can also be considered The second similarity 440 between the unit time period and the existing time period group.
其中,第二相似度440例如可以根据以该第j个单位时段作为备选划分点时,该备选划分点与已有时段组中的每个划分点之间的差异来确定。Wherein, the second similarity 440 may be determined, for example, according to the difference between the candidate division point and each division point in the existing time period group when the jth unit period is used as the candidate division point.
例如,以I j 401表示第j个单位时段所作为的备选划分点,设定已有时段组中的各个划分点为
Figure PCTCN2021133148-appb-000003
则可以先确定I j 401与
Figure PCTCN2021133148-appb-000004
之间的差异,得到一个差异dif 1 404,以此类推,确定I j401与
Figure PCTCN2021133148-appb-000005
之间的差异,得到一个差异dif m 405,总计得到m个差异。然后基于该m个差异,确定第二相似度。其中,m为已有时段组中的划分点总数。
For example, using I j 401 to represent the j-th unit period as an alternative division point, set each division point in the existing period group as
Figure PCTCN2021133148-appb-000003
Then you can first determine I j 401 and
Figure PCTCN2021133148-appb-000004
The difference between, get a difference dif 1 404, and so on, determine I j 401 with
Figure PCTCN2021133148-appb-000005
The difference between, get a difference dif m 405, get m differences in total. Then based on the m differences, a second degree of similarity is determined. Among them, m is the total number of dividing points in the existing time period group.
例如,可以将该m个差异的和,作为第二相似度。或者,可以将该m个差异的平均值,作为第二相似度。或者,可以将m个差异中的最大差异作为第二相似度。For example, the sum of the m differences may be used as the second similarity. Alternatively, the average of the m differences may be used as the second similarity. Alternatively, the largest difference among the m differences may be used as the second similarity.
示例性地,可以采用以下公式(4)来确定备选划分点与已有时段组中的划分点之间的差异。并采用以下公式(5)来确定第二相似度。Exemplarily, the following formula (4) may be used to determine the difference between the candidate division point and the division points in the existing time period group. And use the following formula (5) to determine the second similarity.
Figure PCTCN2021133148-appb-000006
Figure PCTCN2021133148-appb-000006
Figure PCTCN2021133148-appb-000007
Figure PCTCN2021133148-appb-000007
其中,s(I j,C o)表示备选划分点I j与已有时段组C o之间的相似度,
Figure PCTCN2021133148-appb-000008
表示已有时段组C o中的第i个划分点。
Among them, s(I j , C o ) represents the similarity between the candidate division point I j and the existing period group C o ,
Figure PCTCN2021133148-appb-000008
Indicates the i-th dividing point in the existing period group C o .
根据本公开的实施例,在确定备选划分点与已有时段组中的每个划分点之间的差异时,例如可以为该差异设定一个阈值。以此避免因该备选划分点与已有时段组中靠前的划分点差异较大,导致对相似度的参考价值低的情况。从而可以提高确定的第二相似度及第j个单位时段作为备选划分点的损失的准确性。According to an embodiment of the present disclosure, when determining the difference between the candidate division point and each division point in the existing period group, for example, a threshold may be set for the difference. In this way, the situation that the reference value for the similarity is low due to the large difference between the candidate division point and the previous division point in the existing time period group is avoided. Therefore, the accuracy of the determined second similarity and the loss of the jth unit period as a candidate division point can be improved.
例如,在确定备选划分点与已有时段组中的每个划分点之间的差异时,可以先确定备选划分点与已有时段中的每个划分点之间的差值绝对值,得到第一差值。例如,该第一差值可以采用前文描述的公式(4)计算得到。然后,确定该第一差值与预定阈值之 间的差值绝对值,得到第二差值。最后,确定该第二差值和预定阈值中的较小者,作为备选划分点与已有时段组中的每个划分点之间的差异。For example, when determining the difference between the candidate division point and each division point in the existing period group, the absolute value of the difference between the candidate division point and each division point in the existing period group may be determined first, Get the first difference. For example, the first difference can be calculated by using the formula (4) described above. Then, the absolute value of the difference between the first difference and a predetermined threshold is determined to obtain a second difference. Finally, the smaller of the second difference and a predetermined threshold is determined as the difference between the candidate division point and each division point in the existing time period group.
例如,可以采用以下公式(6)计算得到备选划分点与已有时段组中的第i个划分点之间的差异:For example, the following formula (6) can be used to calculate the difference between the candidate division point and the i-th division point in the existing time period group:
Figure PCTCN2021133148-appb-000009
Figure PCTCN2021133148-appb-000009
其中,T为预定阈值,该预定阈值例如可以为4等根据实际需求设定的值,本公开对此不做限定。Wherein, T is a predetermined threshold, which may be, for example, 4 or other value set according to actual needs, which is not limited in the present disclosure.
图5是根据本公开实施例的确定备选时段组中的目标时段组的原理示意图。Fig. 5 is a schematic diagram of the principle of determining a target time period group in an alternative time period group according to an embodiment of the present disclosure.
根据本公开的实施例,在从多个备选时段组中选择目标时段组之前,可以先确定备选时段组中的每个时段组与已有时段组之间的组相似度。According to an embodiment of the present disclosure, before selecting a target time period group from multiple candidate time period groups, the group similarity between each time period group in the candidate time period groups and an existing time period group may be determined first.
其中,可以根据每个时段组中的各个划分点与已有时段组之间的相似度,来确定每个时段组与已有时段组之间的相似度。例如,可以先确定每个时段组中的每个划分点与已有时段组之间的相似度,得到至少一个第一相似度。该第一相似度的计算方法可以采用与前文计算第二相似度的方法类似的方法,在此不再赘述。该第一相似度的个数与每个时段组中时段的个数相同。Wherein, the similarity between each time period group and the existing time period group may be determined according to the similarity between each dividing point in each time period group and the existing time period group. For example, the similarity between each dividing point in each time period group and an existing time period group may be determined first to obtain at least one first similarity. The method for calculating the first similarity may adopt a method similar to the method for calculating the second similarity described above, which will not be repeated here. The number of the first similarities is the same as the number of time periods in each time period group.
其中,可以将该至少一个第一相似度的平均值作为每个时段组与已有时段组之间的组相似度。或者,可以将该至少一个第一相似度相对于目标时段个数的平均值,作为每个时段组与已有时段组之间的组相似度。其中,目标时段个数为每个时段组的时段个数与已有时段组的时段个数中的较大值。通过计算平均值的过程,可以提高不同时段组之间的可比性,便于选择目标时段组。Wherein, the average value of the at least one first similarity can be used as the group similarity between each time period group and the existing time period group. Alternatively, the average value of the at least one first similarity relative to the number of target time periods may be used as the group similarity between each time period group and an existing time period group. Wherein, the target number of time periods is the greater value between the number of time periods in each time period group and the number of time periods in an existing time period group. Through the process of calculating the average value, the comparability between different time period groups can be improved, and it is convenient to select the target time period group.
例如,每个时段组与已有时段组之间的组相似度可以采用以下公式(7)来计算得到:For example, the group similarity between each time period group and an existing time period group can be calculated using the following formula (7):
Figure PCTCN2021133148-appb-000010
Figure PCTCN2021133148-appb-000010
其中,S(C,C o)为组相似度,k为每个时段组中的时段个数,k o为已有时段组中的时段个数。s(I i,C o)表示每个时段组中的第i个划分点与已有时段组之间的相似度。 Among them, S(C, C o ) is the group similarity, k is the number of time periods in each time period group, k o is the number of time periods in the existing time period group. s(I i , C o ) represents the similarity between the i-th dividing point in each time period group and the existing time period group.
示例性地,在通过上述方式得到组相似度后,例如还可以通过线性变换,将该组相似度标准化至取值区间[0,1]。Exemplarily, after the group similarity is obtained in the above manner, the group similarity can also be standardized to a value interval [0, 1], for example, through linear transformation.
根据本公开的实施例,在确定备选时段组中的目标时段组时,除了考虑与已有时段 组的组相似度外,例如还可以考虑分组偏差。并基于该分组偏差与组相似度,确定每个备选时段组的分组损失。最后,根据分组损失,从备选时段组中挑选目标时段组。如此,可以提高得到的目标时段组的准确性。According to an embodiment of the present disclosure, when determining the target time period group in the candidate time period group, in addition to considering the group similarity with the existing time period group, for example, the grouping deviation can also be considered. And based on the grouping deviation and group similarity, the grouping loss of each candidate time period group is determined. Finally, according to the grouping loss, the target period group is selected from the candidate period groups. In this way, the accuracy of the obtained target period group can be improved.
例如,如图5所示,该实施例500可以设定备选时段组包括时段组C 1 501~时段组C n 502,对于该n个时段组中的每个时段组,可以分别得到一个分组偏差,从而得到分组偏差511~分组偏差512。同时采用前文描述的计算组相似度的方法,可以计算得到每个时段组与已有时段组C o503之间的组相似度,得到组相似度521~组相似度522。然后,根据组相似度521和分组偏差511,可以得到时段组C 1 501的分组损失531。以此类推,根据组相似度522和分组偏差512,可以得到时段组C n 502的分组损失532。最后,可以根据该分组损失531~分组损失532,确定时段组C 1 501~时段组C n 502中的目标时段组540。例如,可以通过比较分组损失531~分组损失532彼此之间的大小关系,来确定目标时段组540。例如,若时段组C 1 501的分组损失最小,则可以确定该时段组C 1 501为目标时段组540。 For example, as shown in Figure 5, in this embodiment 500, the alternative time period groups can be set to include time period group C 1 501 to time period group C n 502, and for each time period group in the n time period groups, a grouping can be obtained respectively Deviation, so as to obtain the grouping deviation 511~grouping deviation 512. At the same time, by using the method for calculating group similarity described above, the group similarity between each time period group and the existing time period group C o 503 can be calculated, and the group similarity 521-522 can be obtained. Then, according to the group similarity 521 and the group deviation 511 , the group loss 531 of the period group C 1 501 can be obtained. By analogy, according to the group similarity 522 and the group deviation 512, the group loss 532 of the period group C n 502 can be obtained. Finally, the target period group 540 in the period group C 1 501 -the period group C n 502 can be determined according to the group loss 531 -the group loss 532 . For example, the target time period group 540 may be determined by comparing the magnitude relationship between the packet loss 531 to the packet loss 532 . For example, if the packet loss of time period group C 1 501 is the smallest, then this time period group C 1 501 may be determined as the target time period group 540 .
根据本公开的实施例,分组偏差例如可以根据每个时段组中的各个时段划分为一个时段的损失的和来确定。在一实施例中,可以将每个时段组中的各个时段划分为一个时段的损失的和与n个单位时段未被划分时的未分段损失之间的比值来表示分组偏差,以此更为客观的反映不同时段组分组的损失的相对大小关系。According to an embodiment of the present disclosure, the grouping deviation may be determined, for example, according to a sum of losses of dividing each time period in each time period group into one time period. In an embodiment, the grouping deviation can be represented by the ratio between the sum of the loss sum of dividing each time period in each time period group into one time period and the unsegmented loss when n unit time periods are not divided, so as to further In order to objectively reflect the relative size relationship of the group losses in different time periods.
例如,可以采用前文描述的公式(1)计算得到每个时段组中的每个时段划分为一个时段的损失,对于每个时段组,可以得到至少一个分段损失。在至少一个分段损失为多个的情况下,可以采用以下公式(8)得到该至少一个分段损失的和:For example, the formula (1) described above can be used to calculate the loss that each time period in each time period group is divided into one time period, and for each time period group, at least one segmentation loss can be obtained. In the case where at least one segment loss is multiple, the following formula (8) can be used to obtain the sum of the at least one segment loss:
Figure PCTCN2021133148-appb-000011
Figure PCTCN2021133148-appb-000011
其中,SD(i,j) v表示每个时段组包括的k个时段中第v个时段被划分为一个时段的损失。SDC为该至少一个分段损失的和。 Among them, SD(i, j) v represents the loss that the v-th period among the k periods included in each period group is divided into one period. SDC is the sum of the at least one segment loss.
类似地,n个单位时段未被划分时的未分段损失例如可以采用以下公式(9)计算得到:Similarly, the unsegmented loss when n unit periods are not divided can be calculated using the following formula (9), for example:
Figure PCTCN2021133148-appb-000012
Figure PCTCN2021133148-appb-000012
其中,
Figure PCTCN2021133148-appb-000013
为n个单位时段的n个流量值的平均值,SDA为未分段损失。
in,
Figure PCTCN2021133148-appb-000013
is the average value of n flow values in n unit periods, and SDA is the unsegmented loss.
根据本公开的实施例,分组损失例如可以与组相似度彼此负相关,且与分组偏差彼此正相关。如此,该实施例可以从备选时段组中选择分组损失最小的时段组,作为目标时段组。通过该方式,可以使得得到的时段组与已有时段组最为相似,同时可以最小化 分组偏差。According to an embodiment of the present disclosure, grouping loss may be negatively correlated with group similarity and positively correlated with grouping deviation, for example. In this way, this embodiment can select the time period group with the smallest packet loss from the candidate time period groups as the target time period group. In this way, the obtained time period group can be most similar to the existing time period group, and at the same time, the grouping deviation can be minimized.
例如,分组损失可以采用以下公式(10)计算得到:For example, the packet loss can be calculated using the following formula (10):
L=SDR-μS(C,C o);       公式(10) L=SDR-μS(C, C o ); formula (10)
其中,SDR为分组偏差,μ为相似度权重系数,L为分组损失。Among them, SDR is the grouping deviation, μ is the similarity weight coefficient, and L is the grouping loss.
根据本公开的实施例,在多个备选数目为取值属于区间[1,n]的整数的n个备选数目的情况下,在确定了备选时段组中每个时段组的分组损失后,可以对相邻备选数目的两个时段组的分组损失计算损失下降幅度。其中,相邻备选数目的两个时段组例如可以为备选数目k的时段组与备选数目(k-1)的时段组。通过该方式,可以确定随着划分段数的增加,划分得到的时段组的损失是否趋于收敛。如此,可以避免划分得到的时段数越多,分组损失越小所导致的最佳时段划分数总会取到最大值,与实际需求不相符的情况。According to an embodiment of the present disclosure, in the case that the multiple candidate numbers are n candidate numbers whose values belong to an integer in the interval [1, n], after determining the packet loss of each period group in the candidate period group After that, the loss reduction range can be calculated for the grouping losses of the two time period groups of adjacent candidate numbers. Wherein, the two adjacent time period groups of the candidate number may be, for example, a time period group of the candidate number k and a time period group of the candidate number (k-1). In this manner, it can be determined whether the losses of the divided time period groups tend to converge as the number of divided segments increases. In this way, it is possible to avoid the situation that the number of optimal time divisions always takes the maximum value due to the fact that the more time periods obtained by division, the smaller the packet loss, which does not meet the actual demand.
例如,可以基于备选数目自小至大的顺序,依次搜索n个备选数目中取值属于取值区间[2,n]的(n-1)个备选数目,直至得到目标时段组。在搜索过程中,先确定针对备选数目(k-1)的备选时段组的分组损失与针对备选数目k的备选时段组的分组损失之间的损失差值。然后基于损失差值与针对备选数目(k-1)的备选时段组的分组损失之间的比值,确定针对备选数目k的损失下降幅度。最后,在针对备选数目k的损失下降幅度小于预定幅度的情况下,确定针对备选数目(k-1)的备选时段组为目标时段组。For example, (n-1) candidate numbers whose values belong to the value interval [2, n] among the n candidate numbers may be sequentially searched based on the order of the candidate numbers from small to large, until the target period group is obtained. In the search process, first determine the loss difference between the packet loss for the candidate number (k-1) of the candidate period groups and the packet loss for the candidate number k of the candidate period groups. Then, based on the ratio between the loss difference and the packet loss for the candidate number (k-1) of the candidate period groups, the loss reduction for the candidate number k is determined. Finally, in the case that the loss reduction range for the candidate number k is less than the predetermined range, the candidate time period group for the candidate number (k-1) is determined as the target time period group.
例如,可以将损失差值与针对备选数目(k-1)的备选时段组的分组损失之间的比值作为针对备选数目k的损失下降幅度。或者,可以将比值与预定值之间的和作为损失下降幅度。其中,预定幅度可以根据实际需求进行设定,本公开对此不做限定。For example, the ratio between the loss difference and the packet loss for the candidate number (k-1) of the candidate period groups may be used as the loss reduction range for the candidate number k. Alternatively, the sum of the ratio and a predetermined value may be used as the loss reduction range. Wherein, the predetermined range may be set according to actual needs, which is not limited in the present disclosure.
根据本公开的实施例,在备选划分方案设定有划分n个单位时段得到的时段个数时,该实施例还可以基于流量值,将n个单位时段划分为预定数量个时段,将所有可能的划分方案得到的时段组作为备选时段组。然后,采用与图5中描述的原理类似的原理,得到备选时段组中的目标时段组。According to an embodiment of the present disclosure, when the number of periods obtained by dividing n unit periods is set in the alternative division scheme, this embodiment may also divide n unit periods into a predetermined number of periods based on the traffic value, and divide all The time period group obtained by the possible division scheme is used as the alternative time period group. Then, using a principle similar to that described in FIG. 5 , the target time period group in the candidate time period group is obtained.
基于本公开提供的划分时段的方法,本公开还提供了一种划分时段的装置。以下将结合图6对该装置进行详细描述。Based on the method for dividing time periods provided in the present disclosure, the present disclosure also provides a device for dividing time periods. The device will be described in detail below with reference to FIG. 6 .
如图6所示,该实施例的划分时段的装置600可以包括流量值确定模块610、备选确定模块620和目标组确定模块630。As shown in FIG. 6 , the apparatus 600 for dividing time periods in this embodiment may include a traffic value determination module 610 , an alternative determination module 620 and a target group determination module 630 .
流量值确定模块610用于基于路口的历史流量数据,确定预定时段包括的n个单位时段各自的流量值。其中,n为大于1的整数。在一实施例中,流量值确定模块610可 以用于执行前文描述的操作S210,在此不再赘述。The flow value determination module 610 is used to determine the respective flow values of the n unit periods included in the predetermined period based on the historical flow data of the intersection. Wherein, n is an integer greater than 1. In an embodiment, the flow value determination module 610 may be used to perform the operation S210 described above, which will not be repeated here.
备选确定模块620用于基于流量值,采用备选划分方案划分n个单位时段,得到备选时段组。在一实施例中,备选确定模块620可以用于执行前文描述的操作S220,在此不再赘述。The alternative determining module 620 is configured to divide n unit time periods by using an alternative division scheme based on the traffic value, to obtain an alternative time period group. In an embodiment, the candidate determining module 620 may be configured to perform the operation S220 described above, which will not be repeated here.
目标组确定模块630用于基于备选时段组与采用已有划分方案划分得到的已有时段组之间的组相似度,确定备选时段组中的目标时段组。在一实施例中,目标组确定模块630可以用于执行前文描述的操作S230,在此不再赘述。The target group determination module 630 is configured to determine a target time period group in the candidate time period groups based on the group similarity between the candidate time period groups and the existing time period groups divided by using the existing division scheme. In an embodiment, the target group determination module 630 may be used to perform the operation S230 described above, which will not be repeated here.
根据本公开的实施例,上述划分时段的装置600还可以包括相似确定模块和组相似确定模块。相似确定模块用于确定每个时段组中的每个划分点与已有时段组之间的相似度,得到至少一个第一相似度。组相似确定模块用于确定至少一个第一相似度相对于目标时段个数的平均值,作为每个时段组与已有时段组之间的组相似度。其中,目标时段个数为每个时段组的时段个数与已有时段组的时段个数中的较大值。According to an embodiment of the present disclosure, the above-mentioned apparatus 600 for dividing time periods may further include a similarity determination module and a group similarity determination module. The similarity determination module is used to determine the similarity between each dividing point in each time period group and the existing time period group, and obtain at least one first similarity. The group similarity determining module is used to determine the average value of at least one first similarity relative to the number of target time periods as the group similarity between each time period group and an existing time period group. Wherein, the target number of time periods is the greater value between the number of time periods in each time period group and the number of time periods in an existing time period group.
根据本公开的实施例,上述备选确定模块620用于针对多个备选数目中的每个备选数目,基于流量值将n个单位时段划分为k个时段,得到针对每个备选数目的备选时段组。其中,多个备选数目均为大于等于1,且小于等于n的整数,k为每个备选数目的取值。According to an embodiment of the present disclosure, the above-mentioned alternative determination module 620 is configured to divide n unit time periods into k time periods based on flow values for each of the multiple alternative numbers, and obtain Alternative period groups for . Wherein, the plurality of alternative numbers are all integers greater than or equal to 1 and less than or equal to n, and k is the value of each alternative number.
根据本公开的实施例,上述备选确定模块620可以包括第一损失确定子模块和时段划分子模块。第一损失确定子模块用于以k作为j的初始值,以1为步长,循环执行以下操作直至j的值为n,得到(n-k+1)个损失:基于流量值,确定将n个单位时段中的前(j-1)个单位时段划分为(k-1)个时段的最小损失,作为第一损失;确定将n个单位时段中的后(n-j+1)个单位时段划分为一个时段的损失,作为第二损失;以及基于第一损失和第二损失,确定以n个单位时段中的第j个单位时段作为备选划分点的损失,并将j置为j+1。时段划分子模块用于基于(n-k+1)个损失中的最小损失所对应的备选划分点,将n个单位时段划分为k个时段。According to an embodiment of the present disclosure, the above-mentioned candidate determination module 620 may include a first loss determination submodule and a period division submodule. The first loss determination sub-module is used to take k as the initial value of j, and take 1 as the step size, and perform the following operations in a loop until the value of j is n, and obtain (n-k+1) losses: based on the flow value, determine the The first (j-1) unit period of n unit periods is divided into the minimum loss of (k-1) periods, as the first loss; determine the last (n-j+1) of n unit periods The unit period is divided into a period of loss, as the second loss; and based on the first loss and the second loss, determine the jth unit period in the n unit period as the loss of the candidate division point, and set j to j+1. The period division sub-module is used to divide n unit periods into k periods based on the candidate division point corresponding to the minimum loss among (n-k+1) losses.
根据本公开的实施例,上述第一损失确定子模块可以包括相似确定单元和第一损失确定单元。相似确定单元用于基于备选划分点与已有时段组中的每个划分点之间的差异,确定备选划分点与已有时段组之间的第二相似度。第一损失确定单元用于基于第二相似度、第一损失和第二损失,确定以n个单位时段中的第j个单位时段作为备选划分点的损失。According to an embodiment of the present disclosure, the above-mentioned first loss determining submodule may include a similarity determining unit and a first loss determining unit. The similarity determination unit is configured to determine a second similarity between the candidate division point and the existing time period group based on the difference between the candidate division point and each division point in the existing time period group. The first loss determining unit is configured to determine a loss using the jth unit period among the n unit periods as a candidate division point based on the second similarity, the first loss, and the second loss.
根据本公开的实施例,上述相似确定单元用于基于备选划分点与已有时段组中多个 划分点之间的多个差异中的最大差异,确定备选划分点与已有时段组之间的第二相似度。According to an embodiment of the present disclosure, the above-mentioned similarity determination unit is configured to determine the difference between the candidate division point and the existing time period group based on the largest difference among the multiple differences between the candidate division point and the multiple division points in the existing time period group. The second similarity between.
根据本公开的实施例,上述第一损失确定子模块还包括第一差值确定单元、第二差值确定单元和差异确定单元。第一差值确定单元用于确定备选划分点与已有时段组中的每个划分点之间的差值绝对值,得到第一差值。第二差值确定单元用于确定第一差值与预定阈值之间的差值绝对值,得到第二差值。差异确定单元用于确定第二差值和预定阈值中的较小者,作为备选划分点与已有时段组中的每个划分点之间的差异。According to an embodiment of the present disclosure, the first loss determining submodule further includes a first difference determining unit, a second difference determining unit, and a difference determining unit. The first difference determination unit is configured to determine the absolute value of the difference between the candidate division point and each division point in the existing time period group to obtain the first difference. The second difference determining unit is used to determine the absolute value of the difference between the first difference and the predetermined threshold to obtain the second difference. The difference determination unit is configured to determine the smaller of the second difference and a predetermined threshold as the difference between the candidate division point and each division point in the existing time period group.
根据本公开的实施例,上述第一损失确定子模块还包括流量平均单元和第二损失确定单元。流量平均单元用于确定后(n-j+1)个单位时段的(n-j+1)个流量值的平均值。第二损失确定单元用于基于(n-j+1)个流量值分别相对于平均值的偏差,确定将后(n-j+1)个单位时段划分为一个时段的损失。According to an embodiment of the present disclosure, the first loss determination sub-module further includes a flow averaging unit and a second loss determination unit. The flow average unit is used to determine the average value of (n-j+1) flow values in the next (n-j+1) unit periods. The second loss determination unit is configured to determine the loss after dividing the last (n-j+1) unit periods into one period based on the deviations of the (n-j+1) flow values respectively relative to the average value.
根据本公开的实施例,上述目标组确定模块630可以包括第二损失确定子模块和目标组确定子模块。第二损失确定子模块用于针对备选时段组中的每个时段组:基于每个时段组与已有时段组之间的组相似度及每个时段组的分组偏差,确定每个时段组的分组损失。目标组确定子模块用于基于备选时段组中的每个时段组的分组损失,确定备选时段组中的目标时段组。According to an embodiment of the present disclosure, the above target group determination module 630 may include a second loss determination submodule and a target group determination submodule. The second loss determination submodule is used for each time period group in the alternative time period group: based on the group similarity between each time period group and the existing time period group and the grouping deviation of each time period group, determine each time period group group loss. The target group determination submodule is used to determine the target time period group in the candidate time period group based on the packet loss of each time period group in the candidate time period group.
根据本公开的实施例,分组损失与组相似度彼此负相关,且分组损失与分组偏差彼此正相关。According to an embodiment of the present disclosure, grouping loss and group similarity are negatively correlated with each other, and grouping loss and grouping deviation are positively correlated with each other.
根据本公开的实施例,多个备选数目包括n个备选数目。上述目标组确定子模块用于采用以下单元,基于备选数目自小至大的顺序,依次搜索n个备选数目中取值属于取值区间[2,n]的(n-1)个备选数目,直至得到目标时段组:损失差确定单元,用于确定针对备选数目(k-1)的备选时段组的分组损失与针对备选数目k的备选时段组的分组损失之间的损失差值;下降幅度确定单元,用于基于损失差值与针对备选数目(k-1)的备选时段组的分组损失之间的比值,确定针对备选数目k的损失下降幅度;以及目标组确定单元,用于在针对备选数目k的损失下降幅度小于预定幅度的情况下,确定针对备选数目(k-1)的备选时段组为目标时段组。According to an embodiment of the present disclosure, the plurality of candidate numbers includes n candidate numbers. The above-mentioned target group determination sub-module is used to use the following units, based on the order of the number of candidates from small to large, sequentially search for (n-1) of the n candidate numbers whose value belongs to the value interval [2, n] Select the number until the target period group is obtained: the loss difference determination unit is used to determine the difference between the grouping loss for the candidate period group of the alternative number (k-1) and the grouping loss for the candidate period group for the alternative number k The loss difference value; The decline range determination unit is used to determine the loss reduction range for the alternative number k based on the ratio between the loss difference value and the grouping loss for the alternative time period group of the alternative number (k-1); And a target group determining unit, configured to determine the candidate time period group for the candidate number (k-1) as the target time period group when the loss reduction range for the candidate number k is less than a predetermined range.
根据本公开的实施例,上述划分时段的装置600还可以包括分段损失确定模块、未分段损失确定模块和分组偏差确定模块。分段损失确定模块用于针对备选时段组中的每个时段组:基于流量值,确定每个时段组中的每个时段划分为一个时段的损失,得到至少一个分段损失。未分段损失确定模块用于基于n个单位时段的n个流量值分别相对于 n个流量值的平均值的偏差,得到未分段损失。分组偏差确定模块用于基于至少一个分段损失的和与未分段损失之间的比值,确定每个时段组的分组偏差。According to an embodiment of the present disclosure, the above-mentioned apparatus 600 for dividing time periods may further include a segmentation loss determination module, a non-segmentation loss determination module, and a grouping deviation determination module. The segmentation loss determination module is used for each time period group in the candidate time period group: based on the traffic value, determine the loss of dividing each time period in each time period group into a time period, and obtain at least one segmentation loss. The unsegmented loss determination module is used to obtain the unsegmented loss based on the deviations of the n flow values in n unit time periods relative to the average value of the n flow values. The grouping deviation determination module is used for determining the grouping deviation of each time period group based on the ratio between the sum of at least one segmentation loss and the non-segmentation loss.
根据本公开的实施例,上述备选确定模块620用于基于流量值,将n个单位时段划分为预定数量个时段,得到备选时段组。According to an embodiment of the present disclosure, the above-mentioned candidate determining module 620 is configured to divide n unit time periods into a predetermined number of time periods based on the flow value to obtain a group of candidate time periods.
需要说明的是,本公开的技术方案中,所涉及的用户个人信息的获取、收集、存储、使用、加工、传输、提供和公开等处理,均符合相关法律法规的规定,且不违背公序良俗。It should be noted that in the technical solution of the present disclosure, the acquisition, collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved are all in compliance with relevant laws and regulations, and do not violate public order and good customs.
根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to the embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
图7示出了可以用来实施本公开实施例的划分时段的方法的示例电子设备700的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。FIG. 7 shows a schematic block diagram of an example electronic device 700 that can be used to implement the method for dividing a time period according to an embodiment of the present disclosure. Electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
如图7所示,设备700包括计算单元701,其可以根据存储在只读存储器(ROM)702中的计算机程序或者从存储单元708加载到随机访问存储器(RAM)703中的计算机程序,来执行各种适当的动作和处理。在RAM 703中,还可存储设备700操作所需的各种程序和数据。计算单元701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG. 7, the device 700 includes a computing unit 701 that can execute according to a computer program stored in a read-only memory (ROM) 702 or loaded from a storage unit 708 into a random-access memory (RAM) 703. Various appropriate actions and treatments. In the RAM 703, various programs and data necessary for the operation of the device 700 can also be stored. The computing unit 701, ROM 702, and RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to the bus 704 .
设备700中的多个部件连接至I/O接口705,包括:输入单元706,例如键盘、鼠标等;输出单元707,例如各种类型的显示器、扬声器等;存储单元708,例如磁盘、光盘等;以及通信单元709,例如网卡、调制解调器、无线通信收发机等。通信单元709允许设备700通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the device 700 are connected to the I/O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a magnetic disk, an optical disk, etc. ; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 709 allows the device 700 to exchange information/data with other devices over a computer network such as the Internet and/or various telecommunication networks.
计算单元701可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元701的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元701执行上文所 描述的各个方法和处理,例如划分时段的方法。例如,在一些实施例中,划分时段的方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元708。在一些实施例中,计算机程序的部分或者全部可以经由ROM 702和/或通信单元709而被载入和/或安装到设备700上。当计算机程序加载到RAM 703并由计算单元701执行时,可以执行上文描述的划分时段的方法的一个或多个步骤。备选地,在其他实施例中,计算单元701可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行划分时段的方法。The computing unit 701 may be various general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of computing units 701 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 executes the various methods and processes described above, such as the method of dividing time periods. For example, in some embodiments, the method of dividing time periods may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 708 . In some embodiments, part or all of the computer program may be loaded and/or installed on the device 700 via the ROM 702 and/or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method for dividing time periods described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured in any other appropriate way (for example, by means of firmware) to execute the method for dividing time periods.
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips Implemented in a system of systems (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor Can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算 机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide for interaction with the user, the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user. ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。其中,服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务(″Virtual Private Server″,或简称″VPS″)中,存在的管理难度大,业务扩展性弱的缺陷。服务器也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. Among them, the server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the problem of traditional physical host and VPS service ("Virtual Private Server", or "VPS" for short). ″), there are defects such as high management difficulty and weak business scalability. The server can also be a server of a distributed system, or a server combined with a blockchain.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, each step described in the present disclosure may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The specific implementation manners described above do not limit the protection scope of the present disclosure. It should be apparent to those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.

Claims (29)

  1. 一种划分时段的方法,包括:A method of dividing time periods comprising:
    基于路口的历史流量数据,确定预定时段包括的n个单位时段各自的流量值;Based on the historical flow data of the intersection, determine the respective flow values of the n unit periods included in the predetermined period;
    基于所述流量值,采用备选划分方案划分所述n个单位时段,得到备选时段组;以及Based on the flow value, using an alternative division scheme to divide the n unit time periods to obtain an alternative time period group; and
    基于所述备选时段组与采用已有划分方案划分得到的已有时段组之间的组相似度,确定所述备选时段组中的目标时段组,determining a target time period group in the candidate time period group based on the group similarity between the candidate time period group and an existing time period group obtained by using an existing division scheme,
    其中,n为大于1的整数。Wherein, n is an integer greater than 1.
  2. 根据权利要求1所述的方法,其中,所述方法还包括针对所述备选时段组中的每个时段组:The method according to claim 1, wherein the method further comprises, for each time period group in the candidate time period groups:
    确定所述每个时段组中的每个划分点与所述已有时段组之间的相似度,得到至少一个第一相似度;以及determining the similarity between each dividing point in each time period group and the existing time period group to obtain at least one first similarity; and
    确定所述至少一个第一相似度相对于目标时段个数的平均值,作为所述每个时段组与所述已有时段组之间的组相似度,determining the average value of the at least one first similarity relative to the number of target time periods as the group similarity between each time period group and the existing time period group,
    其中,所述目标时段个数为所述每个时段组的时段个数与所述已有时段组的时段个数中的较大值。Wherein, the target number of time periods is the greater value of the number of time periods in each time period group and the number of time periods in the existing time period group.
  3. 根据权利要求1或2所述的方法,其中,所述基于所述流量值,采用备选划分方案划分所述n个单位时段,得到备选时段组包括:The method according to claim 1 or 2, wherein, based on the flow value, the n unit periods are divided using an alternative division scheme, and the alternative period groups obtained include:
    针对多个备选数目中的每个备选数目,基于所述流量值将所述n个单位时段划分为k个时段,得到针对所述每个备选数目的备选时段组,For each of the plurality of candidate numbers, dividing the n unit time periods into k time periods based on the flow value to obtain a group of candidate time periods for each of the candidate numbers,
    其中,所述多个备选数目均为大于等于1,且小于等于n的整数,k为所述每个备选数目的取值。Wherein, the plurality of candidate numbers are all integers greater than or equal to 1 and less than or equal to n, and k is the value of each candidate number.
  4. 根据权利要求3所述的方法,其中,基于所述流量值将所述n个单位时段划分为k个时段包括:The method according to claim 3, wherein dividing the n unit time periods into k time periods based on the flow value comprises:
    以k作为j的初始值,以1为步长,循环执行以下操作直至j的值为n,得到(n-k+1)个损失:Take k as the initial value of j, and take 1 as the step size, perform the following operations in a loop until the value of j is n, and get (n-k+1) losses:
    基于所述流量值,确定将所述n个单位时段中的前(j-1)个单位时段划分为(k-1)个时段的最小损失,作为第一损失;Based on the flow value, determine the minimum loss for dividing the first (j-1) unit periods in the n unit periods into (k-1) periods, as the first loss;
    确定将所述n个单位时段中的后(n-j+1)个单位时段划分为一个时段的损失,作为第二损失;Determining the loss of dividing the last (n-j+1) unit periods of the n unit periods into one period as the second loss;
    基于所述第一损失和所述第二损失,确定以所述n个单位时段中的第j个单位时段作为备选划分点的损失;以及Based on the first loss and the second loss, determine a loss with the jth unit period among the n unit periods as a candidate division point; and
    基于所述(n-k+1)个损失中的最小损失所对应的备选划分点,将所述n个单位时段划分为所述k个时段。Based on the candidate dividing point corresponding to the minimum loss among the (n-k+1) losses, divide the n unit time periods into the k time periods.
  5. 根据权利要求4所述的方法,其中,基于所述第一损失和所述第二损失,确定以所述n个单位时段中的第j个单位时段作为备选划分点的损失包括:The method according to claim 4, wherein, based on the first loss and the second loss, determining the loss using the jth unit period among the n unit periods as a candidate division point comprises:
    基于所述备选划分点与所述已有时段组中的每个划分点之间的差异,确定所述备选划分点与所述已有时段组之间的第二相似度;以及determining a second similarity between the candidate division point and the existing time period group based on the difference between the candidate division point and each division point in the existing time period group; and
    基于所述第二相似度、所述第一损失和所述第二损失,确定以所述n个单位时段中的第j个单位时段作为备选划分点的损失。Based on the second similarity, the first loss, and the second loss, determine a loss that uses the jth unit period among the n unit periods as a candidate division point.
  6. 根据权利要求5所述的方法,其中,确定所述备选划分点与所述已有时段组之间的第二相似度包括:The method according to claim 5, wherein determining the second similarity between the candidate dividing point and the existing time period group comprises:
    基于所述备选划分点与所述已有时段组中多个划分点之间的多个差异中的最大差异,确定所述备选划分点与所述已有时段组之间的第二相似度。Determine a second similarity between the candidate division point and the existing time period group based on the largest difference among the plurality of differences between the candidate division point and the existing time period group. Spend.
  7. 根据权利要求5或6所述的方法,其中,基于所述第一损失和所述第二损失,确定以所述n个单位时段中的第j个单位时段作为备选划分点的损失还包括:The method according to claim 5 or 6, wherein, based on the first loss and the second loss, determining the loss with the jth unit period in the n unit periods as a candidate division point further comprises :
    确定所述备选划分点与所述已有时段组中的每个划分点之间的差值绝对值,得到第一差值;determining the absolute value of the difference between the candidate division point and each division point in the existing period group to obtain a first difference;
    确定所述第一差值与预定阈值之间的差值绝对值,得到第二差值;以及determining an absolute value of the difference between the first difference and a predetermined threshold to obtain a second difference; and
    确定所述第二差值和所述预定阈值中的较小者,作为所述备选划分点与所述已有时段组中的每个划分点之间的差异。The smaller of the second difference and the predetermined threshold is determined as the difference between the candidate division point and each division point in the existing period group.
  8. 根据权利要求4所述的方法,其中,确定将所述n个单位时段中的后(n-j+1)个单位时段划分为一个时段的损失包括:The method according to claim 4, wherein determining the loss of dividing the last (n-j+1) unit periods of the n unit periods into one period comprises:
    确定所述后(n-j+1)个单位时段的(n-j+1)个流量值的平均值;以及determining an average of (n-j+1) flow values for said subsequent (n-j+1) unit periods; and
    基于所述(n-j+1)个流量值分别相对于所述平均值的偏差,确定将所述后(n-j+1)个单位时段划分为一个时段的损失。Based on the respective deviations of the (n-j+1) flow values relative to the average value, the loss of dividing the last (n-j+1) unit periods into one period is determined.
  9. 根据权利要求1~3中任一项所述的方法,其中,所述基于所述备选时段组与采用已有划分方案划分得到的已有时段组之间的组相似度,确定所述备选时段组中的目标时段组包括:The method according to any one of claims 1 to 3, wherein the determination of the candidate time period group is based on the group similarity between the candidate time period group and the existing time period group obtained by using the existing division scheme. The target period groups in the selection period group include:
    针对所述备选时段组中的每个时段组:基于所述每个时段组与所述已有时段组之 间的组相似度及所述每个时段组的分组偏差,确定所述每个时段组的分组损失;以及For each time period group in the candidate time period group: based on the group similarity between each time period group and the existing time period group and the grouping deviation of each time period group, determine the the packet loss for the bucket group; and
    基于所述备选时段组中的每个时段组的分组损失,确定所述备选时段组中的目标时段组。A target time period group in the candidate time period groups is determined based on packet loss for each time period group in the candidate time period groups.
  10. 根据权利要求9所述的方法,其中,所述分组损失与所述组相似度彼此负相关,且所述分组损失与所述分组偏差彼此正相关。The method of claim 9, wherein the grouping loss and the group similarity are negatively correlated with each other, and the grouping loss and the grouping deviation are positively correlated with each other.
  11. 根据权利要求9所述的方法,其中,所述多个备选数目包括n个备选数目;所述基于所述备选时段组中的每个时段组的分组损失,确定所述备选时段组中的目标时段组包括:基于备选数目自小至大的顺序,依次搜索所述n个备选数目中取值属于取值区间[2,n]的(n-1)个备选数目,直至得到所述目标时段组:The method according to claim 9, wherein said plurality of candidate numbers comprises n candidate numbers; said determining said candidate time period based on the packet loss of each time period group in said candidate time period group The target time period group in the group includes: based on the order of the candidate numbers from small to large, sequentially search for (n-1) candidate numbers whose values belong to the value interval [2, n] among the n candidate numbers , until the target time period group is obtained:
    确定针对备选数目(k-1)的备选时段组的分组损失与针对备选数目k的备选时段组的分组损失之间的损失差值;determining the loss difference between the grouping loss for the candidate number (k-1) of the candidate period groups and the grouping loss for the candidate number k of the candidate period groups;
    基于所述损失差值与针对备选数目(k-1)的备选时段组的分组损失之间的比值,确定针对所述备选数目k的损失下降幅度;以及determining a loss reduction for the candidate number k based on a ratio between the loss difference and packet losses for the candidate number (k-1) of candidate time slot groups; and
    在针对所述备选数目k的损失下降幅度小于预定幅度的情况下,确定针对备选数目(k-1)的备选时段组为所述目标时段组。In a case where the loss reduction range for the candidate number k is less than a predetermined range, determine the candidate time period group for the candidate number (k-1) as the target time period group.
  12. 根据权利要求9所述的方法,还包括:The method of claim 9, further comprising:
    针对所述备选时段组中的每个时段组:基于所述流量值,确定所述每个时段组中的每个时段划分为一个时段的损失,得到至少一个分段损失;For each time period group in the candidate time period group: based on the flow value, determine the loss that each time period in each time period group is divided into a time period, and obtain at least one segmentation loss;
    基于所述n个单位时段的n个流量值分别相对于所述n个流量值的平均值的偏差,得到未分段损失;以及Obtaining an unsegmented loss based on deviations of the n flow values of the n unit periods from the average value of the n flow values, respectively; and
    基于所述至少一个分段损失的和与所述未分段损失之间的比值,确定所述每个时段组的分组偏差。A grouping bias for each group of time periods is determined based on a ratio between the sum of the at least one segmented loss and the unsegmented loss.
  13. 根据权利要求1所述的方法,其中,基于所述流量值,采用备选划分方案划分所述n个单位时段包括:The method according to claim 1, wherein, based on the flow value, dividing the n unit periods by an alternative division scheme comprises:
    基于所述流量值,将所述n个单位时段划分为预定数量个时段,得到所述备选时段组。Based on the flow value, the n unit time periods are divided into a predetermined number of time periods to obtain the candidate time period group.
  14. 一种划分时段的装置,包括:A device for dividing time periods, comprising:
    流量值确定模块,用于基于路口的历史流量数据,确定预定时段包括的n个单位时段各自的流量值;A flow value determination module, configured to determine the respective flow values of the n unit periods included in the predetermined period based on the historical flow data at the intersection;
    备选确定模块,用于基于所述流量值,采用备选划分方案划分所述n个单位时段, 得到备选时段组;以及An alternative determination module, configured to divide the n unit time periods using an alternative division scheme based on the flow value to obtain an alternative time period group; and
    目标组确定模块,用于基于所述备选时段组与采用已有划分方案划分得到的已有时段组之间的组相似度,确定所述备选时段组中的目标时段组,A target group determination module, configured to determine a target time period group in the candidate time period group based on the group similarity between the candidate time period group and the existing time period group obtained by using an existing division scheme,
    其中,n为大于1的整数。Wherein, n is an integer greater than 1.
  15. 根据权利要求14所述的装置,还包括:The apparatus of claim 14, further comprising:
    相似确定模块,用于确定每个时段组中的每个划分点与所述已有时段组之间的相似度,得到至少一个第一相似度;以及A similar determination module, configured to determine the similarity between each division point in each time period group and the existing time period group, to obtain at least one first similarity; and
    组相似确定模块,用于确定所述至少一个第一相似度相对于目标时段个数的平均值,作为所述每个时段组与所述已有时段组之间的组相似度,A group similarity determination module, configured to determine the average value of the at least one first similarity relative to the number of target time periods as the group similarity between each time period group and the existing time period group,
    其中,所述目标时段个数为所述每个时段组的时段个数与所述已有时段组的时段个数中的较大值。Wherein, the target number of time periods is the greater value of the number of time periods in each time period group and the number of time periods in the existing time period group.
  16. 根据权利要求14或15所述的装置,其中,所述备选确定模块用于:The device according to claim 14 or 15, wherein the alternative determination module is used for:
    针对多个备选数目中的每个备选数目,基于所述流量值将所述n个单位时段划分为k个时段,得到针对所述每个备选数目的备选时段组,For each of the plurality of candidate numbers, dividing the n unit time periods into k time periods based on the flow value to obtain a group of candidate time periods for each of the candidate numbers,
    其中,所述多个备选数目均为大于等于1,且小于等于n的整数,k为所述每个备选数目的取值。Wherein, the plurality of candidate numbers are all integers greater than or equal to 1 and less than or equal to n, and k is the value of each candidate number.
  17. 根据权利要求16所述的装置,其中,所述备选确定模块包括:The apparatus according to claim 16, wherein the alternative determination module comprises:
    第一损失确定子模块,用于以k作为j的初始值、以1为步长,循环执行以下操作直至j的值为n,得到(n-k+1)个损失:The first loss determination sub-module is used to take k as the initial value of j and take 1 as the step size to perform the following operations in a loop until the value of j is n to obtain (n-k+1) losses:
    基于所述流量值,确定将所述n个单位时段中的前(j-1)个单位时段划分为(k-1)个时段的最小损失,作为第一损失;Based on the flow value, determine the minimum loss for dividing the first (j-1) unit periods in the n unit periods into (k-1) periods, as the first loss;
    确定将所述n个单位时段中的后(n-j+1)个单位时段划分为一个时段的损失,作为第二损失;Determining the loss of dividing the last (n-j+1) unit periods of the n unit periods into one period as the second loss;
    基于所述第一损失和所述第二损失,确定以所述n个单位时段中的第j个单位时段作为备选划分点的损失;以及Based on the first loss and the second loss, determine a loss with the jth unit period among the n unit periods as a candidate division point; and
    时段划分子模块,用于基于所述(n-k+1)个损失中的最小损失所对应的备选划分点,将所述n个单位时段划分为所述k个时段。The period division sub-module is configured to divide the n unit periods into the k periods based on the candidate division point corresponding to the minimum loss among the (n-k+1) losses.
  18. 根据权利要求17所述的装置,其中,所述第一损失确定子模块包括:The device according to claim 17, wherein the first loss determination submodule comprises:
    相似确定单元,用于基于所述备选划分点与所述已有时段组中的每个划分点之间的差异,确定所述备选划分点与所述已有时段组之间的第二相似度;以及a similarity determination unit, configured to determine a second division point between the candidate division point and the existing time period group based on the difference between the candidate division point and each division point in the existing time period group similarity; and
    第一损失确定单元,用于基于所述第二相似度、所述第一损失和所述第二损失,确定以所述n个单位时段中的第j个单位时段作为备选划分点的损失。A first loss determining unit, configured to determine a loss using the j-th unit period among the n unit periods as a candidate division point based on the second similarity, the first loss, and the second loss .
  19. 根据权利要求17所述的装置,其中,所述相似确定单元用于:The device according to claim 17, wherein the similarity determination unit is configured to:
    基于所述备选划分点与所述已有时段组中多个划分点之间的多个差异中的最大差异,确定所述备选划分点与所述已有时段组之间的第二相似度。Determine a second similarity between the candidate division point and the existing time period group based on the largest difference among the plurality of differences between the candidate division point and the existing time period group. Spend.
  20. 根据权利要求18或19所述的装置,其中,所述第一损失确定子模块还包括:The device according to claim 18 or 19, wherein the first loss determination submodule further comprises:
    第一差值确定单元,用于确定所述备选划分点与所述已有时段组中的每个划分点之间的差值绝对值,得到第一差值;A first difference determination unit, configured to determine the absolute value of the difference between the candidate division point and each division point in the existing time period group to obtain a first difference;
    第二差值确定单元,用于确定所述第一差值与预定阈值之间的差值绝对值,得到第二差值;以及A second difference determining unit, configured to determine an absolute value of the difference between the first difference and a predetermined threshold to obtain a second difference; and
    差异确定单元,用于确定所述第二差值和所述预定阈值中的较小者,作为所述备选划分点与所述已有时段组中的每个划分点之间的差异。A difference determination unit, configured to determine the smaller of the second difference and the predetermined threshold as the difference between the candidate division point and each division point in the existing time period group.
  21. 根据权利要求17所述的装置,其中,所述第一损失确定子模块还包括:The device according to claim 17, wherein the first loss determination submodule further comprises:
    流量平均单元,用于确定所述后(n-j+1)个单位时段的(n-j+1)个流量值的平均值;以及A flow averaging unit, configured to determine the average of (n-j+1) flow values of the latter (n-j+1) unit periods; and
    第二损失确定单元,用于基于所述(n-j+1)个流量值分别相对于所述平均值的偏差,确定将所述后(n-j+1)个单位时段划分为一个时段的损失。The second loss determination unit is configured to determine to divide the last (n-j+1) unit periods into one period based on the deviations of the (n-j+1) flow values relative to the average value respectively Loss.
  22. 根据权利要求14~16中任一项所述的装置,其中,所述目标组确定模块包括:The device according to any one of claims 14-16, wherein the target group determination module comprises:
    第二损失确定子模块,用于针对所述备选时段组中的每个时段组:基于所述每个时段组与所述已有时段组之间的组相似度及所述每个时段组的分组偏差,确定所述每个时段组的分组损失;以及The second loss determination submodule is configured to, for each time period group in the candidate time period group: based on the group similarity between each time period group and the existing time period group and each time period group A grouping deviation of , determining a grouping loss for each time period group; and
    目标组确定子模块,用于基于所述备选时段组中的每个时段组的分组损失,确定所述备选时段组中的目标时段组。A target group determination submodule, configured to determine a target time period group in the candidate time period groups based on the packet loss of each time period group in the candidate time period groups.
  23. 根据权利要求22所述的装置,其中,所述分组损失与所述组相似度彼此负相关,且所述分组损失与所述分组偏差彼此正相关。The apparatus of claim 22, wherein the grouping loss and the group similarity are negatively correlated with each other, and the grouping loss and the grouping bias are positively correlated with each other.
  24. 根据权利要求22所述的装置,其中,所述多个备选数目包括n个备选数目;所述目标组确定子模块用于采用以下单元,基于备选数目自小至大的顺序,依次搜索所述n个备选数目中取值属于取值区间[2,n]的(n-1)个备选数目,直至得到所述目标时段组:The device according to claim 22, wherein the plurality of candidate numbers includes n candidate numbers; the target group determination submodule is configured to adopt the following units, based on the order of the candidate numbers from small to large, in order Search for (n-1) candidate numbers whose values belong to the value interval [2, n] among the n candidate numbers, until the target period group is obtained:
    损失差确定单元,用于确定针对备选数目(k-1)的备选时段组的分组损失与针对 备选数目k的备选时段组的分组损失之间的损失差值;Loss difference determining unit, for determining the grouping loss for the grouping loss of the candidate time period group of alternative number (k-1) and the loss difference value between the grouping loss for the grouping loss of the candidate time period group of candidate number k;
    下降幅度确定单元,用于基于所述损失差值与针对备选数目(k-1)的备选时段组的分组损失之间的比值,确定针对所述备选数目k的损失下降幅度;以及A reduction range determination unit configured to determine a loss reduction range for the candidate number k based on the ratio between the loss difference and the grouping loss for the candidate number (k-1) of the candidate period groups; and
    目标组确定单元,用于在针对所述备选数目k的损失下降幅度小于预定幅度的情况下,确定针对备选数目(k-1)的备选时段组为所述目标时段组。A target group determining unit, configured to determine the candidate time period group for the candidate number (k-1) as the target time period group in the case that the loss reduction range for the candidate number k is less than a predetermined range.
  25. 根据权利要求22所述的装置,还包括:The apparatus of claim 22, further comprising:
    分段损失确定模块,用于针对所述备选时段组中的每个时段组:基于所述流量值,确定所述每个时段组中的每个时段划分为一个时段的损失,得到至少一个分段损失;A segmentation loss determination module, for each time period group in the candidate time period group: based on the flow value, determine the loss that each time period in each time period group is divided into a time period, and obtain at least one segment loss;
    未分段损失确定模块,用于基于所述n个单位时段的n个流量值分别相对于所述n个流量值的平均值的偏差,得到未分段损失;以及The unsegmented loss determination module is used to obtain the unsegmented loss based on the deviations of the n flow values of the n unit periods relative to the average value of the n flow values; and
    分组偏差确定模块,用于基于所述至少一个分段损失的和与所述未分段损失之间的比值,确定所述每个时段组的分组偏差。A grouping deviation determination module, configured to determine a grouping deviation for each time period group based on a ratio between the sum of the at least one segment loss and the non-segmentation loss.
  26. 根据权利要求14所述的装置,其中,所述备选确定模块用于:The apparatus according to claim 14, wherein the alternative determination module is configured to:
    基于所述流量值,将所述n个单位时段划分为预定数量个时段,得到所述备选时段组。Based on the flow value, the n unit time periods are divided into a predetermined number of time periods to obtain the candidate time period group.
  27. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及at least one processor; and
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1~13中任一项所述的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can perform any one of claims 1-13. Methods.
  28. 一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行根据权利要求1~13中任一项所述的方法。A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to any one of claims 1-13.
  29. 一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现根据权利要求1~13中任一项所述的方法。A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-13.
PCT/CN2021/133148 2021-09-27 2021-11-25 Method and apparatus for dividing time periods, and electronic device and storage medium WO2023045062A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111139260.3A CN113851007B (en) 2021-09-27 2021-09-27 Time interval dividing method and device, electronic equipment and storage medium
CN202111139260.3 2021-09-27

Publications (1)

Publication Number Publication Date
WO2023045062A1 true WO2023045062A1 (en) 2023-03-30

Family

ID=78980618

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/133148 WO2023045062A1 (en) 2021-09-27 2021-11-25 Method and apparatus for dividing time periods, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN113851007B (en)
WO (1) WO2023045062A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150206428A1 (en) * 2014-01-21 2015-07-23 Iteris, Inc. Estimation of hourly traffic flow profiles using speed data and annual average daily traffic data
CN110910658A (en) * 2019-11-14 2020-03-24 北京百度网讯科技有限公司 Traffic signal control method, traffic signal control device, computer equipment and storage medium
CN111554091A (en) * 2020-04-26 2020-08-18 江苏智通交通科技有限公司 Traffic signal control scheme time interval division method considering intersection flow unbalance condition
CN112991729A (en) * 2021-02-25 2021-06-18 杭州海康威视数字技术股份有限公司 Time interval dividing method and device and computer storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113940033B (en) * 2019-07-15 2023-10-20 深圳市欢太科技有限公司 User identification method and related product
CN110782667A (en) * 2019-10-30 2020-02-11 北京百度网讯科技有限公司 Signal lamp time-sharing timing method and device, electronic equipment and storage medium
CN111192465A (en) * 2020-01-07 2020-05-22 上海宝康电子控制工程有限公司 Method for realizing signal timing scheme group division processing based on flow data
CN111445694B (en) * 2020-03-04 2022-02-01 青岛海信网络科技股份有限公司 Festival and holiday traffic scheduling method and device based on traffic flow prediction

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150206428A1 (en) * 2014-01-21 2015-07-23 Iteris, Inc. Estimation of hourly traffic flow profiles using speed data and annual average daily traffic data
CN110910658A (en) * 2019-11-14 2020-03-24 北京百度网讯科技有限公司 Traffic signal control method, traffic signal control device, computer equipment and storage medium
CN111554091A (en) * 2020-04-26 2020-08-18 江苏智通交通科技有限公司 Traffic signal control scheme time interval division method considering intersection flow unbalance condition
CN112991729A (en) * 2021-02-25 2021-06-18 杭州海康威视数字技术股份有限公司 Time interval dividing method and device and computer storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Master Thesis", 1 March 2014, ZHEJIANG UNIVERSITY, CN, article ZHAO, WEIMING: "Time-of-Day Breakpoints Identification and Traffic Network Partition Methods for Traffic Control", pages: 1 - 102, XP009544951 *
SHANG CHUNLIN C C, LIU XIAOMING;LI ZHENGXI;TANG SHAOHU;ZHANG XIAO: "Intersection Fixed Cycle Multi-period Division Methods Based on Bus Priority", JOURNAL OF WUHAN UNIVERSITY OF TECHNOLOGY(TRANSPORTATION SCIENCE & ENGINEERING), vol. 5, no. 40, 31 October 2016 (2016-10-31), pages 839 - 844, XP093053886, ISSN: 2095-3844 *

Also Published As

Publication number Publication date
CN113851007B (en) 2023-01-17
CN113851007A (en) 2021-12-28

Similar Documents

Publication Publication Date Title
CN107624190B (en) System and method for accelerating route search
US11305780B2 (en) Road condition status prediction method, device, and server, and storage medium
WO2022213580A1 (en) Map generation method and apparatus, and electronic device and storage medium
US9683852B2 (en) Dispatching map matching tasks by a cluster server
US11887473B2 (en) Road congestion detection method and device, and electronic device
US20230091252A1 (en) Method for processing high-definition map data, electronic device and medium
US20210207963A1 (en) Determination of traffic checkpoint
US20230316902A1 (en) Traffic flow migration situation display method and apparatus, device, medium and product
CN113407649A (en) Data warehouse modeling method and device, electronic equipment and storage medium
WO2023000548A1 (en) Method and device for processing traffic congestion event, and storage medium and program product
US20220139218A1 (en) Data verification method and apparatus, device and storage medium
WO2023045062A1 (en) Method and apparatus for dividing time periods, and electronic device and storage medium
CN114661736A (en) Electronic map updating method and device, electronic equipment, storage medium and product
CN114610825A (en) Method and device for confirming associated grid set, electronic equipment and storage medium
CN115206102B (en) Method, device, electronic equipment and medium for determining traffic path
US20240153265A1 (en) Road data processing method, device, and storage medium
CN113990068B (en) Traffic data processing method, device, equipment and storage medium
CN112256811B (en) Map information representation method and device based on map structure
CN112084281B (en) Method, device, computer equipment and storage medium for drawing survey grid
CN114691691A (en) Geohash-based spatial data processing method and device and electronic equipment
US20220381574A1 (en) Multipath generation method, apparatus, device and storage medium
US12033256B2 (en) Map data processing method, electronic device and storage medium
US20240273113A1 (en) Method of importing data to database, electronic device, and storage medium
US20240371259A1 (en) Source tracing method for traffic congestion, electronic device and storage medium
CN113656425B (en) Electronic map updating method and device, electronic equipment, storage medium and product

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21958174

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE