TRAFFIC CONGESTION DETECTION METHOD AND APPARATUS, ELECTRONIC DEVICE AND STORAGE MEDIUM

Information

  • Patent Application
  • 20240005782
  • Publication Number
    20240005782
  • Date Filed
    January 05, 2022
    2 years ago
  • Date Published
    January 04, 2024
    3 months ago
Abstract
A traffic congestion detection method, a traffic congestion detection apparatus, an electronic device and a storage medium are provided. The traffic congestion detection method is applied to a roadside unit (RSU), and includes: acquiring vehicle information of each vehicle driving into a detection region of the RSU; calculating a first congestion index according to the vehicle information, with the first congestion index representing a traffic congestion condition in the detection region of the RSU; acquiring a plurality of first congestion indexes of RSUs in a target region, with the target region including a plurality of detection regions of the RSUs; and calculating a second congestion index according to the plurality of first congestion indexes, with the second congestion index representing a traffic congestion condition of the target region.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS

The present application claims the priority of Chinese Patent Application No. 202110032765.3, filed on Jan. 12, 2021, the contents of which are incorporated herein in their entirety by reference.


TECHNICAL FIELD

Embodiments of the present application relate to the field of communication technologies, and in particular, to a traffic congestion detection method, a traffic congestion detection apparatus, an electronic device and a storage medium.


BACKGROUND

With development of communication technologies, a vehicle networking technology has gradually been widely applied. The vehicle networking technology includes: interconnection and intercommunication of Vehicle to Vehicle (V2V), Vehicle to Infrastructure (V2I), Vehicle to People (V2P), Vehicle to Center (V2C) and the like, implements communication and roaming between a vehicle ad hoc network and various heterogeneous networks, ensures real-time and serviceability in terms of functions and performances, and further implements vehicle motion control, thereby implementing technologies of vehicle motion control, control of traffic signals and traffic information processing. V2V refers to interconnection and intercommunication among traffic participants, and V2I refers to interconnection and intercommunication between the traffic participants and traffic infrastructure. In recent years, traffic congestion becomes a common problem in large cities, and the V2V technology is generally used to collect traffic data to detect a traffic congestion condition.


However, in an actual traffic congestion detection scene, numerous vehicles are in an actual road network, resulting in a total amount of communications among the traffic participants being too great, and further part of information may be expected to be transmitted among multiple ones of the traffic participants, so that reliability and stability of an information transmission process cannot be well guaranteed, and efficiency and accuracy of traffic congestion detection are finally affected.


SUMMARY

An embodiment of the present application provides a traffic congestion detection method, applied to a roadside unit (RSU), including: acquiring vehicle information of each vehicle driving into a detection region of the RSU; calculating a first congestion index according to the vehicle information, the first congestion index representing a traffic congestion condition in the detection region of the RSU; acquiring a plurality of first congestion indexes of RSUs in a target region, the target region including a plurality of detection regions of the RSUs; and calculating a second congestion index according to the plurality of first congestion indexes, the second congestion index representing a traffic congestion condition of the target region.


An embodiment of the present application provides a traffic congestion detection apparatus, including: a first acquisition module configured to acquire vehicle information of each vehicle driving into a detection region of a roadside unit (RSU); a first calculation module configured to calculate a first congestion index according to the vehicle information, the first congestion index representing a traffic congestion condition in the detection region of the RSU; a second acquisition module configured to acquire a plurality of first congestion indexes of RSUs in a target region, the target region including a plurality of detection regions of the RSUs; and a second calculation module configured to calculate a second congestion index according to the plurality of first congestion indexes, the second congestion index representing a traffic congestion condition of the target region.


An embodiment of the present application provides an electronic device, including: at least one processor; and a memory communicatively connected with the at least one processor; the memory stores instructions to be executed by the at least one processor, the instructions, executed by the at least one processor, cause the at least one processor to perform the method described above.


An embodiment of the present application provides a computer-readable storage medium storing a computer program thereon, the computer program, executed by a processor, causes the processor to perform the method described above.





BRIEF DESCRIPTION OF DRAWINGS


FIG. 1 is a flowchart illustrating a traffic congestion detection method in a first embodiment according to the present application;



FIG. 2 is a schematic diagram of a road network structure in an application scene of the traffic congestion detection method in the first embodiment according to the present application;



FIG. 3 is a flowchart of calculating a first congestion index in a second embodiment according to the present application;



FIG. 4 is a function image of a membership function of an average speed on a road section in the second embodiment according to the present application;



FIG. 5 is a function image of a membership function of an average density on a road section in the second embodiment according to the present application;



FIG. 6 is a flowchart of calculating a second congestion index in the second embodiment according to the present application;



FIG. 7 is a flowchart illustrating a traffic congestion detection method in a third embodiment according to the present application;



FIG. 8 is a schematic structural diagram of a traffic congestion detection apparatus in a fourth embodiment according to the present application; and



FIG. 9 is a schematic structural diagram of an electronic device in a fifth embodiment according to the present application.





DETAILED DESCRIPTION

In order to make purposes, technical solutions, and advantages of embodiments of the present application clearer, the embodiments of the present application are described below with reference to the accompanying drawings. It should be understood by those of ordinary skill in the art that, in the embodiments of the present application, many technical details are proposed to enable readers to better understand the present application. However, the technical solutions claimed in the present application may be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not limit the present application, and the embodiments of the present application may be combined and quoted with each other if no conflict is incurred.


A main purpose of embodiments of the present application is to provide a traffic congestion detection method, a traffic congestion detection apparatus, an electronic device and a storage medium, so that efficiency and stability of calculation of traffic data are improved, and reliability of a result of detecting a traffic congestion condition is improved.


According to the traffic congestion detection method provided in the present application, based on a vehicle networking mode of V2I, vehicle information in each detection region is acquired by a RSU, after a congestion index in each detection region is calculated and uploaded, and then a congestion index in a target region is calculated according to congestion indexes calculated by RSUs in the target region, so as to evaluate a traffic congestion condition of the target region, which does not depend on information transmission between traffic participants, so that a stable and reliable traffic congestion detection result can be obtained.


A first embodiment of the present application relates to a traffic congestion detection method, and a specific flow of the method is shown in FIG. 1, as shown in FIG. 1, the method includes: acquiring vehicle information of each vehicle driving into a detection region of a RSU; calculating a first congestion index according to the vehicle information, the first congestion index representing a traffic congestion condition in the detection region of the RSU; acquiring a plurality of first congestion indexes of RSUs in a target region, the target region including a plurality of detection regions of the RSUs; and calculating a second congestion index according to the plurality of first congestion indexes, the second congestion index representing a traffic congestion condition of the target region. The congestion index in the target region is calculated according to the congestion indexes calculated by the RSUs in the target region, so as to evaluate the traffic congestion condition of the target region, which does not depend on information transmission between traffic participants, so that a stable and reliable traffic congestion detection result can be obtained.


Implementation details of the traffic congestion detection method provided in the embodiment of the present application are described in detail below, and the following description is only provided for facilitating understanding of the implementation details, but the implementation details are not necessary for implementing the method.


An execution body of the traffic congestion detection method in the embodiment is a roadside unit (RSU) installed on a roadside and communicating with an on-board equipment, i.e., an on-board unit (OBU), installed on a vehicle driving on the road, so as to implement a function of vehicle information interaction. The specific flow of the traffic congestion detection method in the embodiment is as shown in FIG. 1, and includes operations 101 to 104.


At operation 101, acquiring vehicle information of each vehicle driving into a detection region of a RSU.


Specifically, in the embodiment, a target region including a plurality of road sections is used as an object of traffic congestion detection (i.e., an object to be detected for a traffic congestion condition thereof), the road sections in the target region are fully covered by detection regions of at least one RSU, and according to characteristics of a communication between each RSU and an OBU, a distance between any two RSUs is set to be no greater than two hundred meters. After deploying each RSU, the RSU establishes a communication connection with the OBU on the road section in the detection region of the RSU, so that traffic congestion detection is started, and vehicle information reported by the OBU is periodically acquired.


In some examples, the vehicle information mainly includes speed information and a current location, the speed information may specifically include instantaneous speeds of a vehicle to which the OBU belongs. The RSU stores all vehicle information in a period for a subsequent calculation of congestion indexes.


In an actual application scenario, in a vehicle networking communication process, the RSU on each road section collects messages sent by the OBU, the RSU accesses into a core wireless network through communication modes such as broadband wireless, a mobile base station, a satellite, and the like, and the core wireless network accesses into Internet to communicate with an intelligent traffic system.


At operation 102, calculating a first congestion index according to the vehicle information.


Specifically, the RSU firstly determines the road section covered by the detection region according to pre-recorded traffic network data, then according to the speed information and location information of each vehicle, determines an average speed and an average density on the road section covered by the detection region of the RSU, and determines the first congestion index according to the average speed and the average density on the road section. That is, preliminary processing is performed on the vehicle information, an average speed and an average density of a certain road section in the detection region are calculated based on the speed information and the location information of the vehicle, and then the first congestion index is determined based on the average speed and the average density on the road section.


The average speed on the road section is calculated according to instantaneous speeds uploaded by the OBU, the average density on the road section is obtained by determining, by the RSU, the road section where the vehicle is located according to the location information uploaded by the OBU, and then counting a number of vehicles on the road section.


In some examples, a road network structure in the target region is as shown in FIG. 2, after the vehicle drives into the detection region, the vehicle reports speed information and location information of the vehicle to the RSU of the road section every second through the OBU. Assuming that an average speed of the vehicle on an urban road is about 40 km/h, a time duration for passing through the detection region of the RSU (with a radius of two hundred meters of the detection region being illustrated as an example) is about thirty-six seconds, if the average speed of the vehicle in a time period is calculated according to instantaneous speeds of the vehicle, a number of data samples of instantaneous speeds should not too few, the more the number of data samples is, the longer the time period is expected to be, errors such as transmission delays and the like may be ignored in calculation, by taking the time duration in which the vehicle passes through the detection region as a period of the RSU for calculating the congestion index of the detection region, the shorter the period of the RSU for calculating the congestion index of the detection region is, the higher the efficiency of the RSU is, assuming that the period of the RSU for calculating the congestion index of the detection region is set to be thirty seconds, the RSU calculates to obtain one congestion index of the region every thirty seconds.


In some examples, assuming that within 30 seconds, a vehicle Vi reports t (t≤30) sets of data to the RSU, a process of calculating an average speed νave on a road section includes operation S11 to S13.


At operation S11, assuming there are currently t′ (t′≤30) effective speeds, according to j instantaneous speeds of the vehicle Vi, calculating an average speed νi of the vehicle Vi within one period, a calculation formula is as follows:







v
i

=









j
=
1


t





v
i
j



t






(


i
=
1

,
2
,


3
...



n


)

.






At operation S12, calculating, by the RSU, an average speed νr of a lane r within one period, a calculation formula is as follows:








v
r

=








i
=
1


n
r




v
i



n
r



,




where nr represents a number of vehicles on the lane r, and n=Σnr.


At operation S13, calculating, by the RSU, an average speed νave of a certain road section within one period, a calculation formula is as follows:








v
ave

=




v
r



s
r



,




where sr represents a total number of lanes in the road section, for example, sr=4.


A process of calculating an average density ρave on a road section includes operation S21 to S23.


At operation S21, calculating, by the RSU, a density ρr of vehicles of the lane r in t-th second, a calculation formula is as follows:








ρ
r
t

=


n
r

l


,




where l is a total length of the lane r occupied by vehicles in the t-th second, i.e., a distance between two vehicles closest to two ends of the detection region of the RSU, including lengths of the two vehicles.


At operation S22, calculating, by the RSU, an average density ρr of the lane r within one period, a calculation formula is as follows:







ρ
r

-









t
=
1

30



ρ
r
t


30

.





At operation S23, calculating, by the RSU, the average density ρave of a certain road section within one period, a calculation formula is as follows:







ρ
ave

=





ρ
r



s
r


.





In some examples, during calculating the first congestion index (i.e., the congestion index determined according to the average speed and the average density on the road section), different weight coefficients may be assigned to different road sections according to the road network structure, for example, a higher weight is assigned to a main road and a lower weight is assigned to an auxiliary road, so as to evaluate the congestion condition of all road sections in the region more accurately.


At operation 103, acquiring a plurality of first congestion indexes uploaded by RSUs in a target region.


Specifically, in the embodiment, the congestion condition of the target region is taken as an object of traffic congestion detection, the target region includes a plurality of detection regions of RSUs, i.e., a plurality of road sections are covered in the target region, and the intelligent traffic system performs statistics simultaneously on first congestion indexes calculated and uploaded by the RSUs, and analyzes the first congestion indexes according to the road network structure, determines a data fusion center, and calculates a second congestion index. Generally, the RSU located at a center of a main road section, i.e., a road section having a largest traffic flow, is used as a data fusion center. For example, the RSU performing the above operations 101 and 102 being determined as the data fusion center is taken as an example, the first congestion indexes reported by other RSUs in the target region are acquired through the intelligent traffic system.


At operation 104, calculating a second congestion index according to the plurality of first congestion indexes.


Specifically, after the RSU determined as the data fusion center acquires the first congestion indexes reported by the RSUs in the target region, the RSU performs a statistic calculation on all the first congestion indexes. Since the first congestion index is a parameter indicating a congestion condition of a single detection region of the RSU, so that congestion conditions of a plurality of detection regions are statistically analyzed, a congestion condition of the target region composed of the plurality of detection regions can be obtained. In the embodiment, the congestion condition of the target region is represented by the second congestion index.


In the traffic congestion detection method provided in the embodiment, vehicle information in each detection region is acquired by the RSU, after the congestion index in each detection region is calculated and uploaded, and then the congestion index in the target region is calculated according to the congestion indexes calculated by the RSUs in the target region, so as to evaluate a traffic congestion condition of the target region, so that a stable and reliable traffic congestion detection result can be obtained.


It should be noted that the above examples in the embodiment are only for understanding the embodiment of the present application, but do not limit the embodiment of the present application.


A second embodiment of the present application relates to a traffic congestion detection method being substantially same as that in the first embodiment, with a main difference in that: in the second embodiment, the first congestion index and the second congestion index are calculated based on a DS evidence theory and a fuzzy set theory.


Implementation details of the traffic congestion detection method provided in the second embodiment are described in detail below, and a process of calculating the first congestion index in the traffic congestion detection method provided in the second embodiment is as shown in FIG. 3, and includes operations 301 to 303.


At operation 301, calculating an average speed and an average density on a road section within a detection region of a RSU.


Specifically, in the embodiment, the average speed and the average density on the road section may be determined by using the calculation mode in the first embodiment, thus not be repeated herein.


In an example, the average speed on the road section may be calculated and obtained according to a time duration t for a vehicle passing through the RSU and a distance d of the road section covered by the RSU, i.e., νave=d/t. This calculation mode can prevent acceleration or deceleration caused by special circumstances during the vehicle driving from resulting in that samples of instantaneous speeds uploaded by the vehicle cannot accurately represent an actual condition of the road section.


At operation 302, generating a basic probability allocation function related to the average speed and the average density on the road section based on a DS evidence theory and a fuzzy set theory.


Specifically, after calculating and obtaining νave and ρave, based on the DS evidence theory and the fuzzy set theory, the average speed and average density on the road section are respectively matched with corresponding membership functions, so as to generate two sets of basic probability allocation (BPA) functions related to speed and density attributes, which are respectively recorded as mν, mρ. An identification framework composed of congestion indexes is set as Θ, assuming that G is a certain proposition under the identification framework, μG (x) is a membership function of the proposition G, represents a degree of the attribute x belongs to the proposition G, and two attribute eigenvalues obtained from the above operations for determining the congestion index of the road section are matched respectively: the average speed and the average density on the road section are respectively matched with corresponding membership functions, so as to generate two sets of the BPA functions related to speed and density attributes, which are respectively recorded as mν, mρ. A matching degree between the speed attribute and the proposition G is defined as: mν(G)=μG(x)|x=νave, a matching degree between the density attribute and the proposition G is defined as: mρ(G)=μG(x)|x=ρave, G may represent a single subset proposition or a multi-subset proposition. If a sum of reliability values of a generated BPA function is greater than 1, normalization processing is performed on the sum of reliability values; if the sum is less than 1, redundant reliability values are assigned to a full set, i.e. to unknowns.


A congestion index set is Θ={I, II, III, IV}.


The congestion index I indicates an unobstructed state, and a qualitative description of citizen perception is that vehicles on the road are few and pass unhindered; the congestion index II indicates a basic unobstructed state, and the qualitative description of citizen perception is that vehicles pass basically unobstructed; the congestion index III indicates a light congestion state, and the qualitative description of citizen perception is that congestion occurs, but is not severe; the congestion index IV indicates moderate congestion, and the qualitative description of citizen perception is that the congestion is severe.


In the embodiment, the membership functions are as shown in FIG. 4 and FIG. 5. In the embodiment, it is assumed that an average speed νA=43 km/h on a road section A and an average density ρA=22 veh/km on the road section A are detected.


According to functions respectively corresponding to the speed νA and the density ρA, as shown in FIG. 4, the speed νA=43 km/h intersects with functions with congestion indexes I, II, and III; as shown in FIG. 5, the density ρA=22 veh/km intersects with functions with congestion indexes I and II. As shown in FIG. 4, it can be seen that, from bottom to top, an intersection value between νA=43 km/h and III is which is a reliability degree for a multi-subset proposition {I, II, III}, an intersection value between νA=43 km/h and I is 0.15, which is a reliability degree for a multi-subset proposition {I, II}, and an intersection value between νA=43 km/h and II is which is a reliability degree for a single-subset proposition II, similarly, from bottom to top, an intersection value between ρA=22 veh/km and II is 0.1334, which is a reliability degree for a multi-subset proposition {I, II}, an intersection value between ρA=22 veh/km and I is 0.9, which is a reliability degree for a single-subset proposition I. The normalization processing is performed on νA and ρA to obtain basic probability allocation (BPA) functions for congestion indexes under two attributes of speed and density in the road section A are as follows:

    • mνA(II)=0.75, mνA(I, II)=0.1324, mνA(I, II, III), =0.1176, mρA (I)=0.8709, mρA(I, II)=0.1291.


At operation S303, fusing average speeds and average densities of road sections in the detection region by adopting an evidence combination rule to obtain the first congestion index.


Specifically, assuming that the detection region includes x road sections, the average speeds and average densities of the x road sections are fused to obtain the basic probability allocation function mA of the congestion index for the road section A. A basic probability allocation function corresponding to a congestion index of a road section i is denoted as mi, i=1, 2, . . . , x. A specific Dempster combination rule is as follows:






{





k
=





A

B

=






m
v

(
A
)

×


m
ρ

(
B
)










m

(

A


)

=


1

1
-
k








A

B

=

A







m
v

(
A
)

×


m
ρ

(
B
)








.





In some examples, a process of calculating mA is as follow:







k
=






A

B

=






m

v
A


(
A
)

×


m

ρ
A


(
B
)



=




m

v
A


(
II
)

×


m

ρ
A


(
I
)


=


0.75
×
0.8709

=
0.6532




,









m
A

(
I
)

=



1

1
-
k








A

B

=

{
I
}






m

v
A


(
A
)

×


m

ρ
A


(
B
)




=



1

1
-
0.6532


×

{




m

v
A


(

I
,
II

)

×


m

ρ
A


(
I
)


+



m

v
A


(

I
,
II
,
III

)

×


m

ρ
A


(
I
)



}


=


2.8835
×

(


0.1324
×
0.8709

+

0.1176
×
0.1219


)


=
0.3763




,









m
A

(
II
)

=



1

1
-
k








A

B

=

{
II
}






m

v
A


(
A
)

×


m

ρ
A


(
B
)




=



1

1
-
0.6532


×

{



m

v
A


(
II
)

×


m

ρ
A


(

I
,
II

)


}


=


2.8835
×

(

0.75
×
0.1219

)


=
0.2792




,









m
A

(

I
,
II

)

=



1

1
-
k








A

B

=

{

I
,
II

}






m

v
A


(
A
)

×


m

ρ
A


(
B
)




=



1

1
-
0.6532


×

{




m

v
A


(

I
,
II

)

×


m

ρ
A


(

I
,
II

)


+



m

v
A


(

I
,
II
,
III

)

×


m

ρ
A


(

I
,
II

)



}


=


2.8835
×

(


0.1324
×
0.1219

+

0.1176
×
0.1219


)


=
0.0931




,








m
A

(
θ
)

=



1
-

{
I
}

-

{
II
}

-

{

I
,
II

}




2
4

-
3


=




1
-
0.3763
-
0.2792
-
0.0931

13

·

=
0.0193






During a detection period, if RSUs of four road sections A, B, C, and D detect that driving speeds and traffic densities on the road sections A, B, C, and D respectively are (43 km/h, 22 veh/km), (45 km/h, 19 veh/km), (40 km/h, 25 veh/km), and (38 km/h, 28 veh/km), sets of congestion indexes of the four road sections in the region are:

    • {mA(I)=0.3763, mA=0.2792, mA (I, II)=0.0931, mA (θ)=0.0193}
    • {mB(I)=0.8261, mB(θ)=0.0116}, {In c (II)=0.7618, mC(θ)=0.0159}, {mD(II)=1}.


A process of calculating the second congestion index in the traffic congestion detection method provided in the embodiment is as shown in FIG. 6, and includes operation 601 to 606.


At operation 601, the intelligent traffic system determines weight coefficients of road sections according to the road network structure, and establishes an evidence correlation coefficient matrix SM.


At operation 602, the intelligent traffic system determines a data fusion center according to the evidence correlation coefficient matrix SM.


Specifically, the weight coefficients of the road sections in the target region are acquired; the weight coefficient of the main road is higher than that of each auxiliary road; a correlation coefficient matrix is established according to the weight coefficients of the road sections; a value of an element in the matrix represents a degree that the road section represented by a row where the element is located is supported by the road section represented by a column where the element is located, and a sum of values of all elements of each row in the matrix represents a central location of the road section corresponding to the row in the target region; the RSU on the road section corresponding to the row with a highest sum of values of all elements is selected as the data fusion center.


For example, assuming that the target region has s road sections, and the SM is an s-order symmetric matrix, and a value in i-th row and j-th column of the matrix SM reflect a similarity degree between mi and mj, and is denoted as SM(i, j). maxi=1, 2, . . . , sj=1sSM(i, j)} reflects that a traffic density on the road section i is higher than that of other road sections, and in such case, after receiving the first congestion index uploaded by each RSU, the intelligent traffic system selects the RSU on the road section i as the data fusion center from a region P where the congestion index is to be determined, other RSUs in the region P each send the basic probability allocation function of the corresponding road section to the RSU serving as the data fusion center.


In some examples, the road network structure is as shown in FIG. 2, a road section A is a main road, road sections B, C and D are auxiliary roads, therefore a following evidence correlation matrix SM is designed.






SM
=

(



1


0.9941


0.9446


0.5857




0.9941


1


0.5608


0.5874




0.9446


0.5608


1


0.5987




0.5857


0.5874


0.5987


1



)





According to maxi=1, 2, . . . , sj=1sSM(i, j)}, the road section A is selected as an auxiliary fusion center, and the RSUs on road sections B, C, and D send respective values mB, mC, mD to the RSU on the road section A.


At operation 603, calculating a discount coefficient of the basic probability allocation function of each road section.


Specifically, the discount coefficient Crdi reflects a degree that a congestion index of the road section i is supported by congestion indexes of other road sections, and also serves as a weight for each road section during calculating the second congestion index. A formula of calculating the discount coefficient Crdi is as follows:







Crd
i

=










j
=
1

s



SM

(

i
,
j

)


-
1









i
=
1

s








j
=
1

s



SM

(

i
,
j

)


-
s


.





In some examples, the road network structure as shown in FIG. 2 is taken as an example, discount coefficients corresponding to four road sections are as follows:








Crd
A

=










i
=
1

4



SM

(

1
,
j

)


-
1









i
=
1

4








i
=
1

4



SM

(

i
,
j

)


-
4


=



0.9941
+
0.9446
+
0.5857


2
×

(

0.9941
+
0.9446
+
0.5857
+
0.5608
+
0.5874
+
0.5987

)



=
0.2955



,








Crd
B

=










i
=
1

4



SM

(

2
,
i

)


-
1









i
=
1

4










i
=
1


4



SM

(

i
,
j

)


-
4


=



0.9941
+
0.5608
+
0.5874


2
×

(

0.9941
+
0.9446
+
0.5857
+
0.5608
+
0.5874
+
0.5987

)



=
0.2508



,








Crd
C

=










i
=
1

4



SM

(

3
,
i

)


-
1









i
=
1

4








i
=
1

4



SM

(

i
,
j

)


-
4


=



0.9446
+
0.5608
+
0.5987


2
×

(

0.9941
+
0.9446
+
0.5857
+
0.5608
+
0.5874
+
0.5987

)



=
0.2463



,







Crd
D

=










i
=
1

4



SM

(

4
,
i

)


-
1









i
=
1

4








i
=
1

4



SM

(

i
,
j

)


-
4


=




0.5857
+
0.5874
+
0.5987


2
×

(

0.9941
+
0.9446
+
0.5857
+
0.5608
+
0.5874
+
0.5987

)



·

=
0.2074






At operation 604, calculating an average congestion index of the road sections by using the discount coefficients.


Specifically, evidences of a same proposition on different road sections are weighted and summed by using the discount coefficient Crdi to obtain a weighted average evidence mQ. A calculating formula is as follows:







m
Q

=




i
=
1

s




Crd
i






m
i

.







For example, a calculating process is as follows:









m
Q

(
I
)

=





i
=
A

D




Crd
i

×

m
i



=



0.2955
×
0.3763

+

0.2508
×
0.8261

+

0.2463
×
0.0159

+
0

=
0.3223



,









m
Q

(
II
)

=





i
=
A

D




Crd
i

×

m
i



=



0.2792
×
0.2955

+

0.01159
×
0.2508

+

0.7618
×
0.2463

+

1
×
0.2074


=
0.4804



,









m
Q

(

I
,
II

)

=





i
=
A

D




Crd
i

×

m
i



=



0.0931
×
0.2955

+

0.2508
×
0.01159

+

0.2463
×
0.0159

+

0.2074
×
0


=
0.0343



,








m
Q

(
θ
)

=





i
=
A

D




Crd
i

×

m
i



=



0.2955
×
0.01934

+

0.2508
×
0.01159

+

0.2463
×
0.0159

+

0.2074
×

0
·



=
0.0125






At operation 605, performing self-fusion on the average congestion index according to the evidence combination rule to obtain the basic probability allocation function.


Specifically, the average evidence mQ is fused three times using the Dempster combination rule to obtain the basic probability allocation function mF, i.e.,






m
F
=m
Q
⊕m
Q
⊕m
Q


Fusion results of fusions of the three times are shown in the table below.















mQ
mQ (I) = 0.3223 mQ (II) = 0.4804 mQ (I, II) = 0.0343


mQ ⊕ mQ
mQ′ (I) = 0.1826 mQ′ (II) = 0.3821 mQ′ (I, II) = 0.0017


mQ ⊕ mQ
mQ″ (I) = 0.0833 mQ″ (II) = 0.1975 mQ″ (I, II) = 0.0001


mQ


mF
mF (I) = 0.0332 mF (II) = 0.1135









At operation 606, converting the basic probability allocation function m F into a probability distribution p, and taking a proposition with a highest value as the second congestion index.


Specifically, a basic principle of converting the basic probability allocation function m F into the probability distribution p is to maintain a reliability degree of a single-subset proposition and evenly allocate a reliability degree of a multi-subset proposition to single subset propositions contained in the multi-subset proposition. In the embodiment, each calculated probability is normalized, and the proposition with the highest value is taken as the congestion index of the region.


In some examples, p(I)=0.0332, p(II)=0.1135, and after being normalized, p(I)=0.2263, p(II)=0.7736, p(II)>p(I), therefore the congestion index of the region is determined as II, which indicates a basic unobstructed state, and the qualitative description of citizen perception is that vehicles pass basically unobstructed.


According to the traffic congestion detection method provided in the embodiment, the first congestion index and the second congestion index are calculated by way of data fusion based on the evidence theory, so that congestion conditions of each road section can be more accurately statistically analyzed, and a congestion index more accurately reflecting the actual traffic congestion condition is obtained.


A third embodiment of the present application relates to a traffic congestion detection method being substantially same as that in the first embodiment, with a main difference in that: in the third embodiment, after acquiring vehicle information periodically uploaded by each OBU in the detection region of the RSU, before calculating a first congestion index according to the vehicle information, the traffic congestion detection method further includes: counting instantaneous speed information in the vehicle information, screening the instantaneous speed information, and removing abnormal instantaneous speed information.


Implementation details of the traffic congestion detection method provided in the third embodiment are described in detail below, and a process of the traffic congestion detection method provided in the third embodiment is as shown in FIG. 7, and includes operations 701 to 705.


At operation 701, acquiring vehicle information of each vehicle driving into a detection region of the RSU.


Operation 701 is same as operation 101 in the first embodiment, the relevant implementation details have been described in the first embodiment, and thus are not repeated herein.


At operation 702, counting instantaneous speed information in the vehicle information, screening the instantaneous speed information, and removing abnormal instantaneous speed information.


Specifically, since a driving state of the vehicle in the road section has a certain uncertainty, the RUS cannot accurately measure the driving state of the vehicle in the road section only through instantaneous speeds uploaded by the OBU, and therefore data samples of instantaneous speeds are screened, so that the data samples of instantaneous speeds with universality are adopted to calculate an average speed on the road section.


In some examples, based on a hypothesis test of large subsamples, the RSU performs the hypothesis test on speeds reported to the RSU by n vehicles on the road section within a t-th second. The vehicle Vi determines effectiveness of a speed νi of the vehicle Vi according to an average speed of other vehicles on the road section within the t-th second, and then following null hypothesis and alternative hypothesis schemes are proposed:

    • H0: ν=νi, no significant difference exists;
    • H1: ν ≠νi, there is a significant difference.


In above formulas, ν represents an actual driving speed of the vehicle Vi, νi, represents a detection value of driving speed of the vehicle Vi “no significant difference exists” represents that there is no significant difference between the actual driving speed and the detection value of driving speed, while “there is a significant difference” indicates that there is a significant difference between the actual driving speed and the detection value of driving speed.


On the road section, except for the vehicle Vi, if speeds reported by other (n−1) vehicles include ν1, . . . νi−1, νi+1 . . . νn−1, according to a central limit theorem and a hypothesis test based on large subsamples, it is known that there are many vehicles on the road section, that is, a value of n is large, and a statistic ν approximately follows a standard normal distribution, a formula of calculating ν is as follow:







v
=



v
_

-

v
i



s

n




,




s and ν are respectively a standard deviation and an average value of the speeds reported by other (n−1) vehicles on the road section, νi is a speed reported by the vehicle Vi.


Given a significance level α, there is a






μ

α
2





making that:








ρ


{




"\[LeftBracketingBar]"

v


"\[RightBracketingBar]"




μ

α
2



}



α

,

i
.
e
.

,


ρ


{




"\[LeftBracketingBar]"


v
=



v
_

-

v
i



s

n






"\[RightBracketingBar]"




μ

α
2



}




α
.






The RSU obtains values of subsamples ν1, ν2, ν3, . . . νn−1 of speeds of (n−1) vehicles on a certain road section. Values of s and ν are calculated, and if:










"\[LeftBracketingBar]"



v
_

-

v
i




"\[RightBracketingBar]"





μ

α
2




s

n




,




and then the hypothesis H0 is rejected, and H1 is accepted, i.e., there is a significant difference between the actual speed ν and νi the speed νi detected by the vehicle is regarded as invalid and then rounded down. If










"\[LeftBracketingBar]"



v
_

-

v
i




"\[RightBracketingBar]"


<


μ

α
2




s

n




,




and then the hypothesis H0 is accepted, and H1 is rejected, i.e., there is no significant difference between the actual speed ν and νi the speed νi detected by the vehicle is regarded as valid, and a confidence probability is 1−α, α=1 is selected in the example. By performing the hypothesis test on n vehicles on the road section, data representing the speed too fast or too slow in the second may be removed. The removed data may reflect the vehicle that is choosing a parking space on the roadside or is speeding other vehicles.


At operation 703, calculating a first congestion index according to screened vehicle information.


At operation 704, acquiring a plurality of the first congestion indexes uploaded by RSUs in a target region.


At operation 705, calculating a second congestion index according to the plurality of the first congestion indexes.


Operations 703 to 705 are similar to operations 102 to 104 in the first embodiment, and the relevant implementation details have been described in the first embodiment, and thus are not repeated herein.


According to the traffic congestion detection method provided in the embodiment, after speed data uploaded by the OBU is obtained, the data is screened to obtain the instantaneous speed data of the vehicle with a high confidence degree, so that the calculated congestion index is more accurate, and the traffic congestion condition in the region can be more accurately measured.


It should be understood by those skilled in the art that a division between operations of the above method is only for a purpose of clear description, during implementing the method, the operations may be combined into one operation or some operations each may be further split into several operations, which are within the protection scope of the present application, as long as the same logical relationship is included; unnecessary modifications or designs being added or introduced into the algorithm or process, without changing the core design of the algorithm and process is within the protection scope of the present application.


A fourth embodiment of the present application relates to a traffic congestion detection apparatus, configured as shown in FIG. 8, including: a first acquisition module 801, a first calculation module 802, a second acquisition module 803, and a second calculation module 804.


The first acquisition module 801 is configured to acquire vehicle information of each vehicle driving into a detection region of a roadside unit (RSU).


The first calculation module 802 is configured to calculate a first congestion index according to the vehicle information, with the first congestion index representing a traffic congestion condition in the detection region of the RSU.


The second acquisition module 803 is configured to acquire a plurality of the first congestion indexes of RSUs in a target region, with the target region including a plurality of detection regions of the RSUs.


The second calculation module 804 is configured to calculate a second congestion index according to the plurality of the first congestion indexes, with the second congestion index representing a traffic congestion condition of the target region.


In some examples, the first calculation module 802 is configured to determine a road section covered within the detection region of the RSU; determine an average speed and an average density on the road section covered within the detection region of the RSU according to the speed information and location information of each vehicle; and determine the first congestion index according to the average speed and the average density on the road section.


In some examples, the first acquisition module 801 is further configured to perform hypothesis testing on the instantaneous speed information by adopting a large subsample test, and determining whether there is a significant difference between the instantaneous speed and an actual driving speed according to a test threshold, the actual driving speed being obtained by calculating an average value of all instantaneous speeds except an instantaneous speed of a target vehicle, and the test threshold being obtained by calculating according to a standard deviation of all instantaneous speeds except the instantaneous speed of the target vehicle; and remove the instantaneous speed, as abnormal data, being obviously different from the actual driving speed.


In some examples, the second acquisition module 803 is further configured to, in response to that the RSU is determined as a data fusion center by an intelligent traffic system, acquire a plurality of first congestion indexes uploaded by RSUs in the target region. The data fusion center determined by: acquiring weight coefficients of road sections in the target region, with the weight coefficient of a main road being higher than that of an auxiliary road; establishing a correlation coefficient matrix according to the weight coefficients of the road sections, with a value of an element in the matrix representing a degree that the road section represented by a row where the element is located is supported by the road section represented by a column where the element is located, and a sum of values of all elements of each row in the matrix representing a central location of the road section corresponding to the row in the target region; selecting the RSU on the road section corresponding to the row with a highest sum of values of all elements as the data fusion center.


In some examples, the second calculation module 804 is configured to calculate discount coefficients of road sections in the target region, with each discount coefficient reflecting a degree that a congestion index of the corresponding road section is supported by congestion indexes of other road sections in the target region; calculate an average congestion index of the road sections in the target region according to the discount coefficients; perform self-fusion on the average congestion index according to an evidence combination rule to obtain a basic probability allocation function; and convert the basic probability allocation function into a probability distribution, and determine the second congestion index according to the probability distribution.


It should be noted that, each module related in the embodiment is a logic module, and in practical applications, each logic component may be one physical component, or may be a part of one physical component, or may be implemented by a combination of multiple physical components. In addition, in order to emphasize the innovative part of the present application, some components being less closely related to solving the technical problem proposed by the present application is not introduced in the embodiment, which does not indicate that there is not any other component in the embodiment.


A fifth embodiment of the present application relates to an electronic device, and as shown in FIG. 9, the electronic device includes: at least one processor 901; and a memory 902 communicatively connected with the at least one processor 901; the memory 902 stores instructions to be executed by the at least one processor 901, the instructions, executed by the at least one processor 901, cause the at least one processor 901 to perform the traffic congestion detection method described in any of the first, second and third embodiments. The memory 902 and processor 901 are connected through a bus, the bus may include any number of interconnected buses and bridges, and connects various circuits of the at least one processor 901 and the memory 902 together. The bus may further connect together various circuits of peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and thus are not repeated here. A bus interface provides an interface between the bus and a transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatuses over a transmission medium. Data processed by the processor 901 is transmitted over a wireless medium through an antenna, and the antenna further receives data and transmits the data to the processor 901. The processor 901 manages the bus, performs general processing, and may further provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory 902 may be used to store data used by the processor 901 in performing operations.


A sixth embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. The computer program, executed by a processor, causes the processor to implement the traffic congestion detection method in any embodiment described above. It should be understood, by those skilled in the art, that all or part of the operations in the method in any embodiment described above may be implemented by a program instructing related hardware, the program is stored in a storage medium and includes several instructions for causing a device (which may be a single-chip computer, a chip, or the like) or a processor to execute all or part of operations of the method provided in any embodiment of the present application. The aforementioned storage medium includes a U-disk, a read-only memory (ROM), a random access memory (RAM), a removable hard disk, a magnetic disk, an optical disk, or various medium capable of storing program codes. It should be understood by those skilled in the art that the above embodiments are examples of embodiments of the present application, and in practical applications, various changes in form and details may be made without departing from the scope and spirit of the present application.

Claims
  • 1. A traffic congestion detection method, applied to a roadside unit (RSU), comprising: acquiring vehicle information of each vehicle driving into a detection region of the RSU;calculating a first congestion index according to the vehicle information, with the first congestion index representing a traffic congestion condition in the detection region of the RSU;acquiring a plurality of first congestion indexes of RSUs in a target region, with the target region comprising a plurality of detection regions of the RSUs; andcalculating a second congestion index according to the plurality of first congestion indexes, with the second congestion index representing a traffic congestion condition of the target region.
  • 2. The traffic congestion detection method according to claim 1, wherein the vehicle information comprises at least one of: speed information or location information; the calculating a first congestion index according to the vehicle information comprises:determining a road section covered within the detection region of the RSU;determining an average speed and an average density on the road section covered within the detection region of the RSU according to the speed information and location information of the each vehicle; anddetermining the first congestion index according to the average speed and the average density on the road section.
  • 3. The traffic congestion detection method according to claim 2, wherein the determining the first congestion index according to the average speed and the average density on the road section comprises: determining a basic probability allocation function corresponding to the average speed and the average density on the road section based on a DS evidence theory and a fuzzy set theory; andfusing by adopting an evidence combination rule according to the basic probability allocation function to obtain the first congestion index.
  • 4. The traffic congestion detection method according to claim 2, wherein the speed information comprises instantaneous speed information of the vehicle; before determining the average speed and the average density on the road section covered within the detection region of the RSU according to the speed information and the location information of the each vehicle, the method further comprises:performing hypothesis testing on the instantaneous speed information by adopting a large subsample test, and determining whether there is a significant difference between the instantaneous speed and an actual driving speed according to a test threshold, with the actual driving speed being obtained by calculating an average value of all instantaneous speeds except an instantaneous speed of a target vehicle, and the test threshold being obtained by calculating according to a standard deviation of all instantaneous speeds except the instantaneous speed of the target vehicle; andremoving the instantaneous speed, as abnormal data, being obviously different from the actual driving speed.
  • 5. The traffic congestion detection method according to claim 1, wherein the acquiring a plurality of first congestion indexes of RSUs in a target region comprises: in response to that a data fusion center is determined by an intelligent traffic system, acquiring the plurality of first congestion indexes uploaded by the RSUs in the target region.
  • 6. The traffic congestion detection method according to claim 5, wherein the data fusion center is determined by: acquiring weight coefficients of road sections in the target region, with the weight coefficient of a main road being higher than the weight coefficient of an auxiliary road;establishing a correlation coefficient matrix according to the weight coefficients of the road sections, with a value of an element in the matrix representing a degree that the road section represented by a row, where the element is located, is supported by the road section represented by a column, where the element is located, and a sum of values of all elements of each row in the matrix representing a central location of the road section corresponding to the row in the target region;selecting the RSU on the road section corresponding to the row with a highest sum of values of all elements as the data fusion center.
  • 7. The traffic congestion detection method according to claim 1, wherein the calculating a second congestion index according to the plurality of first congestion indexes comprises: calculating discount coefficients of road sections in the target region, with each discount coefficient reflecting a degree that a congestion index of the road section corresponding to the discount coefficient is supported by congestion indexes of other road sections in the target region;calculating an average congestion index of the road sections in the target region according to the discount coefficients;performing self-fusion on the average congestion index according to an evidence combination rule to obtain a basic probability allocation function; andconverting the basic probability allocation function into a probability distribution, and determining the second congestion index according to the probability distribution.
  • 8. (canceled)
  • 9. An electronic device, comprising: at least one processor; anda memory communicatively connected with the at least one processor, whereinthe memory stores instructions to be executed by the at least one processor, the instructions, executed by the at least one processor, cause the at least one processor to perform the method of claim 1.
  • 10. A computer-readable storage medium storing a computer program, the computer program, executed by a processor, causes the processor to perform the method of claim 1.
  • 11. The traffic congestion detection method according to claim 2, wherein the acquiring a plurality of first congestion indexes of RSUs in a target region comprises: in response to that a data fusion center is determined by an intelligent traffic system, acquiring the plurality of first congestion indexes uploaded by the RSUs in the target region.
  • 12. The traffic congestion detection method according to claim 3, wherein the acquiring a plurality of first congestion indexes of RSUs in a target region comprises: in response to that a data fusion center is determined by an intelligent traffic system, acquiring the plurality of first congestion indexes uploaded by the RSUs in the target region.
  • 13. The traffic congestion detection method according to claim 4, wherein the acquiring a plurality of first congestion indexes of RSUs in a target region comprises: in response to that a data fusion center is determined by an intelligent traffic system, acquiring the plurality of first congestion indexes uploaded by the RSUs in the target region.
  • 14. The traffic congestion detection method according to claim 2, wherein the calculating a second congestion index according to the plurality of first congestion indexes comprises: calculating discount coefficients of road sections in the target region, with each discount coefficient reflecting a degree that a congestion index of the road section corresponding to the discount coefficient is supported by congestion indexes of other road sections in the target region;calculating an average congestion index of the road sections in the target region according to the discount coefficients;performing self-fusion on the average congestion index according to an evidence combination rule to obtain a basic probability allocation function; andconverting the basic probability allocation function into a probability distribution, and determining the second congestion index according to the probability distribution.
  • 15. The traffic congestion detection method according to claim 3, wherein the calculating a second congestion index according to the plurality of first congestion indexes comprises: calculating discount coefficients of road sections in the target region, with each discount coefficient reflecting a degree that a congestion index of the road section corresponding to the discount coefficient is supported by congestion indexes of other road sections in the target region;calculating an average congestion index of the road sections in the target region according to the discount coefficients;performing self-fusion on the average congestion index according to the evidence combination rule to obtain a basic probability allocation function; andconverting the basic probability allocation function into a probability distribution, and determining the second congestion index according to the probability distribution.
  • 16. The traffic congestion detection method according to claim 4, wherein the calculating a second congestion index according to the plurality of first congestion indexes comprises: calculating discount coefficients of road sections in the target region, with each discount coefficient reflecting a degree that a congestion index of the road section corresponding to the discount coefficient is supported by congestion indexes of other road sections in the target region;calculating an average congestion index of the road sections in the target region according to the discount coefficients;performing self-fusion on the average congestion index according to an evidence combination rule to obtain a basic probability allocation function; andconverting the basic probability allocation function into a probability distribution, and determining the second congestion index according to the probability distribution.
  • 17. The traffic congestion detection method according to claim 5, wherein the calculating a second congestion index according to the plurality of first congestion indexes comprises: calculating discount coefficients of road sections in the target region, with each discount coefficient reflecting a degree that a congestion index of the road section corresponding to the discount coefficient is supported by congestion indexes of other road sections in the target region;calculating an average congestion index of the road sections in the target region according to the discount coefficients;performing self-fusion on the average congestion index according to an evidence combination rule to obtain a basic probability allocation function; andconverting the basic probability allocation function into a probability distribution, and determining the second congestion index according to the probability distribution.
  • 18. The traffic congestion detection method according to claim 6, wherein the calculating a second congestion index according to the plurality of first congestion indexes comprises: calculating discount coefficients of road sections in the target region, with each discount coefficient reflecting a degree that a congestion index of the road section corresponding to the discount coefficient is supported by congestion indexes of other road sections in the target region;calculating an average congestion index of the road sections in the target region according to the discount coefficients;performing self-fusion on the average congestion index according to an evidence combination rule to obtain a basic probability allocation function; andconverting the basic probability allocation function into a probability distribution, and determining the second congestion index according to the probability distribution.
  • 19. An electronic device, comprising: at least one processor; anda memory communicatively connected with the at least one processor, whereinthe memory stores instructions to be executed by the at least one processor, the instructions, executed by the at least one processor, cause the at least one processor to perform the method of claim 2.
  • 20. An electronic device, comprising: at least one processor; anda memory communicatively connected with the at least one processor, whereinthe memory stores instructions to be executed by the at least one processor, the instructions, executed by the at least one processor, cause the at least one processor to perform the method of claim 3.
  • 21. A computer-readable storage medium storing a computer program, the computer program, executed by a processor, causes the processor to perform the method of claim 2.
Priority Claims (1)
Number Date Country Kind
202110032765.3 Jan 2021 CN national
PCT Information
Filing Document Filing Date Country Kind
PCT/CN2022/070351 1/5/2022 WO