highway vehicle tracking with multipath radar reflections -凯发k8网页登录
this example shows the challenges associated with tracking vehicles on a highway in the presence of multipath radar reflections. it also shows a ghost filtering approach used with an extended object tracker to simultaneously filter ghost detections and track objects.
introduction
automotive radar sensors are robust against adverse environment conditions encountered during driving, such as fog, snow, rain, and strong sunlight. automotive radar sensors have this advantage because they operate at substantially large wavelengths compared to visible-wavelength sensors, such as lidar and camera. as a side effect of using large wavelengths, surfaces around the radar sensor act like mirrors and produce undesired detections due to multipath propagation. these detections are often referred to as ghost detections because they seem to originate from regions where no target exists. this example shows you the impact of these multipath reflections on designing and configuring an object tracking strategy using radar detections. for more details regarding multipath phenomenon and simulation of ghost detections, see the simulate radar ghosts due to multipath return example.
in this example, you simulate the multipath detections from radar sensors in an urban highway driving scenario. the highway is simulated with a barrier on both sides of the road. the scenario consists of an ego vehicle and four other vehicles driving on the highway. the ego vehicle is equipped with four radar sensors providing 360-degree coverage. this image shows the configuration of the radar sensors and detections from one scan of the sensors. the red regions represent the field of view of the radar sensors and the black dots represent the detections.
the radar sensors report detections from the vehicles and from the barriers that are on both sides of the highway. the radars also report detections that do not seem to originate from any real object in the scenario. these are ghost detections due to multipath propagation of radar signals. object trackers assume all detections originate from real objects or uniformly distributed random clutter in the field of view. contrary to this assumption, the ghost detections are typically more persistent than clutter and behave like detections from real targets. due to this reason, an object tracking algorithm is very likely to generate false tracks from these detections. it is important to filter out these detections before processing the radar scan with a tracker.
generate sensor data
the scenario used in this example is created using the drivingscenario
class. you use the system object™ to simulate radar returns from a direct path and from reflections in the scenario. the hasghosts
property of the sensor is specified as true
to simulate multipath reflections. the creation of the scenario and the sensor models is wrapped in the helper function helpercreatemultipathdrivingscenario
, which is attached with this example. the data set obtained by sensor simulation is recorded in a mat file that contains returns from the radar and the corresponding sensor configurations. to record the data for a different scenario or sensor configuration, you can use the following command:
helperrecorddata(scenario, egovehicle, sensors, fname);
% create the scenario [scenario, egovehicle, sensors] = helpercreatemultipathdrivingscenario; % load the recorded data load('multipathradarscenariorecording.mat','detectionlog','configurationlog');
radar processing chain: radar detections to track list
in this section, you set up an integrated algorithm to simultaneously filter radar detections and track extended objects. the block diagram illustrates the radar processing chain used in this example.
next, you learn about each of these steps and the corresponding helper functions.
doppler analysis
the radar sensors report the measured relative radial velocity of the reflected signals. in this step, you utilize the measured radial velocity of the detections to determine if the target is static or dynamic [1]. in the previous radar scan, a large percentage of the radar detections originate from the static environment around the ego vehicle. therefore, classifying each detection as static or dynamic greatly helps to improve the understanding of the scene. you use the helper function helperclassifystaticdynamic
to classify each detection as static or dynamic.
static reflectors
the static environment is also typically responsible for a large percentage of the ghost reflections reported by the radar sensors. after segmenting the data set and finding static detections, you process them to find 2-d line segments in the coordinate frame of the ego vehicle. first, you use the dbscan algorithm to cluster the static detections into different clusters around the ego vehicle. second, you fit a 2-d line segment on each cluster. these fitted line segments define possible reflection surfaces for signals propagating back to the radar. you use the helper function helperfindstaticreflectors
to find these 2-d line segments from static detections.
occlusion analysis
reflection from surfaces produce detections from the radar sensor that seem to originate behind the reflector. after segmenting the dynamic detections from the radar, you use simple occlusion analysis to determine if the radar detection is occluded behind a possible reflector. because signals can be reflected by static or dynamic objects, you perform occlusion analysis in two steps. first, dynamic detections are checked against occlusion with the 2-d line segments representing the static reflectors. you use the helper function helperclassifyghostsusingreflectors
to classify if the detection is occluded by a static reflector. second, the algorithm uses information about predicted tracks from an extended tracking algorithm to check for occlusion against dynamic objects in the scene. the algorithm uses only confirmed tracks from the tracker to prevent overfiltering of the radar detections in the presence of tentative or false tracks. you use the helper function helperclassifyghostsusingtracks
to classify if the detection is occluded by a dynamic object.
this entire algorithm for processing radar detections and classifying them is then wrapped into a larger helper function, helperclassifyradardetections
, which classifies and segments the detection list into four main categories:
target detections – these detections are classified to originate from real dynamic targets in the scene.
environment detections – these detections are classified to originate from the static environment.
ghost (static) – these detections are classified to originate from dynamic targets but reflected via the static environment.
ghost (dynamic) – these detections are classified to originate from dynamic targets but reflected via other dynamic objects.
setup ggiw-phd extended object tracker
the target detections are processed with an extended object tracker. in this example, you use a gamma gaussian inverse wishart probability hypothesis density (ggiw-phd) extended object tracker. the ggiw-phd tracker models the target with an elliptical shape and the measurement model assumes that the detections are uniformly distributed inside the extent of the target. this model allows a target to accept two-bounce ghost detections, which have a higher probability of being misclassified as a real target. these two-bounce ghost detections also report a doppler measurement that is inconsistent with the actual motion of the target. when these ghost detections and real target detections from the same object are estimated to belong to the same partition of detections, the incorrect doppler information can potentially cause the track estimate to diverge.
to reduce this problem, the tracker processes the range-rate measurements with higher measurement noise variance to account for this imperfection in the target measurement model. the tracker also uses a combination of a high assignment threshold and low merging threshold. a high assignment threshold allows the tracker to reduce the generation of new components from ghost targets detections, which are misclassified as target detections. a low merging threshold enables the tracker to discard corrected components (hypothesis) of a track, which might have diverged due to correction with ghost detections.
you set up the tracker using the trackerphd
system object™. for more details about extended object trackers, refer to the (automated driving toolbox) example.
% configuration of the sensors from the recording to set up the tracker [~, sensorconfigurations] = helperassembledata(detectionlog{1},configurationlog{1}); % configure the tracker to use the ggiw-phd filter with constant turn-rate motion model for i = 1:numel(sensorconfigurations) sensorconfigurations{i}.filterinitializationfcn = @helperinitggiwfilter; sensorconfigurations{i}.sensortransformfcn = @ctmeas; end % create the tracker using trackerphd with name-value pairs tracker = trackerphd(sensorconfigurations = sensorconfigurations,... partitioningfcn = @(x)helpermultipathexamplepartitionfcn(x,2,5),... assignmentthreshold = 450,... extractionthreshold = 0.8,... confirmationthreshold = 0.85,... mergingthreshold = 25,... deletionthreshold = 1e-3,... birthrate = 1e-4,... hassensorconfigurationsinput = true... );
run scenario and track objects
next, you advance the scenario, use the recorded measurements from the sensors, and process them using the previously described algorithm. you analyze the performance of the tracking algorithm by using the generalized optimal subpattern assignment (gospa) metric. you also analyze the performance of the classification filtering algorithm by estimating a confusion matrix between true and estimated classification of radar detections. you obtain the true classification information about the detections using the helpertrueclassificationinfo
helper function.
% create trackgospametric object to calculate gospa metric gospametric = trackgospametric(distance = 'custom', ... distancefcn = @helpergospadistance, ... cutoffdistance = 35); % create display for visualization of results display = helpermultipathtrackingdisplay; % predicted track list for ghost filtering predictedtracks = objecttrack.empty(0,1); % confusion matrix confmat = zeros(5,5,numel(detectionlog)); % gospa metric gospa = zeros(4,numel(detectionlog)); % ground truth groundtruth = scenario.actors(2:end); for i = 1:numel(detectionlog) % advance scene for visualization of ground truth advance(scenario); % current time time = scenario.simulationtime; % detections and sensor configurations [detections, configurations] = helperassembledata(detectionlog{i},configurationlog{i}); % predict confirmed tracks to current time for classifying ghosts if islocked(tracker) predictedtracks = predicttrackstotime(tracker,'confirmed',time); end % classify radar detections as targets, ghosts, or static environment [targets, ghoststatic, ghostdynamic, static, reflectors, classificationinfo] = helperclassifyradardetections(detections, egovehicle, predictedtracks); % pass detections from target and sensor configurations to the tracker confirmedtracks = tracker(targets, configurations, time); % visualize the results display(egovehicle, sensors, targets, confirmedtracks, ghoststatic, ghostdynamic, static, reflectors); % calculate gospa metric [gospa(1, i),~,~,gospa(2,i),gospa(3,i),gospa(4,i)] = gospametric(confirmedtracks, groundtruth); % get true classification information and generate confusion matrix trueclassificationinfo = helpertrueclassificationinfo(detections); confmat(:,:,i) = helperconfusionmatrix(trueclassificationinfo, classificationinfo); end
results
animation and snapshot analysis
the animation that follows shows the result of the radar data processing chain. the black ellipses around vehicles represent estimated tracks. the radar detections are visualized with four different colors depending on their predicted classification from the algorithm. the black dots in the visualization represent static radar target detections. notice that these detections are overlapped by black lines, which represent the static reflectors found using the dbscan algorithm. the maroon markers represent the detections processed by the extended object tracker, while the green and blue markers represent radar detections classified as reflections via static and dynamic objects, respectively. notice that the tracker is able to maintain a track on all four vehicles during the scenario.
next, you analyze the performance of the algorithm using different snapshots captured during the simulation. the snapshot below is captured at 3 seconds and shows the situation in front of the ego vehicle. at this time, the ego vehicle is approaching the slow-moving truck, and the left radar sensor observes reflections of these objects via the left barrier. these detections appear as mirrored detections of these objects in the barrier. notice that the black line estimated as a 2-d reflector is in the line of sight of these detections. therefore, the algorithm is able to correctly classify these detections as ghost targets reflected off static objects.
f = showsnaps(display,1:2,1); if ~isempty(f) ax = findall(f,'type','axes','tag','birdseyeplotaxes'); ax.xlim = [-10 30]; ax.ylim = [-10 20]; end
next, analyze the performance of the algorithm using the snapshot captured at 4.3 seconds. at this time, the ego vehicle is even closer to the truck and the truck is approximately halfway between the green vehicle and the ego vehicle. during these situations, the left side of the truck acts as a strong reflector and generates ghost detections. the detections on the right half of the green vehicle are from two-bounce detections off of the green vehicle as the signal travels back to the sensor after reflecting off the truck. the algorithm is able to classify these detections as ghost detections generated from dynamic object reflections because the estimated extent of the truck is in the direct line of sight of these detections.
f = showsnaps(display,1:2,2); if ~isempty(f) ax = findall(f,'type','axes','tag','birdseyeplotaxes'); ax.xlim = [-10 30]; ax.ylim = [-10 20]; end
also notice the passing vehicle denoted by the yellow car on the left of the ego vehicle. the detections, which seem to originate from the nonvisible surface of the yellow vehicle, are two-bounce detections of the barriers, reflected via the front face of the passing vehicle. these ghost detections are misclassified as target detections because they seem to originate from inside the estimated extent of the vehicle. at the same location, the detections that lie beyond the barrier are also two-bounce detections of the front face when the signal is reflected from the barrier and returns to the sensor. since these detections lie beyond the extent of the track and the track is in the direct line of sight, they are classified as ghost detections from reflections off dynamic objects.
performance analysis
quantitatively assess the performance of the tracking algorithm by using the gospa metric and its associated components. a lower value of the metric denotes better tracking performance. in the figure below, the missed-target component of the metric remains zero after a few steps in the beginning, representing establishment delay of the tracker as well as an occluded target. the zero value of the component shows that no targets were missed by the tracker. the false-tracks component of the metric increased around for 1 second around 85th time step. this denotes a false track confirmed by the tracker for a short duration from ghost detections incorrectly classified as a real target.
figure; plot(gospa','linewidth',2); legend('gospa','localization gospa','missed-target gospa','false-tracks gospa');
similar to the tracking algorithm, you also quantitatively analyze the performance of the radar detection classification algorithm by using a confusion matrix [2]. the rows shown in the table denote the true classification information of the radar detections and the columns represent the predicted classification information. for example, the second element of the first row defines the percentage of target detections predicted as ghosts from static object reflections.
more than 90% of the target detections are classified correctly. however, a small percentage of the target detections are misclassified as ghosts from dynamic reflections. also, approximately 3% of ghosts from static object reflections and 20% of ghosts from dynamic object reflections are misclassified as targets and sent to the tracker for processing. a common situation when this occurs in this example is when the detections from two-bounce reflections lie inside the estimated extent of the vehicle. further, the classification algorithm used in this example is not designed to find false alarms or clutter in the scene. therefore, the fifth column of the confusion matrix is zero. due to spatial distribution of the false alarms inside the field of view, the majority of false alarm detections are either classified as reflections from static objects or dynamic objects.
% accumulate confusion matrix over all steps confusionmatrix = sum(confmat,3); numelements = sum(confusionmatrix,2); numelemstable = array2table(numelements,'variablenames',{'number of detections'},'rownames',{'targets','ghost (s)','ghost (d)','environment','clutter'}); disp('true information');disp(numelemstable);
true information number of detections ____________________ targets 1969 ghost (s) 3155 ghost (d) 849 environment 27083 clutter 138
% calculate percentages percentmatrix = confusionmatrix./numelements*100; percentmatrixtable = array2table(round(percentmatrix,2),'rownames',{'targets','ghost (s)','ghost (d)','environment','clutter'},... "variablenames",{'targets','ghost (s)','ghost (d)', 'environment','clutter'}); disp('true vs predicted confusion matrix (%)');disp(percentmatrixtable);
true vs predicted confusion matrix (%) targets ghost (s) ghost (d) environment clutter _______ _________ _________ ___________ _______ targets 90.6 0.56 8.43 0.41 0 ghost (s) 3.14 84.03 12.49 0.35 0 ghost (d) 17.79 0.24 81.98 0 0 environment 1.06 2.72 4.04 92.17 0 clutter 21.74 62.32 15.22 0.72 0
summary
in this example, you simulated radar detections due to multipath propagation in an urban highway driving scenario. you configured a data processing algorithm to simultaneously filter ghost detections and track vehicles on the highway. you also analyzed the performance of the tracking algorithm and the classification algorithm using the gospa metric and confusion matrix.
references
[1] prophet, robert, et al. "instantaneous ghost detection identification in automotive scenarios." 2019 ieee radar conference (radarconf). ieee, 2019.
[2] kraus, florian, et al. "using machine learning to detect ghost images in automotive radar." 2020 ieee 23rd international conference on intelligent transportation systems (itsc). ieee, 2020.