<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2015.311003</article-id><article-id pub-id-type="publisher-id">JCC-61270</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Analysis of Abnormal Vehicle Behavior Based on Trajectory Fitting
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Enyuan</surname><given-names>Jiang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Xuejun</surname><given-names>Wang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>College of Communication Engineering, Jilin University, Changchun, China</addr-line></aff><pub-date pub-type="epub"><day>19</day><month>11</month><year>2015</year></pub-date><volume>03</volume><issue>11</issue><fpage>13</fpage><lpage>18</lpage><history><date date-type="received"><day>August</day>	<month>2015</month>	</date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   In order to analysis the abnormal vehicle behavior by trajectory fitting effectively, the whole process is divided into three steps: target detection and tracking, vehicle trajectory analysis, vehicle behavior detection. Firstly, a three-frame-differencing method is used to achieve initial target location and an improved tracking algorithm based on Kalman predictor is proposed; then, an adaptive segmented linear fitting algorithm is proposed to achieve vehicle trajectory fitting; finally, two parameters including the rate of velocity variation and the rate of direction variation are used to establish vehicle abnormal behavior detection model. Experiment result shows that the three high dangerous vehicle behaviors in road surveillance videos can be detected effectively: sharp brake, sharp turn, and sharp turn brake. 
 
</p></abstract><kwd-group><kwd>Target Detection</kwd><kwd> Target Tracking</kwd><kwd> Trajectory Fitting</kwd><kwd> Vehicle Behavior Detection</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Nowadays traffic surveillance systems are widely used on highways and city roads. And the traditional manual surveillance watching cannot meet the needs of analyzing the huge amount of video data. Using the “intelligent” computer to discover the abnormal behavior in surveillance video becomes more important and gets more attention [<xref ref-type="bibr" rid="scirp.61270-ref1">1</xref>]-[<xref ref-type="bibr" rid="scirp.61270-ref3">3</xref>].</p><p>Recently, many scholars have done their own research works in this field. Zhao, Y.T., Li, X.Y. and Luo, D.H. [<xref ref-type="bibr" rid="scirp.61270-ref4">4</xref>] used the vehicle's tracking trajectory to separate the vehicles behavior into four elements: forward, backward, stop, left or right and then a vehicle behavior model is built based on them. Wang, W.G. and Ma, R. G. [<xref ref-type="bibr" rid="scirp.61270-ref5">5</xref>] proposed a weighed support vector machine (SVM) method based on the importance of the samples to solve the low detection problem caused by imbalanced samples. Liu, Q.C., Lu, J. and Chen, S.Y. [<xref ref-type="bibr" rid="scirp.61270-ref6">6</xref>] proposed a traffic incident detection method based on the random forest. Amin, M.S., Reaz, M. B. I. and Nasir, S. S. [<xref ref-type="bibr" rid="scirp.61270-ref7">7</xref>] proposed an incident detection and location method by fusing vehicle acceleration and GPS data.</p><p>To analysis abnormal vehicles behavior effectively, the whole process is divided into three steps in this paper: Firstly, a three-frame-differencing method and the improved tracking algorithm based on Kalman predictor are proposed to track vehicle. Then, an adaptive segmented linear fitting algorithm based on the least square method is proposed to achieve vehicle trajectory fitting which can reduce the amount of computation. Finally, two parameters including the rate of velocity variation and the rate of direction variation are used to establish vehicle abnormal behavior detection model. So the three highly dangerous vehicle behavior including sharp brake, sharp turn and sharp turn brake in surveillance video can be detected effectively.</p></sec><sec id="s2"><title>2. Target Detection and Tracking</title><p>Vehicle motion parameters will affect the detection of the abnormal vehicle behavior directly. The Kalman and the Camshift algorithm [<xref ref-type="bibr" rid="scirp.61270-ref8">8</xref>] can improve the tracking result, but it needs to initialize the search window manually and the computation is complex. Aiming at this shortage, we make a further improvement as below.</p><sec id="s2_1"><title>2.1. Three-Frame-Differencing</title><p>In traditional Camshift algorithm [<xref ref-type="bibr" rid="scirp.61270-ref9">9</xref>], we must manually locate the initial position of a target, this artificial selection may introduce extra background color information and affect the tracking results. The three-frame-dif- ferencing method can locate the initial position automatically, and let this position as the initial window in the later Camshift algorithm.</p><p>This method is as follows: suppose<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x4.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x5.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x6.png" xlink:type="simple"/></inline-formula> are three consecutive frames, and respectively calculate the difference between <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x7.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x8.png" xlink:type="simple"/></inline-formula> and between <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x9.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x10.png" xlink:type="simple"/></inline-formula> to get the difference images <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x11.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x12.png" xlink:type="simple"/></inline-formula>. Then the binary images <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x13.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x14.png" xlink:type="simple"/></inline-formula> is obtained</p><p>through a proper threshold T and use logic “and” operation to get a binary image<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x15.png" xlink:type="simple"/></inline-formula>. From the binary image <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x16.png" xlink:type="simple"/></inline-formula> the contour can be extracted, and the initial window in Camshift algorithm is obtained. The process of three-frame-differencing is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p></sec><sec id="s2_2"><title>2.2. Improved Tracking Algorithm Based on Kalman Predictor</title><p>Kalman predictor [<xref ref-type="bibr" rid="scirp.61270-ref10">10</xref>] is an optimal estimation based on least error covariance, and the actual motion parameters are modified by the estimated value of future motion state. It can improve the tracking result in Camshift algorithm effectively when the target moves fast or it is partially occluded. The formula of occlusion judging is as follows.</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Diagram of three-frame-differencing</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x17.png"/></fig><disp-formula id="scirp.61270-formula10"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/61270x18.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x19.png" xlink:type="simple"/></inline-formula>is Bhattacharyya distance, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x19.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x20.png" xlink:type="simple"/></inline-formula>is Bhattacharyya coefficient, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x19.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x21.png" xlink:type="simple"/></inline-formula>is the color histogram of initial window obtained by three-frame-differencing, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x19.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x22.png" xlink:type="simple"/></inline-formula>is the color histogram of tracking window, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x19.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x23.png" xlink:type="simple"/></inline-formula>is the threshold of occlusion judging.</p><p>When the occlusion occurs, the tracking result in Camshift algorithm is not credible, so the result of kalman predictor are outputted. When the occlusion ends, the result of camshaft are outputted. The improved algorithm using the Kalman predictor improves the tracking accuracy effectively. It is shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p></sec></sec><sec id="s3"><title>3. Analysis of Tracking Trajectory</title><p>After target detection and tracking, analysis of tracking trajectory is necessary. The traditional fitting trajectory is curve-fitting, but it requires a large number of complex operations and the following process is more complex. Here, an adaptive segmented linear fitting method based on least square is adopted. According to the principle of overall minimum fitting error, the best segmentation fitting points are automatically determined, so the speed and accuracy can be improved. When the trajectory appears curvilinear, the linear fitting method can not be closely matched the trajectory. Therefore, the tracking points are grouped and fitted in each group, that is the idea of the segmented linear fitting.</p><p>The function of a line is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x24.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x25.png" xlink:type="simple"/></inline-formula>is the slope of the line, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x26.png" xlink:type="simple"/></inline-formula>is ordinate at the origin.</p><p>Define error:</p><disp-formula id="scirp.61270-formula11"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/61270x27.png"  xlink:type="simple"/></disp-formula><p>The ordered track point is divided into k group:</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Process of improved tracking algorithm</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x28.png"/></fig><disp-formula id="scirp.61270-formula12"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/61270x29.png"  xlink:type="simple"/></disp-formula><p>The overall fitting error is related to the number of groups <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x30.png" xlink:type="simple"/></inline-formula> and the value of segmentation point<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x31.png" xlink:type="simple"/></inline-formula>. Therefore, according to the principle of overall minimum fitting error, the value of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x32.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x33.png" xlink:type="simple"/></inline-formula> are automatically determined and the adaptive segmentation of the trajectory is realized.</p><p>Define overall fitting error:</p><disp-formula id="scirp.61270-formula13"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/61270x34.png"  xlink:type="simple"/></disp-formula><p>when<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x35.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x36.png" xlink:type="simple"/></inline-formula>are the best segmentation points for track points divided into <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x37.png" xlink:type="simple"/></inline-formula> groups.</p><p>Define difference of errors:</p><disp-formula id="scirp.61270-formula14"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/61270x38.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x39.png" xlink:type="simple"/></inline-formula>is the difference between the overall minimum fitting error of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x40.png" xlink:type="simple"/></inline-formula> groups linear fitting and the overall minimum fitting error of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x41.png" xlink:type="simple"/></inline-formula> groups linear fitting, if the difference <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x42.png" xlink:type="simple"/></inline-formula> is less than the setting error-threshold<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x43.png" xlink:type="simple"/></inline-formula>, This shows that the overall fitting error is relatively small when the track points divided into <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x44.png" xlink:type="simple"/></inline-formula> groups, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x45.png" xlink:type="simple"/></inline-formula> is the number of groups.</p></sec><sec id="s4"><title>4. Detection of Abnormal Vehicle Behavior</title><p>Usually, sharp brake, sharp turn, and sharp turn brake are dangerous events in driving [<xref ref-type="bibr" rid="scirp.61270-ref11">11</xref>]. The detection of abnormal vehicle behavior can control the transportation system effectively. Here, we pay more attention to the variation of velocity and direction in a short time, so these two parameters are used to establish abnormal vehicle behavior detection model.</p><p>Define the intersection point of two adjacent fitting lines as the inflection point of trajectory:</p><disp-formula id="scirp.61270-formula15"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/61270x46.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x47.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x48.png" xlink:type="simple"/></inline-formula> are the parameters of linear fitting equation.</p><p>Define the rate of direction variation:</p><disp-formula id="scirp.61270-formula16"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/61270x49.png"  xlink:type="simple"/></disp-formula><p>Define the rate of velocity variation:</p><disp-formula id="scirp.61270-formula17"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/61270x50.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x51.png" xlink:type="simple"/></inline-formula>is the inflection point of trajectory, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x52.png" xlink:type="simple"/></inline-formula>is the Pixel distance of two inflection points, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x53.png" xlink:type="simple"/></inline-formula>is the</p><p>time interval of two inflection points, D is the rate of direction variation at the inflection point<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x54.png" xlink:type="simple"/></inline-formula>, A is the rate of velocity variation at the inflection point<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x55.png" xlink:type="simple"/></inline-formula>.</p><p>When a vehicle brakes, the rate of velocity variation increases rapidly. When a vehicle takes a sharp turn, the rate of direction variation increases rapidly. when a vehicle takes a sharp turn brake, the rate of velocity variation and direction variation increase rapidly. Specifically as follows <xref ref-type="table" rid="table1">Table 1</xref>.</p></sec><sec id="s5"><title>5. Results and Analyses</title><p>Test results are shown in Figures 3-5, the result of target tracking is (a), the result of linear fitting is (b), <xref ref-type="fig" rid="fig3">Figure 3</xref> is two scenes of sharp brake, n is the number of inflection points that satisfy <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x56.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x56.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x57.png" xlink:type="simple"/></inline-formula>which is bigger than the half of inflection points’ total number N, <xref ref-type="fig" rid="fig4">Figure 4</xref> is two scenes of sharp turn, n is the number of inflection points that satisfy <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x56.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x57.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x58.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x56.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x57.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x58.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x59.png" xlink:type="simple"/></inline-formula> which is bigger than the half of inflection points’ total number N, the <xref ref-type="fig" rid="fig5">Figure 5</xref> is two scenes of sharp turn brake, n is the number of inflection points that satisfy</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x60.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x60.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x61.png" xlink:type="simple"/></inline-formula> which is bigger than the half of inflection points’ total number N. Based on many experiments, we set<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x60.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x61.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x62.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x60.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x61.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x62.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x63.png" xlink:type="simple"/></inline-formula>.</p><p>Experiment result shows that the three high dangerous vehicle behaviors in the road surveillance videos can be detected effectively: sharp brake, sharp turn, and sharp turn brake.</p></sec><sec id="s6"><title>6. Conclusion</title><p>In this paper, an abnormal vehicle behavior detection method based on trajectory fitting is proposed. Firstly, a three-frame-differencing method and the improved tracking algorithm based on Kalman predictor are proposed. Then, an adaptive segmented linear fitting algorithm based on the least square is proposed. Finally, two parameters including the rate of velocity variation and the rate of direction variation are adopted to establish abnormal</p><fig-group id="fig3"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Sharp brake.</title></caption><fig id ="fig3_1"><label> (b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x64.png"/></fig><fig id ="fig3_2"><label> (c)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x65.png"/></fig><fig id ="fig3_3"><label> (d)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x66.png"/></fig><fig id ="fig3_4"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x67.png"/></fig></fig-group><fig-group id="fig4"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Sharp turn.</title></caption><fig id ="fig4_1"><label> (b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x68.png"/></fig><fig id ="fig4_2"><label> (c)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x69.png"/></fig><fig id ="fig4_3"><label> (d)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x70.png"/></fig><fig id ="fig4_4"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x71.png"/></fig></fig-group><fig-group id="fig5"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Sharp turn brake.</title></caption><fig id ="fig5_1"><label> (b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x72.png"/></fig><fig id ="fig5_2"><label> (c)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x73.png"/></fig><fig id ="fig5_3"><label> (d)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x74.png"/></fig><fig id ="fig5_4"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/61270x75.png"/></fig></fig-group><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Vehicle abnormal behavior analysis</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Three abnormal behaviors</th><th align="center" valign="middle" >Equations</th></tr></thead><tr><td align="center" valign="middle" >Sharp brake Sharp turn Sharp turn brake</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x76.png" xlink:type="simple"/></inline-formula>&amp; <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x77.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x78.png" xlink:type="simple"/></inline-formula>&amp; <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x79.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x80.png" xlink:type="simple"/></inline-formula>&amp; <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/61270x81.png" xlink:type="simple"/></inline-formula></td></tr></tbody></table></table-wrap><p>vehicle behavior detection model. Experiment result shows that the three high dangerous vehicle behaviors can be detected effectively: sharp brake, sharp turn, and sharp turn brake.</p></sec><sec id="s7"><title>Cite this paper</title><p>Enyuan Jiang,Xuejun Wang, (2015) Analysis of Abnormal Vehicle Behavior Based on Trajectory Fitting. Journal of Computer and Communications,03,13-18. doi: 10.4236/jcc.2015.311003</p></sec></body><back><ref-list><title>References</title><ref id="scirp.61270-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Versavel, J. (1999) Road Safety through Video Detection. 1999 IEEE/IEEJ/JSAI International Conference on Intelligent Transportation Systems, 753-757. http://dx.doi.org/10.1109/itsc.1999.821155</mixed-citation></ref><ref id="scirp.61270-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Qimei, L.B.C. (2006) Vehicle Activity Analysis from Freeway Traffic Video. Chinese Journal of Scientific Instrument, S3. (In Chinese) http://en.cnki.com.cn/Article_en/CJFDTOTAL-YQXB2006S3139.htm</mixed-citation></ref><ref id="scirp.61270-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Zhao, X.M., Hui, F., Shi, X., Ma, J.Y. and Yang, L. (2014) Concept, Architecture and Challenging Technologies of Ubiquitous Traffic Information Service System. Journal of Traffic and Transportation Engineering, 105-115. (In Chinese) http://www.cnki.com.cn/Article/CJFDTotal-JYGC201404015.htm</mixed-citation></ref><ref id="scirp.61270-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Zhao, Y.T., Li, X.Y. and Luo, D.H. (2011) Study on the Methods of Automatic Incident Detection Based on the Video Vehicle Trajectory Model. Acta Scientiarum Naturalium Universitatis Sunyatseni, 56-60. (In Chinese)  
http://www.cnki.com.cn/Article/CJFDTotal-ZSDZ201104012.htm</mixed-citation></ref><ref id="scirp.61270-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Wang, W.G. and Ma, R.G. (2013) Weighed Support Vector Machine for Traffic Incident Detection. Journal of Chang’an University (Natural Science Edition), 6, 014. (In Chinese)  
http://www.cnki.com.cn/Article/CJFDTotal-XAGL201306014.htm</mixed-citation></ref><ref id="scirp.61270-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Liu, Q.C., Lu, J. and Chen, S.Y. (2014) Design and Analysis of Traffic Incident Detection Based on Random Forest. Journal of Southeast University (English Edition), 1, 88-95.  
http://en.cnki.com.cn/Article_en/CJFDTotal-DNDY201401017.htm</mixed-citation></ref><ref id="scirp.61270-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Amin, M.S., Reaz, M.B.I. and Nasir, S.S. (2014) Integrated Vehicle Accident Detection and Location System. TELKOMNIKA (Telecommunication Computing Electronics and Control), 12, 73-78.  
http://jogjapress.com/index.php/TELKOMNIKA/article/view/1787 
http://dx.doi.org/10.12928/telkomnika.v12i1.13</mixed-citation></ref><ref id="scirp.61270-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Yan, J.H., Chen, S.H. and Ai, S.F. (2014) Target Tracking with Improved CAMShift Based on Kalman Predictor. Journal of Chinese Inertial Technology, 4, 021. (In Chinese)  
http://www.cnki.com.cn/Article/CJFDTotal-ZGXJ201404021.htm</mixed-citation></ref><ref id="scirp.61270-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Bradski, G.R. (1998) Computer Vision Face Tracking for Use in a Perceptual User Interface.  
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.14.7673</mixed-citation></ref><ref id="scirp.61270-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Liu, R.M., Li, X.L., Han, L. and Meng, J. (2013) Track Infrared Point Targets Based on Projection Coefficient Templates and Non-Linear Correlation Combined with Kalman Prediction. Infrared Physics &amp; Technology, 57, 68-75.  
http://www.sciencedirect.com/science/article/pii/S1350449512001193 
http://dx.doi.org/10.1016/j.infrared.2012.12.011</mixed-citation></ref><ref id="scirp.61270-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Zhang, X.Y. and Da, Q.D. (2001) Technology of Highway Automatic Incident Detection. Systems Engineering-Theory &amp; Practice, 21, 118-124. (In Chinese) http://www.cnki.com.cn/Article/CJFDTotal-XTLL200106021.htm</mixed-citation></ref></ref-list></back></article>