Pedestrian safety early warning method applied to traffic
By acquiring and processing traffic monitoring radar data, using Kalman filters for trajectory prediction and risk assessment, and dynamically adjusting traffic lights, the problem of insufficient risk assessment of intelligent transportation systems in complex environments is solved, and timely assessment of pedestrian-vehicle interaction risks is achieved. Early warning and security improvements.
Patent Information
- Application Number
- CN202410924979.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing intelligent transportation systems are unable to monitor the interaction between pedestrians and vehicles in real-time in complex traffic environments, resulting in insufficient risk assessment and early warning mechanisms and the inability to provide timely and accurate early warnings.
The traffic monitoring radar data stream is obtained, preprocessed and classified to identify pedestrians and vehicles, the Kalman filter is used for trajectory prediction and tracking, the interaction risk factors between pedestrians and vehicles are dynamically calculated, and dynamically drawn based on position, speed, acceleration and road layout. Monitor high-risk areas and adjust the status and duration of traffic lights.
It achieves timely warning and intervention in potentially dangerous situations, improves the safety of pedestrians crossing the road, and reduces the incidence of traffic accidents.
Smart Images

Figure CN118865706A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of pedestrian warning technology, and in particular to a pedestrian safety warning method applied to traffic. Background Art
[0002] In recent years, with the development of intelligent transportation systems, technologies based on visual sensing and radar monitoring have been increasingly applied to traffic management. These technologies can provide real-time traffic flow data, including the location, speed, and acceleration of vehicles and pedestrians.
[0003] However, existing intelligent transportation systems may have insufficient risk assessment and early warning mechanisms in complex traffic environments. For example, some of them cannot monitor the interaction between pedestrians and vehicles in real time, and therefore cannot accurately calculate the interaction risk between pedestrians and vehicles. Therefore, in potentially dangerous situations, they may not be able to provide timely and accurate early warnings. Summary of the invention
[0004] In order to improve the problem that the existing intelligent transportation system cannot provide timely and accurate warnings in potential dangerous situations, the present application provides a pedestrian safety warning method applied to transportation.
[0005] In a first aspect, the present application provides a pedestrian safety warning method applied to traffic, which adopts the following technical solution: a pedestrian safety warning method applied to traffic, comprising: Obtain traffic monitoring radar data stream; Preprocessing the radar data stream to obtain preprocessed data; Classify the preprocessed data and identify pedestrians and vehicles on the zebra crossing to obtain the classified detection targets; The Kalman filter is used to predict and track the trajectory of the detection target to obtain the position, velocity and acceleration information of each detection target, and the pedestrian-vehicle interaction risk factor is dynamically calculated based on historical data; Dynamically draw high-risk monitoring areas for zebra crossings based on the location, speed, acceleration, risk factor, and road layout of each detected target; When the detection target enters the high-risk monitoring area of the zebra crossing and the pedestrian-vehicle interaction risk factor is greater than the preset threshold, image capture is initiated and the state and duration of the traffic light are adjusted.
[0006] In a specific implementation scheme, a Kalman filter is used to predict and track the trajectory of the detection target to obtain the position, velocity and acceleration information of each detection target, including: Initializing Kalman filter parameters, including setting an initial state vector, setting an initial state covariance matrix, setting a process noise covariance matrix, and setting a measurement noise covariance matrix; According to the initialized Kalman filter parameters, the state of the target at the current moment is predicted using the state transfer equation, and the initial state covariance matrix is updated to obtain a first state covariance matrix; When the target position is detected by the radar, the target position is fused with the predicted state at the current moment, and the Kalman gain is used to calculate the weighted average of the predicted state at the current moment and the measured data to obtain the final state at the current moment; after obtaining the final state at the current moment, the state vector of the Kalman filter is updated to reflect the actual current state of the target, and the state covariance matrix is updated; The operation is repeated continuously, and the state of the Kalman filter is updated with the new measurement data obtained each time. Through continuous state updates, the trajectory of the target is tracked, including the target's position, velocity, and acceleration information.
[0007] In a specific possible implementation scheme, the pedestrian-vehicle interaction risk factor is dynamically calculated based on historical data, including: The historical data is dynamically input into the first formula to calculate the pedestrian-vehicle interaction risk factor; the first formula is: Among them, R represents the interaction risk factor between pedestrians and vehicles; H, β 2 , γ 2 , δ 6 ,∈ 3 , 2 , η 2 and 2 are weight coefficients; d is the straight-line distance between the pedestrian and the vehicle; v rel is the relative speed between pedestrians and vehicles; a rel is the relative acceleration between pedestrians and vehicles; v max and a max are the maximum values of relative speed and relative acceleration respectively; I is the influencing factor of traffic rules and road layout; E is the environmental factor; B is the behavioral pattern factor; σ is the logistic function, which maps the linear combination of logistic regression to a probability value between 0 and 1; are all parameters of the logistic regression model; y 1 ,y 2 ...y n is the input feature set; p, q, r are nonlinear exponents used to adjust the influence of distance, relative speed and relative acceleration respectively; n represents the number of input features.
[0008] In a specific implementation scheme, the zebra crossing high-risk monitoring area is dynamically drawn according to the position, speed, acceleration, risk factor and road layout of each detection target, including: Determine the length and width of the zebra crossing. The calculation formula for the length and width of the zebra crossing is as follows: Where L d is the length of the zebra crossing; w d is the width of the zebra crossing; L 0 is the basic length of the zebra crossing; w 0 is the basic width of the zebra crossing; k 1 , k 1 , k 3 and k 4 is the adjustment coefficient; θ is the slope of the road; R r is the radius of curvature of the road; α 1 , α 2 , α 3 , γ 1 , γ 2 and γ 3 is the adjustment factor; Q t is the current traffic flow; Q max is the maximum traffic flow of the road design; ρ v is the vehicle density; C w is a quantitative value of weather conditions; The distance to the high-risk area is calculated based on the length and width of the zebra crossing. The calculation formula for the distance to the high-risk area is as follows: Among them, d 0 is the braking distance; v 6 is the average speed of the vehicle; d 6 is the distance to the high-risk area; β is the safety factor; w l is the effective width of the lane; ∈ L ,∈ w , μ 1 , μ 2 , μ 3 , δ 1 , δ 2 , δ 3 and δ 4 is the adjustment factor; f s is an adjustment factor; d and p represent the shortest distance from the detection target to the zebra crossing; v is the speed of the detection target; v max Indicates the maximum speed allowed on the road; a max is the set maximum acceleration value; R is the pedestrian-vehicle interaction risk factor; a is the acceleration of the detection target; Calculate a comprehensive risk index based on traffic volume, vehicle density and weather conditions; Based on the comprehensive risk index, the high-risk monitoring area of the zebra crossing is dynamically adjusted.
[0009] In a specific implementation scheme, the calculation formula of the comprehensive risk index is as follows: Among them, R i is the comprehensive risk index, a 4 、b 3 and c 3 is the weight coefficient, η, ζ and ξ are the exponential parameters.
[0010] In a specific feasible implementation plan, according to the comprehensive risk index, the zebra crossing high-risk monitoring area is dynamically adjusted, including: Set the threshold R l , R h And a corresponding adjustment coefficient range E min 、E max (E min <1 <E max ); When R i <R l When , it means that the traffic situation is safe, and the high-risk monitoring area of zebra crossing is reduced, the adjustment factor f s Set to E min ; When R i ≥R h When , it means that the traffic situation is risky, and the high-risk monitoring area of zebra crossing is expanded, then the adjustment factor f s Set to E max ; When R l <R i <R h When , the adjustment factor f s Set to E max and E min Interpolation between E n .
[0011] In a specific embodiment, the interpolation E n The calculation formula is as follows: Here, k is a positive control parameter.
[0012] In the second aspect, the present application provides a pedestrian safety warning device, which adopts the following technical solution: A pedestrian safety warning device, comprising: An acquisition module is used to acquire a traffic monitoring radar data stream; preprocess the radar data stream to obtain preprocessed data; classify the preprocessed data to identify pedestrians and vehicles on the zebra crossing to obtain classified detection targets; The processing module is used to use a Kalman filter to predict and track the trajectory of the detection target to obtain the position, speed and acceleration information of each detection target, and dynamically calculate the pedestrian and vehicle interaction risk factor based on historical data; dynamically draw the zebra crossing high-risk monitoring area according to the position, speed, acceleration, risk factor and road layout of each detection target; when the detection target enters the zebra crossing high-risk monitoring area and the pedestrian and vehicle interaction risk factor is greater than a preset threshold, image capture is initiated, and the state and duration of the traffic light are adjusted.
[0013] In a third aspect, the present application provides a smart terminal, which adopts the following technical solution: An intelligent terminal includes a memory and a processor, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the pedestrian safety warning method applied to traffic as described in the first aspect.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium stores a program, which, when executed by a processor, implements the pedestrian safety warning method applied to traffic as described in the first aspect.
[0015] In summary, the present application includes at least one of the following beneficial technical effects: 1. By acquiring the traffic monitoring radar data stream in real time, preprocessing it and extracting key moving targets, the present invention can accurately and quickly identify pedestrians and vehicles on zebra crossings.
[0016] 2. Use the Kalman filter to predict and track the trajectory of the detection target, and dynamically calculate the risk factor of pedestrian-vehicle interaction based on historical data, so that the system can issue warnings and intervene before potential dangers occur.
[0017] 3. According to the position, speed, acceleration, risk factor and road layout of each detected target, the high-risk monitoring area of zebra crossing is dynamically drawn, and the state and duration of traffic lights are adjusted according to real-time monitoring data. This flexibility and adaptability enable the present invention to better adapt to complex traffic environments.
[0018] 4. When the detection target enters the high-risk monitoring area and the risk factor exceeds the preset threshold, the system starts image capture and adjusts the traffic lights, which helps to promptly remind drivers and pedestrians to pay attention to traffic safety, thereby effectively reducing the incidence of traffic accidents and improving the safety of pedestrians crossing the road. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flow chart of a pedestrian safety warning method applied to traffic according to an embodiment of the present application. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solutions and advantages of the present application clearer, the implementation method of the pedestrian safety warning method and system applied to traffic of the present application will be further described in detail below with reference to the accompanying drawings.
[0021] The embodiment of the present invention provides a pedestrian safety warning method applied to traffic, the method comprising the following steps: a pedestrian safety warning method applied to traffic Step 11, obtaining traffic monitoring radar data stream; Step 12, preprocessing the radar data stream to obtain preprocessed data; Step 13, classifying the preprocessed data, identifying pedestrians and vehicles on the zebra crossing, and obtaining the classified detection targets; Step 14, using the Kalman filter to predict and track the trajectory of the detection targets, to obtain the position, speed and acceleration information of each detection target, and dynamically calculating the pedestrian and vehicle interaction risk factor based on historical data; Step 15, dynamically draw the zebra crossing high-risk monitoring area according to the position, speed, acceleration, risk factor and road layout of each detection target; Step 16: When the detection target enters the high-risk monitoring area of the zebra crossing and the pedestrian-vehicle interaction risk factor is greater than the preset threshold, image capture is started and the state and duration of the traffic light are adjusted.
[0022] In an embodiment of the present invention, step 11, by acquiring the data stream of the traffic monitoring radar, helps to grasp the road traffic situation in real time and accurately. Step 12, the noise and invalid data in the radar data stream can be filtered out to improve the accuracy and reliability of the data. At the same time, extracting key moving targets helps the system focus on the targets that have the greatest impact on traffic and improves processing efficiency. Step 13, by classifying moving targets, the system can more accurately identify and track pedestrians and vehicles on zebra crossings, which helps to provide more accurate data support for subsequent trajectory prediction, risk assessment and traffic light control. Step 14, using the Kalman filter, the motion state of the detection target can be accurately predicted and tracked, thereby obtaining key information such as its position, speed and acceleration. At the same time, the pedestrian and vehicle interaction risk factors are dynamically calculated through historical data, which helps to accurately assess traffic conditions and prevent potential safety risks. Step 15, by dynamically drawing high-risk monitoring areas by comprehensively considering multiple factors, potential dangerous areas can be more accurately identified, so as to carry out targeted prevention and control. Step 16, image capture can be initiated in a timely manner in high-risk situations to provide evidence for subsequent analysis and processing. At the same time, by adjusting the status and duration of traffic lights, traffic conditions can be responded to in real time to improve the safety and efficiency of road traffic. For example, when a high-risk situation is detected, the green light time of pedestrian lights can be extended to ensure that pedestrians can safely cross the zebra crossing. Alternatively, in sections with dense vehicles, the green light time of vehicle lights can be appropriately shortened to reduce traffic congestion and potential safety hazards.
[0023] In another preferred embodiment of the present invention, the above step 11 may include: Step 111, obtaining an original radar data stream according to the original traffic monitoring radar layout; Step 112, analyzing the data collection effect under the current radar layout, and determining the advantages and disadvantages of the existing layout, including coverage, blind spots, overlapping areas, etc.; Step 113, finding the optimal radar layout scheme through the particle swarm algorithm, specifically including: setting the number of particles (each particle represents a possible radar layout scheme); randomly generating an initial position and speed for each particle, the position represents the possible layout position of the radar device, and the speed represents the adjustment direction and amplitude of the layout position; creating a fitness function to evaluate the pros and cons of each layout scheme, the fitness function considers multiple factors, such as the radar coverage, blind spot size, overlapping area and cost; in each iteration, according to the current position and speed of the particle, updating the new position of each particle (i.e., the new radar layout scheme), using the fitness function to evaluate the new position of each particle, and recording the best position (global optimal and individual optimal); updating the speed and position of each particle according to the speed and position update formula, specifically: weighted combination of the current speed of the particle, the individual optimal position and the global optimal position; checking whether the preset number of iterations is reached, if the termination condition is met, stopping the iteration, and outputting the current global optimal radar layout scheme; taking the global optimal radar layout scheme as output, this scheme should be a layout that integrates the balance point of coverage, blind spot, overlapping area and cost.
[0024] Among them, the specific calculation formula of the fitness function is: Where F represents the fitness value, C, B, O and Γ represent the coverage, blind area, overlapping area and cost respectively, Cmax, Bmax, Omax and Γmax represent the maximum possible values of coverage, blind area, overlapping area and cost respectively, α1, α2, α3, α4, α5 and α6 represent weight coefficients, β1, β2, β3, β4, β5 and β6 represent exponential adjustment factors, Ai represents the actual value of the i-th performance indicator (such as detection accuracy, reaction time, etc.), A i,max represents the maximum possible value of the i-th performance indicator, n is the number of performance indicators, Tn F It is a coefficient determined according to the complexity of the terrain, such as 1 for plains, 1.2 for hills, 1.5 for mountains, etc., and k is an adjustment coefficient.
[0025] Among them, the speed update formula of each particle is: The position update formula is: i (t+1)=x i (t)+v i (t+1) δ ; Where ω represents the inertia coefficient, c 1 、c 2 、c 3 and c 4 represents the learning factor, r 1 、r 2、r 3 and r 4 Represents a random number, the value range is [0, 1], pbest i , gbest and lbest i Represent the individual optimal, global optimal and neighborhood optimal positions respectively, θ 1 ,θ 2 ,θ 3 and θ 4 represents the index adjustment factor; Δx i (t) represents the position change of particle i at time t, δ represents the exponential adjustment factor of position update, vi(t+1) represents the velocity of particle i at time t+1, vi(t) represents the velocity of particle i at time t, xi(t) represents the position of particle i at time t, xi(t+1) represents the position of particle i at time t+1, i is the index of the particle, which is used to distinguish different particles, and t represents the number of iterations.
[0026] The present invention finds the optimal radar layout scheme through the particle swarm algorithm, which can significantly improve the performance of the radar system. The optimized layout can cover the monitoring area more comprehensively, reduce blind spots and overlapping areas, thereby improving the detection efficiency and accuracy of the radar system. Analyzing the data acquisition effect under the current radar layout and determining the advantages and disadvantages of the existing layout will help to improve the layout scheme in a targeted manner. The optimized layout can more accurately capture data such as traffic flow and speed. The fitness function can reduce the procurement, installation and maintenance costs of radar equipment and improve resource utilization efficiency. By setting the adjustment factor under a specific scenario, the optimization algorithm can be adaptively adjusted according to different terrains and application scenarios, which makes the radar layout scheme more flexible and practical and can adapt to various complex environments.
[0027] In another preferred embodiment of the present invention, the above step 12 may include: Step 121, receiving the original radar data stream from the optimized radar layout, formatting the data stream into a unified data structure; setting a dynamic value (center of the circle) according to historical data, which can be the median of the data set; using this dynamic value as the center of the circle, mapping the original radar data stream to an approximate circumference, the mapping method can be to calculate the distance between each data point and the center of the circle, and regard these distances as the position of the data point on the circumference; by calculating the distance between the data point and the circumference, analyzing the correlation between the original data and the circumference to obtain the result of the correlation analysis. For example, a distance threshold can be set, and data points exceeding this distance threshold are considered as outliers; according to the result of the correlation analysis, filter out data points with low correlation with the circumference, that is, those data considered as outliers, which may be caused by equipment errors, environmental interference or other factors; remove the filtered outliers from the data set to obtain preprocessed data.
[0028] In an embodiment of the present invention, by mapping and correlation analysis with dynamic values as the center of the circle, outliers in the original radar data stream can be effectively identified and removed. These outliers may be caused by equipment errors, environmental interference or other uncertain factors, and their existence will interfere with subsequent data processing and analysis. After removing these outliers, the remaining data will be more accurate and reliable, which will help improve the performance and accuracy of the radar system. The presence of outliers often leads to increased data fluctuations and instability, thereby affecting the stability and reliability of the radar system. Through the outlier removal algorithm in step 121, the noise and interference in the data can be significantly reduced, making the data smoother and more stable. After removing the outliers, the performance of the radar system in target detection, tracking and identification will be significantly improved. Because outliers often mislead the judgment of the system, leading to problems such as false alarms and missed detections. Through the processing of step 121, these error rates can be reduced and the overall performance of the radar system can be improved.
[0029] In another preferred embodiment of the present invention, the above step 13 may include: Step 131, read data frame by frame from the preprocessed data, and for each data frame, calculate the difference between the current frame and the previous frame by pixel-by-pixel subtraction, that is, calculate the difference between the value of each pixel in the current frame and the value of the corresponding pixel in the previous frame.
[0030] Step 132, set a threshold value to determine whether the change in pixel value is significant enough to represent a moving target. If the result of the inter-frame difference exceeds this threshold, then the pixel point may belong to a moving target; combine all pixel points that exceed the threshold value to form connected areas, each of which may represent a potential target.
[0031] Step 133, for each connected area, calculate its bounding box, which is a tight rectangle that can completely contain the connected area. The coordinates of the upper left corner and the lower right corner of the bounding box are determined by finding the minimum and maximum values of the pixel coordinates in the connected area to obtain the position of the bounding box. In the converted data frame, a rectangular box is drawn according to the position of the bounding box.
[0032] Step 134, for each detected target, a preliminary classification is performed according to its features (such as size, shape, reflection intensity, etc.), and the target is distinguished into a stationary target and a moving target by comparing the position change of the target in consecutive frames. If the position of the target in consecutive frames is basically unchanged, it is determined to be a stationary target; otherwise, it is determined to be a moving target; Step 135, for data classified as mobile targets, set an initial state vector for each mobile target, including position, speed, etc., and set an initial covariance matrix; set the system model and observation model of the Kalman filter according to the characteristics of the radar data; analyze the output signal of the Kalman filter to obtain the estimated state and motion trajectory of each mobile target; filter out key mobile targets, such as vehicles, pedestrians, etc., according to the reflection intensity and motion characteristics (such as speed, acceleration, direction, etc.) of the target. For example, thresholds of reflection intensity and motion speed can be set to identify vehicles; by setting thresholds of speed, acceleration, direction, etc., targets of interest can be filtered out, specifically including: Set the initial state vector and covariance matrix. For each moving target, set the initial state vector according to the radar data when it is first detected. For example, the state vector can contain the target's x-coordinate, y-coordinate, x-direction velocity, and y-direction velocity, recorded as [x, y, vx, vy]; the initial position (x, y) can be set to the radar measurement value when the target first appears, and the initial velocity (vx, vy) can be calculated by differential calculation of radar data of several consecutive frames. The covariance matrix represents the uncertainty of the state estimation. During initialization, it can be set according to the radar's measurement accuracy and the stability of the target's motion. For example, if the radar's measurement of position is relatively accurate, but the measurement error of velocity is large, the position-related covariance can be set smaller, while the velocity-related covariance can be set larger.
[0033] Set the system model and observation model of the Kalman filter, and assume that the target moves in an approximately uniform linear motion. On a two-dimensional plane, the state vector can be defined as: Where x and y are the locations of the target, and are the speeds of the target in the x and y directions.
[0034] For uniform linear motion, the state transfer equation can be expressed as: k+1 =Ax k +w k , where w k is the process noise, which represents the random disturbance in the target motion process, x k represents the target state vector at time k, including the target position, speed and other information, x k+1 represents the predicted target state vector at time k+1, and A is the state transition matrix, which describes the change of the state vector from one moment to the next. In the model of uniform linear motion, A reflects how the position and velocity are updated over time, and k represents a discrete time step or moment.
[0035] The state transfer matrix A can be expressed as: A=[1 0 Δt 00 1 0 Δt0 0 1 00 0 0 1], where Δt is the time step, that is, the time interval from the current moment to the next moment.
[0036] The process noise covariance matrix Q represents the statistical characteristics of random disturbances during the target motion process. For uniform linear motion, it can be assumed that the noise of velocity and acceleration are independent and follow a Gaussian distribution. The Q matrix can be expressed as: Among them, σ a is the variance of the acceleration noise, which reflects the uncertainty of the acceleration change during the target motion.
[0037] The observation matrix H describes how to map from the state vector to the observation value. In radar measurement, the observation matrix H can be expressed as: in, and are the variances of the measurement noise in the x and y directions, respectively, and r represents the measurement or observation.
[0038] Through the iterative update of the Kalman filter, the estimated state and motion trajectory of the target at each moment can be obtained. The estimated state includes information such as the position and speed of the target, and the motion trajectory is the change of these states over time.
[0039] Based on the reflection intensity information of radar data, different types of targets can be preliminarily distinguished. For example, the metal surface of a vehicle will produce a strong reflection signal, while the reflection signal of a pedestrian is relatively weak. A reflection intensity threshold is set, and targets above this threshold are considered potential vehicles. By analyzing the characteristics of the target, such as speed, acceleration, and direction of movement, key targets can be further screened. For example, thresholds for speed and acceleration can be set to identify fast-moving targets such as vehicles. At the same time, combined with the information on the direction of movement, it can be determined whether the target is driving normally on the road.
[0040] For example, suppose there is a radar monitoring system for a city road. At a certain moment, the system detects multiple moving targets.
[0041] For each target, the initial state vector is set according to the position where it is first detected, such as [x0, y0, vx0, vy0]. At the same time, an initial covariance matrix is set according to the measurement accuracy of the radar and the possible range of motion of the target. Assuming that the target moves approximately in a uniform straight line on the road, the corresponding system model and observation model can be established. Through the iterative update of the Kalman filter, the estimated state and motion trajectory of each target are obtained. These trajectories show the movement of the target on the road. According to the reflection intensity information, the targets with higher reflection intensity are screened as potential vehicles. Then, combined with features such as speed, acceleration and direction of movement, it is further confirmed whether these vehicles are driving normally on the road. For example, if the speed of a target is too fast or the direction of movement is abnormal, it may mean that it is a vehicle that runs a red light or drives in the opposite direction, which requires special attention.
[0042] In a preferred embodiment of the present invention, the above step 14 may include: Step 141, initializing Kalman filter parameters, including setting an initial state vector, setting an initial state covariance matrix, setting a process noise covariance matrix, and setting a measurement noise covariance matrix; Step 142, predicting the state of the target at the current moment using the state transfer equation according to the initialized Kalman filter parameters, and updating the initial state covariance matrix to obtain a first state covariance matrix; Step 143, when the target position is detected by the radar, the target position is fused with the predicted state at the current moment, and the weighted average of the predicted state at the current moment and the measured data is calculated using the Kalman gain to obtain the final state at the current moment; Step 144, after obtaining the final state at the current moment, updating the state vector of the Kalman filter to reflect the current actual state of the target, and updating the state covariance matrix; Step 145, the operation is repeated continuously, and the state of the Kalman filter is updated using the new measurement data obtained each time, and the trajectory of the target is tracked through continuous state updates, including the position, velocity and acceleration information of the target.
[0043] In an embodiment of the present invention, step 141, initializing the Kalman filter parameters is the basis for ensuring that the filter can operate correctly. By setting the initial state vector, the initial state covariance matrix, the process noise covariance matrix and the measurement noise covariance matrix, an accurate starting point can be provided for the filter, thereby improving the accuracy and stability of the filter. The setting of these parameters can reflect the uncertainty of the system and the characteristics of the measurement noise. Step 142, using the state transfer equation to predict the state of the target at the current moment, the estimation of the future state of the target can be achieved. At the same time, the initial state covariance matrix can be updated to obtain the first state covariance matrix. Step 143, by fusing the target position detected by the radar with the predicted current state, and using the Kalman gain to calculate the weighted average, a more accurate target state estimation can be obtained. This fusion method makes full use of the predicted information and the actual measurement information, and improves the accuracy and robustness of the state estimation. The automatic adjustment function of the Kalman gain enables the filter to dynamically adjust the weights of the two according to the uncertainty of the prediction and measurement, so as to maintain good performance in various noise environments. Step 144, updating the state vector and state covariance matrix of the Kalman filter can ensure that the filter always tracks the latest state of the target and accurately reflects the uncertainty of the target state. This helps to maintain the real-time performance and accuracy of the filter. Step 145, by continuously repeating the operation and updating the state of the Kalman filter with the new measurement data obtained each time, continuous tracking of the target trajectory can be achieved. This continuous state update mechanism can ensure that the filter always closely tracks the dynamic changes of the target, thereby providing accurate and real-time target position, velocity and acceleration information.
[0044] In another preferred embodiment of the present invention, step 141 may include: Step 1411, determine the target state variables that need to be estimated. For example, in two-dimensional space, the state vector may include the target's x-coordinate, y-coordinate, x-direction speed, y-direction speed, etc.; set reasonable initial values for these state variables based on actual application scenarios or previous observation data. For example, if the approximate position of the target is known, this position can be set as the x and y coordinates of the initial state vector, and these initial values can be combined into a vector, namely the initial state vector x0.
[0045] Step 1412, the initial state covariance matrix P0 represents the uncertainty of the initial state estimate, and the diagonal elements of P0 are assigned values according to the uncertainty of each state variable. For example, if the uncertainty of the x-coordinate is large and the uncertainty of the y-coordinate is small, then the upper left corner element of P0 (corresponding to the uncertainty of the x-coordinate) will be larger than the upper right corner element (corresponding to the uncertainty of the y-coordinate). If there is a correlation between the state variables, this correlation is reflected in the off-diagonal elements of P0.
[0046] Step 1413, the process noise covariance matrix Q reflects the random disturbances that may exist in the target motion process, and estimates the noise impact that each state variable may be subject to during the motion process based on the physical model of the target motion and the actual situation, and quantifies these noise impacts as element values of Q. For example, if the acceleration of the target is subject to a large random disturbance, then the element value related to the acceleration in Q will be relatively large.
[0047] -Step 1414, the measurement noise covariance matrix R reflects the uncertainty of radar measurement, and estimates the noise magnitude of each measurement value (such as x-coordinate, y-coordinate) based on the measurement accuracy and stability of the radar, and quantifies these noise magnitudes into element values of R. For example, if the radar measurement noise on the x-coordinate is large, then the upper left corner element of R will be relatively large.
[0048] In another preferred embodiment of the present invention, step 142 may include: Step 1421, based on the physical model of the target motion, establish the state transfer equation x k+1 =Ax k +w k , where W k is the process noise, which represents the random disturbance in the target motion process, x k represents the target state vector at time k, including the target position, speed and other information, x k+1 represents the predicted target state vector at time k+1, and A is the state transfer matrix, which describes the change of the state vector from one moment to the next. In the model of uniform linear motion, A reflects how the position and velocity are updated over time, and k represents a discrete time step or moment. Using the initial state vector x0 and the state transfer matrix A, the predicted state vector xk+1|k at the next moment is calculated, where k+1|k represents the prediction of time k+1 at time k.
[0049] Step 1422, using the initial state covariance matrix P0, the state transfer matrix A and the process noise covariance matrix Q, calculate the predicted state covariance matrix pk+1|k at the next moment. This matrix represents the uncertainty of the predicted state. The calculation formula is: P k+1|k =AP k A T +Q, where A T is the transposed matrix of the state transfer matrix A, P k+1|k is a predicted state covariance matrix, which represents the uncertainty when predicting the state at time k+1 at time k, P k is the state covariance matrix at the current time k.
[0050] In another preferred embodiment of the present invention, step 143 may include: Step 1431, when the radar detects a target, a measurement value is provided, which includes information such as the position and speed of the target, and these measurement data are represented as a vector zk, where k represents the current moment.
[0051] Step 1432, by Kk = Pk|k-1H T (HPk|k-1H T +R) -1 Calculate the Kalman gain Kk, where H is the observation matrix that maps the state space to the observation space, R is the measurement noise covariance matrix, Pk|k-1 is the predicted state covariance matrix, and H T is the transposed matrix of the observation matrix H.
[0052] Step 1433, the final state vector is calculated by xk|k=xk|k-1+Kk(zk-Hxk|k-1), where xk|k-1 is the predicted state vector and xk|k is the final state vector after fusion.
[0053] In another preferred embodiment of the present invention, step 144 may include: Step 1441, taking the xk|k calculated in step 1433 as the final state vector at the current moment, this state vector reflects the actual state of the target at the current moment, including information such as position and speed.
[0054] Step 1442, the updated state covariance matrix is used to represent the uncertainty of the current state, using the formula P k|k =(I-KkH)Pk|k-1Update the state covariance matrix, where I is the identity matrix.
[0055] In another preferred embodiment of the present invention, step 145 may include: Step 1451, as time goes by, whenever there is new radar measurement data, repeat steps 143 and 144, and use the new measurement data to update the state of the Kalman filter; Step 1452, through continuous state updates, the Kalman filter can track the trajectory of the target, and the tracking information includes not only the position of the target, but also dynamic information such as speed and acceleration.
[0056] For example, consider a self-driving car system that uses radar to detect and track other vehicles on the road. To accurately track a car ahead, a Kalman filter is used. The state vector includes the x-coordinate, y-coordinate, x-speed, and y-speed of the target. The initial state vector x0 is set to the position and speed of the target when the radar first detects it. The initial state covariance matrix P0 is set based on the uncertainty of the initial estimate. The process noise covariance matrix Q and the measurement noise covariance matrix R are set based on the randomness of the target motion and the measurement accuracy of the radar, respectively.
[0057] The uniform linear motion model is used as the state transfer equation. According to the state transfer equation and the initial state vector, the target state at the next moment is predicted, and the predicted state covariance matrix is calculated using P0, A, and Q. When the radar provides new measurement data, these data are represented as vector zk, the Kalman gain is calculated, and the predicted state and measurement data are fused using this gain to obtain the final state vector at the current moment, and the state covariance matrix is updated to reflect the uncertainty of the current state. As time goes by, whenever there is new radar measurement data, the above update steps are repeated. Through continuous state updates, the Kalman filter can track the trajectory of the target vehicle in real time, including its position, velocity, and acceleration information.
[0058] By fusing the predicted state and radar measurement data, the Kalman filter can provide a more accurate target state estimation and reduce the influence of measurement noise and process noise. The Kalman filter can update the target state in real time. Since the Kalman filter takes measurement noise and process noise into consideration, it has a certain robustness against inaccurate measurements and uncertainty of target motion.
[0059] In another preferred embodiment of the present invention, in the above step 14, dynamically calculating the pedestrian-vehicle interaction risk factor based on historical data may include: The pedestrian-vehicle interaction risk factor is calculated by the first formula, which is as follows: Among them, R represents the interaction risk factor between pedestrians and vehicles; H, β 2 , γ 2 , δ 6 ,∈ 3 , 2 , η 2 and 2 are weight coefficients; d is the straight-line distance between the pedestrian and the vehicle; v rel is the relative speed between pedestrians and vehicles; a rel is the relative acceleration between pedestrians and vehicles; v max and a maxare the maximum values of relative speed and relative acceleration respectively; I is the influencing factor of traffic rules and road layout; E is the environmental factor; B is the behavioral pattern factor; σ is the logistic function, which maps the linear combination of logistic regression to a probability value between 0 and 1; are all parameters of the logistic regression model; y 1 ,y 2 ...y n is the input feature set; p, q, r are nonlinear exponents used to adjust the influence of distance, relative speed and relative acceleration respectively; n represents the number of input features.
[0060] In the embodiment of the present invention, this step is used to dynamically calculate the interaction risk factor R between pedestrians and vehicles, taking into account a variety of factors, including the physical distance between pedestrians and vehicles, relative speed and acceleration, traffic rules and road layout, environmental factors, time factors, behavior patterns, etc. Specifically: Distance factor, Indicates the influence of the distance between pedestrians and vehicles. The closer the distance, the higher the risk. Relative speed and acceleration, and Respectively represent the impact of relative speed and relative acceleration on risk. The greater the relative speed or acceleration, the higher the risk. Other factors include traffic rules and road layout influencing factor I, environmental factor E, time factor T and behavior pattern factor B. These factors are incorporated into the risk calculation through corresponding weight coefficients. In the logistic regression part, A logistic regression model is used to consider more feature sets y1, y2, …, yn that may affect the risk. By integrating these multivariate factors, it aims to more comprehensively assess the interaction risk between pedestrians and vehicles.
[0061] The present invention comprehensively considers a variety of factors that may affect the risk of pedestrian-vehicle interaction, making the risk assessment more comprehensive and accurate. Since real-time data (such as distance, speed and acceleration) are taken into account, the risk can be dynamically assessed and adapted to the ever-changing traffic environment. Through the logistic regression part, the model can easily incorporate new influencing factors, making it more adaptable and scalable.
[0062] For example, suppose this model is used to assess the risk of pedestrian-vehicle interactions at a busy intersection. The system collects the following data in real time: The straight-line distance d between the pedestrian and the vehicle is 5 meters, and the relative speed vrel is 10 km / h (relative to a walking pedestrian); the relative acceleration arel is almost zero because the vehicle is slowing down to give way to the pedestrian; the environmental factor E considers that the current weather is clear and visibility is high, the time factor T is daytime and the traffic is relatively busy, and the behavioral pattern factor B indicates that pedestrians often pass through the intersection; other feature sets y1, y2, ..., yn may include whether the pedestrian is using a mobile phone, whether the vehicle is in autonomous driving mode, etc.; these data are input into the above model to calculate the current pedestrian-vehicle interaction risk factor R. If R exceeds a certain preset threshold, the system can trigger an alarm or take other preventive measures to ensure the safety of pedestrians and vehicles. In this way, this model can play an important role in the actual traffic environment and improve the safety of road traffic.
[0063] In another preferred embodiment of the present invention, the above step 15 may further include: Step 151, the formula for determining the length of the zebra crossing is as follows: The formula for determining the width of a zebra crossing is as follows: Where L d is the length of the zebra crossing; w d is the width of the zebra crossing; L 0 is the basic length of the zebra crossing; w 0 is the basic width of the zebra crossing; k 1 , k 1 , k 3 and k 4 is the adjustment coefficient; θ is the slope of the road; R r is the radius of curvature of the road; α 1 , α 2 , α 3 , γ 1 , γ 2 and γ 3 is the adjustment factor; Q t is the current traffic flow; Q max is the maximum traffic flow of the road design; ρ v is the vehicle density; C w It is a quantitative value of weather conditions.
[0064] Step 152, calculate the high-risk area according to the length and width of the zebra crossing, and the calculation formula is as follows: Among them, d 0 is the braking distance; v 6 is the average speed of the vehicle; d 6is the distance to the high-risk area; β is the safety factor; w l is the effective width of the lane; ∈ L ,∈ w , μ 1 , μ 2 , μ 3 , δ 1 , δ 2 , δ 3 and δ 4 is the adjustment factor; f s is an adjustment factor; d and p represent the shortest distance from the detection target to the zebra crossing; v is the speed of the detection target; v max Indicates the maximum speed allowed on the road; a max is the set maximum acceleration value; R is the pedestrian-vehicle interaction risk factor; a is the acceleration of the detection target.
[0065] Step 153, calculating a comprehensive risk index based on traffic flow, vehicle density and weather conditions; Step 154, dynamically adjusting the zebra crossing high-risk monitoring area according to the comprehensive risk index.
[0066] In the embodiment of the present invention, step 151 takes into account a variety of practical factors, such as road slope, curvature radius, traffic flow, vehicle density and weather conditions, which makes the design of zebra crossings more flexible and can adapt to the actual needs under different road and environmental conditions. By considering the road slope and curvature, it can ensure that the zebra crossing is set in a relatively safe position to reduce traffic accidents caused by poor road conditions. Considering the current traffic flow and vehicle density, the size of the zebra crossing can be adjusted in real time to adapt to changes in traffic conditions, thereby improving the safety of pedestrians and vehicles when passing through the zebra crossing. Step 152, through a complex calculation formula to accurately determine the high-risk area, considering the braking distance, lane width, vehicle speed, acceleration and multiple adjustment coefficients, so that the high-risk area can be more accurately delineated. By calculating the high-risk area, drivers and pedestrians can be warned in advance, and additional safety measures can be taken when approaching the zebra crossing, which helps prevent traffic accidents.
[0067] Step 153, a comprehensive risk index is calculated by comprehensively considering traffic flow, vehicle density and weather conditions, which makes the risk assessment more comprehensive and not limited to a single factor. Through the comprehensive risk index, traffic managers can better understand the risk level of the current traffic conditions and provide support for decision-making, such as whether to increase traffic police force or take other safety measures.
[0068] Step 154, dynamically adjusting the high-risk monitoring area according to the comprehensive risk index can ensure the effective use of traffic monitoring resources and focus attention on the areas with the highest risks. By dynamically adjusting the high-risk monitoring area, potential traffic safety hazards can be discovered and responded to in a timely manner, thereby improving the overall safety of road traffic. This dynamic adjustment method can quickly respond to changes in traffic conditions and ensure that high-risk areas are always effectively monitored and managed.
[0069] In another preferred embodiment of the present invention, the above step 153 may further include: Step 1531, pass Calculate the comprehensive risk index, where R i is the comprehensive risk index, a 4 , b 3 and c 3 is the weight coefficient, η, ζ and ξ are the exponential parameters.
[0070] In the embodiment of the present invention, the design of zebra crossings and the delineation of high-risk areas are made more flexible and adaptable according to various factors (such as road conditions, traffic flow, weather, etc.); by collecting and analyzing data in real time, the system can dynamically adjust high-risk areas and respond to changes in traffic conditions in a timely manner. The calculation of the comprehensive risk index and the dynamic adjustment of high-risk areas help to improve the safety of road traffic and reduce the occurrence of traffic accidents. Decisions are made based on a large amount of real-time data, which improves the accuracy of decisions. By considering a variety of factors that may affect traffic safety and making dynamic adjustments based on these factors, the model can predict and prevent potential risks to a certain extent.
[0071] In another preferred embodiment of the present invention, the above step 154 may further include: Step 1541, set two thresholds R l and R h , and a corresponding adjustment coefficient range Emin and Emax, where Emin<1<Emax; Step 1542, when R i <R l When , it means that the traffic situation is safe, and the high-risk monitoring area of zebra crossing is reduced, the adjustment factor f s Set to Emin; Step 1543, when R i ≥R h When , it means that the traffic situation is risky, and the high-risk monitoring area of zebra crossing is expanded, then the adjustment factor f s Set to Emax; Step 1544, when R l <R i <R hWhen , the adjustment factor f s Set to the interpolation value En between Emin and Emax.
[0072] In an embodiment of the present invention, by setting two thresholds Rl and Rh, the system can dynamically adjust the size of the high-risk monitoring area of the zebra crossing according to the actual situation. This dynamic adjustment capability makes the traffic management system more flexible and efficient, and can quickly respond to changes in traffic conditions. When the traffic conditions are risky (i.e., Ri ≥ Rh), the system will automatically expand the high-risk monitoring area of the zebra crossing, and strengthen monitoring and early warning by setting the adjustment factor fs to Emax, which helps to timely discover potential safety hazards and take necessary preventive measures, thereby improving the safety of road traffic. When the traffic conditions are safe (i.e., Ri < Rl), the system can reasonably allocate and utilize limited traffic management resources by reducing the high-risk monitoring area of the zebra crossing and setting the adjustment factor fs to Emin, thereby avoiding unnecessary waste of resources. For the comprehensive risk index between the two thresholds (i.e., R l <R i <R h ), the system obtains an adjustment factor En between Emin and Emax through interpolation calculation, which ensures the smoothness of the adjustment of the high-risk monitoring area and avoids the traffic chaos caused by sudden and large adjustments. The entire adjustment process is based on the real-time data of the comprehensive risk index Ri, which makes the system highly adaptive and can automatically make the most appropriate adjustments according to the current traffic conditions.
[0073] In another preferred embodiment of the present invention, the calculation formula of the interpolation value En is: Here, k is a positive control parameter.
[0074] In the embodiment of the present invention, by adopting this interpolation calculation formula, the corresponding adjustment factor En can be calculated more accurately according to the specific value of the comprehensive risk index Ri between Rl and Rh. This accuracy helps the system to make more detailed and accurate adjustments to the high-risk monitoring area of the zebra crossing. The interpolation formula ensures that the adjustment factor En changes continuously within the range of Rl to Rh, which helps to avoid sudden changes in the high-risk monitoring area of the zebra crossing during the adjustment process, thereby ensuring the stability and safety of the traffic flow. The control parameter k in the formula allows the system to adjust the shape and change speed of the interpolation curve according to actual conditions. By adjusting the value of k, the sensitivity of the adjustment factor En to the change of the comprehensive risk index Ri can be changed, making the system more flexible and controllable. The design of the interpolation formula takes into account the nonlinear change characteristics of the comprehensive risk index Ri, and can better reflect the complex relationship between the actual traffic conditions and risks. This adaptability makes the system more accurate and effective when dealing with traffic conditions of different risk levels. The formula adopts a combination of logarithmic functions and exponential functions. This mathematical structure allows the interpolation result to remain relatively stable in the face of extreme or abnormal comprehensive risk index values, thereby enhancing the robustness of the system. In summary, through this interpolation calculation formula, the system can more accurately, continuously, adjustable, adaptively and robustly adjust the size of the high-risk monitoring area of the zebra crossing, thereby more effectively managing traffic flow and ensuring the safety of pedestrians and vehicles.
[0075] An embodiment of the present invention further provides a pedestrian safety warning device, comprising: An acquisition module is used to acquire a traffic monitoring radar data stream; preprocess the radar data stream to obtain preprocessed data; classify the preprocessed data to identify pedestrians and vehicles on the zebra crossing to obtain classified detection targets; The processing module is used to use a Kalman filter to predict and track the trajectory of the detection target to obtain the position, speed and acceleration information of each detection target, and dynamically calculate the pedestrian and vehicle interaction risk factor based on historical data; dynamically draw the zebra crossing high-risk monitoring area according to the position, speed, acceleration, risk factor and road layout of each detection target; when the detection target enters the zebra crossing high-risk monitoring area and the pedestrian and vehicle interaction risk factor is greater than a preset threshold, image capture is initiated, and the state and duration of the traffic light are adjusted.
[0076] Optionally, a Kalman filter is used to predict and track the trajectory of the detection target to obtain the position, velocity and acceleration information of each detection target, including: Initializing Kalman filter parameters, including setting an initial state vector, setting an initial state covariance matrix, setting a process noise covariance matrix, and setting a measurement noise covariance matrix; According to the initialized Kalman filter parameters, the state of the target at the current moment is predicted using the state transfer equation, and the initial state covariance matrix is updated to obtain a first state covariance matrix; When the target position is detected by the radar, the target position is fused with the predicted state at the current moment, and the Kalman gain is used to calculate the weighted average of the predicted state at the current moment and the measured data to obtain the final state at the current moment; after obtaining the final state at the current moment, the state vector of the Kalman filter is updated to reflect the actual current state of the target, and the state covariance matrix is updated; The operation is repeated continuously, and the state of the Kalman filter is updated with the new measurement data obtained each time. Through continuous state updates, the trajectory of the target is tracked, including the target's position, velocity, and acceleration information.
[0077] Optionally, dynamically calculate pedestrian-vehicle interaction risk factors based on historical data, including: The historical data is dynamically input into the first formula to calculate the pedestrian-vehicle interaction risk factor; the first formula is: Among them, R represents the interaction risk factor between pedestrians and vehicles; H, β 2 , γ 2 , δ 6 ,∈ 3 , 2 , η 2 and 2 are weight coefficients; d is the straight-line distance between the pedestrian and the vehicle; v rel is the relative speed between pedestrians and vehicles; a rel is the relative acceleration between pedestrians and vehicles; v max and a max are the maximum values of relative speed and relative acceleration respectively; I is the influencing factor of traffic rules and road layout; E is the environmental factor; B is the behavioral pattern factor; σ is the logistic function, which maps the linear combination of logistic regression to a probability value between 0 and 1; are all parameters of the logistic regression model; y 1 ,y 2 ...y n is the input feature set; p, q, r are nonlinear exponents used to adjust the influence of distance, relative speed and relative acceleration respectively; n represents the number of input features.
[0078] Optionally, zebra crossing high-risk monitoring areas are dynamically drawn based on the position, speed, acceleration, risk factor, and road layout of each detected target, including: Determine the length and width of the zebra crossing. The calculation formula for the length and width of the zebra crossing is as follows: Where L d is the length of the zebra crossing; w d is the width of the zebra crossing; L 0 is the basic length of the zebra crossing; w 0 is the basic width of the zebra crossing; k 1 , k 1 , k 3 and k 4 is the adjustment coefficient; θ is the slope of the road; R r is the radius of curvature of the road; α 1 , α 2 , α 3 , γ 1 , γ 2 and γ 3 is the adjustment factor; Q t is the current traffic flow; Q max is the maximum traffic flow of the road design; ρ v is the vehicle density; C w is a quantitative value of weather conditions; The high-risk area is calculated based on the length and width of the zebra crossing. The calculation formula is as follows: Among them, d 0 is the braking distance; v 6 is the average speed of the vehicle; d 6 is the distance to the high-risk area; β is the safety factor; w l is the effective width of the lane; ∈ L ,∈ w , μ 1 , μ 2 , μ 3 , δ 1 , δ 2 , δ 3 and δ 4 is the adjustment factor; f s is an adjustment factor; d and p represent the shortest distance from the detection target to the zebra crossing; v is the speed of the detection target; v max Indicates the maximum speed allowed on the road; a max is the set maximum acceleration value; R is the pedestrian-vehicle interaction risk factor; a is the acceleration of the detection target.
[0079] Calculate a comprehensive risk index based on traffic volume, vehicle density and weather conditions; Based on the comprehensive risk index, the high-risk monitoring area of the zebra crossing is dynamically adjusted.
[0080] Optionally, calculate a comprehensive risk index based on traffic volume, vehicle density and weather conditions, including: By calculating the comprehensive risk index, the calculation formula is as follows: Among them, R i is the comprehensive risk index, a 4 , b 3 and c 3 is the weight coefficient, η, ζ and ξ are the exponential parameters.
[0081] Optionally, according to the comprehensive risk index, the zebra crossing high-risk monitoring area is dynamically adjusted, including: Set the threshold R l , R h And a corresponding adjustment coefficient range E min 、E max (E min <1 <E max ); When R i <R l When , it means that the traffic situation is safe, and the high-risk monitoring area of zebra crossing is reduced, the adjustment factor f s Set to E min ; When R i ≥R h When , it means that the traffic situation is risky, and the high-risk monitoring area of zebra crossing is expanded, then the adjustment factor f s Set to E max ; When R l <R i <R h When , the adjustment factor f s Set to E max and E min Interpolation between E n .
[0082] Optionally, the interpolation E n The calculation formula is: Here, k is a positive control parameter.
[0083] Based on the same inventive concept mentioned above, the present application also discloses an intelligent terminal in an embodiment, the control device includes a memory and a processor; the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set can be loaded and executed by the processor to implement a pedestrian safety warning method applied to traffic provided by the above method embodiment.
[0084] It should be understood that the "plurality" mentioned in this article refers to two or more. "And or" describes the association relationship of the associated objects, indicating that three relationships can exist. For example, A and or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character "" generally indicates that the associated objects are in an "or" relationship.
[0085] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium. The storage medium mentioned above may include, for example, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0086] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A pedestrian safety warning method applied to traffic, characterized in that: Obtain traffic monitoring radar data stream; Preprocessing the radar data stream to obtain preprocessed data; Classify the preprocessed data and identify pedestrians and vehicles on the zebra crossing to obtain the classified detection targets; The Kalman filter is used to predict and track the trajectory of the detection target to obtain the position, velocity and acceleration information of each detection target, and the pedestrian-vehicle interaction risk factor is dynamically calculated based on historical data; Dynamically draw high-risk monitoring areas for zebra crossings based on the location, speed, acceleration, risk factor, and road layout of each detected target; When the detection target enters the high-risk monitoring area of the zebra crossing and the pedestrian-vehicle interaction risk factor is greater than the preset threshold, image capture is initiated and the state and duration of the traffic light are adjusted.
2. The method according to claim 1, characterized in that The use of a Kalman filter to predict and track the trajectory of the detection target to obtain the position, velocity and acceleration information of each detection target includes: Initializing Kalman filter parameters, including setting an initial state vector, setting an initial state covariance matrix, setting a process noise covariance matrix, and setting a measurement noise covariance matrix; According to the initialized Kalman filter parameters, the state of the target at the current moment is predicted using the state transfer equation, and the initial state covariance matrix is updated to obtain a first state covariance matrix; When the target position is detected by the radar, the target position is fused with the predicted state at the current moment, and the Kalman gain is used to calculate the weighted average of the predicted state at the current moment and the measured data to obtain the final state at the current moment; after obtaining the final state at the current moment, the state vector of the Kalman filter is updated to reflect the actual current state of the target, and the state covariance matrix is updated; The operation is repeated continuously, and the state of the Kalman filter is updated with the new measurement data obtained each time. Through continuous state updates, the trajectory of the target is tracked, including the target's position, velocity, and acceleration information.
3. The method according to claim 2, characterized in that Dynamically calculate pedestrian and vehicle interaction risk factors based on historical data, including: The historical data is dynamically input into the first formula to calculate the pedestrian-vehicle interaction risk factor; the first formula is: Where R represents the interaction risk factor between pedestrians and vehicles; H, β2, γ2, δ6, ∈3, ξ2, η2 and λ2 are all weight coefficients; d is the straight-line distance between pedestrians and vehicles; v rel is the relative speed between pedestrians and vehicles; a rel is the relative acceleration between pedestrians and vehicles; v max and a max are the maximum values of relative speed and relative acceleration respectively; I is the influencing factor of traffic rules and road layout; E is the environmental factor; B is the behavioral pattern factor; σ is the logistic function, which maps the linear combination of logistic regression to a probability value between 0 and 1; are all parameters of the logistic regression model; y1, y2, ...y n is the input feature set; p, q, r are nonlinear exponents used to adjust the influence of distance, relative speed and relative acceleration respectively; n represents the number of input features.
4. The method according to claim 3, characterized in that Based on the position, speed, acceleration, risk factor and road layout of each detected target, the high-risk monitoring area of zebra crossing is dynamically drawn, including: Determine the length and width of the zebra crossing. The calculation formula for the length and width of the zebra crossing is as follows: Where L d is the length of the zebra crossing; w d is the width of the zebra crossing; L0 is the basic length of the zebra crossing; w0 is the basic width of the zebra crossing; k1, k1, k3 and k4 are adjustment coefficients; θ is the slope of the road; R r is the curvature radius of the road; α1, α2, α3, γ1, γ2 and γ3 are adjustment coefficients; Q t is the current traffic flow; Q max is the maximum traffic flow of the road design; ρ v is the vehicle density; C w is a quantitative value of weather conditions; The distance to the high-risk area is calculated based on the length and width of the zebra crossing. The calculation formula for the distance to the high-risk area is as follows: Where d0 is the braking distance; v6 is the average speed of the vehicle; d6 is the distance to the high-risk area; β is the safety factor; w l is the effective width of the lane; ∈ L ,∈ w , μ1, μ2, μ3, δ1, δ2, δ3 and δ4 are adjustment coefficients; f s is an adjustment factor; d and p represent the shortest distance from the detection target to the zebra crossing; v is the speed of the detection target; v max Indicates the maximum speed allowed on the road; a max is the set maximum acceleration value; R is the pedestrian-vehicle interaction risk factor; a is the acceleration of the detection target; the comprehensive risk index is calculated based on traffic flow, vehicle density and weather conditions; Based on the comprehensive risk index, the high-risk monitoring area of the zebra crossing is dynamically adjusted.
5. The method according to claim 4, characterized in that The calculation formula of the comprehensive risk index is as follows: Among them, R i is the comprehensive risk index, a4, b3 and c3 are weight coefficients, η, ζ and ξ are index parameters.
6. The method according to claim 5, characterized in that According to the comprehensive risk index, the high-risk monitoring area of zebra crossings is dynamically adjusted, including: Set the threshold R l , R h And a corresponding adjustment coefficient range E min 、E max (E min <1 <E max ); When R i <R l When , it means that the traffic situation is safe, and the high-risk monitoring area of zebra crossing is reduced, the adjustment factor f s Set to E min ; When R i ≥R h When , it means that the traffic situation is risky, and the high-risk monitoring area of zebra crossing is expanded, then the adjustment factor f s Set to E max ; When R l <R i <R h When , the adjustment factor f s Set to E max and E min Interpolation between E n .
7. The method according to claim 6, characterized in that The interpolation E n The calculation formula is as follows: Here, k is a positive control parameter.
8. A pedestrian safety warning device, characterized in that: include: An acquisition module is used to acquire traffic monitoring radar data stream; Preprocessing the radar data stream to obtain preprocessed data; Classify the preprocessed data and identify pedestrians and vehicles on the zebra crossing to obtain the classified detection targets; A processing module, used to predict and track the trajectory of the detection target using a Kalman filter to obtain the position, velocity and acceleration information of each detection target, and dynamically calculate the pedestrian-vehicle interaction risk factor based on historical data; Dynamically draw high-risk monitoring areas for zebra crossings based on the location, speed, acceleration, risk factor, and road layout of each detected target; When the detection target enters the high-risk monitoring area of the zebra crossing and the pedestrian-vehicle interaction risk factor is greater than the preset threshold, image capture is initiated and the state and duration of the traffic light are adjusted.
9. An intelligent terminal, characterized in that: It includes a memory and a processor, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the pedestrian safety warning method applied to traffic as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, which, when executed by a processor, implements the pedestrian safety warning method applied to traffic as claimed in any one of claims 1 to 7.
Citation Information
Cited By
Road traffic safety dynamic early warning system
CN119445898A
Key component dynamic abnormal element adjusting system based on 3D laser scanning
CN120031866A
Pedestrian safety early warning method and device combined with high-precision sensing technology
CN120220376A
Pedestrian safety warning method and device combined with high-precision perception technology
CN120220376B
