<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Modeling of Transport Flows in Critical Situations Using Cellular Automata in MATLAB</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Workshop</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>A cellular automaton</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Brno University of Technology</institution>
          ,
          <addr-line>Kolejní 2906/4, 612 00 Brno-Královo Pole, Brno</addr-line>
          ,
          <country country="CZ">Czech Republic</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Taras Shevchenko National University of Kyiv</institution>
          ,
          <addr-line>64, Volodymyrska str., Kyiv, 01033</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>University of L'Aquila</institution>
          ,
          <addr-line>Piazzale Ernesto Pontieri, 67100 L'Aquila AQ</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Cellular automata can be used to model trafic flow by applying a simple algorithm that regulates the acceleration and deceleration of vehicles. Despite its simplicity, this model allows for the observation of large-scale phenomena, such as trafic jams that propagate backward. These backward-propagating congestion patterns emerge naturally from the interactions between vehicles without the need for centralized control. A variation of this model, implemented in MATLAB, was used to study how diferent parameters, such as vehicle density on the road or the number of lanes, afect trafic flow intensity. The simulation approach leverages a one-dimensional array of discrete cells, where each cell represents a possible vehicle position and its velocity.</p>
      </abstract>
      <kwd-group>
        <kwd>Cellular automata</kwd>
        <kwd>Nagel-Schreckenberg (NS) model</kwd>
        <kwd>numerical simulation</kwd>
        <kwd>MATLAB</kwd>
        <kwd>animated visualization</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. This model, which will be referred to as the NS model, is structured as a
one-dimensional array of  sites with either open or periodic boundary conditions. Open boundary
      </p>
      <p>CEUR</p>
      <p>ceur-ws.org
conditions mean that the road has an end, allowing cars to exit while new ones enter at a designated
entry point. In contrast, periodic boundary conditions create a loop where cars continuously circulate.</p>
      <p>As previously mentioned, CA models operate with a finite number of states. In the NS model, a
cell’s state indicates whether it is occupied by a car and, if so, the vehicle’s velocity. To represent
this, empty sites are assigned a value of zero, while occupied sites are assigned a numerical value
corresponding to the vehicle’s velocity, ranging from one to  max + 1 for vehicles moving at  max. In
computational implementations, this numerical representation is used for processing. However, in a
visual representation, empty sites may appear as dots, while occupied sites display their respective
velocities.</p>
      <p>A simple one-lane system, where the maximum velocity is one, can be visualized as an array consisting
solely of zeros and ones. Similarities between the NS model and the Ising spin model arise due to
the binary nature of the site states. In the Ising model, spins depend on neighboring interactions,
and likewise, in trafic simulations, the velocity of a car depends solely on the immediate forward
environment, with no influence from cars behind. This local-only interaction framework is what leads
to globally emergent trafic patterns. This configuration follows the fundamental CA structure, where
each cell has only two possible states, forming a one-dimensional site array.
The configuration evolves according to the following set of rules for each car:
1. Acceleration: if the velocity  of a vehicle is lower than  max and if the distance to the next car
ahead is larger than  + 1, the speed is increased by 1 ( =  + 1).
2. Deceleration: if a vehicle at site  sees the next vehicle at site  +  (with  ≤  ), it reduces its
speed to  − 1 ( =  − 1).
3. Randomisation: with probability  , the velocity of each vehicle (if greater than zero) is decreased
by one ( =  − 1).</p>
      <p>4. Car motion: each vehicle is advanced  sites.</p>
      <p>Where:
 = velocity of car
 = position of site
 = position of comparison site
 max = maximum velocity</p>
      <p>Among the four update rules, the randomisation step plays a pivotal role in reproducing realistic
stop-and-go trafic. Without it, the model would quickly stabilize into a steady state with uniform
spacing, lacking the variability observed in actual trafic. It is this randomness that triggers instability,
which then propagates and creates dynamic congestion.</p>
      <p>In this case, the third stage, the randomized braking, plays a crucial role in triggering emergent
behavior in the system when the velocities exceed one.</p>
      <p>Typically, when vehicles are spaced within approximately  max sites, the leading car may unexpectedly
slow down. This sudden deceleration prompts the following cars to react by braking in sequence, leading
to the formation of a trafic jam.</p>
      <p>As congestion builds up, cars approaching the jam continue moving at nearly maximum velocity but
are forced to come to an abrupt halt upon reaching the stationary trafic ahead. Meanwhile, if there is
suficient space, the first car at the front of the jam gradually accelerates away. This process repeats
cyclically, resulting in the backward propagation of the trafic jam.</p>
      <p>Trafic jams tend to dissipate in low-density scenarios since vehicles exiting the jam do so at a faster
rate than those joining it. However, at higher densities, the jam becomes a persistent feature of the
periodic road, continuously propagating backward and sustaining itself indefinitely.</p>
      <p>Thus, the CA-based trafic model provides a minimal yet powerful framework for exploring a wide
range of trafic phenomena, from stable flow to jam propagation, under varying densities and road
configurations.</p>
    </sec>
    <sec id="sec-2">
      <title>2. The Model</title>
      <p>The initial configuration of the road is generated by randomly shufling a list of numbers ranging from
1 to  , where  represents the total road length. Each vehicle on the road is sequentially assigned a
number from this list, creating a 1 ×  array. This array is then expanded by adding a 1 ×  array for
initial velocities, which are typically all set to zero, and a 1 ×  array for lane assignments. If the system
operates with a single lane, the lane array is omitted, leaving a 2 ×  representation, where  denotes
the total number of vehicles on the road.</p>
      <p>Instead of relying on the NS model, the program employs a more compact data structure that retains
only the essential details: position, velocity, and lane assignment for each vehicle within a 3 ×  matrix
(or 2 ×  for single-lane cases). The program applies Boolean logic to analyze column data, computing
vehicle spacing and allowing the simulation to process the four defined stages in parallel.</p>
      <p>In multilane scenarios, lane-switching decisions are integrated with the braking mechanism. Vehicles
initiate an overtaking maneuver when they encounter a slower vehicle with a speed diferential of
at least two units or if the leading car is stationary. While this approach to lane-changing might
seem simplistic, it efectively reproduces emergent trafic behavior that closely aligns with real-world
observations.</p>
      <p>For a lane change to be performed, the target lane must have suficient free space both ahead and
behind the vehicle. Specifically, the distance to the next vehicle in the adjacent lane must be greater than
the current speed, and the gap behind must exceed a minimum threshold to avoid rear-end collisions.
Additionally, the decision to change lanes is probabilistic and depends on a pre-defined overtaking
probability factor. This allows the simulation to capture a variety of driver behaviors, from conservative
to aggressive, and ensures that lane changes occur only under safe and justifiable conditions.</p>
      <p>Since vehicle placement is initially randomized, some configurations may lead to congestion where
trafic would not naturally emerge. This efect is particularly noticeable at lower densities. To mitigate
this, the simulation runs for a number of timesteps equal to the road length, allowing the system to
stabilize. For road lengths exceeding 500 units, no significant stabilization occurs beyond half the road
length. As a result, an initialization phase of 1000 timesteps is introduced to enhance computational
eficiency.</p>
      <p>The second phase of the simulation continues from the final state of the first phase, running for

timesteps. During each step, the system updates stored arrays containing vehicle positions, velocities,
and lanes. At the end of the simulation, the average velocity is computed and multiplied by the density
to determine the primary performance metric—the trafic flow rate.</p>
      <p>A key aspect of the model is the periodic boundary condition, ensuring that vehicles at the start and
end of the road maintain accurate distance calculations. This is achieved by sorting vehicles based on
their position.</p>
      <p>For lane changes, vehicles in the target lane (either overtaking or returning to a previous lane) are
selected, and their positions and velocities are adjusted accordingly. Vehicles with extreme positions in
the lane undergo boundary modifications, allowing smooth interaction with other cars on the road.</p>
      <p>Several visualization techniques were employed to analyze the simulation results. One of the most
efective methods is the space-time plot, which clearly illustrates the backward propagation of trafic
jams. However, this approach relies on color coding to diferentiate vehicle speeds and struggles to
represent multiple lanes without excessive data overlap. A more intuitive representation is the animated
road plot, where individual vehicle speeds and jam formations are visually distinct. This animation
directly corresponds to space-time plot data at any given moment.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Model Innovations and Implementation Specifics</title>
      <p>The model introduced in this study represents a modification of the classic Nagel–Schreckenberg (NS)
cellular automaton. In contrast to traditional multi-lane CA implementations, our approach introduces
a refined overtaking logic, wherein vehicles decide to change lanes only if there is a speed diferential
of at least two units or the leading vehicle is completely halted. This rule-based yet lightweight strategy
was observed to produce trafic dynamics that align more realistically with real-world observations,
even under dense trafic conditions.</p>
      <p>Another novel aspect of this model lies in the handling of smart vehicles, defined as those that do
not perform random braking. The simulation introduces a customizable proportion of such smart cars,
allowing for mixed-autonomy trafic scenarios. The quantitative impact of their inclusion—such as the
increase in flow rate under various densities—was systematically measured, demonstrating the strong
influence of partial automation on trafic eficiency. These features distinguish this work from other
implementations of the NS model and contribute to the current research on hybrid trafic systems.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Implementation Details of the Trafic Flow Simulation Algorithm</title>
      <p>To build the trafic flow simulation model, we implemented a custom algorithm in MATLAB based
on the NS cellular automaton model, with several modifications to support multi-lane behavior and
overtaking logic. This algorithm simulates the behavior of vehicles over discrete time steps and space
segments. Each car on the road is represented by its position, velocity, and current lane, all of which
are stored in a structured matrix for eficient processing.</p>
      <p>The implemented model extends the classical NS CA by introducing a modular structure that supports
multi-lane trafic with dynamic lane-changing logic. A unique feature of this implementation is the
overtaking mechanism, which not only checks safety criteria but also considers speed diferentials,
enhancing realism. Moreover, we quantitatively assess the influence of “smart vehicles”—agents immune
to random braking—on flow eficiency. Unlike traditional multi-lane CA models, our system captures the
emergence of hybrid trafic phenomena in mixed-autonomy environments through parameter-controlled
driver behavior.</p>
      <p>The simulation proceeds in iterations. During each time step, the algorithm applies a series of logical
rules to update the velocity and position of each car, taking into account nearby vehicles and random
braking probabilities. The core logic is based on four main rules: acceleration, deceleration, random
braking, and movement.</p>
      <p>To represent the road and cars, we use a 3 ×  matrix, where  is the number of vehicles. The
rows represent positions, velocities, and lanes. For a single-lane road, only the first two rows are
needed. Initially, all cars are assigned random positions and zero velocities. This setup avoids artificial
congestion due to clustered placement.</p>
      <p>The simulation proceeds as follows:
1. Acceleration: Cars increase their velocity by one unit if the distance to the next vehicle is
suficient and the velocity is below the allowed maximum.
2. Deceleration: If a car is too close to the vehicle ahead, it reduces its speed to avoid a collision.
3. Random braking: With a fixed probability, vehicles may randomly reduce their speed. This
simulates human reaction time, distractions, or unexpected slowdowns.
4. Lane changing: If the car is blocked and sees a chance to overtake, it will change to a neighboring
lane, provided that the move is safe.
5. Movement: Each car moves forward by a number of sites equal to its current velocity. Periodic
boundary conditions are applied.</p>
      <p>Each step is vectorized to improve computation speed, using MATLAB’s logical indexing and
elementwise operations. We also implemented plotting functions to visualize the road dynamically in the form
of animated plots or space-time diagrams.</p>
      <p>Below is a simplified version of the MATLAB code for a single update iteration:
f o r t = 1 : T
% S t e p 1 : C a l c u l a t e d i s t a n c e t o n e x t c a r
s o r t e d _ p o s = s o r t ( p o s i t i o n s ) ;
d i s t a n c e s = [ d i f f ( s o r t e d _ p o s ) , L − s o r t e d _ p o s ( end ) + s o r t e d _ p o s
( 1 ) ] ;
% S t e p 2 : A c c e l e r a t i o n
v e l o c i t i e s = min ( v e l o c i t i e s + 1 , vmax ) ;
% S t e p 3 : D e c e l e r a t i o n
f o r i = 1 : N
i f d i s t a n c e s ( i ) &lt;= v e l o c i t i e s ( i )</p>
      <p>v e l o c i t i e s ( i ) = d i s t a n c e s ( i ) − 1 ;
end
end
% S t e p 4 : Random b r a k i n g
b r a k i n g = r a n d ( 1 , N ) &lt; p ;
v e l o c i t i e s ( b r a k i n g &amp; v e l o c i t i e s &gt; 0 ) = v e l o c i t i e s ( b r a k i n g &amp;
v e l o c i t i e s &gt; 0 ) − 1 ;
% S t e p 5 : P o s i t i o n u p d a t e
p o s i t i o n s = mod ( p o s i t i o n s + v e l o c i t i e s , L ) ;</p>
      <p>This approach allows for highly customizable simulations. By adjusting parameters such as the
number of lanes, density, braking probability, or maximum velocity, one can observe diferent emergent
behaviors, including trafic waves and jams.</p>
      <p>
        The algorithm was inspired and supported by the following references: [
        <xref ref-type="bibr" rid="ref2 ref3 ref4">2, 3, 4</xref>
        ].
      </p>
      <p>This implementation provides a balance between simplicity and realism, allowing in-depth
experimentation with real-world trafic dynamics. It also sets the stage for further enhancements, such as the
introduction of adaptive cruise control systems or integration of real map-based road topologies for
practical simulations.</p>
      <p>Trafic congestion remains a persistent feature under specific density con ditions. The color scale
used in the visualization represents vehicle speeds, with cars traveling at either 4 or 5 units per timestep
remaining within the jam until preceding vehicles clear the way.</p>
      <p>The animation captures a momentary state of trafic flow, proving highly efective in visualizing
multiple lanes, as seen in Figure 4. Despite a high overall density, trafic does not fully utilize all five
lanes due to overtaking constraints. The second and third lanes remain mostly empty, while congestion
accumulates in the first l ane. Minimal vehicle presence is observed in the fourth and fith lanes due to
underutilization of the third lane. Unlike the space-time plot, the animated visualization employs a
different color scheme, where dark blue represents stationary cars and yellow indicates vehicles moving
at maximum speed.</p>
      <p>The simulation demonstrates sensitivity to all factors except road length. Since the vehicle count is
density-controlled, modifying road length alone does not alter density values. It is important to note
that density in this context refers to vehicles per site rather than total road occupancy. On multilane
roads, a density of one does not imply full utilization of available lanes. The program enables
modifications to maximum velocity, braking probability, and the likelihood of lane return on a per-car
basis, though this aspect was not explored in this study.</p>
      <p>As discussed earlier, the road length was initially used for a transient simulation phase. To optimize
computational efficiency and enhance visualization, road length was set to a reasonable value between
100 and 1000 units.</p>
      <p>The initial segment of the density graph, covering values from 0 to 0.08 cars per site, indicates
minimal vehicle interaction. This represents a stable traffic phase where vehicles are sufficiently
spaced to avoid congestion. The relationship between flow rate and density follows the equation:
 =  ×  max (1)
where  represents the flow rate,  denotes car density, and  max corresponds to the highest attainable
velocity. The declining segment of the graph illustrates lane oversaturation ef ects. The shape of Figure 6
aligns with findings from the NS study, confirming consistency between both models.</p>
      <p>A comparison between the model results and real-world trafic data further validates the findings.
The real trafic flow rate peaks at a density of 0.2, which matches the simulated critical den sity. By
adjusting the vertical scale of Figure 6 based on Equation (2), direct comparison with real trafic flow is
achieved. The recalculated peak flow rates are:
0.37 × 1.14 × 60 × 60 ≈ 1520 cars per hour.
0.61 × 1.14 × 60 × 60 ≈ 2500 cars per hour.
(2)
(3)</p>
      <p>The scaling applied in Equations (2) and (3) is based on two key assumptions. First, it is assumed that
one timestep in the simulation corresponds to approximately one real-time second. Second, one site (or
cell) is mapped to an average vehicle length of 7.5 meters, a standard convention in trafic flow studies.
With these assumptions, the simulated flow in sites per timestep can be translated into a physical unit
of vehicles per hour through multiplication by 3600 seconds per hour and an empirical scaling factor.</p>
      <p>However, this conversion is approximate and should be interpreted cautiously. Cellular automaton
models use discrete space and time steps with simplified rule sets. These do not capture finer aspects
of real trafic behavior, such as variable acceleration, human reaction times, heterogeneous vehicle
types, or external factors like road geometry and weather. Unlike real-world trafic, which exhibits
continuous and often nonlinear dynamics, CA-based simulations rely on local rules and can exhibit
abrupt transitions and exaggerated sensitivity to initial conditions—especially at higher densities.</p>
      <p>Nevertheless, the visual and quantitative consistency between the simulation and empirical data
reinforces the validity of CA models as a first-order approach for capturing macroscopic flow behavior,
particularly under controlled assumptions.</p>
      <p>The second dataset, corresponding to a two-lane configuration, closely matches the observed trend
in Figure 6, suggesting that multiple-lane roads—such as highways—serve as a more reliable basis for
trafic modeling compared to rural roads.</p>
      <p>Investigation
One of the natural ways to explore the model is by modifying its parameters and analyzing
how these changes afect the trafic flow along the road. A key aspect of this investigation was
assessing the impact of ‘smart cars’ on the overall flow rate. In this model, smart cars operate without
the random braking characteristic of human-driven cars, making them efectively perfect drivers. This
implies that a smart car should never directly contribute to a trafic jam, so increasing their proportion
in the system should result in a higher trafic flow.</p>
      <p>The process of eliminating random braking from specific cars in this model is straightforward since
the probability of braking for each car is stored within a 1×N array. Therefore, the investigation
can be performed simply by setting a varying number of these cells to zero. This was done on road
configurations just beyond saturation, the point at which it is not possible for all cars to move at the
maximum velocity. These scenarios are particularly important because they are most sensitive to
changes in vehicle behavior and present the highest risk of congestion.</p>
      <p>Furthermore, several scenarios were simulated, ranging from 0% to 100% of smart cars, to identify
thresholds where trafic flow significantly improves. These tests revealed that even a modest inclusion
of smart cars (as low as 25%) already leads to a noticeable increase in flow eficiency, while 70% or more
smart cars nearly double the throughput. This supports the hypothesis that trafic systems benefit
greatly even from partial adoption of autonomous driving technologies.</p>
      <p>It is important to note that the definition of a ‘smart car’ used in this simulation — as a vehicle that
simply does not apply random braking — is a simplified abstraction. In reality, autonomous vehicles
may exhibit a range of advanced behaviors such as smoother acceleration/deceleration profiles,
predictive modeling of trafic flow, and vehicle-to-vehicle (V2V) communication, which enable coordinated
movement and improved safety. Incorporating such features in future simulations could ofer a more
nuanced understanding of their impact on trafic dynamics. These extensions could also allow the study
of cooperative driving strategies and emergent behaviors in heterogeneous trafic systems.</p>
      <p>Figure 7 illustrates a significant increase in flow rate due to the introduction of smart ca rs. When
around 70% of the vehicles on the road are ‘smart’, the trafic flow rate efectively doub les. The red
dashed line represents the baseline flow rate in a system with no smart cars.</p>
      <p>The diference between human-driven and smart cars is most evident because a substantial portion
of trafic slowdowns results from the random braking behavior of human dr ivers. Replacing them with
smart vehicles slightly reduces congestion formation beyond a critical density of 1/  , since at this
threshold, vehicles are forced to slow down at some point. However, trafic jams that would normally
emerge due to random braking disappear when these vehicles are replaced with smart cars.</p>
      <p>Next, a trial was run on a two-lane system with a density of 0.5, which corresponds to an ideal
spacing of 4 sites per vehicle. Figure 8 shows that this system behaves very similarly to the
singlelane configuration i n F igure 7 . The fl ow ra te of this sy stem do ubles wh en sm art ca rs constitute
approximately 90% of trafic. Systems with densities lower than this saturation threshold show even
greater improvements as smart cars are introduced.</p>
      <p>This result is particularly important for real-world applications, as they often improve flow rate
dramatically with only a small number of smart vehicles being added. It also suggests that
mixedautonomy systems—where smart and human-driven cars coexist—can already ofer significant benefits
before reaching full automation.</p>
      <p>The data presented in Figure 9 suggests that introducing just 25% smart cars leads to a flow rate
increase of approximately 33%. Given the growing popularity of self-driving vehicles, this result is quite
relevant—it implies that trafi c eficiency will improve as autonomous cars become more widespread.
Obviously, this change in the proportion of self-driven cars will be small at first, which is why this large
lfow rate increase with only a quarter of the cars being smart is notable.</p>
      <p>
        There is currently limited data available on how autonomous vehicles influence real-world trafic.
However, related studies using similar models have been conducted. A study using reinforcement
learning [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] concluded that, although the autonomous vehicles were able to improve the flow rate
substantially for several road configurations, they were not able to arrange themselves into the most
optimal configuration. This opens further avenues for incorporating more advanced behavior learning
algorithms or communication between vehicles to reach even higher eficiency in mixed trafic systems.
      </p>
    </sec>
    <sec id="sec-5">
      <title>5. Summary</title>
      <p>The developed model demonstrated a fairly accurate representation of trafic flow. Simulations were
performed for diferent numbers of lanes and vehicle densities, with initial car placements along the
road being randomized. The movement of vehicles was dictated by a straightforward set of rules, which
led to the emergence of complex behaviors such as trafic congestion.</p>
      <p>For a single-lane road, a phase transition was observed at a density of 0.08 ± 0.01 cars per site. Beyond
this point, any further increase in density resulted in a decline in the overall flow rate. The two-lane
system exhibited a similar behavior, with a phase transition occurring around 0.20 ± 0.01 cars per site.
As expected, the peak flow rate for the two-lane road was nearly double that of the single-lane case.
The simulated flow rate versus density graph closely matched the patterns found in real trafic data.</p>
      <p>These results underscore the efectiveness of the modified cellular automaton model and its capacity
to replicate real-world trafic dynamics while providing a robust framework for testing autonomous
and hybrid trafic scenarios.</p>
      <p>These two datasets, both simulated and real, were used to align arbitrary time steps and road segment
lengths with real-world metrics such as meters and seconds per hour. This allowed the model’s outputs
to be converted into practical, real-world trafic values.</p>
      <p>At lower densities, the system reached a stable configuration where cars maintained even spacing
with minimal interaction. However, as density increased, congestion became a dominant feature, with
most vehicles being stuck in recurring trafic jams. These jams persisted as fundamental characteristics
of the road, spreading in a backward direction.</p>
      <p>For very high densities, the system either failed to reach a stable state or required an impractically
long time to do so. To address this, simulations were conducted on extended road lengths ranging from
250 to 1000 units. However, these high-density configurations were not particularly useful for modeling,
as vehicles spent most of their time in congestion.</p>
      <p>This modeling challenge arises due to the fundamental limitations of classical cellular automata
(CA) in handling dense trafic conditions. The simple rule-based logic, operating on discrete cells and
time steps, makes CA systems highly sensitive to minor perturbations such as sudden deceleration. In
high-density regimes, these perturbations rapidly accumulate, leading to the formation of persistent
congestion clusters that the model struggles to resolve. The localized nature of the interaction rules
also prevents efective anticipation or cooperative behavior between vehicles, which are essential under
saturated flow conditions.</p>
      <p>To address this, future versions of the model could incorporate extended decision rules that account
for multi-cell lookahead or probabilistic safety margins during braking and lane switching. Furthermore,
hybrid integration with other computational intelligence techniques—such as fuzzy logic, agent-based
modeling, or reinforcement learning—could enhance the model’s adaptability and realism, especially
under extreme density scenarios. These improvements would, however, require balancing the model’s
complexity with computational eficiency and interpretability.</p>
      <p>On the other hand, low-density scenarios were of greater interest, as they allowed for a more detailed
examination of individual vehicle behavior.</p>
      <p>Potential improvements to the model could include incorporating additional trafic control elements,
such as trafic lights and intersections, to study their impact on trafic dynamics. Additionally, the
current model lacks support for non-periodic roads without significant modifications to the distance
calculation functions.</p>
      <p>Moreover, the simulation highlighted the contrast between low- and high-density regimes. In
lowdensity conditions, vehicles tend to spread out, producing a steady-state configuration with little
interaction. In contrast, at high densities, vehicles become locked in jams, leading to a breakdown of
lfow and persistent backward-propagating congestion waves. These jammed states rarely stabilized
and often required road lengths of up to 1000 cells to observe significant trends.</p>
      <p>While the current model efectively captures fundamental trafic behaviors, it can be further
expanded. Future improvements may include support for non-periodic roads, simulation of dynamic
elements such as trafic lights, roundabouts, or merging lanes, and integration with real geographic data
using GIS. Additionally, incorporating driver variability, adaptive cruise control, or vehicle-to-vehicle
communication could make the system more realistic.</p>
      <p>For example, trafic lights could be integrated into the CA framework by introducing fixed or adaptive
stop conditions at specific sites, simulating intersection control l ogic. This would enable analysis of
phase timing, queue lengths, and the impact of signal coordination (e.g., green waves).</p>
      <p>Vehicle-to-vehicle (V2V) communication, on the other hand, could be implemented by allowing cars to
access information from multiple neighboring cells, efectively simulating a distributed sensing system.
This would allow for anticipatory behavior (e.g., earlier braking) and enable testing of cooperative
driving strategies, which are essential in highly automated or mixed-autonomy environments.</p>
      <p>
        Such extensions would increase the model’s applicability for urban planning, traffic optimization,
and autonomous vehicle testing [
        <xref ref-type="bibr" rid="ref10 ref11 ref6 ref7 ref8 ref9">6-11</xref>
        ].
      </p>
    </sec>
    <sec id="sec-6">
      <title>6. Key Results and Quantitative Evaluation</title>
      <p>The proposed model achieved consistent and reproducible quantitative outcomes. For instance:
• In the single-lane scenario, a critical phase transition was detected at density   ≈ 0.08, aligning with
theoretical expectations from the NS model.
• The model demonstrated agreement with empirical data (see Figure 6), where the simulated peak
flow matched the real-world peak near 2500 vehicles/hour, validating the scaling assumptions.
• The comparative experiments between one-lane and two-lane roads revealed a twofold increase in
capacity under optimal conditions, highlighting the benefit of lane multiplicity in dense traffic
systems.</p>
      <p>Declaration on Generative AI</p>
      <p>The authors have not employed any Generative AI tools</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Yuen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kay</surname>
          </string-name>
          , Applications of cellular automata,
          <source>International Journal of Artificial Intelligence in Education</source>
          (
          <year>2009</year>
          )
          <fpage>37</fpage>
          -
          <lpage>58</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>K.</given-names>
            <surname>Nagel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Schreckenberg</surname>
          </string-name>
          ,
          <article-title>A cellular automaton model for freeway trafic</article-title>
          ,
          <source>Journal de Physique I</source>
          <volume>2</volume>
          (
          <year>1992</year>
          )
          <fpage>2221</fpage>
          -
          <lpage>2229</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Wolfram</surname>
          </string-name>
          , Theory and Applications of Cellular Automata, World Scientific, Singapore,
          <year>1986</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Rickert</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Nagel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Schreckenberg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Latour</surname>
          </string-name>
          ,
          <article-title>Two lane trafic simulations using cellular automata, Physica A: Statistical Mechanics and its Applications 231 (</article-title>
          <year>1996</year>
          )
          <fpage>534</fpage>
          -
          <lpage>550</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>E.</given-names>
            <surname>Vinitsky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Parvate</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kreidieh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bayen</surname>
          </string-name>
          ,
          <article-title>Benchmarks for reinforcement learning in mixed-autonomy trafic</article-title>
          ,
          <source>in: Proceedings of the 1st Conference on Robot Learning</source>
          , volume
          <volume>78</volume>
          <source>of PMLR</source>
          ,
          <year>2017</year>
          , pp.
          <fpage>517</fpage>
          -
          <lpage>528</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>H. F.L.</surname>
          </string-name>
          ,
          <string-name>
            <surname>B. L.A.</surname>
          </string-name>
          ,
          <string-name>
            <surname>G. M.A.</surname>
          </string-name>
          ,
          <article-title>Speed-flow relations for partially congested highways</article-title>
          ,
          <source>Transportation Research Part A: General</source>
          <volume>20</volume>
          (
          <year>1986</year>
          )
          <fpage>197</fpage>
          -
          <lpage>210</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>B. S.</given-names>
            <surname>Kerner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. L.</given-names>
            <surname>Klenov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. E.</given-names>
            <surname>Wolf</surname>
          </string-name>
          ,
          <article-title>Cellular automaton approach to three-phase trafic theory</article-title>
          ,
          <source>Journal of Physics A: Mathematical and General</source>
          <volume>35</volume>
          (
          <year>2002</year>
          )
          <fpage>9971</fpage>
          -
          <lpage>10013</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <article-title>Smoothing trafic flow via control of autonomous vehicles, arXiv preprint (</article-title>
          <year>2018</year>
          ). arXiv:arXiv:
          <year>1812</year>
          .09544.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Y. M.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. S.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y. B.</given-names>
            <surname>Lu</surname>
          </string-name>
          ,
          <article-title>A divided two-lane cellular automaton model of trafic flow</article-title>
          ,
          <source>Journal of Advanced Transportation</source>
          <volume>42</volume>
          (
          <year>2008</year>
          )
          <fpage>179</fpage>
          -
          <lpage>206</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>B. S.</given-names>
            <surname>Kerner</surname>
          </string-name>
          ,
          <article-title>Three-phase trafic theory and highway capacity</article-title>
          ,
          <source>Physica A: Statistical Mechanics and its Applications</source>
          <volume>392</volume>
          (
          <year>2013</year>
          )
          <fpage>5261</fpage>
          -
          <lpage>5282</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>B. S.</given-names>
            <surname>Kerner</surname>
          </string-name>
          ,
          <article-title>Breakdown minimization principle for freeway trafic control</article-title>
          ,
          <source>Transportation Research Part C: Emerging Technologies</source>
          <volume>77</volume>
          (
          <year>2017</year>
          )
          <fpage>245</fpage>
          -
          <lpage>260</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>