Technical analysisElectrical & electronicsArtificial intelligenceOptimization

Lseq in Tunnel Lighting: Image Processing and Human-in-the-Loop Automation

A technical analysis of the role of Lseq in tunnel entrance lighting, the propagation of classification errors into the calculation, and the use of human-reviewed image processing to improve consistency and traceability.

By Berke Tekergül
12 min read
Türkçe oku
Lseq in Tunnel Lighting: Image Processing and Human-in-the-Loop Automation

Abstract

Daytime tunnel entrance lighting is not determined solely by the luminance inside the tunnel. As a driver approaches the portal, bright areas of sky, road, rock, structures and vegetation can scatter light within the eye and reduce the visibility of objects near the entrance. Lseq, the equivalent veiling luminance produced by the portal surroundings, is one of the inputs used to determine the required threshold-zone luminance.

An Lseq calculation involves more than placing a polar grid over a portal image and assigning surface classes. The observation point, safe stopping sight distance, camera calibration, image dynamic range, portal centre, cell area fractions and parameter versions all influence the result. Small errors with the same direction can accumulate through the calculation chain and affect a design decision.

Image processing and machine learning can reduce repetitive drawing, area calculation and data-transfer work. They should not, however, be treated as substitutes for photometric measurement or engineering judgement. A defensible workflow uses the model for preliminary segmentation, flags low-confidence regions, requires expert approval for corrections and records every material change in the calculation report.

Introduction

In daylight, a driver approaching a tunnel looks from a bright exterior scene into an interior with much lower luminance. If the entrance is not sufficiently visible, the portal may appear as a dark opening and a low-contrast object in the threshold zone may be difficult to detect. The official page for CIE 088:2004, Guide for the Lighting of Road Tunnels and Underpasses, 2nd ed. identifies equivalent veiling luminance, visual adaptation and daytime and night-time tunnel lighting among the document's subjects. It also states that the publication replaced the 1990 edition.

Lseq is not the final design luminance. It represents disability glare associated with the driver's view of the approach scene. It is also distinct from Lth, the average road-surface luminance required in the threshold zone. Depending on the selected design method, the Lth calculation may include atmospheric effects, windscreen effects, target reflectance, contrast and the contrast-rendering properties of the lighting system. A reliable Lseq calculation is therefore necessary, but it does not determine Lth by itself.

Technical background

What does Lseq represent?

Lseq expresses the visual veil caused by light scattered within the eye from luminance sources around the driver's line of sight. Areas close to the visual axis can have a stronger effect on the visual task, so the approach scene cannot be reduced to a simple average of all image pixels. A polar diagram of rings and sectors converts the angular position of the surrounding surfaces into calculation cells.

The 2023 FHWA Lighting Handbook describes determining Lseq from an image taken at one safe stopping sight distance from the portal and overlaid with the Lseq polar diagram. The concentric rings are divided into 12 sectors, and the luminance contribution of each surface within a sector-ring cell is weighted by its area. The method therefore depends on both the surface luminances and their correct angular positions.

Figure 1. AI-generated representative polar-analysis view. In an actual calculation, the ring-sector geometry, centre, observation distance and cell-inclusion rules must follow the verified method.

Calculation chain

In the notation commonly used by the open technical reports reviewed for this article, the average luminance of a cell is calculated from the area fractions of the surface classes within that cell:

Lᵢ = Σ(fᵢ,ⱼ × Lⱼ)

Here, fᵢ,ⱼ is the area fraction, from 0 to 1, of surface class j in cell i, and Lⱼ is the measured or assigned luminance of that class. In formulations that include windscreen transmittance and the windscreen's own veiling contribution, the effective cell luminance is adjusted before the final sum. The equivalent veiling luminance is then calculated in the following form:

Lseq = 5.1 × 10⁻⁴ × ΣLᵢ,ₑ

Lᵢ,ₑ and Lseq are expressed in cd/m², and the coefficient 5.1 × 10⁻⁴ is dimensionless. The 2015 SP Technical Research Institute of Sweden report describes the calculation over 108 angular cells with the viewing direction centred on the tunnel. Kai Sørensen's 2018 NMF report uses the same coefficient and compares calibrated luminance images for 26 portals.

The licensed full text of CIE 088:2004 was not among the open sources available for this review. No clause-level interpretation or claim of full compliance is therefore made. Cell-inclusion rules, viewing geometry and any additional veiling-luminance components used for a project must be checked against the licensed standard and the applicable project specification.

Why the Lseq calculation matters

A decision input linking visibility and energy

If Lseq is underestimated, the threshold-zone design luminance may also be too low, depending on the selected method. The practical concern is reduced visibility of a low-contrast target near the portal. If Lseq is overestimated, the installed power, number of lighting stages and daytime energy use may be unnecessarily high. The consequences are different: underestimation affects visibility and the safety margin, whereas overestimation affects capital and operating costs.

For the 26 portals in the 2018 NMF field report, the stopping-distance regression is Lseq = 0.054 × L20. Most portal values nevertheless lie between approximately 33 percent above and 25 percent below that regression line. A fixed L20 ratio therefore does not provide the same accuracy for every portal. Portal orientation, sky fraction, surrounding materials, topography and observation distance remain scene-specific.

Original error-propagation example

Consider a hypothetical cell in which 40 percent of the area is labelled as surface class B with an assigned luminance of 8,000 cd/m², although it should have been class A at 3,000 cd/m². The class difference is 5,000 cd/m², so the error in the cell average is:

ΔLᵢ = 0.40 × 5,000 = 2,000 cd/m²

The linear contribution of this single-cell error to Lseq is:

ΔLseq = 5.1 × 10⁻⁴ × 2,000 = 1.02 cd/m²

If an error of the same magnitude and direction occurs in ten cells, the total deviation is 10.2 cd/m². Some errors may partially cancel in a real scene, but a safety-related calculation should not rely on accidental cancellation. Because the Lth calculation contains other parameters, the effect of an Lseq deviation on Lth must be recalculated with the selected method and project inputs.

As an order-of-magnitude check, assume that the effective luminance in all 108 cells is uniformly 1,000 cd/m². The result is 5.1 × 10⁻⁴ × 108 × 1,000 = 55.08 cd/m², approximately 0.055 times the uniform field luminance. This agrees with the approximate uniform-field ratio reported by Sørensen and independently checks both the units and the magnitude of the coefficient.

This is not a field design example. Its luminance values are hypothetical, and its purpose is to show how segmentation and area-fraction errors propagate into the result.

Where human error enters the process

Manual error is not confined to a single step. The following points require explicit control:

  • Capturing the image from the wrong position or camera height
  • Establishing the safe stopping sight distance or portal centre incorrectly
  • Saturating bright regions through exposure, HDR merging or calibration errors
  • Drawing inconsistent boundaries between sky, road, rock, structures, vegetation and the portal
  • Rounding surface fractions when estimating them visually within a cell
  • Assigning luminance to the wrong class or confusing measurement units
  • Using different cell rules, coefficients or windscreen parameters across files
  • Introducing copy-and-paste errors when transferring results into the report

Training can reduce some of these errors, while process design is more effective for others. A useful calculation tool should do more than run the arithmetic: it should identify which input changed, who changed it and when.

What image processing and machine learning can add

Image processing is well suited to checking portal-centre geometry and scale, placing the polar grid reproducibly, counting polygon areas at pixel level and summing class fractions within each cell. Machine learning can provide preliminary segmentation of sky, road, rock, structures, vegetation and the tunnel opening.

A model output is not a photometric measurement. Pixel values in an RGB image depend on camera response, exposure, tone mapping, white balance, compression and saturation. Producing cd/m² values from image colour alone, without calibrated luminance data, should not be treated as reliable.

The open-access 2024 study by Wei and colleagues reports that abnormal luminance conditions in tunnel images can degrade deep-learning vehicle detection and that a luminance-adaptive preprocessing module improved performance on the authors' dataset. The study does not validate Lseq segmentation. It is used here only as adjacent evidence that strongly varying luminance can materially affect image-model performance in tunnels.

Human-in-the-loop architecture

The proposed workflow is:

  1. Import a calibrated portal image and its capture metadata.
  2. Verify distance, portal height, viewing centre and polar-grid geometry.
  3. Generate preliminary surface segmentation and a confidence map.
  4. Have an expert inspect low-confidence areas, class boundaries and saturated pixels.
  5. Calculate cell area fractions and Lseq from approved polygons, then calculate Lth using the selected method.
  6. Record input versions, manual corrections, warnings and results in the same report.
Figure 2. AI-generated representative scene: controlled automation combines preliminary model classification with expert correction and photometric quality checks.
Figure 3. Proposed human-in-the-loop Lseq workflow: automation handles repetitive operations while measurement, geometry and low-confidence regions remain subject to expert review.

In this architecture, artificial intelligence is an assistant that reduces repetitive work and exposes inconsistent regions; it is not an authority that removes the engineer from the process. When confidence is low, the software should require review rather than silently accepting the prediction.

Validation cannot stop at IoU

Overall pixel accuracy or intersection over union alone is not sufficient for an Lseq segmentation model. A small geometric error can have a large effect if it changes the classification of a very bright surface. Before the model is put into use, validation should therefore consider at least:

  • Class-level pixel and boundary accuracy
  • Differences between independent expert annotations
  • Absolute and relative ΔLseq
  • ΔLth under the selected design method
  • Saturated-pixel ratio and dynamic-range warnings
  • Sensitivity to the selected centre, scale and camera position
  • Error distributions across seasons, weather, portal orientations and materials
  • Regression tests using uniform fields and known synthetic scenes

An acceptance criterion based on ΔLseq connects model error directly to the engineering result. It prevents a model with high aggregate pixel accuracy from being accepted when it still misclassifies a photometrically critical region.

The LSEQ calculation workspace

The site's LSEQ Calculation Tool is a licensed workspace for working with calibrated portal images. Its documented workflow takes the user through image upload and calibration, definition of tunnel polygons and threshold slices, and review of the calculation output and engineering report.

The human-in-the-loop image processing and machine learning described above are proposed aids for preliminary surface classification. Editable segmentation, visible assumptions, a cell-level calculation trail, quality warnings and reproducible reports are design goals for that proposed workflow. This article does not claim that all of these features are available in the current workspace.

Opening the workspace requires sign-in and a valid licence. The tool does not replace review by a qualified engineer, calibrated luminance measurement or verification of the standards and specifications applicable to a project.

Figure 4. Development screenshot of the Salarha Tunnel (the site sign is in Turkish): the portal scene is classified with surface polygons, and the centre of the polar calculation is selected over the tunnel opening.

Review approach

This publication uses the following evidence and verification layers:

  • The title, scope and supersession statement for CIE 088:2004 were checked against the official CIE publication page.
  • Lseq image geometry and area-weighted cell evaluation were reviewed in the official 2023 FHWA handbook.
  • The coefficient, cell sum and field comparison were cross-checked against two open technical reports.
  • Units, the uniform-field limit and the sample classification error were independently recalculated.
  • The machine-learning discussion is limited to an engineering error model and adjacent evidence on variable luminance in tunnel imagery; it does not claim measured Lseq-model performance.
  • The existing workspace is described using its documented workflow. The supplied development screenshot is illustrative; no performance or accuracy claim is made.

Original contribution

This article does more than restate the definition of Lseq. It provides three practical contributions:

  • A reproducible error-propagation example connecting surface misclassification directly to ΔLseq
  • An independent order-of-magnitude check using the uniform-field limit
  • A human-in-the-loop acceptance framework that evaluates segmentation through ΔLseq and ΔLth, rather than pixel accuracy alone

The framework gives software developers and lighting designers a shared set of acceptance criteria. Model-development metrics remain connected to the engineering quantity that informs the design decision.

Limitations

This publication is not a field measurement, a final lighting design or a statement of compliance for a particular tunnel. Because the licensed full text of CIE 088:2004 was not available for clause-level review, no claim of full compliance is made. For a project in Türkiye, the applicable General Directorate of Highways specifications, contract documents, national adoptions and current legislation must also be verified.

The machine-learning architecture described here is a validation plan. This article does not report a published training dataset for Lseq surface classes, field-comparison results or accepted engineering error limits. Before using the proposed automation for design decisions, it should be tested with representative portals, calibrated images, blinded expert comparisons, synthetic boundary cases and version-controlled calculation references.

If camera calibration, HDR merging, specular reflection, wet pavement, snow, fog, windscreen contamination or seasonal solar position are excluded from the model, automation may only accelerate false precision. These conditions must be converted into explicit warnings and field procedures.

Conclusion

The value of Lseq is not that it produces a single number. It connects the disability glare experienced by a driver approaching a tunnel portal to the lighting-design process. Geometry, calibration, surface classification and cell area fractions are therefore as important as the final arithmetic.

Image processing and machine learning can reduce human error in repetitive drawing, area calculation and data transfer. The defensible route is to record model confidence, expert corrections and photometric consequences together, rather than trusting an automated result without review. Speed and traceability are complementary only when the workflow preserves the evidence needed for engineering review.

References

  • International Commission on Illumination, Guide for the Lighting of Road Tunnels and Underpasses, 2nd ed. - CIE 088:2004, 2004. Official publication page
  • Federal Highway Administration, FHWA Lighting Handbook, 2023. Full-text PDF
  • Kai Sørensen, Nordic Light and Colour Committee Road and Tunnel Lighting Group, Values of L20 and Lseq for Tunnels in Norway, 13 August 2018. Full-text PDF
  • SP Technical Research Institute of Sweden, Traffic Compensated Luminance Estimation, 24 June 2015. Full-text PDF
  • Yongke Wei, Zimu Zeng, Tingquan He, Shanchuan Yu, Yuchuan Du and Cong Zhao, An Adaptive Vehicle Detection Model for Traffic Surveillance of Highway Tunnels Considering Luminance Intensity, Sensors, 2024. Open-access full text