<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en"><front><journal-meta><journal-id journal-id-type="publisher-id">donstu</journal-id><journal-title-group><journal-title xml:lang="en">Advanced Engineering Research (Rostov-on-Don)</journal-title><trans-title-group xml:lang="ru"><trans-title>Advanced Engineering Research (Rostov-on-Don)</trans-title></trans-title-group></journal-title-group><issn pub-type="epub">2687-1653</issn><publisher><publisher-name>Don State Technical University</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.23947/2687-1653-2023-23-2-169-179</article-id><article-id custom-type="elpub" pub-id-type="custom">donstu-2035</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>INFORMATION TECHNOLOGY, COMPUTER SCIENCE AND MANAGEMENT</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>ИНФОРМАТИКА, ВЫЧИСЛИТЕЛЬНАЯ ТЕХНИКА И УПРАВЛЕНИЕ</subject></subj-group></article-categories><title-group><article-title>Predicting the Behavior of Road Users in Rural Areas for Self-Driving Cars</article-title><trans-title-group xml:lang="ru"><trans-title>Прогнозирование поведения участников дорожного движения в условиях проселочных дорог для беспилотных автомобилей</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0003-4627-0228</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Иванов</surname><given-names>С. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Ivanov</surname><given-names>S. A.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Сергей Александрович Иванов, старший инженер</p><p>420500, РФ, г. Иннополис, ул. Университетская, 1</p></bio><bio xml:lang="en"><p>Sergey A. Ivanov, Senior Engineer, Center for Autonomous Technologies</p><p>1, Universitetskaya St., Innopolis, 420500, RF</p></bio><email xlink:type="simple">se.ivanov@innopolis.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0003-3874-0883</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Рашид</surname><given-names>Б.</given-names></name><name name-style="western" xml:lang="en"><surname>Rasheed</surname><given-names>B.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Бадер Рашид, руководитель отдела разработки систем распознавания</p><p>420500, РФ, г. Иннополис, ул. Университетская, 1</p></bio><bio xml:lang="en"><p>Bader Rasheed, Head of the Recognition Systems Development Department, Center for Autonomous Technologies</p><p>1, Universitetskaya St., Innopolis, 420500, RF</p></bio><email xlink:type="simple">b.rasheed@innopolis.university</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Центр беспилотных технологий университета Иннополис</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Laboratory of Unmanned Technology, Innopolis University</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2023</year></pub-date><pub-date pub-type="epub"><day>14</day><month>07</month><year>2023</year></pub-date><volume>23</volume><issue>2</issue><fpage>169</fpage><lpage>179</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Ivanov S.A., Rasheed B., 2023</copyright-statement><copyright-year>2023</copyright-year><copyright-holder xml:lang="ru">Иванов С.А., Рашид Б.</copyright-holder><copyright-holder xml:lang="en">Ivanov S.A., Rasheed B.</copyright-holder><license license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://www.vestnik-donstu.ru/jour/article/view/2035">https://www.vestnik-donstu.ru/jour/article/view/2035</self-uri><abstract><sec><title>Introduction</title><p>Introduction. The prediction module generates possible future trajectories of dynamic objects that enables a self-driving vehicle to move safely on public roads. However, all modern prediction methods evaluate their performance only under urban conditions and do not consider their applicability to the domain of rural roads. This work examined the adaptability of existing methods to work under rural unstructured conditions and suggested a new, improved approach.</p></sec><sec><title>Materials and Methods</title><p>Materials and Methods. As a solution, we propose to use a neural network that includes the following submodules: a graph-based scene encoder, a multimodal trajectory decoder, and a trajectory filtering module. Another proposed feature is to use an adapted loss function that penalizes the network for generating trajectories that go beyond the drivable area. These elements use standard practices for solving the prediction problem and adapting it to the domain of rural roads.</p></sec><sec><title>Results</title><p>Results. The presented analysis described the basic features of the prediction module in the rural road domain, showed a comparison of popular models, and discussed its applicability to new conditions. The paper describes the new approach that is more adaptive to the considered domain of study. A simulation of the new domain was performed by modifying existing public datasets.</p><p>Discussion and Conclusion. Comparison to other popular methods has shown that the proposed approach provides more accurate results. The disadvantages of the proposed approach were also identified and possible solutions were described.</p></sec></abstract><trans-abstract xml:lang="ru"><sec><title>Введение</title><p>Введение. Благодаря модулю прогнозирования траекторий движения динамических объектов беспилотный автомобиль способен безопасно двигаться по дорогам общего пользования. Однако все современные методы прогнозирования оценивают производительность только в городских условиях и не рассматривают свою применимость к домену проселочных дорог. Цель данного исследования заключается в анализе адаптивности существующих методов прогнозирования и разработке подхода, который будет демонстрировать лучшую производительность при работе в новых условиях.</p></sec><sec><title>Материалы и методы</title><p>Материалы и методы. В качестве решения предлагается использовать нейронную сеть, включающую в себя следующие подмодули: графовый кодировщик сцены, мультимодальный декодировщик траекторий, модуль фильтрации траекторий. Также предлагается применить адаптированную функцию потерь, которая штрафует сеть за генерацию траекторий, выходящих за границы дорожного полотна. Данные элементы задействуют распространённые практики решения задачи прогнозирования, а также адаптируют её для домена проселочных дорог.</p></sec><sec><title>Результаты исследования</title><p>Результаты исследования. Проанализированы основные отличия и условия работы модуля прогнозирования в условиях проселочных дорог. Выполнена симуляция нового домена путем модификации существующих наборов данных. Проведено сравнение популярных методов прогнозирования и оценена их применимость к новым условиям. Представлен новый, более адаптивный к новому домену, подход.</p></sec><sec><title>Обсуждение и заключение</title><p>Обсуждение и заключение. Проведенное сравнение с другими популярными методами показывает, что предложенное авторами решение обеспечивает более точные результаты прогнозирования. Также были выявлены недостатки предложенного подхода и описаны возможные пути их устранения.</p></sec></trans-abstract><kwd-group xml:lang="ru"><kwd>прогнозирование траекторий</kwd><kwd>прогнозирование поведения</kwd><kwd>нейронные сети</kwd><kwd>беспилотные автомобили</kwd><kwd>искусственный интеллект</kwd><kwd>автономные автомобили</kwd></kwd-group><kwd-group xml:lang="en"><kwd>trajectory prediction</kwd><kwd>behavior prediction</kwd><kwd>neural networks</kwd><kwd>self-driving cars</kwd><kwd>artificial intelligence</kwd><kwd>autonomous cars</kwd></kwd-group><funding-group><funding-statement xml:lang="ru">авторы выражают благодарность центру беспилотных технологий университета Иннополис за  помощь в проведении исследования.</funding-statement><funding-statement xml:lang="en">the authors appreciate the “Center for Autonomous Technologies”, Innopolis University, for their assistance in conducting the research.</funding-statement></funding-group></article-meta></front><body><p>Introduction. The latest achievements in the field of artificial intelligence (AI) are being actively implemented in various areas of activity. One of such achievements is autonomous vehicles (AV). The current research was aimed at creating algorithms that allow AV to move safely on public roads. This will significantly reduce the number of road accidents [<xref ref-type="bibr" rid="cit1">1</xref>].</p><p>The scientific community has already identified the basic modules of an autonomous vehicle. One of them is a system for predicting the future behavior of road users (agents) [<xref ref-type="bibr" rid="cit2">2</xref>]. A clear understanding of how the environment will develop and in which direction dynamic objects (pedestrians, cars, cyclists) will move is urgently needed for AV to search and use a safe and effective trajectory of movement.</p><p>Numerous scientific papers are devoted to the problem of predicting such trajectories [3–12]. However, there is currently no active research on the application of existing methods outside of urban conditions. And this is extremely important, since autonomous cars will be used on country roads, too [<xref ref-type="bibr" rid="cit13">13</xref>]. Urban conditions are highly structured: cars mostly follow traffic lanes, and pedestrians move through special zones. In this sense, the area of country roads is the complete opposite, which means that it will have additional difficulties during development. In the given paper, attention is focused on these difficulties: the existing predicting methods and their applicability to new, less structured conditions are considered.</p><p>The objective of the study involved:</p><p>Materials and Methods. At first glance, it would seem that the domain presented is a simpler version of urban conditions due to the fact that country roads are characterized by less traffic. However, the absence of complex multi-level junctions, special traffic-free zones, a large number of signs, markings, etc., makes the domain of country roads less structured, i.e., fewer rules and specific traffic patterns increases the randomness and reduces the predictability of the behavior of cars and pedestrians.</p><p>The following features of the country road domain influence strongly on the selection of the architecture of the prediction module:</p><p>The prediction module implies the presence of AV recognition, tracking and localization systems and their accurate operation. The authors of the article use the Argoverse dataset, which stores the required records of the operation of all systems in a convenient form [<xref ref-type="bibr" rid="cit14">14</xref>].</p><p>The dataset consists of recordings of road scenes observed on the streets of Miami and Pittsburgh, USA. Each of the entries contains a local part of the terrain map (lane boundaries, roads, pedestrian crossings) and a list of all recognized agents, including the current position and movement history of each of them. Each of the records is divided into two parts: two seconds of the observation history and three subsequent seconds for which prediction is made (prediction horizon). Data on the future movement of objects is also available and used to calculate the accuracy of prediction methods and model training.</p><p>Information about agents is presented in a discrete format. The time interval between measurements is fixed, in this work it is equal to 0.1 seconds (10 Hz).</p><p>For each moment of time t, the module receives the observation history  for each detected agent i. The observation history consists of the agent's current and past states, where each of the states  is a 2D position in the global coordinate system. The authors make the assumption that the height information is redundant.</p><p>The dataset also provides access to an HD map that contains information about road borders and roadway, pedestrian crossings. To simulate the domain of country roads, the dataset was modified in such a way as to exclude all information from road maps, except for the boundaries of the roadway D. This reduces the amount of information about the road context and complicates the task of prediction.</p><p>Hence, the context of the scene is represented as</p><p> (1)</p><p>where k — the total number of tracked agents on the scene.</p><p>This approach implies predicting the trajectory for only one agent per execution, therefore further  is treated as  for simplification. To generalize the model for all recognized agents, it is required to repeat the proposed approach for all k agents on the scene. The agent for which the prediction is currently being made is considered a target agent.</p><p>To assess the accuracy of prediction methods, the dataset contains recorded future trajectories  for each target agent:</p><p> (2)</p><p>where H indicates the number of next time steps. In this case, parameter H will be equal to 30, since the planning horizon is three seconds with a sampling frequency of 10 Hz.</p><p>The domain of the prediction module is multimodal, i.e., the future behavior of agents may differ significantly in absolutely identical traffic situations. Let us say, a car approaching a crossroad may continue straight ahead or make a turn. To take this into account, it is required to generate M possible future trajectories and M probabilities of each of them at the model output.</p><p>Therefore, the purpose of the prediction module is to create function , that takes the context of the scene c as input and generates M pairs of possible future trajectories and their probabilities:</p><p>. (3)</p><p>Here, at least one generated trajectory  should be as close as possible to the real trajectory , and the probability of its execution p should be close to unity.</p><p>Model architecture. The proposed approach involves the use of a neural network consisting of submodules of scene encoding, decoding and filtering trajectories. The architecture of the system is shown in Figure 1.</p><fig id="fig-1"><caption><p>Fig. 1. System architecture</p></caption><graphic xlink:href="donstu-23-2-g001.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/2/2YwPHa1FutpoajMC2BGrzhdfjM4AExO3qE4JSOzj.jpeg</uri></graphic></fig><p>A neural network adapted to the new conditions, based on a vector representation, is responsible for encoding the scene. This selection is due to the fact that on country roads, the HD map will contain a limited amount of information (only the roadway boundaries and the history of observations of dynamic objects). Popular methods represent the context of a road scene с in an image format and process it using convolutional neural networks. However, vector coding avoids the overhead associated with image generation [4–5].</p><p>The presented encoder is based on the VectorNet model, but its input data format has been modified to receive information only about the boundaries of the roadway and the state of the agents. [<xref ref-type="bibr" rid="cit3">3</xref>]. This encoder represents the boundaries of the road and the state of agents using polylines, which are further processed by a graph neural network. This provides encoding the interaction between polylines. Details of the implementation are described in paper [<xref ref-type="bibr" rid="cit3">3</xref>].</p><p>A trajectory decoder is a task of regressing several possible trajectories and generating a set of probabilities. To solve this problem, a multilayer perceptron model is used. The decoder implementation is inspired by the MTP model [<xref ref-type="bibr" rid="cit4">4</xref>], however, the authors of the article propose a different formula for calculating the best trajectory m* from the set of M trajectories. It is also proposed to use an additional mechanism that penalizes the model for predictions that go beyond the area of movement.</p><p>The authors of the original MTP model propose to train a multilayer perceptron using the loss function that represents the sum  and , where:</p><p> (5)</p><p>In this case,  — mean-square error between the real trajectory  and the best trajectory m* of M generated.</p><p> (6)</p><p>where si — the agent's actual future position at time i, and  — the predicted future state of the best trajectory m*.</p><p> — loss function based on cross entropy, which increases the probability of executing the best of the predicted trajectories m* to 1 and reduces the probability of other trajectories to 0.</p><p>Ic is a binary indicator equal to 1, if condition c is true, and 0 — otherwise.</p><p>In the original article, the best of the predicted trajectories m* is defined as the one that has the minimum value of the root-mean-square error in comparison to the real trajectory:</p><p> (7)</p><p>The authors of the article suggest using the following modification:</p><p> (8)</p><p>where ∆ — subset of generated trajectories that has a similar final direction to the real trajectory .</p><p>The idea is to remove from consideration trajectories in which the final direction of the agent differs significantly from the direction in the real trajectory when calculating the best trajectory m*. If the difference in directions features less than certain threshold γ, then the generated trajectory is considered correct, i.e., m⸦∆. In the case under consideration γ=30o. Therefore, the best trajectory m* should have a similar final direction and the lowest value of the loss function.</p><p>This work also involves prior knowledge of the domain to achieve greater convergence of the model [<xref ref-type="bibr" rid="cit15">15</xref>]. Since only information about the roadway boundaries is available from the HD map when driving in the domain of country roads, an additional variable is introduced —  into the loss function. Thanks to it, the model will penalize the predicted trajectories that go beyond the road in cases where at least one state is . The model penalizes only the best trajectory, since only in this case, it is possible to determine the direction of error reduction by approximating the best of the generated trajectories m* to the real trajectory .</p><p>Thus,  is defined as:</p><p> (9)</p><p>where  is equal to 1, if , and 0 — otherwise.</p><p>The final loss function is defined as</p><p> (10)</p><p>where α and β — neural network hyperparameters used for training. In this case, both of these parameters are equal to 0.5.</p><p>To filter similar and duplicate trajectories, the proposed approach uses the filtering of a finite set of trajectories M at the final stage. This module is required because in some cases, the number of possible agent trajectories may be less than M, e.g., when a car is moving along a straight road at a constant speed, the model can generate only one trajectory: the car continues to move straight. However, the need to generate exactly M trajectories will result in the situation when all predictions are similar to each other.</p><p>The proposed filtering is based on the final direction and positions of states : if the direction and the sum of the deviations between states  of the real and generated trajectories are less than the threshold value σ, then the trajectories are considered similar. The authors average each state of the trajectories and sum up the probabilities of the trajectories .</p><p>This approach was implemented in the Python programming language on the PyTorch deep learning framework. The model was trained on GeForce RTX 2080 Ti graphics card for 40 epochs, the training took four hours.</p><p>Research Results. To assess the accuracy of prediction models, this section applies widely used metrics for the trajectory prediction problem: average displacement error, ADE, final displacement error, FDE [<xref ref-type="bibr" rid="cit6">6</xref>], MissRate (MR), and Offroad rate (OR).</p><p>For multimodal cases with the generation of several trajectories, ADE and FDE are taken as the minimum ADE and FDE among M trajectories (the trajectory with the lowest metric value) [<xref ref-type="bibr" rid="cit5">5</xref>].</p><p>The prediction is considered “missed” if ADE metric of the generated trajectory is more than two meters. OR metric is calculated as the percentage of trajectories in which at least one state goes beyond the range of motion D.</p><p>To visualize the context of scene с, as well as the real and predicted future trajectories a script in the Python programming language was implemented using the Matplotlib library.</p><p>This section compared the operation of several different methods in the case of an unstructured domain. The following methods were used in comparison:</p><p>Table 1 presents comparison of the accuracy of the methods when working under unstructured conditions. Several methods are compared, including the proposed approach.</p><table-wrap id="table-1"><caption><p>Table 1</p><p>Comparison of models in the unstructured domain of work</p></caption><table><tbody><tr><td>Method</td><td>Modes</td><td>ADE1</td><td>FDE1</td><td>ADE6</td><td>FDE6</td><td>MR21</td><td>MR26</td><td>OR</td></tr><tr><td>Kalman filter</td><td>1</td><td>3.78</td><td>8.05</td><td>3.78</td><td>8.05</td><td>0.89</td><td>0.89</td><td>5.89</td></tr><tr><td>Single trajectory output</td><td>1</td><td>3.12</td><td>6.75</td><td>3.12</td><td>6.75</td><td>0.89</td><td>0.89</td><td>3.26</td></tr><tr><td>Fixed set classification</td><td>415</td><td>3.27</td><td>7.00</td><td>1.74</td><td>3.57</td><td>0.84</td><td>0.52</td><td>3.61</td></tr><tr><td>Fixed set classification</td><td>64</td><td>2.6</td><td>5.63</td><td>1.52</td><td>2.91</td><td>0.82</td><td>0.49</td><td>2.58</td></tr><tr><td>Proposed approach</td><td>6</td><td>2.36</td><td>5.29</td><td>1.32</td><td>2.55</td><td>0.78</td><td>0.38</td><td>1.84</td></tr></tbody></table></table-wrap><p>Kalman filter. The simplest way to predict behavior is to obtain the current state of the object (current lane, speed, direction, etc.) and extend this state to future steps based on some assumptions, e.g., that the car will continue to follow its lane or will have a constant speed and/or acceleration. Another popular method for such tasks is to use the Kalman filter [<xref ref-type="bibr" rid="cit12">12</xref>].</p><p>According to Table 1, the Kalman filter works worse than all the presented methods based on neural networks.</p><p>Figure 2 shows two cases. In the first case, the Kalman filter successfully performs prediction because the vehicle is moving straight, without any turns or speed variation. In the second case, the Kalman filter mispredicts due to lack of knowledge about the context of the traffic situation.</p><fig id="fig-2"><caption><p>Fig. 2. Example of predictions using the Kalman filter. Dotted lines — roadway boundaries, red lines — target agent with history of observations, blue — other agents, green — real trajectory, yellow — predicted trajectory, red crosses indicate predicted states outside the roadway</p></caption><graphic xlink:href="donstu-23-2-g002.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/2/yknlaPi6X1X7PV3OjIvf8Q3MVONbe6Y2EdT2LABF.jpeg</uri></graphic></fig><p>Single trajectory output. This method involves the use of a graph scene encoder, which is identical to the one used in the proposed approach. The output of the network implies the generation of only one trajectory. This model is trained using the root-mean-square loss function.</p><p>As shown in Table 1, the neural network, even with the generation of a single trajectory, demonstrates better results in comparison to the Kalman filter.</p><p>Figure 3 shows the visualization of this prediction method operation. The image on the left shows that the model can successfully predict the agent's turn. The image on the right shows that generating one trajectory is not enough. The neural network tries to imagine both possible outcomes: going straight and turning right. As a result, the model outputs the average of the two outcomes.</p><fig id="fig-3"><caption><p>Fig. 3. Example of generating a single trajectory. Red line shows the target agent with history of observations, green — real trajectory of movement, yellow — predicted trajectory</p></caption><graphic xlink:href="donstu-23-2-g003.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/2/IjBHzNNT1dNjSgYQEbR0PLTiDAqQObdtuOW5P6gD.jpeg</uri></graphic></fig><p>Fixed set classification. The implementation was inspired by the CoverNet prediction method [<xref ref-type="bibr" rid="cit5">5</xref>]. This model consists of a proposed vector scene encoder, followed by a different trajectory decoder. The decoder is a classification task based on a predefined set of trajectories consisting of physically realizable vehicle trajectories with sufficient coverage. Two sets were created for experiments: of 415 and 64 possible trajectories. The second set has the same coverage as the first, but provides a lower density of trajectories. Detailed information about the sets of trajectories is contained in paper [<xref ref-type="bibr" rid="cit5">5</xref>].</p><p>The visualization of the work is shown in Figure 4. The classification model successfully copes with multimodality at crossroads, but in some cases, the lack of sufficient coverage by a set of trajectories negatively affects the results.</p><fig id="fig-4"><caption><p>Fig. 4. Example of prediction using a classification model. Red lines represent the target agent with history of observations, green lines — real trajectory. M predicted trajectories with different probability of execution pi are presented using red-yellow hues</p></caption><graphic xlink:href="donstu-23-2-g004.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/2/Nt2YTKiBArMzAHsARZFo7N3lBWcVPAfuDuBLUOzP.jpeg</uri></graphic></fig><p>As shown in Table 1, this method works more accurately than generating a single trajectory, but worse than the proposed approach. In addition, increasing the density of the set of trajectories by using a set of 415 trajectories did not improve the results. The authors attribute this to the presence of noise in the dataset, which comes from the tracking system used in the data collection.</p><p>Proposed approach. The proposed approach eliminates the disadvantages of all the methods described above. This is a multimodal forecasting method that does not suffer from the limitations of a predefined set of trajectories.</p><p>Moreover, according to Table 1, the proposed approach surpasses all other methods in all indicators. As shown in Figure 5, the method successfully captures two possible outcomes at the crossroad: driving straight or making a turn.</p><fig id="fig-5"><caption><p>Fig. 5. Example of prediction using a classification model. Red lines represent the target agent with history of observations, green lines — real trajectory. M predicted trajectories with different probability of execution pi are presented using red-yellow hues</p></caption><graphic xlink:href="donstu-23-2-g005.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/2/ZizC0AIII7aaQgJp6y32O0PqMSukUHkCNP4waqqt.jpeg</uri></graphic></fig><p>Figure 6 shows an example of filtering similar trajectories in the case of a single possible outcome. The probability that the agent will complete the initiated turn is close to 1, since he is already in the process of turning. Therefore, in this case, the probability of other outcomes is close to 0. The proposed module successfully filters similar trajectories.</p><fig id="fig-6"><caption><p>Fig. 6. Filtering effect. The entire set of predictions is shown on the left, and only filtered set — on the right</p></caption><graphic xlink:href="donstu-23-2-g006.jpeg"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/2/jOO0mPGoQbFjuMrnxedPaTHR3sL1ZHehodR6qcAA.jpeg</uri></graphic></fig><p>Limitations. Although the authors of the original article on the MTP model [<xref ref-type="bibr" rid="cit4">4</xref>] indicate that their method solves the problem of mode collapse, the experiments conducted by the authors of this article do not confirm this. The problem still occurs in some cases. It is assumed to be due to the following features: the loss function does not penalize the neural network for generating all possible trajectories that the target agent can execute, as long as the best of them is as close as possible to the real trajectory. But also, the model does not encourage the network in any way to predict a variety of possible trajectories. Therefore, it is advantageous for the network to make several similar predictions in one direction, in which it is more confident than to make one prediction for each possible trajectory.</p><p>One of the possible solutions to this problem may be the use of a trajectory decoder presented in the TnT, DenseTnT models [10–11], which imply the generation of final goals at the first stages of work. In these models, all possible final goals for the agent are generated first, and then trajectories that describe the movement from the starting position to each of the goals, are generated. This provides filtering out similar final goals in the early stages, and preventing the mode collapse.</p><p>Discussion and Conclusion. In the work performed, modern methods of solving the trajectory prediction problem are investigated. The adaptability of the methods to unstructured road conditions — country roads, is considered. Insufficient accuracy of the methods is established, and a new approach to predicting is proposed.</p><p>The proposed approach is based on the VectorNet and MTP models, but has been adapted for the country road domain. In addition, a trajectory filtering module and an additional mechanism for the loss function, which penalizes trajectories for going beyond the movement zone, are proposed.</p><p>The presented comparison shows that the proposed approach is superior to other popular methods.</p><p>Limitations of the MTP approach have been identified: the output data still tends to mode collapse. The suggestion for further modifications is to use methods that generate the final goal at the early stages of prediction and thus are less susceptible to regime collapse.</p></body><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Qing Rao, Jelena Frtunikj. Deep Learning for Self-Driving Cars: Chances and Challenges. In: Proc. 1st International Workshop on Software Engineering for AI in Autonomous Systems. New York, NY: Association for Computing Machinery; 2018. P. 35–38. https://doi.org/10.1145/3194085.3194087</mixed-citation><mixed-citation xml:lang="en">Qing Rao, Jelena Frtunikj. Deep Learning for Self-Driving Cars: Chances and Challenges. In: Proc. 1st International Workshop on Software Engineering for AI in Autonomous Systems. New York, NY: Association for Computing Machinery; 2018. P. 35–38. https://doi.org/10.1145/3194085.3194087</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Shaoshan Liu, Liyun Li, Jie Tang, et al. Creating Autonomous Vehicle Systems. San Rafael, CA: Morgan &amp; Claypool; 2020. 216 p.</mixed-citation><mixed-citation xml:lang="en">Shaoshan Liu, Liyun Li, Jie Tang, et al. Creating Autonomous Vehicle Systems. San Rafael, CA: Morgan &amp; Claypool; 2020. 216 p.</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Jiyang Gao, Chen Sun, Hang Zhao, et al. VectorNet: Encoding HD Maps and Agent Dynamics from Vectorized Representation. In: Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition. Seattle, WA: IEEE; 2020. P. 11525–11533. https://doi.org/10.48550/arXiv.2005.04259</mixed-citation><mixed-citation xml:lang="en">Jiyang Gao, Chen Sun, Hang Zhao, et al. VectorNet: Encoding HD Maps and Agent Dynamics from Vectorized Representation. In: Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition. Seattle, WA: IEEE; 2020. P. 11525–11533. https://doi.org/10.48550/arXiv.2005.04259</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Henggang Cui, Vladan Radosavljevic, Fang-Chieh Chou, et al. Multimodal Trajectory Predictions for Autonomous Driving Using Deep Convolutional Networks. In: Proc. IEEE International Conference on Robotics and Automation (ICRA). Montreal, BC: IEEE; 2019. P. 2090–2096. https://doi.org/10.48550/arXiv.1809.10732</mixed-citation><mixed-citation xml:lang="en">Henggang Cui, Vladan Radosavljevic, Fang-Chieh Chou, et al. Multimodal Trajectory Predictions for Autonomous Driving Using Deep Convolutional Networks. In: Proc. IEEE International Conference on Robotics and Automation (ICRA). Montreal, BC: IEEE; 2019. P. 2090–2096. https://doi.org/10.48550/arXiv.1809.10732</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Tung Phan-Minh, Elena Corina Grigore, Freddy A. Boulton, et al. CoverNet: Multimodal Behavior Prediction Using Trajectory Sets. In: Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition. Seattle, WA: IEEE; 2020. P. 14074–14083. https://doi.org/10.48550/arXiv.1911.10298</mixed-citation><mixed-citation xml:lang="en">Tung Phan-Minh, Elena Corina Grigore, Freddy A. Boulton, et al. CoverNet: Multimodal Behavior Prediction Using Trajectory Sets. In: Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition. Seattle, WA: IEEE; 2020. P. 14074-14083. https://doi.org/10.48550/arXiv.1911.10298</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Abduallah Mohamed, Kun Qian, Mohamed Elhoseiny, et al. Social-STGCNN: A Social Spatio-Temporal Graph Convolutional Neural Network for Human Trajectory Prediction. In: Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition. Seattle, WA: IEEE; 2020. P. 14424–14432. https://doi.org/10.48550/arXiv.2002.11927</mixed-citation><mixed-citation xml:lang="en">Abduallah Mohamed, Kun Qian, Mohamed Elhoseiny, et al. Social-STGCNN: A Social Spatio-Temporal Graph Convolutional Neural Network for Human Trajectory Prediction. In: Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition. Seattle, WA: IEEE; 2020. P. 14424–14432. https://doi.org/10.48550/arXiv.2002.11927 7. Biktairov Yu, Stebelev M, Rudenko I, et al. PRANK: Motion Prediction Based on RANKing. In: Neural Information Processing Systems. Vancouver: Virtual Conference; 2020. P. 2553–2563. https://doi.org/10.48550/arXiv.2010.12007</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Biktairov Yu., Stebelev M., Rudenko I., et al. PRANK: Motion Prediction Based on RANKing. In: Neural Information Processing Systems. Vancouver: Virtual Conference; 2020. P. 2553–2563. https://doi.org/10.48550/arXiv.2010.12007</mixed-citation><mixed-citation xml:lang="en">Yuning Chai, Benjamin Sapp, Mayank Bansal, et al. MultiPath: Multiple Probabilistic Anchor Trajectory Hypotheses for Behavior Prediction. Proceedings of the Conference on Robot Learning. 2020;100:86–99. https://doi.org/10.48550/arXiv.1910.05449</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Yuning Chai, Benjamin Sapp, Mayank Bansal, et al. MultiPath: Multiple Probabilistic Anchor Trajectory Hypotheses for Behavior Prediction. Proceedings of the Conference on Robot Learning. 2020;100:86–99. https://doi.org/10.48550/arXiv.1910.05449</mixed-citation><mixed-citation xml:lang="en">Ajay Jain, Sergio Casas, Renjie Liao, et al. Discrete Residual Flow for Probabilistic Pedestrian Behavior Prediction. In: Proc. 3rd Conference on Robot Learning, Osaka, Japan, 2019. Proceedings of Machine Learning Research. 2019;100:407–419. https://doi.org/10.48550/arXiv.1910.08041</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Ajay Jain, Sergio Casas, Renjie Liao, et al. Discrete Residual Flow for Probabilistic Pedestrian Behavior Prediction. In: Proc. 3rd Conference on Robot Learning. Proceedings of Machine Learning Research. 2019;100:407–419. https://doi.org/10.48550/arXiv.1910.08041</mixed-citation><mixed-citation xml:lang="en">Hang Zhao, Jiyang Gao, Tian Lan, et al. TNT: Target-driveN Trajectory Prediction. In: Conference on Robot Learning. Cambridge, MA: Virtual Conference; 2020. P. 895–904. https://doi.org/10.48550/arXiv.2008.08294</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Hang Zhao, Jiyang Gao, Tian Lan, et al. TNT: Target-driveN Trajectory Prediction. In: Conference on Robot Learning. Cambridge, MA: Virtual Conference; 2020. P. 895–904. https://doi.org/10.48550/arXiv.2008.08294</mixed-citation><mixed-citation xml:lang="en">Junru Gu, Chen Sun, Hang Zhao. Dense TNT: End-to-end Trajectory Prediction from Dense Goal Sets. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. Montreal, BC: IEEE; 2021. P. 15303–15312. https://doi.org/10.48550/arXiv.2108.09640</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">Junru Gu, Chen Sun, Hang Zhao. Dense TNT: End-to-end Trajectory Prediction from Dense Goal Sets. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. Montreal, BC: IEEE; 2021. P. 15303–15312. https://doi.org/10.48550/arXiv.2108.09640</mixed-citation><mixed-citation xml:lang="en">Prévost CG, Desbiens A, Gagnon E. Extended Kalman Filter for State Estimation and Trajectory Prediction of a Moving Object Detected by an Unmanned Aerial Vehicle. In: Proc. American Control Conference. New York, NY: IEEE; 2007. P. 1805–1810. https://doi.org/10.1109/ACC.2007.4282823</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">Prévost C.G., Desbiens A., Gagnon E. Extended Kalman Filter for State Estimation and Trajectory Prediction of a Moving Object Detected by an Unmanned Aerial Vehicle. In: Proceedings of the American Control Conference. New York, NY: IEEE; 2007. P. 1805–1810. https://doi.org/10.1109/ACC.2007.4282823</mixed-citation><mixed-citation xml:lang="en">Zeyu Zhu, Nan Li, Ruoyu Sun, et al. Off-road Autonomous Vehicles Traversability Analysis and Trajectory Planning Based on Deep Inverse Reinforcement Learning. In: IEEE Intelligent Vehicles Symposium (IV). Las Vegas, NV: IEEE; 2020. P. 971–977. https://doi.org/10.1109/IV47402.2020.9304721</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">Zeyu Zhu, Nan Li, Ruoyu Sun, et al. Off-road Autonomous Vehicles Traversability Analysis and Trajectory Planning Based on Deep Inverse Reinforcement Learning. In: IEEE Intelligent Vehicles Symposium (IV). Las Vegas, NV: IEEE; 2020. P. 971–977. https://doi.org/10.1109/IV47402.2020.9304721</mixed-citation><mixed-citation xml:lang="en">Mig-Fang Chang, John Lambert, Patsorn Sangkloy, et al. Argoverse: 3D Tracking and Forecasting with Rich Maps. In: Proc. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Long Beach, CA: IEEE; 2019. P. 8748–8757. https://doi.org/10.1109/CVPR.2019.00895</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">Mig-Fang Chang, John Lambert, Patsorn Sangkloy, et al. Argoverse: 3D Tracking and Forecasting with Rich Maps. In: Proc. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Long Beach, CA: IEEE; 2019. P. 8748–8757. https://doi.org/10.1109/CVPR.2019.00895</mixed-citation><mixed-citation xml:lang="en">Casas S, Gulino C, Suo S, et al. The Importance of Prior Knowledge in Precise Multimodal Prediction. In: 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). Las Vegas, NV: IEEE; 2020. P. 2295–2302. https://doi.org/10.48550/arXiv.2006.02636</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">Casas S., Gulino C., Suo S., et al. The Importance of Prior Knowledge in Precise Multimodal Prediction. In: 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). Las Vegas, NV: IEEE; 2020. P. 2295–2302. https://doi.org/10.48550/arXiv.2006.02636</mixed-citation><mixed-citation xml:lang="en">Casas S., Gulino C., Suo S., et al. The Importance of Prior Knowledge in Precise Multimodal Prediction. In: 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). Las Vegas, NV: IEEE; 2020. P. 2295–2302. https://doi.org/10.48550/arXiv.2006.02636</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
