Reinterpreting Safety Thresholds as Neuron Spiking Thresholds

arXiv cs.AI Papers

Summary

This paper proposes a biologically inspired reinterpretation of surrogate safety measure thresholds using spiking neural networks, aligning with human braking behavior to bridge objective and subjective safety perception in automated driving.

arXiv:2605.30368v1 Announce Type: cross Abstract: Surrogate Safety Measures (SSMs) are extensively utilised in the evaluation of traffic risk in automated driving contexts. However, the majority of SSM-based evaluations employ fixed thresholds that fail to capture the human response to sustained borderline conditions or the reaction to brief, high-risk peaks. The present work proposes a biologically inspired reinterpretation of SSM thresholds. This is modelled as spiking thresholds of leaky integrate-and-fire (LIF) neurons, with multiple SSM inputs combined into a spiking neural network (SNN). The SNN is trained to emit spikes that are aligned with human braking onsets. The training data was recorded in a controlled car-following experiment using the 3D-CoAutoSim platform with CARLA/Unreal and a 6-DOF motion platform, where induced critical events were generated. The results demonstrate that the learned spiking activity qualitatively aligns with braking behaviour across scenarios and captures reactions that are not consistently explained by threshold crossings alone. Analysis across participants further indicates that learned input thresholds remain relatively consistent, while learned decay factors encode different temporal sensitivities for the SSMs. The findings of this study indicate that spiking dynamics may serve as a mechanism to facilitate the convergence of objective SSMs with subjective human safety perception.
Original Article
View Cached Full Text

Cached at: 06/01/26, 09:29 AM

# Reinterpreting Safety Thresholds as Neuron Spiking Thresholds
Source: [https://arxiv.org/html/2605.30368](https://arxiv.org/html/2605.30368)
Enrico Del Re[ID](https://orcid.org/0009-0002-6417-5902)*Graduate Student Member, IEEE*, Mohamed Sabry[ID](https://orcid.org/0000-0002-9721-6291)*Graduate Student Member, IEEE* Cristina Olaverri\-Monreal[ID](https://orcid.org/0000-0002-5211-3598)*Senior Member, IEEE*Johannes Kepler University Linz, Austria; Department Intelligent Transport Systems\{enrico\.del\_re, mohamed\.sabry, cristina\.olaverri\-monreal\}@jku\.at

###### Abstract

Surrogate Safety Measures \(SSMs\) are extensively utilised in the evaluation of traffic risk in automated driving contexts\. However, the majority of SSM\-based evaluations employ fixed thresholds that fail to capture the human response to sustained borderline conditions or the reaction to brief, high\-risk peaks\. The present work proposes a biologically inspired reinterpretation of SSM thresholds\. This is modelled as spiking thresholds of leaky integrate\-and\-fire \(LIF\) neurons, with multiple SSM inputs combined into a spiking neural network \(SNN\)\. The SNN is trained to emit spikes that are aligned with human braking onsets\. The training data was recorded in a controlled car\-following experiment using the 3D\-CoAutoSim platform with CARLA/Unreal and a 6\-DOF motion platform, where induced critical events were generated\. The results demonstrate that the learned spiking activity qualitatively aligns with braking behaviour across scenarios and captures reactions that are not consistently explained by threshold crossings alone\. Analysis across participants further indicates that learned input thresholds remain relatively consistent, while learned decay factors encode different temporal sensitivities for the SSMs\. The findings of this study indicate that spiking dynamics may serve as a mechanism to facilitate the convergence of objective SSMs with subjective human safety perception\.

## IINTRODUCTION

Advances in automated vehicles have largely been driven by the goal of improving traffic safety, as human error contributes to more than 90%\\%of all traffic accidents\[[24](https://arxiv.org/html/2605.30368#bib.bib84)\]\. Advanced Driver Assistance Systems \(ADAS\), such as adaptive cruise control and lane keeping systems, aim to mitigate these errors and enhance safety\[[19](https://arxiv.org/html/2605.30368#bib.bib59)\]\. These systems operate according to well\-defined objective rules, such as those specified in\[[26](https://arxiv.org/html/2605.30368#bib.bib2)\], that connect observable and quantifiable driving parameters \(e\.g\., speed, distance, and relative velocity\) through Surrogate Safety Measures \(SSMs\) to infer accident risk\.

However, conventional SSMs exhibit several limitations\. Many are tailored to specific interaction types, such as car\-following or intersection encounters, and often assume pairwise vehicle interactions, whereas real traffic involves complex multi\-agent dynamics\. Furthermore, most SSMs rely on categorical thresholding to classify situations as safe or unsafe\. Although this approach effectively detects abrupt hazards, such as sudden decelerations, it fails to capture the cumulative strain of borderline conditions sustained over time\. These shortcomings become evident when comparing SSM\-based safety assessments in naturalistic driving data with human reactions\[[25](https://arxiv.org/html/2605.30368#bib.bib29),[7](https://arxiv.org/html/2605.30368#bib.bib9),[17](https://arxiv.org/html/2605.30368#bib.bib46),[8](https://arxiv.org/html/2605.30368#bib.bib10)\]\.

Bridging this gap between objective safety indicators and subjective human perception of safety is essential for higher levels of automation, such as platooning, where a human driver may remain in the control loop\. Unnecessary takeovers triggered by subjective discomfort are undesirable, and models that ignore human perception risk undermining driver trust and acceptance of ADAS\[[21](https://arxiv.org/html/2605.30368#bib.bib31)\]\. To ensure safe, interpretable, and socially compatible automated behavior, future systems must emulate not only the physical risk but also how humans perceive and react to changing safety conditions\.

To address these challenges, this paper proposes a biologically inspired approach that substitutes fixed SSM thresholds with Leaky Integrate\-and\-Fire \(LIF\) neurons\. These neurons can account for both persistent borderline exposure and sudden high\-risk situations\. By combining multiple LIF neurons into a Spiking Neural Network \(SNN\), the framework integrates diverse SSMs into a unified, dynamic safety assessment, akin to a neuron\-based extension of\[[6](https://arxiv.org/html/2605.30368#bib.bib12)\]\. The SNN is trained on driving data recorded in an experiment performed with the 3D\-CoAutoSim\[[12](https://arxiv.org/html/2605.30368#bib.bib95)\]platform, which utilizes CARLA and Unreal Engine together with a 6\-degrees\-of\-freedom \(DOF\) motion platform to generate critical traffic scenarios and record realistic human responses\. During these scenarios, the braking behavior is recorded, so that, by learning to spike in correspondence with such reactions, the proposed model aligns objective safety metrics with the way humans subjectively perceive and respond to traffic risk\.

The following section provides an overview of comparable approaches, emphasizing the unique approach in our proposed model\. Section[III](https://arxiv.org/html/2605.30368#S3)introduces the LIF neuron, SNNs and the utilized SSMs\. Section[IV](https://arxiv.org/html/2605.30368#S4)details the experiment and training details\. The results are presented in Section[V](https://arxiv.org/html/2605.30368#S5)\. Lastly, Section[VI](https://arxiv.org/html/2605.30368#S6)summarizes the key findings and outlines potential future directions for this research\.

## IIRelated Work

SNNs in automotive and transportation have been mostly focused on perception tasks, to take advantage of their inherent energy efficiency and high inference speed\[[18](https://arxiv.org/html/2605.30368#bib.bib20)\]\. Less research has focused on predicting human behavior, though for example\[[23](https://arxiv.org/html/2605.30368#bib.bib22)\]used SNNs to predict pedestrian street\-crossing behavior and\[[27](https://arxiv.org/html/2605.30368#bib.bib21)\]used SNNs to predict turn\-taking in surgeries\.

Modeling the subjective perception of safety presents a notable challenge due to a scarcity of labeled data, specifically, data encompassing both objective and subjective measures\. In\[[9](https://arxiv.org/html/2605.30368#bib.bib54)\]such a dataset was created by conducting assessments of traffic conflicts by trained observers\. This method enabled the identification of objective factors predominantly influencing individuals’ safety perceptions, specifically those affecting both the proximity and severity of potential collisions\. However, the labor\-intensive nature of labeling interactions makes this approach less practical for more complex scenarios\.

Perceived safety has also been addressed by proposing risk representations intended to better match what humans internally evaluate, and validating them against observable human reactions, most commonly in simulations\. Risk\-field formulations model risk as a spatial field shaped by predicted motions and interaction consequences, and have been reported to correlate with subjective markers such as verbalized risk\. The steering behavior observed in\[[15](https://arxiv.org/html/2605.30368#bib.bib15)\]has been used by\[[5](https://arxiv.org/html/2605.30368#bib.bib14)\]to align a model to individual participants’ steering behavior\. In\[[14](https://arxiv.org/html/2605.30368#bib.bib18)\]a driver’s risk field metric was proposed to model human driving behavior\.

However, risk\-field\-based approaches often do not map cleanly back to standard SSMs, such as Time Headway or Time to Collision, which limits their direct use within established AV safety evaluation guidelines\. Therefore, the model presented in this paper explicitly leverages common surrogate safety metrics as inputs for modeling driving behavior, letting the biologically inspired network learn the transformation toward human behavior over time, rather than redefining a new risk metric upfront\.

## IIIBackground

### III\-ASpiking Neural Networks

Spiking Neural Networks \(SNNs\) process information as time\-indexed spike trains rather than continuous activations\. In contrast to standard artificial neural networks, computation unfolds over discrete timesteps and each neuron maintains an internal state \(typically a membrane potential\) that integrates inputs over time\. Once a potential threshold is exceeded, a spike by the neuron is emitted\. In a feed\-forward SNN, these spikes are weighted by synapses and integrated by spiking neuron dynamics, producing new spike trains that propagate through the layers \(Fig\.[1](https://arxiv.org/html/2605.30368#S3.F1)\)\. This temporal state makes SNNs well\-suited for sequence data, as they can naturally capture accumulation effects and short\-lived peaks via their dynamics\.

![Refer to caption](https://arxiv.org/html/2605.30368v1/x1.png)Figure 1:Schematic propagation of spikes through a neuron in an SNN\. The three spike trainsS1/2/3​\(t\)S\_\{1/2/3\}\(t\)from a previous layer are multiplied by their respective weightsW1/2/3W\_\{1/2/3\}and processed by the neuron N into an new spike trainSO​\(t\)S\_\{O\}\(t\)\.#### III\-A1Leaky\-integrate\-and\-fire \(LIF\) neuron

Although many neuron models are suitable for SNNs, here we limit ourselves to leaky\-integrate\-and\-fire \(LIF\) neurons\[[2](https://arxiv.org/html/2605.30368#bib.bib19)\]\. In discrete time, the membrane potentialUtU\_\{t\}integrates an input currentItI\_\{t\}while decaying with factorβ\\beta:

Ut=β​Ut−1\+It\.U\_\{t\}=\\beta U\_\{t\-1\}\+I\_\{t\}\.\(1\)Here,β\\betacontrols the effective memory of the neuron: values closer to 1 yield slower decay and longer temporal integration, while smaller values emphasize more immediate inputs\. A spike is emitted whenUtU\_\{t\}crosses a thresholdUthrU\_\{\\mathrm\{thr\}\}:

St=\{1if​Ut≥Uthr,0otherwise\.S\_\{t\}=\\begin\{cases\}1&\\text\{if \}U\_\{t\}\\geq U\_\{\\mathrm\{thr\}\},\\\\ 0&\\text\{otherwise\.\}\\end\{cases\}\(2\)After spiking, the membrane potential is reset, most commonly to 0\. The interplay between input current, membrane potential and output spike train is visualized in Figure[2](https://arxiv.org/html/2605.30368#S3.F2)

![Refer to caption](https://arxiv.org/html/2605.30368v1/x2.png)Figure 2:Exemplary behavior of a LIF\-neuron\. The input currentI​\(t\)I\(t\)is integrated by the neuron as membrane potentialU​\(t\)U\(t\), which results in the spike trainS​\(t\)S\(t\)\. Note how the membrane potential decays over time slowly, yet resets to 0 immediately after a spike, whenU​\(t\)U\(t\)has crossed the spiking thresholdUt​h​rU\_\{thr\}\.
#### III\-A2Training with surrogate gradients

Because Eq\. \([2](https://arxiv.org/html/2605.30368#S3.E2)\) is non\-differentiable, training is commonly done using backpropagation\-through\-time \(BPTT\)\[[20](https://arxiv.org/html/2605.30368#bib.bib17)\]with a surrogate gradient\. The network is unrolled over timesteps and gradients are accumulated across time similarly to recurrent networks\. In the forward pass the hard threshold is kept \(Eq\. \([2](https://arxiv.org/html/2605.30368#S3.E2)\)\), while in the backward pass∂St/∂Ut\\partial S\_\{t\}/\\partial U\_\{t\}is approximated with a surrogate, e\.g\. a fast\-sigmoid :

∂S∂U≈1\(1\+k​\|U\|\)2,k=25\.\\frac\{\\partial S\}\{\\partial U\}\\approx\\frac\{1\}\{\\bigl\(1\+k\\lvert U\\rvert\\bigr\)^\{2\}\},\\qquad k=25\.\(3\)This approximation enables gradient\-based optimization while preserving event\-driven spiking in the forward dynamics\.

### III\-BSurrogate Safety Measures

To assess safety between two vehicles in a comprehensive way, in scenarios involving trajectory intersections and car\-following situations, we incorporated the following metrics into our safety model\.

- •Time Headway \(TH\): Duration for the rear of one vehicle to traverse a specific point on the road, followed by the front of the subsequent vehicle passing the same reference point\.
- •Time\-To\-Collision \(TTC\): Time for a vehicle to reach a potential collision point if it maintains its current speed and trajectory\.
- •Minimum Deceleration Required to Avoid Crash \(DRAC\): Lowest deceleration rate that a vehicle must achieve in order to prevent a collision with another vehicle\.

All three SSMs were selected for their suitability in car\-following scenarios\. Since the SNN is trained to spike under high\-risk conditions, the inputs are transformed so that larger input values correspond to objectively higher safety risk\. For TH we take the inverse according to \([4](https://arxiv.org/html/2605.30368#S3.E4)\),

1T​H=vd,\\frac\{1\}\{TH\}=\\frac\{v\}\{d\},\(4\)withvvthe velocity of the following vehicle andddthe distance to the leading vehicle\.

The inverse for TTC as been introduced as an SSM in\[[1](https://arxiv.org/html/2605.30368#bib.bib51)\], as denoted in equation \([5](https://arxiv.org/html/2605.30368#S3.E5)\),

I​T​T​C=vF−vLd,ITTC=\\frac\{v\_\{F\}\-v\_\{L\}\}\{d\},\(5\)
wherevL,vFv\_\{L\},v\_\{F\}represents the velocity of the leading and following vehicles anddddenotes the distance between them\. If the two vehicles are not on a collision course, ITTC is set to0\.

DRAC is is computed as defined in \([6](https://arxiv.org/html/2605.30368#S3.E6)\),

D​R​A​C=\{\(vF−vL\)2d,vF\>vL0,e​l​s​eDRAC=\\begin\{cases\}\\frac\{\(v\_\{F\}\-v\_\{L\}\)^\{2\}\}\{d\},&v\_\{F\}\>v\_\{L\}\\\\ 0,&else\\end\{cases\}\(6\)\.

## IVMethodology

### IV\-ADataset

The aforementioned lack of driving\-behavior datasets annotated with subjective safety perception limits learning\-based approaches\. While training on subsets of public datasets, e\.g\. HighD\[[16](https://arxiv.org/html/2605.30368#bib.bib80)\]or IAMCV\[[4](https://arxiv.org/html/2605.30368#bib.bib28)\]is desired, these datasets make it difficult to attribute human braking behavior primarily to safety concerns\. Therefore, a new dataset was recorded in which participant interventions, limited to braking, were largely restricted to controlled changes in traffic risk\. Part of this dataset is used to train the model in this paper\.

![Refer to caption](https://arxiv.org/html/2605.30368v1/Figures/sim_setup.jpg)Figure 3:The 3DCoAutoSim Simulation setup with CARLA\.The simulation environment consisted of a 6\-degrees\-of\-freedom motion platform connected to the CARLA simulator\[[10](https://arxiv.org/html/2605.30368#bib.bib23)\]as shown in Figure[3](https://arxiv.org/html/2605.30368#S4.F3)\. Participants experienced a car\-following scenario on a highway in the follower vehicle in which, after reaching the cruising speed of 80 kph, the autonomous leading vehicle would begin to decelerate at a random point within a 70 m range window, increasing the safety risk for the following vehicle\. To ensure consistent initial conditions before the lead\-vehicle deceleration, the participant’s vehicle was initially controlled using the controller from\[[22](https://arxiv.org/html/2605.30368#bib.bib24)\]\. The CARLA simulation developed for validation in\[[22](https://arxiv.org/html/2605.30368#bib.bib24)\]was also used as the baseline for the scenarios in this simulation\.

Participants could intervene at any time by pressing the brake if they felt unsafe, steering was only possible in conjunction with the brake\. After the leading vehicle started braking, the controller still attempted to maintain the desired distance, though a subset of trials was intentionally configured to result in a collision unless the participant intervened\. The motion platform further enhanced the realism of the deceleration cues and the perceived urgency of these situations\.

The six scenarios were defined by the deceleration of the leading vehicle and the controller’s desired following distance:

- •Scenario 1:Deceleration:−6​m/s2\-6m/s^\{2\}, distance:10​m10m
- •Scenario 2:Deceleration:−6​m/s2\-6m/s^\{2\}, distance:5​m5m
- •Scenario 3:Deceleration:−3​m/s2\-3m/s^\{2\}, distance:10​m10m
- •Scenario 4:Deceleration:−3​m/s2\-3m/s^\{2\}, distance:5​m5m
- •Scenario 5:Deceleration:−4\.5​m/s2\-4\.5m/s^\{2\}, distance:10​m10m
- •Scenario 6:Deceleration:−4\.5​m/s2\-4\.5m/s^\{2\}, distance:5​m5m

The order of scenarios was randomized but identical across participants\. At the start of the experiment, each participant was given time to familiarize themselves with the simulator and the vehicle dynamics in a different driving scenario\. In total, the recordings of 9 participants were utilized for training\.Each scenario took around 40 s to complete, depending on driver intervention\.

Based on these recordings, the data was segmented into episodes \(i\.e\., per participant and scenario\)\. Each episode forms a multivariate time series𝐱1:T∈ℝT×5\\mathbf\{x\}\_\{1:T\}\\in\\mathbb\{R\}^\{T\\times 5\}with the three input features 1/TH, ITTC and DRAC, the brake value of the participant and timestamps\. Given the limited number of episodes per participant, training is treated as a per\-participant optimization procedure rather than a classical train/val/test benchmark\.

### IV\-BSpiking Neural Network \(SNN\) Architecture and Implementation Details

We implemented the model in Python using PyTorch and thesnntorchlibrary, which provides standard leaky integrate\-and\-fire \(LIF\) neuron dynamics and surrogate\-gradient training\[[11](https://arxiv.org/html/2605.30368#bib.bib16)\]\. At each time steptt, the network receives a 3\-dimensional input vector𝐱t∈ℝ3\\mathbf\{x\}\_\{t\}\\in\\mathbb\{R\}^\{3\}consisting of inverse time headway \(1/TH1/\\mathrm\{TH\}\), ITTC, and DRAC\. The input sequence\{𝐱t\}t=1T\\\{\\mathbf\{x\}\_\{t\}\\\}\_\{t=1\}^\{T\}is encoded by three input neurons with an initial threshold of 1, 1/1\.5, 3\.3 respectively, based on traffic safety thresholds\[[25](https://arxiv.org/html/2605.30368#bib.bib29)\], and processed by a fully connected feed\-forward SNN with two hidden layers followed by a single output neuron\.

Each layer applies a linear transformation followed by the LIF dynamics described in Section[III](https://arxiv.org/html/2605.30368#S3), using trainable neuron thresholds and trainable decay factorsβ\\betafor all neurons, bias terms are omitted\. The network is trained with BPTT using surrogate gradients \(fast\-sigmoid surrogate as in[3](https://arxiv.org/html/2605.30368#S3.E3)\)\.

Training is performed per participant, as in\[[5](https://arxiv.org/html/2605.30368#bib.bib14)\], by grouping the episodes of each participatn and zero\-padding all sequences to the maximum episode lengthTTof the respective participant for batch processing\. Adam\[[13](https://arxiv.org/html/2605.30368#bib.bib62)\]is used for optimization, using a learning rate selected via a predefined sweep, and train for up to 1000 epochs\. An evaluation pass is performed each epoch and the checkpoint with the lowest validation loss is retained\.

Weights of all linear layers are initialized randomly from𝒰​\(0,1\)\\mathcal\{U\}\(0,1\)and constrained to be non\-negative to support an ”excitatory\-only” interpretation of connections\. A ReduceLROnPlateau scheduler monitors the validation loss and reduces the learning rate by a factor of0\.10\.1after 5 epochs without improvement\. Early stopping is applied if the validation loss does not improve by at least10−610^\{\-6\}for 20 consecutive epochs\.

Model selection is performed via a grid search over hidden sizeH∈\{8,16\}H\\in\\\{8,16\\\}and learning rateη∈\{10−2,10−3,5⋅10−4\}\\eta\\in\\\{10^\{\-2\},10^\{\-3\},5\\cdot 10^\{\-4\}\\\}\(up to 1000 epochs\)\.

### IV\-CTarget and Loss Function

The supervision signal is derived from the participant’s brake pedal signal and is intended to represent the intensity and temporal footprint of braking onsets\. Letbt∈\[0,1\]b\_\{t\}\\in\[0,1\]denote the brake signal at timestamptt\. We compute the discrete rate of change \(a time\-derivative\) as

rt=bt−bt−1Δ​tt,r\_\{t\}=\\frac\{b\_\{t\}\-b\_\{t\-1\}\}\{\\Delta t\_\{t\}\},\(7\)whereΔ​tt\\Delta t\_\{t\}is the time step between successive timestamps\. We focus on increases in brake activation by thresholdingrtr\_\{t\}:

mt=\{Afac​rt,if​rt≥rthr,0,otherwise,m\_\{t\}=\\begin\{cases\}A\_\{\\mathrm\{fac\}\}\\,r\_\{t\},&\\text\{if \}r\_\{t\}\\geq r\_\{\\mathrm\{thr\}\},\\\\ 0,&\\text\{otherwise,\}\\end\{cases\}\(8\)whererthrr\_\{\\mathrm\{thr\}\}is a threshold to avoid random noise andAfacA\_\{\\mathrm\{fac\}\}is a scaling factor\.

Although BPTT is used for training, due to convergence stability and speed, hebbian learning and spike\-timing\-dependent plasticity \(STDP\)\[[3](https://arxiv.org/html/2605.30368#bib.bib13)\]rules were a natural first consideration since the goal of the network is to detect and ideally predict human braking onset\. We therefore define an exponential envelope that serves as a decaying event trace, analogous to eligibility traces used in biologically inspired plasticity models, while training the network end\-to\-end with supervised gradient descent\.

The exponential envelope spreads each event backward in time:

yt=∑k=tTmk​exp⁡\(−k−tτ\),y\_\{t\}=\\sum\_\{k=t\}^\{T\}m\_\{k\}\\exp\\\!\\left\(\-\\frac\{k\-t\}\{\\tau\}\\right\),\(9\)whereτ\\tauis a decay constant\. Intuitively, larger positive brake increases produce a larger envelope amplitude, and the exponential term assigns higher values closer to the braking onset\.

Withy^t\\hat\{y\}\_\{t\}denoting the network output at timett\(the output neuron spike signal, treated as a time series\), we optimize the model using the mean squared error \(MSE\) loss function over the full sequence:

ℒMSE=1T​∑t=1T\(y^t−yt\)2\.\\mathcal\{L\}\_\{\\mathrm\{MSE\}\}=\\frac\{1\}\{T\}\\sum\_\{t=1\}^\{T\}\\left\(\\hat\{y\}\_\{t\}\-y\_\{t\}\\right\)^\{2\}\.\(10\)This objective encourages the network to align its spiking activity with the braking\-onset envelope derived from the participant’s brake dynamics\.

## VResults

### V\-AAlignment with Braking Onsets

Figure[4](https://arxiv.org/html/2605.30368#S5.F4)shows the performance of a trained model for one participant across all six scenarios\. While the model occasionally produces spiking activity in periods without braking \(e\.g\., Figure[4c](https://arxiv.org/html/2605.30368#S5.F4.sf3)\) and sometimes fails to detect some braking onsets \(e\.g\., Figure[4b](https://arxiv.org/html/2605.30368#S5.F4.sf2)\), it generally aligns well with the overall timing and structure of the participant’s braking behavior\. The figure also contrasts the model output with purely threshold\-based safety assessments\. Regions deemed unsafe by TH, ITTC, and DRAC are highlighted in grey, with darker shading indicating that multiple safety thresholds are exceeded simultaneously\. Notably, Figures[4b](https://arxiv.org/html/2605.30368#S5.F4.sf2),[4c](https://arxiv.org/html/2605.30368#S5.F4.sf3),[4e](https://arxiv.org/html/2605.30368#S5.F4.sf5), and[4f](https://arxiv.org/html/2605.30368#S5.F4.sf6)show cases where SSM thresholds and human reactions differ, yet the model captures several braking responses that are not directly explained by threshold crossings alone\.

This configuration used two hidden layers with eight neurons each and was trained with an exponential envelope defined byAfac=1\.0A\_\{\\mathrm\{fac\}\}=1\.0andτ=2\.0\\tau=2\.0, using a learning rate of10−210^\{\-2\}\.

![Refer to caption](https://arxiv.org/html/2605.30368v1/x3.png)\(a\)Scenario 1
![Refer to caption](https://arxiv.org/html/2605.30368v1/x4.png)\(b\)Scenario 2
![Refer to caption](https://arxiv.org/html/2605.30368v1/x5.png)\(c\)Scenario 3
![Refer to caption](https://arxiv.org/html/2605.30368v1/x6.png)\(d\)Scenario 4
![Refer to caption](https://arxiv.org/html/2605.30368v1/x7.png)\(e\)Scenario 5
![Refer to caption](https://arxiv.org/html/2605.30368v1/x8.png)\(f\)Scenario 6

Figure 4:Objective safety measures \(1/TH, ITTC, DRAC\) and braking for single participant, along the targets \(labels\) and predictions \(spk\) by the trained SNN model for Scenario 1\-6\. In grey is marked the area where SSM thresholds mark the traffic scenario as unsafe\.
### V\-BSSM Spiking Thresholds

The best\-performing model for each participant was selected for analysis of overarching effects across all participants\. SinceAf​r​a​cA\_\{frac\}andτ\\tauwere also considered in the parameter search, the best model was selected based MSE and on the fraction of output spikes during the braking maneuver to mitigate differences in the loss envelope\.

The initial thresholds were set based on values from literature\. Figures[5](https://arxiv.org/html/2605.30368#S5.F5)and[6](https://arxiv.org/html/2605.30368#S5.F6)show the mean, minimum, and maximum of the trained thresholds of the input LIF neurons and their decay rates, respectively\. Across all SSM inputs, the learned thresholds increase slightly relative to their initialization and remain broadly consistent across participants\. In terms of temporal dynamics, non\-zero ITTC values are retained for the longest period of time \(highestβ\\beta\), whereas the related collision\-severity proxy DRAC is forgotten almost immediately \(lowestβ\\beta\)\. Inverse time headway \(1/TH\) exhibits faster decay than ITTC as well; however, since 1/TH remains non\-zero during car\-following, a shorter effective memory is expected\.

![Refer to caption](https://arxiv.org/html/2605.30368v1/x9.png)Figure 5:Mean spiking thresholds of the input layer LIF\-neurons for the three input values\. The error bars mark the lowest and highest value across all participants\. The dashed line mark the initial values from literature\.![Refer to caption](https://arxiv.org/html/2605.30368v1/x10.png)Figure 6:Mean membrane decay constant of the input layer LIF\-neurons for the three input values\. The error bars mark the lowest and highest value across all participants\.

## VIConclusion and Future Work

This paper proposes reinterpreting fixed thresholds for surrogate safety measures as trainable spiking thresholds within a leaky integrate\-and\-fire \(LIF\) framework\. By integrating multiple SSM streams with an SNN and training it to spike in correspondence with human braking onsets, the approach translates objective safety indicators to subjective human reactions\. Training was performed using driving data recorded in a controlled car\-following experiment on the 3D\-CoAutoSim platform utilizing CARLA and a 6 DOF motion platform\. We demonstrated that the trained models could align with the braking behavior of participants across multiple lead\-vehicle deceleration scenarios and, in particular, could reproduce braking responses in situations where simple SSM thresholds were insufficient\.

However, the low number of both scenarios and participants did not allow generalization and limited the training to an optimization problem without generalization\. In addition, safety perception in simulations can differ substantially to real\-world scenarios\. Similarily, the limited sample size was insufficient for generalizations\. Therefore, future work will extend training beyond per\-participant models and will evaluate generalization to richer multi\-agent scenarios and additional SSM inputs\. In particular, validation on real\-world driving data is planned to further assess the applicability of the proposed approach\.

## References

- \[1\]\(2006\)Driver assisting by inverse time to collision\.pp\. 1–6\.Cited by:[§III\-B](https://arxiv.org/html/2605.30368#S3.SS2.p4.1)\.
- \[2\]N\. Brunel and M\. C\. Van Rossum\(2007\)Lapicque’s 1907 paper: from frogs to integrate\-and\-fire\.Biological cybernetics97\(5\),pp\. 337–339\.Cited by:[§III\-A1](https://arxiv.org/html/2605.30368#S3.SS1.SSS1.p1.3)\.
- \[3\]N\. Caporale and Y\. Dan\(2008\)Spike timing–dependent plasticity: a hebbian learning rule\.Annu\. Rev\. Neurosci\.31\(1\),pp\. 25–46\.Cited by:[§IV\-C](https://arxiv.org/html/2605.30368#S4.SS3.p2.1)\.
- \[4\]N\. Certad, E\. Del Re, H\. Korndoerfer, G\. Schroedinger, W\. Morales\-Alvarez, S\. Tschernuth, D\. Gankhuyag, L\. Del Re, and C\. Olaverri\-Monreal\(2024\)IAMCV Mulit\-Scenario Vehicle Interaction Dataset\.IEEE Intelligent Transportation Systems Magazine\.Cited by:[§IV\-A](https://arxiv.org/html/2605.30368#S4.SS1.p1.1)\.
- \[5\]C\. Chen, Z\. Lan, G\. Zhan, Y\. Lyu, B\. Nie, and S\. E\. Li\(2024\)Quantifying the individual differences of drivers’ risk perception via potential damage risk model\.IEEE Transactions on Intelligent Transportation Systems25\(7\),pp\. 8093–8104\.Cited by:[§II](https://arxiv.org/html/2605.30368#S2.p3.1),[§IV\-B](https://arxiv.org/html/2605.30368#S4.SS2.p3.1)\.
- \[6\]E\. Del Re, A\. Aghanouri, and C\. Olaverri\-Monreal\(2024\)Integrating naturalistic insights in objective multi\-vehicle safety framework\.In2024 IEEE 27th International Conference on Intelligent Transportation Systems \(ITSC\),Vol\.,pp\. 1059–1065\.External Links:[Document](https://dx.doi.org/10.1109/ITSC58415.2024.10920258)Cited by:[§I](https://arxiv.org/html/2605.30368#S1.p4.1)\.
- \[7\]E\. del Re and C\. Olaverri\-Monreal\(2022\)Implementation of road safety perception in autonomous vehicles in a lane change scenario\.In2022 IEEE International Conference on Vehicular Electronics and Safety \(ICVES\),Vol\.,pp\. 1–6\.External Links:[Document](https://dx.doi.org/10.1109/ICVES56941.2022.9987124)Cited by:[§I](https://arxiv.org/html/2605.30368#S1.p2.1)\.
- \[8\]E\. Del Re and C\. Olaverri\-Monreal\(2023\)Method for comparison of surrogate safety measures in multi\-vehicle scenarios\.In2023 IEEE Intelligent Vehicles Symposium \(IV\),Vol\.,pp\. 1–6\.External Links:[Document](https://dx.doi.org/10.1109/IV55152.2023.10186747)Cited by:[§I](https://arxiv.org/html/2605.30368#S1.p2.1)\.
- \[9\]P\. Diwakar, V\. Landge, and U\. Jain\(2023\-11\)Evaluating the relationship between surrogate safety measures and traffic event severity in terms of human perception of danger: a perspective under indian traffic conditions\.13,pp\. 12100\.External Links:[Document](https://dx.doi.org/10.3390/app132212100)Cited by:[§II](https://arxiv.org/html/2605.30368#S2.p2.1)\.
- \[10\]A\. Dosovitskiy, G\. Ros, F\. Codevilla, A\. Lopez, and V\. Koltun\(2017\)CARLA: an open urban driving simulator\.InConference on robot learning,pp\. 1–16\.Cited by:[§IV\-A](https://arxiv.org/html/2605.30368#S4.SS1.p2.1)\.
- \[11\]J\. K\. Eshraghian, M\. Ward, E\. Neftci, X\. Wang, G\. Lenz, G\. Dwivedi, M\. Bennamoun, D\. S\. Jeong, and W\. D\. Lu\(2023\)Training spiking neural networks using lessons from deep learning\.Proceedings of the IEEE111\(9\),pp\. 1016–1054\.Cited by:[§IV\-B](https://arxiv.org/html/2605.30368#S4.SS2.p1.4)\.
- \[12\]A\. Hussein, A\. Díaz\-Álvarez, J\. M\. Armingol, and C\. Olaverri\-Monreal\(2018\)3DCoAutoSim: simulator for cooperative adas and automated vehicles\.In2018 21st International Conference on Intelligent Transportation Systems \(ITSC\),pp\. 3014–3019\.Cited by:[§I](https://arxiv.org/html/2605.30368#S1.p4.1)\.
- \[13\]D\. Kingma and J\. Ba\(2014\-12\)Adam: a method for stochastic optimization\.pp\.\.Cited by:[§IV\-B](https://arxiv.org/html/2605.30368#S4.SS2.p3.1)\.
- \[14\]S\. Kolekar, J\. De Winter, and D\. Abbink\(2020\)Human\-like driving behaviour emerges from a risk\-based driver model\.Nature communications11\(1\),pp\. 4850\.Cited by:[§II](https://arxiv.org/html/2605.30368#S2.p3.1)\.
- \[15\]S\. Kolekar, J\. de Winter, and D\. Abbink\(2020\)Which parts of the road guide obstacle avoidance? quantifying the driver’s risk field\.Applied ergonomics89,pp\. 103196\.Cited by:[§II](https://arxiv.org/html/2605.30368#S2.p3.1)\.
- \[16\]R\. Krajewski, J\. Bock, L\. Kloeker, and L\. Eckstein\(2018\)The highd dataset: a drone dataset of naturalistic vehicle trajectories on german highways for validation of highly automated driving systems\.In2018 IEEE 21st International Conference on Intelligent Transportation Systems \(ITSC\),Cited by:[§IV\-A](https://arxiv.org/html/2605.30368#S4.SS1.p1.1)\.
- \[17\]S\. M\. Mahmud, L\. Ferreira, M\. Hoque, and A\. Hojati\(2017\-03\)Application of proximal surrogate indicators for safety evaluation: a review of recent developments and research needs\.41,pp\.\.External Links:[Document](https://dx.doi.org/10.1016/j.iatssr.2017.02.001)Cited by:[§I](https://arxiv.org/html/2605.30368#S1.p2.1)\.
- \[18\]F\. S\. Martínez, J\. Casas\-Roma, L\. Subirats, and R\. Parada\(2024\)Spiking neural networks for autonomous driving: a review\.Engineering Applications of Artificial Intelligence138,pp\. 109415\.External Links:ISSN 0952\-1976,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.engappai.2024.109415),[Link](https://www.sciencedirect.com/science/article/pii/S0952197624015732)Cited by:[§II](https://arxiv.org/html/2605.30368#S2.p1.1)\.
- \[19\]L\. Masello, G\. Castignani, B\. Sheehan, F\. Murphy, and K\. McDonnell\(2022\)On the road safety benefits of advanced driver assistance systems in different driving contexts\.15,pp\. 100670\.External Links:ISSN 2590\-1982,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.trip.2022.100670),[Link](https://www.sciencedirect.com/science/article/pii/S2590198222001300)Cited by:[§I](https://arxiv.org/html/2605.30368#S1.p1.1)\.
- \[20\]E\. O\. Neftci, H\. Mostafa, and F\. Zenke\(2019\)Surrogate gradient learning in spiking neural networks: bringing the power of gradient\-based optimization to spiking neural networks\.IEEE Signal Processing Magazine36\(6\),pp\. 51–63\.External Links:[Document](https://dx.doi.org/10.1109/MSP.2019.2931595)Cited by:[§III\-A2](https://arxiv.org/html/2605.30368#S3.SS1.SSS2.p1.1)\.
- \[21\]C\. Olaverri\-Monreal\(2020\)Promoting trust in self\-driving vehicles\.Nature Electronics3\(6\),pp\. 292–294\.Cited by:[§I](https://arxiv.org/html/2605.30368#S1.p3.1)\.
- \[22\]M\. Sabry, E\. D\. Re, W\. Morales\-Alvarez, and C\. Olaverri\-Monreal\(2025\)A lidar\-driven fallback longitudinal controller for safer following in sudden braking scenarios\.External Links:2509\.16642,[Link](https://arxiv.org/abs/2509.16642)Cited by:[§IV\-A](https://arxiv.org/html/2605.30368#S4.SS1.p2.1)\.
- \[23\]M\. Sakhai, S\. Mazurek, J\. Caputa, J\. K\. Argasiński, and M\. Wielgosz\(2024\)Spiking neural networks for real\-time pedestrian street\-crossing detection using dynamic vision sensors in simulated adverse weather conditions\.Electronics13\(21\)\.External Links:[Link](https://www.mdpi.com/2079-9292/13/21/4280),ISSN 2079\-9292,[Document](https://dx.doi.org/10.3390/electronics13214280)Cited by:[§II](https://arxiv.org/html/2605.30368#S2.p1.1)\.
- \[24\]S\. Singh\(2015\)Critical reasons for crashes investigated in the national motor vehicle crash causation survey\.Cited by:[§I](https://arxiv.org/html/2605.30368#S1.p1.1)\.
- \[25\]S\. Tak, S\. Kim, D\. Lee, and H\. Yeo\(2018\-11\)A comparison analysis of surrogate safety measures with car\-following perspectives for advanced driver assistance system\.Journal of Advanced Transportation2018,pp\.\.External Links:[Document](https://dx.doi.org/10.1155/2018/8040815)Cited by:[§I](https://arxiv.org/html/2605.30368#S1.p2.1),[§IV\-B](https://arxiv.org/html/2605.30368#S4.SS2.p1.4)\.
- \[26\]\(2021\-03\)UN regulation no 157 – uniform provisions concerning the approval of vehicles with regards to automated lane keeping systems \[2021/389\]\.Cited by:[§I](https://arxiv.org/html/2605.30368#S1.p1.1)\.
- \[27\]T\. Zhou and J\. P\. Wachs\(2019\)Spiking neural networks for early prediction in human–robot collaboration\.The International Journal of Robotics Research38\(14\),pp\. 1619–1643\.External Links:[Document](https://dx.doi.org/10.1177/0278364919872252),[Link](https://doi.org/10.1177/0278364919872252),https://doi\.org/10\.1177/0278364919872252Cited by:[§II](https://arxiv.org/html/2605.30368#S2.p1.1)\.

Similar Articles

Harmonizing AI Safety Thresholds

arXiv cs.AI

This paper proposes a methodology for deriving harmonized AI safety thresholds across frontier AI companies to address inconsistencies in existing thresholds, covering misuse risks and automated AI R&D, and highlighting empirical gaps.

Rethinking Neural Nonlinearity as Gating

arXiv cs.LG

This paper proposes Threshold Gating (TG) as a unified primitive for neural nonlinearity, showing that standard activation functions can be expressed as instances of TG. The authors validate their approach by converting pretrained models across various architectures without retraining and discuss hardware benefits.