main content

tracking using bistatic range detections -凯发k8网页登录

this example shows you how to simulate bistatic range-only detections using four sensor-emitter pairs. in addition, this example demonstrates how to localize and track multiple targets using bistatic range-only measurements.

introduction

a bistatic radar is a collection of a bistatic emitter or transmitter ($t_x$), and a bistatic receiver or sensor ($r_x$). the geometry of a bistatic system is depicted in the figure below. the sensor receives signals along the path forming the upper sides of the triangle $(r_t   r_r)$ with bistatic detections referenced to the emitter range. the relative bistatic range is given by:

$$r_{bistatic} = r_t   r_r - l,$$

where $r_t$ is the range from the emitter to the target, $r_r$ is the range from the target to the sensor, and $l$, known also as the direct-path or baseline, is the range from the emitter to the sensor.

the emitter-to-target-to-sensor range obtained by the bistatic radar is equal to the sum:

$$r_t   r_r = 2a.$$

this sum defines an ellipsoid of constant range. the image shown above describes the ellipsoid when target, transmitter and sensor lie in the same plane. this results in a 2-d ellipse. the target lies somewhere on the surface of the constant-range ellipsoid with the foci being the emitter and sensor locations, which are separated by the baseline distance l and with a major axis equal to 2a.

next, you will define a scenario to generate the bistatic detections and then use the detections to track the targets.

define scenario

you define a tracking scenario which simulates the 3-d area containing multiple platforms. you will define the bistatic system in this scenario.

% set the random seed for repeatable results.
rng(2050);
% create a tracking scenario to manage the movement of platforms.
scene = trackingscenario;
% set the duration of the scenario to 30 seconds and the update rate of the
% scenario to 1 hz.
scene.stoptime = 30;    % sec
scene.updaterate = 1;   % hz

set the number of each type of platform. in this example, the following types of platform will be created for sensing the targets:

  • 1 radar emitter

  • 4 bistatic radar sensors

% set the minimum number of sensor-emitter pairs required by the spherical
% intersection algorithm for a better localization of the targets in
% 3-dimensional space.
numsensors = 4;
emitteridx = 1; % emitter is added as first platform in scene

create and mount emitter

in a bistatic system, there are three types of emitters:

  • dedicated: this type of transmitter is intentionally designed and operated to support bistatic processing.

  • cooperative: this type of transmitter is designed to support other functions but is suitable for bistatic use. information about the transmitter such as its transmitted waveform and position are known.

  • non-cooperative: this type is a "transmitter of opportunity". non-cooperative transmitters cannot be controlled but are deemed suitable for bistatic use.

in this example, the modeled emitter is considered to be a dedicated transmitter. model an rf emission using radaremitter. this emitter is an ideal, isotropic emitter with a 360 degrees field of view. the waveform type is a user-defined value used to enumerate the various waveform types that are present in the scenario. for this scenario, use the value 1 to indicate an lfm type waveform. mount the emitter to a stationary platform at the origin.

% define an emitter.
emitter = radaremitter(emitteridx,'no scanning', ...
    'fieldofview',[360 180], ...    % [az el] deg
    'centerfrequency', 300e6, ...   % hz
    'bandwidth', 30e6, ...          % hz
    'waveformtype', 1);             % use 1 for an lfm-like waveform
% mount emitter on a platform.
thisplat = platform(scene,'trajectory',kinematictrajectory('position',[0 0 0],...
    'velocity',[0 0 0]));
thisplat.emitters = {emitter};

create and mount bistatic radar sensors

model a bistatic radar sensor using radarsensor. the radar sensor is an ideal, isotropic receiver with a 360 degrees field of view. set the detectionmode to bistatic. ensure that the sensor is configured so that its center frequency, bandwidth, and expected waveform types will match the emitter configuration. enable ins for tracking in scenario coordinates and mount the bistatic radar sensor to platforms.

% define some random trajectories for the four bistatic radar sensors.
% circularly distributed with some variance.
r = 2000;                                        % range, m
theta = linspace(0,pi,numsensors);               % theta, rad
xsen = r*cos(theta)   100*randn(1,numsensors);   % m
ysen = r*sin(theta)   100*randn(1,numsensors);   % m
% to observe the z of the targets, the sensors must have some elevation
% with respect to each other and emitter.
zsen = -1000*rand(1,numsensors);     % m
% define a bistatic radar sensor.
sensor = fusionradarsensor(1,'no scanning', ...
    'fieldofview',[360 180], ...    % [az el] deg
    'detectionmode','bistatic', ... % bistatic detection mode
    'centerfrequency', 300e6, ...   % hz
    'bandwidth', 30e6, ...          % hz
    'waveformtypes', 1,...          % use 1 for an lfm-like waveform
    'hasins',true,...               % has ins to enable tracking in scenario
    'azimuthresolution',360,...     % does not measure azimuth and has a single resolution cell
    'haselevation',true,...         % enable elevation to set elevation resolution
    'elevationresolution',180);     % single elevation resolution cell
% mount bistatic radar sensors on platforms.
for id = 1:numsensors
    % create a platform with the trajectory. the sensing platforms are
    % considered stationary, but can be provided with a velocity.
    thisplat = platform(scene,...
        'trajectory',kinematictrajectory('position',[xsen(id) ysen(id) zsen(id)],...
        'velocity',[0 0 0]));
    % clone the bistatic radar sensor and mount to platforms.
    thisplat.sensors = {clone(sensor)};
    % provide the correct sensor index.
    thisplat.sensors{1}.sensorindex = id;
end

simulating the bistatic scenario involves the following:

  • generating rf emissions

  • propagating the emissions and reflecting these emissions from platforms

  • receiving the emissions, calculating interference losses, and generating detections.

this process is wrapped in a supporting function, detectbistatictargetrange, defined at the end of this example.

target localization

the figure in the introduction section illustrated that with a bistatic measurement, the target lies somewhere on an ellipsoid defined by the emitter and sensor positions, as well as the measured bistatic range. since the target can lie anywhere on the ellipsoid, a single bistatic measurement does not provide full observability of the target state. to localize the target (triangulate the target position) and achieve observability of target's state, multiple measurements from different sensors are needed. the target localization algorithm that is implemented in this example is based on the spherical intersection method described in reference [1]. the non-linear nature of the localization problem results in two possible target locations from intersection of 3 or more sensor bistatic ranges. a decision about target location from two possible locations can be facilitated by using more than 3 sensors. in this example, you use four sensors to generate bistatic detections using one emitter.

next, you will add a target to the scene to generate bistatic detections.

add one target to scenario

platforms without any attached emitters or sensors are referred to as targets. create targets for tracking using platform.

% add one target here using the platform method of scenario. specify the
% trajectory using a kinematictrajectory with random position and constant
% velocity.
platform(scene,'trajectory',kinematictrajectory(...
                            'position', [2000*randn 100*randn -1000],...
                            'velocity',[10*randn 10*randn 5*randn]));
% initialize the display for visualization.
theaterdisplay = helperbistaticrangefusiondisplay(scene,...
    'xlim',[-3 3],'ylim', [-3 3],'zlim',[-2.5 0],...
    'gif',''); % records new gif if name specified
view(3);

in a scenario with a single target and no false alarms, multiple measurements can be triangulated to obtain the localized target position. this localized position can be used as an estimate of target position or can also be passed to a tracker to estimate the target state. now, you will generate bistatic radar detections from a single target and visualize the geometry of bistatic ellipsoids. you will calculate the triangulated position using the supporting function helperbistaticrangefusion, included with this example. the helperbistaticrangefusion function calculates the triangulated position of the target, given the bistatic range detections generated by the target.

% create a fused detection to represent the triangulated position and
% visualize the position as a 3-d fused position detection.
measparam = struct('frame','rectangular',...
    'hasazimuth',true,'haselevation',true,...
    'hasrange',true,'hasvelocity',false,...
    'originposition',[0;0;0],...% fused position is in scenario frame
    'originvelocity',[0;0;0],...% scenario frame has zero velocity
    'orientation',eye(3),...    % scenario frame has no rotation.
    'isparenttochild',false);   % specify if rotation is specified in parent frame
% represent the fused detection using objectdetection. it has a 3-d
% position and covariance.
fuseddetection = {objectdetection(0,zeros(3,1),'measurementnoise',eye(3),...
    'measurementparameters',measparam)};
% change view
view(-125,9);
% run scenario.
while advance(scene)
    % get current simulation time.
    time = scene.simulationtime;
    % get bistatic range detections from 1 target.
    detections = detectbistatictargetrange(scene,time,emitteridx,true);
    % triangulate detections to estimate target position.
    [position, covariance] = helperbistaticrangefusion(detections);
    % update the fused detection.
    fuseddetection{1}.measurement = position;
    fuseddetection{1}.measurementnoise = covariance;
    % update the display.
    theaterdisplay([detections;fuseddetection]);
end
% write new gif if requested
writegif(theaterdisplay);

in the preceding animations, the bistatic radar sensors are depicted with the downward-pointing triangles. the stationary emitter is depicted with the purple circle marker at the origin. the target is denoted by the white diamond and the grey line shows the trajectory of the target. the 2-d animation is sliced at the target's z location at each time stamp.

the fused detection, shown using the yellow circle marker, lies close to the intersection region generated the four ellipsoids and is close to the true position of the target during the scenario.

multi-target scenario

the single-target scenario assumes that detections are known to be generated by the same target. therefore, you can triangulate them to localize the target. however, in a multi-target scenario and in the presence of false alarms and missed detections, this information is usually not available. this results in the unknown data association between detections and the targets. to solve this problem, you use the staticdetectionfuser. the staticdetectionfuser estimates the unknown data association between detections and targets and finds the best solution using a multi-dimensional assignment formulation. the staticdetectionfuser outputs fused detections. the number of fused detections represent possible number of targets and each detection represents the cartesian position of the target.

next, you will add new targets to the scenario, and use the staticdetectionfuser to create fused detections from multiple targets in the presence of false alarms. these detections are further processed by a gnn tracker, trackergnn, to track the targets.

% restart the scenario and add remaining targets.
restart(scene);
% reproducible geometry
rng(2021);
% number of targets added here.
numtargets = 4;
% randomly distributed targets.
r = abs(2000*randn(1,numtargets));                % random ranges (m)
theta = linspace(0,numtargets*pi/4,numtargets);   % angular position (rad)
xtgt = r.*cos(theta)   100*randn(1,numtargets);   % x position (m)
ytgt = -r.*sin(theta)   100*randn(1,numtargets);  % y position (m)
% targets above ground.
ztgt = -1000*ones(1,numtargets); % z position (m)
for id = 1:numtargets
    thisplat = platform(scene,...
        'trajectory',kinematictrajectory('position',[xtgt(id) ytgt(id) ztgt(id)],...
        'velocity',[10*randn 10*randn 5*randn]));
end
% update platforms variable.
platforms = scene.platforms;
% reset the display.
release(theaterdisplay);
% turn off plotting for bistatic ellipse for all targets.
theaterdisplay.plotbistaticellipse = false;
% no recording
theaterdisplay.gif = '';
% call once to plot new trajectories.
theaterdisplay();
% scenario display with trajectories.
showscenario(theaterdisplay);
snapnow;
showgrabs(theaterdisplay,[]);

setup fuser and tracker

this section creates a static detection fuser that uses the spherical intersection localization algorithm discussed earlier. additionally, a global nearest neighbor (gnn) tracker is defined to process the fused detections.

% define a static detection fuser.
fuser = staticdetectionfuser( ...
    'measurementfusionfcn','helperbistaticrangefusion', ...
    'useparallel',true, ...                         % do parallel processing
    'maxnumsensors',numsensors, ...                 % number of bistatic radar sensors
    'volume',sensor.rangeresolution, ...            % volumes of the sensors' detection bin
    'measurementformat','custom', ...               % define custom fused measurement as bistatic cannot not reported by cvmeas
    'measurementfcn','helperbistaticmeas',...       % set measurement function for reporting bistatic measurement
    'detectionprobability',0.99 ...                 % probability of detecting the target
    );
% define a gnn tracker.
tracker = trackergnn('assignmentthreshold',100);

track targets using static fusion

the simulated bistatic detections are fused with the staticdetectionfuser using spherical intersection algorithm. the fused detections are then passed to the gnn tracker.

while advance(scene)
    % get current simulation time.
    time = scene.simulationtime;
    % get bistatic range detections
    detections = detectbistatictargetrange(scene,time,emitteridx);
    % fuse bistatic detections into one structure.
    [superdets, info] = fuser(detections);
    % track fused bistatic detections using the gnn tracker.
    conftracks = tracker(superdets,scene.simulationtime);
    % update display with current platform positions and tracks.
    theaterdisplay([superdets(:);detections(:)],conftracks);
end

results

in the presence of multiple targets and possible false alarms, the ghost intersections may sometimes be more favorable than actual solution. as these ghost intersections appear randomly on the scenario, they are effectively treated as "false alarms" by the centralized tracker. you can notice in the figures below that the static fusion outputs detections at the incorrect positions. as ghost intersections compete with true intersections, two true targets are missed at this time.

in the "current estimated tracks" plot, note that the tracker is able to maintain tracks on all 5 targets without creating any ghosts or false tracks.

showgrabs(theaterdisplay,1);

the plots below show the top view of tracks 1 and 2 with their histories at the end of the simulation. the history is represented by the orange line connecting the track. notice that the track histories are close to the true trajectories of the targets.

showgrabs(theaterdisplay,2,false);

summary

in this example, you learned how to simulate a scenario with bistatic sensors. you learned about the challenges associated with tracking targets using bistatic measurements. you used the staticdetectionfuser to fuse bistatic range detections from multiple targets and trackergnn to track targets with the fused position measurements.

supporting functions

helperbistaticrangefusion fuse range-only detections to triangulate target position

function [pos,cov] = helperbistaticrangefusion(detections)
% this function is for example purposes only and may be removed in a future
% release.
% this function returns the estimated position and covariance of the target
% given the bistatic detections generated from it.
%   凯发官网入口首页 copyright 2019 the mathworks, inc.
% do a coarse gating, as a minimum of 3 measurements are required for
% finding a solution.
if numel(detections) < 3
    pos = 1e10*ones(3,1);
    cov = 2*eye(3);
else
    % retrieve info from measurements
    ranges = zeros(numel(detections),1);
    receiverlocations = zeros(3,numel(detections));
    emitterlocation = detections{1}.measurementparameters.emitterposition;
    for i = 1:numel(detections)
        rloc =  detections{i}.measurementparameters(2).originposition;
        receiverlocations(:,i) = rloc;
        
        % the spherical intersection method assumes that measurment is 
        % remit   rrecv. bistatic measurement is defined as remit   rrecv - rb. 
        % add the rb to the actual measurement
        l = norm(emitterlocation(:) - rloc(:));
        ranges(i) = detections{i}.measurement   l;
    end
    pos = helpersphericalintersection(ranges,receiverlocations,emitterlocation);
    
    % covariance is calculated only when required. this helps saving
    % computation during cost calculation for static fusion, where only
    % position is required.
    if nargout > 1
        cov = linearfusionfcn(pos,detections);
    end
end
end
%% linear fusion function for measurement noise
function meascov = linearfusionfcn(pos,thisdetections)
% linear noise fusion function. it requires measjacobian to use linear
% transformation. 
% use a constant velocity state to calculate jacobians.
eststate = zeros(6,1);
eststate(1:2:end) = pos;
n = numel(thisdetections);
totaljacobian = zeros(n,3);
totalcovariance = zeros(n,n);
for i = 1:numel(thisdetections)
    h = cvmeasjac(eststate,thisdetections{i}.measurementparameters);
    totaljacobian(i,:) = h(1,1:2:end);
    totalcovariance(i,i) = thisdetections{i}.measurementnoise;
end
toinvertjacobian = totaljacobian'/(totalcovariance)*totaljacobian;
i = eye(3);
% 2-d to 3-d conversion with 0 jacobian wrt z.
if toinvertjacobian(3,3) == 0
    toinvertjacobian(3,3) = 1;
end
meascov = i/toinvertjacobian;
% return true positive definite.
meascov = (meascov   meascov')/2;
meascov(~isfinite(meascov)) = 1000; % some big number for inf and nan
end

detectionbistatictargetrange generate bistatic range-only detections from targets in scenario.

function detections = detectbistatictargetrange(scene,time,emitteridx,removefalsealarms)
    % get platforms from scenario.
    platforms = scene.platforms;
    % a flag to indicate if false alarms should be removed from detections.
    if nargin == 3
        removefalsealarms = false;
    end
    % distinguish between receivers and targets to remove detections from
    % the receiver. it is assumed that these detections can be removed from
    % the batch using prior information.
    isreceiver = cellfun(@(x)~isempty(x.sensors),scene.platforms);
    allids = cellfun(@(x)x.platformid,scene.platforms);
    receiverids = allids(isreceiver);
    % generate rf emissions
    emitplatform = platforms{emitteridx};
    txemiss = emit(emitplatform, time);
    % propagate the emissions and reflect these emissions from platforms.
    reflsigs = radarchannel(txemiss, platforms,'hasocclusion',false);
    % generate detections from the bistatic radar sensor.
    detections = {};
    numplat = numel(platforms);
    for iplat = 1:numplat
        thisplatform = platforms{iplat};
        % receive the emissions, calculate interference losses, and
        % generate bistatic detections.
        thisdet = detect(thisplatform, reflsigs, time);
        % remove the detections that are the bistatic receivers. only the
        % detections from the target platforms will be fused and tracked.
        detectedtargetids = cellfun(@(x)x.objectattributes{1}.targetindex,thisdet);
        toremove = ismember(detectedtargetids, receiverids) | removefalsealarms*(detectedtargetids<=0);
        thisdet = thisdet(~toremove);
        % add this platform's detections to the detections array.
        detections = [detections; thisdet]; %#ok
    end
    % determine emitter position and velocity for this simulation time.
    emitterposition = emitplatform.trajectory.position(:);
    % update detections structure to indicate that only bistatic range measurements are retained.
    for id = 1:numel(detections)
        detections{id}.measurement = detections{id}.measurement(end);  %#ok % range measurement
        detections{id}.measurementnoise = detections{id}.measurementnoise(end,end); %#ok % measurement noise for range
        detections{id}.measurementparameters(1).hasazimuth = false; %#ok % update measurement parameters to indicate that azimuth no longer exists
        detections{id}.measurementparameters(1).haselevation = false; %#ok % update measurement parameters to indicate that elevation no longer exists
        detections{id}.measurementparameters(1).emitterposition = emitterposition; %#ok % add emitter position
    end
end

references

  1. malanowski, m. and k. kulpa. "two methods for target localization in multistatic passive radar." ieee transactions on aerospace and electronic systems, vol. 48, no. 1, jan. 2012, pp. 572-578.

  2. willis, n. j. bistatic radar. raleigh:scitech publishing, inc., 2005.

网站地图