Manuscript Offprint
arXiv:2611.09316Keyline Detection with YOLO: Runway Perception for Vision-Based Aircraft Landing
Abstract
Modern object detectors can predict keypoints as per-object geometric features, but keypoints are inherently vulnerable to occlusion and truncation. Object edges can provide complementary information, often remaining observable even when partially occluded or when their defining endpoints leave the field of view. We therefore introduce object keyline detection, the task of predicting a fixed, semantically ordered set of infinite lines per object instance. Unlike the outputs of general line-segment detectors, each keyline is associated with an object instance and identified by a semantic index, providing a line-level analog of keypoints. To solve this task, we extend YOLO with key-line prediction parameterized in continuous Hesse-normal form , and introduce Object Keyline Similarity (OKLS), which serves as an evaluation metric, target assignment signal, and regression loss. We instantiate this formulation on runway perception in vision-based landing, a motivating example containing semantic linear features that remain partially observable throughout the approach. Experiments show that our representation achieves the highest detection accuracy among four evaluated line parameterizations, and keylines integrate directly into standard YOLO heads as additional output channels without degrading key-point performance or adding meaningful latency.
1. Introduction
Keypoint prediction has become a widespread capability of modern object detectors, as the detection of semantic per-object features enables downstream geometric tasks like pose estimation. Keypoints, however, can only represent point-based features. For objects characterized by prominent edges, this is limiting: a keypoint that is occluded or truncated provides no information, whereas the corresponding edge can remain partially observable and still convey orientation and perspective (e.g., Fig. 1).

Figure 1. A partially visible runway during final approach. The two near corners are truncated by the image boundary, preventing keypoint-based pose estimation, while four of five runway keylines remain observable, providing line constraints for pose estimation.
General line-segment detectors address the extraction of linear image structures, but they solve a different problem. Methods such as M-LSD [10], HAWP [28], and LINEA [14] predict unordered, image-level collections of finite line segments. Their outputs are neither associated with individual object instances nor assigned a stable semantic identity. Conversely, object detectors can predict bounding boxes and semantic keypoints for multiple object instances, but do not include line features among their per-object predictions. Thus, existing approaches do not provide a line-level analog of semantic keypoint detection.
To bridge this gap, we introduce object keyline detection, extending object detectors to predict instance-bound geometric lines alongside keypoints. Unlike finite line segments, keylines are predicted as infinite lines without spatial extent targets, while finite support annotations define where line accuracy is evaluated. This formulation provides a direct line-level analog to semantic keypoint detection.
We instantiate object keyline detection for runway perception in vision-based aircraft landing [2] (see Fig. 2).
Corresponding author: leander.fritsch@airbus.com

Figure 2. The basic components of aircraft pose estimation for vision-based landing. An object detection algorithm detects a set of runway objects and their predetermined features, while a subsequent pose estimation algorithm estimates the aircraft's pose. In this work we extend the detected feature set by keylines and evaluate them in the image domain.
In such a system, correct estimation of runway geometry throughout the final approach is critical. However, corner keypoints frequently suffer from field-of-view truncation during the close-range phase (Fig. 1), causing Perspective-n-Point (PnP) [18] solvers to lose geometric constraints while edge features remain observable. Keylines provide a persistent geometric representation under these conditions and could serve as a fallback when keypoint detection fails. Since recent runway detection systems commonly employ YOLO [23] models [5, 19], we extend YOLO keypoint detection [21] with keyline prediction.
Object keyline detection raises two central questions: how should keylines be parameterized for stable regression in YOLO models, and how should they be compared during model evaluation and optimization? We address the first through a controlled comparison of line parameterizations and the second by introducing Object Keyline Similarity (OKLS), an adaptation of Object Keypoint Similarity (OKS) to keylines. We make the following contributions:
- We formulate object keyline detection as predicting a fixed, semantically ordered tuple of infinite lines per object instance, instantiated it as a native YOLO extension and demonstrating it on runway perception.
- We introduce OKLS (Object Keyline Similarity) as a unified evaluation metric, target assigner, and regression loss, enabling AP and AR metrics for keylines.
- We benchmark four line parameterizations and find the continuous Hesse normal form to be the most accurate of the evaluated representations on our benchmark.
- We evaluate fused- and split-head architectures for joint keypoint-keyline prediction, demonstrating that a fused head adds keylines without degrading keypoint accuracy or adding meaningful latency.
- We compare against general line-segment detectors under an oracle matching protocol, demonstrating higher average precision in detecting object-associated lines.
2.1. Vision-based runway perception
Early runway perception focused on aerial mapping via hand-crafted edge finders and heuristic filtering [13]. Several recent runway-perception systems employ YOLO detectors to localize runways in approach imagery [5, 19] and extract keypoints (e.g., corners or markings) to solve for camera pose via PnP [9, 29]. However, corner truncation or occlusion during final approach causes keypoint-only pose solvers to lose geometric redundancy or fail entirely [2]. To address this, Balduzzi et al. [2] proposed a two-stage cropping network that regresses a global runway-geometry vector, including a vanishing point and line angles. Sun et al. [24] present a hybrid approach, combining YOLO region proposals with an unstructured classical line-segment detector. In contrast, our formulation provides a single-stage pipeline that predicts semantically defined keylines to support downstream Perspective-n-Point-and-Line (PnPL) solvers [25], although evaluating its impact on aircraft pose accuracy is beyond the scope of this work.
2.2. Line detection
Classical Hough transforms [6] and modern learned variants [15–17, 30] predict infinite line parameters but focus on prominent, image-spanning lines. Conversely, line-segment detectors [10, 12, 14, 26–28] frequently predict shorter edges, but rely on the detection of segment endpoints. Crucially, both categories lack modeling of object-association or semantic line identities. A central challenge in line detection is selecting an effective geometric line parameterization. Existing formulations include polar coordinates [16, 30], 2D endpoints [14, 26], attraction vectors [27, 28], tri-point center offsets [10, 12], distance and orientation fields [22], or row-wise offsets [11]. Because these representations were designed for varying models and a structurally different task, their performance does not directly transfer to instance-centric keyline regression in YOLO, motivating our systematic comparison (Sec. 4.3). Likewise, existing metrics (e.g. sAP [32] or HIoU [16]) are not designed for object keyline detection.
3. Methodology
3.1. Task formulation
We formulate object keyline detection as an extension of object keypoint detection. Given an image , the model predicts a variable-size set of object detections,
where , and denote the predicted bounding box, category, and object confidence of detection . Each detected object is associated with fixed, semantically ordered tuples of keypoints and keylines
where denotes the geometric prediction of keyline , and denotes the corresponding predicted visibility score. The model therefore always produces keyline predictions for each object, but may indicate that certain associated object edges are out of view by predicting a low visibility score. A predicted keyline specifies an infinite line in the 2D image space. Each ground-truth keyline tuple
is annotated with the same fixed semantic ordering, which directly defines the correspondence between predicted keylines and annotations. Let denote the image canvas. An annotation consists of two support endpoints , specifying the finite support over which line accuracy is evaluated and a visibility label , specifying whether that line is visible () or not (). For edges extending beyond the image boundaries, the support segment is clipped to the image boundary . Annotated object edges that are completely outside of receive visibility label , while others receive a positive visibility label.
3.2. Keyline representation and decoding
We adapt dense object detectors to keyline prediction using a cell-relative parameterization and decoding scheme.
Global representation. We parameterize each predicted keyline in Hesse normal form as
where is the unit normal vector of the line, and is its signed perpendicular distance from the coordinate origin. A point in model-input coordinates belongs to that line if and only if .
We predict the unit normal vector rather than the scalar orientation angle , as that avoids the angular wrap-around discontinuity of scalar-angle regression at [31]. With a signed distance and an unrestricted orientation, this representation is continuous and singularity-free. However, this choice makes it antipodally ambiguous, since and describe the same undirected line. OKLS (Sec. 3.3) addresses this ambiguity.
Cell-relative decoding. At each output grid cell with center and stride , the network predicts unconstrained raw parameters . Directional outputs are passed through tanh and normalized to obtain the unit normal . Because is predicted relative to the cell center, the line satisfies . Rearranging gives the global Hesse-normal distance relative to the image origin: , yielding the final decoded output (detailed derivations in Sec. B).
3.3. Object Keyline Similarity
Background. OKS measures the localization agreement between two keypoint tuples while accounting for object scale, per-keypoint tolerances, and keypoint visibility. For predicted keypoints and ground-truth keypoints , it is defined as
where denotes the object area, is a per-keypoint hyperparameter controlling the scale-invariant localization tolerance of the -th keypoint, and
is the index set of labeled keypoints, ensuring that keypoints outside the image do not contribute to the score. YOLO keypoint detectors typically adopt OKS for model evaluation, instance matching, and loss optimization [21].
Object Keyline Similarity. OKS is defined for object keypoints, while existing line metrics evaluate lines or line segments without considering object association (cf. Sec. 2.2). We construct OKLS by replacing the point-to-point residual in OKS with a line-to-support residual. Given the predicted infinite line , we compute the signed perpendicular distances to the support endpoints and via

Figure 3. Our proposed Object Keyline Similarity (OKLS) uses the orthogonal distances and from ground-truth support endpoints () to the predicted line as its residual.
as illustrated in Fig. 3. OKLS is then defined as
where
is the index set of labeled lines and denotes the scale-invariant localization tolerance, which can optionally be defined per line to reflect differing physical widths or annotation variances. Although the predicted line is infinite, its finite ground-truth support determines where accuracy is relevant and captures the lever-arm effect of angular error. The line-to-support residual inherently treats lines as undirected: and yield the same OKLS value.
OKLS for model evaluation. For evaluation, we replace OKS within the standard COCO keypoint evaluation protocol [20] with our OKLS formulation, producing AP and AR metrics (where “KL” denotes keylines). In this protocol, OKLS is used in the matching process between predicted and ground-truth instances and categorizes matches as true positive or false positive by thresholding it. These metrics are scale-invariant and evaluated over the annotated supports. For the vision-based landing application, they can be interpreted as a rough proxy metric of keyline usefulness for the downstream aircraft pose estimation, as line-based pose estimation methods, such as Vakhitov et al. [25], often optimize similar line-to-endpoint distances.
OKLS-based training objective. We define the keyline regression loss analogously to the keypoint loss [21] as
OKLS is the OKLS evaluation between the -th candidate prediction and -th ground-truth object, while the weights are determined by a task-aligned target assigner (e.g., TOOD [8]). It matches ground-truth and

Figure 4. Head architecture variants for joint keypoint and keyline prediction: (a) Split: uses a dedicated keyline branch; (b) Fused: shares a single geometric branch across tasks.
predicted objects and assigns weights based on bounding-box overlap, classification confidence and OKS, which we replace with OKLS to use keylines instead of keypoints in the assignment process. Predicted keyline visibility is supervised with the keypoint visibility loss.
This training objective inherits the outlier rejection of OKS: the gradients vanish for large residuals, so outliers influence the model less than inliers [3]. For keypoints, this results in more stable training and higher final AP than an loss [21].
Multi-task integration. For joint training, we replace the standard pose loss with , where is a hyperparameter. Similarly, we compute the assigner weights using the combined similarity , so both keypoints and key-lines inform target selection.
3.4. Keyline detection architecture
We extend standard YOLO keypoint detection models (e.g., YOLO-Pose [21]) to predict keylines alongside bounding boxes and keypoints. Modern YOLO architectures comprise a backbone, neck and multi-scale prediction heads. At each grid cell across the output grids, the model produces an object hypothesis (Sec. 3.1). To support keyline detection, each hypothesis is extended by parameters, encoding the geometric prediction and the visibility score for each keyline . As illustrated in Fig. 4, we evaluate two structural integrations for joint keypoint and keyline prediction:
-
Split: Duplicates the geometric prediction branch to isolate keyline parameter regression from keypoint estimation, while adding visibility logits to the classification output in the object branch.
-
Fused: Keypoint and keyline predictions share the existing pose branch, extending only the output layer by keyline channels and sharing keyline visibility logits within the object branch as in the split variant.
During inference, predicted keyline parameters are mapped back to original image dimensions (Sec. C).
4. Experimental setup
4.1. Data
We train on a curated subset of a proprietary dataset of real approach images, split into training, validation, and test data. The training set contains 6730 images from 230 approach trajectories at 95 airports. Images contain an average of 1.49 annotated runways (maximum 4), with an average of 3.4 out of 4 corners (85%) and 4.7 out of 5 lines (94%) visible. To prevent geographic data leakage, airports are strictly disjoint between training, validation, and test data. The validation (712 images, 40 trajectories) and test sets (683 images, 38 trajectories) cover 10 airports each, disjoint from training, and have similar ratios of truncated images to the training data. The overall dataset represents a wide range of real-world conditions, including various times of day (and night), weather conditions, and approach distances from -6 km to +1 km relative to the runway threshold. The annotation file extends the COCO annotation format with keyline support endpoints and visibility labels. Input images are scaled and vertically padded to pixels. Training augmentations include color and contrast changes, blur, shadows, and coarse dropout.
4.2. Metrics
Keyline detection is evaluated using AP and AR calculated over standard COCO thresholds with a fixed localization tolerance . While this choice is application-driven rather than derived from variation among repeated independent annotations [20], holding constant provides a fair benchmark for relative model comparisons and is a common practical choice (e.g. [7]). Keypoint evaluation uses standard OKS-based AP and AR with an identical tolerance .
PnPL constraint availability. To quantify whether the detector provides a sufficient number of accurately localized feature correspondences for a generic minimal PnPL solver, we introduce PnPL Constraint Availability ( ). It is defined as the proportion of evaluated images containing at least valid feature predictions. A predicted keypoint or keyline is considered valid if its predicted visibility satisfies or and the associated localization score (defined as the k-th or l-th element of OKS or OKLS) satisfies OKS or OKLS , respectively. We report for .
This metric measures image-domain constraint availability. Meeting the three-correspondence count is a necessary
generic minimum but is not sufficient to guarantee successful pose estimation, as the metric does not test geometric degeneracy (e.g., detecting only left, right and centerline), numerical conditioning, or aircraft pose error.
4.3. Keyline representation ablation
We benchmark the continuous Hesse-normal representation against three parameterizations adapted from the line segment detection literature (cf. Sec. 2.2) integrated within the same YOLO-NAS architecture:
• Polar Hesse Normal : Regresses a scalar orientation angle instead of a continuous normal vector. OKLS loss is applied by computing the regular Hesse normal form as .
• Endpoints : Represents a keyline as two points. Supervision via standard OKS loss allows direct regression of the support endpoints . Supervision via OKLS loss optimizes the induced line, letting the model predict two arbitrary points on the line.
• Normal Point : Regresses the orthogonal projection of the output cell center onto the infinite keyline. Supervision is possible via either OKS or OKLS. The representation is undefined at (lines passing through ) and exhibits increased angular sensitivity near this singularity.
All ablation variants are trained without the keypoint output to isolate parameterization and loss effects. For OKLS application, predicted parameters are transformed to the continuous Hesse normal form. All models are evaluated on the OKLS metric.
4.4. Unstructured line detection baselines
We benchmark against M-LSD [10] and LINEA [14] as representative general-purpose line-segment detectors by training them on the same runway data. Both start from public pretrained checkpoints with default training settings.
Because unstructured detectors output unordered image-level lines, they cannot natively be evaluated directly using the OKLS-based AP and AR metrics. We therefore evaluate them using an oracle best-case matching protocol (detailed in Sec. A). This protocol uses ground-truth object annotations to independently select the highest-similarity predicted line for each semantic keyline slot. Using this matching, we can apply the standard COCO evaluation protocol. We compare model latencies by measuring average inference time at batch size 1 on an NVIDIA Tesla T4 GPU.
4.5. Training and implementation details
We instantiate our framework on the YOLO-NAS-Pose Nano architecture using the SuperGradients library [1], selected for its low inference latency and decoupled multi-scale head design typical of modern YOLO models. The
We use a subset of the original data for confidentiality reasons.
We do not use the open-source LARD dataset [4] because it does not contain partially visible runways.
network operates at an input resolution of pixels across three detection heads with downsampling strides 8, 16, and 32. To evaluate model scaling, we additionally train a YOLO-NAS-Pose Medium variant, replacing the model architecture but keeping the keyline prediction and training details equivalent.
For runway perception, the model predicts keypoints (runway corners) and semantically ordered keylines: the left, top, right, and bottom boundary edges, alongside the runway centerline. We include the centerline because it provides a critical visual reference for estimating the aircraft's lateral alignment, particularly during short final approach (see Fig. 1). Models predicting only keylines or keypoints contain 9.89 M parameters. For multi-task prediction, the fused-head variant adds negligible additional model parameters, while the split-head variant increases the parameter count to 11.28 M (+14.1%).
All models are initialized with COCO Pose [20] pretrained weights [1] and trained for 80 epochs using AdamW with standard PyTorch parameters, an effective batch size of 96, weight decay , and a peak learning rate of with cosine decay. The multi-task loss weight is .
5. Results
We evaluate the keyline parameterization, supervision, and joint prediction architecture, and compare our method with unstructured line-segment detectors.
5.1. Representation and supervision ablation
Table 1 benchmarks the line parameterizations and supervision variants from Sec. 4.3. The continuous Hesse-normal representation paired with OKLS supervision achieves the best performance. For both endpoints and normal points, supervising via OKLS substantially outperforms coordinate-level OKS. While expected given its alignment with the target metric, this confirms that OKLS is generally well-suited as a loss function in YOLO and supervising decoded keyline geometry directly is more effective for keyline regression than optimizing raw parameter coordinates, whose accuracy does not directly correspond to the accuracy of resulting keylines. For normal points, OKS does not reflect the increased angular sensitivity near the representation's singularity; for endpoints, it unnecessarily penalizes placement along the keyline. Qualitative predictions are illustrated in Figs. 5 and 6.
5.2. Multi-task prediction
With the parameterization and loss fixed, we now evaluate joint keypoint and keyline prediction. Unlike in Tab. 1, the fused- and split-head variants predict both feature types. As shown in Tab. 2, the fused-head variant preserves keypoint accuracy within run-to-run variation, although model capacity is shared between both feature types, while the
Table 1. Ablation results comparing proposed and alternative line representations and loss functions. Values are mean (sample standard deviation) over three training runs with different seeds.
| Representation | Loss | ||
|---|---|---|---|
| Continuous Hesse Normal | OKLS | 55.7 (0.8) | 61.7 (0.7) |
| Polar Hesse Normal | OKLS | 53.0 (1.0) | 59.5 (0.4) |
| Endpoints | OKLS | 52.3 (1.2) | 58.9 (1.4) |
| Endpoints | OKS | 47.5 (0.8) | 53.8 (1.0) |
| Normal Point | OKLS | 52.6 (1.0) | 59.2 (0.8) |
| Normal Point | OKS | 46.5 (0.5) | 52.1 (1.3) |
higher-capacity split-head variant slightly increases average keypoint precision. Keyline prediction performance is comparable between the two multi-task integrations, although both exhibit a modest drop of 3.4 (resp. 3.7) AP points relative to the keyline-only model in Tab. 1. A likely contributing factor is the constant multi-task loss weight . Since in this dataset the number of visible keylines exceeds the number of visible keypoints, this results in larger gradients on individual keypoints compared to keylines. This balances both tasks irrespective of feature count, as is standard in YOLO multi-task learning. The fused-head variant does not meaningfully increase model latency, while the split-head variant increases latency by 1.9 ms (7.0%), confirming that both keypoints and keylines can be modeled with a shared prediction head.
PnPL constraint availability. As shown in Tab. 3, adding keylines substantially increases the proportion of images with at least three valid runway features. This is consistent with truncation during final approach: when the two nearest corners leave the image (see Fig. 6), at most two corner keypoints remain, whereas four keylines may still be observable as continuous edge constraints. In the test dataset, 77.7% of the images contain at least three visible keypoints, upper-bounding for the keypoints-only model at that value, whereas 100% of the images contain at least three
Table 2. Joint keypoint and keyline prediction results (mean with sample standard deviation over three training runs). “Original” is the YOLO-NAS-Pose baseline trained only for runway-corner keypoints. “Fused” predicts keypoints and keylines through a shared geometric head, whereas “Split” uses a separate geometric branch for keyline regression (Sec. 3.4). The joint models achieve comparable keypoint AP/AR to the keypoint-only baseline. While Fused and Split have comparable keyline performance, Fused incurs lower latency.
| Arch. | Lat. [ms] | ||||
|---|---|---|---|---|---|
| Original | N/A | N/A | 48.4 (0.5) | 51.5 (0.4) | 27.3 (0.3) |
| Fused | 52.3 (0.9) | 59.1 (0.9) | 48.7 (0.8) | 52.5 (0.2) | 27.4 (0.2) |
| Split | 52.0 (1.4) | 59.3 (1.2) | 49.8 (0.2) | 52.8 (0.3) | 29.2 (0.2) |

Figure 5. Keyline predictions on a two-runway scene (San Francisco International Airport). The zoomed view (right) shows all five predicted keylines per runway with accurate geometric alignment, illustrating the multi-instance prediction capabilities of our method.

Figure 6. Keyline predictions under nighttime conditions with truncated runway edges. The model recovers all visible keylines, although night scenes are underrepresented in training.
visible keylines.
To control for the different number of feature slots between keypoints and keylines, we compute as the constraint availability excluding the centerline. The lines-only and joint model retain 97.1% and 99.0% availability, respectively, compared with 71.3% for the four-keypoint model. Thus, the gain is not explained solely by the original five-versus-four feature count.
5.3. Comparison with unstructured detectors
We compare our keyline detector with two general line-segment detectors (Sec. 4.4) using a best-case oracle matching protocol. As shown in Tab. 4, our method achieves
Table 3. PnPL constraint availability () across model configurations, measuring the detection of at least three features (which is a necessary condition for pose estimation). uses all predicted features, while excludes the centerline. “Ours” refers to the proposed fused head model.
| Model Configuration | ||
|---|---|---|
| Ours (Keypoints + Keylines) | 99.3% | 99.0% |
| Lines-only | 98.8% | 97.1% |
| Original (Keypoints-only) | 71.3% | N/A |
the highest runway keyline AP and AR. Although slower, LINEA Medium attains competitive recall (), showing that unstructured detectors can recover many runway keylines. Its lower average precision (), however, highlights fundamental limitations of evaluating unordered segments at the instance level. Because our oracle matching evaluates complete object hypotheses, missing even a single keyline severely penalizes the aggregated instance similarity. As illustrated in Fig. 7, unstructured baselines lack keyline-specific semantic priors: there is no mechanism to predict exactly one of each type of keyline per object. Hence, they may assign lower confidence to less salient runway keylines, such as the distant threshold edge, compared to more salient irrelevant edges. Scaling our proposed model from Nano to Medium improves keyline detection, at the cost of increased latency.
5.4. Scope and limitations
Object keyline detection assumes that instances of a category possess a fixed, semantically ordered set of approximately linear features. Runways satisfy this assumption

Figure 7. Common failure modes of unstructured line detectors. M-LSD (left) produces a duplicate centerline prediction. LINEA (middle) misses the far runway edge, but produces additional unwanted predictions for a taxiway with strong linear features on the right side. Neither model predicts a fixed semantic keyline set; our method (right) correctly produces predictions for the five defined runway lines.
Table 4. Comparison of our proposed method (keylines-only) with general line detection models evaluated on semantic keyline benchmark metrics. Best values are bold. Latencies as in Sec. 4.4.
| Model | APKL ↑ | ARKL ↑ | Latency [ms] ↓ |
|---|---|---|---|
| M-LSD Tiny | 10.7 | 26.3 | 5.6 |
| M-LSD Large | 11.0 | 26.7 | 34.6 |
| LINEA Small | 39.6 | 58.7 | 43.4 |
| LINEA Medium | 42.4 | 58.8 | 58.9 |
| Ours Nano | 55.7 | 61.7 | 27.4 |
| Ours Medium | 59.1 | 65.7 | 81.1 |
particularly well because their edges and centerline have stable semantic identities. Although the proposed formulation does not rely on runway-specific geometry, all empirical results in this paper are obtained on runways. Other potential applications include document scanning and shipping-container or parcel perception for automated logistics. However, we do not evaluate or claim transfer to these domains. The formulation may be less suitable for deformable objects, categories with variable edge topology, curved boundaries, or features whose semantic identities are ambiguous across instances.
This study evaluates keyline regression in the image domain rather than its effect on downstream pose estimation. Consequently, the results do not establish that predicted keylines improve aircraft pose accuracy. Evaluating their impact on 6-DoF pose error within a complete PnPL pipeline, including comparisons with keypoint-only and alternative perception pipelines, remains an important direction for future system-level evaluation. Additionally, we do not enforce geometric constraints on keylines, such as a shared vanishing point for the longitudinal runway edges and centerline, to avoid structural error coupling across features and maintain a generic problem formulation. For system integration, including such constraints should be evaluated for their effect on downstream pose accuracy.
6. Conclusion
In this work, we introduced object keyline detection, the task of predicting a fixed, semantically ordered set of infinite lines per object instance. To solve this task efficiently, we extended the YOLO framework to predict and process keylines and proposed OKLS as an evaluation metric, target assignment signal, and regression loss. We instantiated and evaluated our approach for runway perception in vision-based aircraft landing, a safety-critical application where runway edges often remain visible even when runway keypoints are occluded or truncated. A constraint availability study showed that keyline detection improved feature availability for downstream aircraft pose estimation compared to predicting runway corner keypoints alone.
A line parameterization study established that the Hesse normal form optimized with OKLS outperforms point-based and scalar-angle alternatives. Integrating our keyline-detection approach into existing YOLO keypoint heads does not require substantial architectural changes: a fused head predicts keypoints and keylines jointly with negligible latency overhead, and multi-task training does not degrade keypoint accuracy, at a modest cost in keyline precision.
Against general-purpose line-segment detectors, the instance-centric approach achieves higher average precision under oracle matching by naturally enforcing structured slot assignment and penalizing missing semantic edges at the instance level. Two directions follow naturally: integrating predicted keylines into PnPL pose estimation to evaluate their contribution to aircraft pose accuracy during final approach, and validating the formulation across object categories beyond runways.
Acknowledgements
This work was supported by Airbus Central R&T. The authors thank Thierry Sammour, Jérémie Chheang, and Pierre-Alexandre Murena for constructive discussions, operational support, and valuable guidance.
References
[1] Shay Aharon, Louis-Dupont, Ofri Masad, Kate Yurkova, Lotem Fridman, Lkdc, Eugene Khvedchenya, Ran Rubin, Natan Bagrov, Borys Tymchenko, Tomer Keren, Alexander Zhilko, and Eran Deci. Super-Gradients. GitHub repository, 2021. https://zenodo.org/record/7789328.5, 6
[2] Giovanni Balduzzi, Martino Ferrari Bravo, Anna Chernova, Calin Cruceru, Luuk van Dijk, Peter de Lange, Juan Jerez, Nathanaël Koehler, Mathias Koerner, Corentin Perret-Gentil, et al. Neural network based runway landing guidance for general aviation autoland. Technical Report DOT/FAA/TC-21/48, Federal Aviation Administration, 2021. 1, 2
[3] Jonathan T. Barron. A general and adaptive robust loss function. In CVPR, pages 4331–4339, 2019. 4
[4] Yassine Bougacha, Geoffrey Delhomme, Mélanie Ducoffe, Augustin Fuchs, Jean-Brice Ginestet, Jacques Girard, Sofiane Kraïem, Franck Mamalet, Vincent Mussot, Claire Pagetti, and Thierry Sammour. LARD 2.0: Enhanced datasets and benchmarking for autonomous landing systems. In 13th European Congress of Embedded Real Time Systems (ERTS), Toulouse, France, 2026. arXiv:2603.26748. 5
[5] Wei Dai, Zhengjun Zhai, Dezhong Wang, Zhaozi Zu, Siyuan Shen, Xinlei Lv, Sheng Lu, and Lei Wang. YOMO-Runwaynet: A lightweight fixed-wing aircraft runway detection algorithm combining YOLO and MobileRunwaynet. Drones, 8(7):330, 2024. 2
[6] Richard O. Duda and Peter E. Hart. Use of the Hough transformation to detect lines and curves in pictures. Communications of the ACM, 15(1):11–15, 1972. 2
[7] Hao-Shu Fang, Jiefeng Li, Hongyang Tang, Chao Xu, Haoyi Zhu, Yuliang Xiu, Yong-Lu Li, and Cewu Lu. AlphaPose: Whole-body regional multi-person pose estimation and tracking in real-time. IEEE TPAMI, 45(6):7157–7173, 2023. 5
[8] Chengjian Feng, Yujie Zhong, Yu Gao, Matthew R. Scott, and Weilin Huang. TOOD: Task-aligned one-stage object detection. In ICCV, pages 3510–3519, 2021. 4
[9] João P. K. Ferreira, João P. Pinto, Júlia Moura, Yi Li, Cristiano L. Castro, and Plamen Angelov. Vision-based landing guidance through tracking and orientation estimation. In IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 9663–9671, 2025. 2
[10] Geonmo Gu, Byungsoo Ko, SeoungHyun Go, Sung-Hyun Lee, Jingeun Lee, and Minchul Shin. Towards light-weight and real-time line segment detection. In AAAI, pages 726–734, 2022. 1, 2, 5
[11] Hiroto Honda and Yusuke Uchida. CLRerNet: Improving confidence of lane detection with LaneloU. In IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 1176–1185, 2024. 2
[12] Siyu Huang, Fangbo Qin, Pengfei Xiong, Ning Ding, Yijia He, and Xiao Liu. TP-LSD: Tri-points based line segment detector. In ECCV, pages 770–785, 2020. 2
[13] Andres Huertas, William Cole, and Ramakant Nevatia. Detecting runways in complex airport scenes. Computer Vision, Graphics, and Image Processing, 51(2):107–145, 1990. 2
[14] Sebastian Janampa and Marios Pattichis. LINEA: Fast and accurate line detection using scalable transformers. In ICIP, pages 2115–2120, 2025. 1, 2, 5
[15] Dongkwon Jin, Jun-Tae Lee, and Chang-Su Kim. Semantic line detection using mirror attention and comparative ranking and matching. In ECCV, pages 119–135, 2020. 2
[16] Dongkwon Jin, Wonhui Park, Seong-Gyun Jeong, and Chang-Su Kim. Harmonious semantic line detection via maximal weight clique selection. In CVPR, pages 16737–16745, 2021. 2
[17] Jun-Tae Lee, Han-Ul Kim, Chul Lee, and Chang-Su Kim. Semantic line detection and its applications. In ICCV, pages 3249–3257, 2017. 2
[18] Vincent Lepetit, Francesc Moreno-Noguer, and Pascal Fua. EPnP: An accurate solution to the PnP problem. IJCV, 81(2):155–166, 2009. 2
[19] Ye Li, Yu Xia, Guangji Zheng, Xiaoyang Guo, and Qingfeng Li. YOLO-RWY: A novel runway detection model for vision-based autonomous landing of fixed-wing unmanned aerial vehicles. Drones, 8(10):571, 2024. 2
[20] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. Microsoft COCO: Common objects in context. In ECCV, pages 740–755, 2014. 4, 5, 6
[21] Debapriya Maji, Soyeb Nagori, Manu Mathew, and Deepak Poddar. YOLO-Pose: Enhancing YOLO for multi person pose estimation using object keypoint similarity loss. In CVPRW, pages 2637–2646, 2022. 2, 3, 4
[22] Rémi Pautrat, Daniel Barath, Viktor Larsson, Martin R. Oswald, and Marc Pollefeys. DeepLSD: Line segment detection and refinement with deep image gradients. In CVPR, pages 17327–17336, 2023. 2
[23] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In CVPR, pages 779–788, 2016. 2
[24] Yulong Sun, Xin Zhang, Lang Zhu, Nan Liu, Jiahe Shen, Xiaodong Zhang, and Xingqun Zhan. A visual-inertial navigation system (VINS) with integrity guided visual error modeling for aircraft precision approach. Aerospace Systems, pages 1–21, 2026. doi: 10.1007/s42401-026-00459-0. 2
[25] Alexander Vakhitov, Jan Funke, and Francesc Moreno-Noguer. Accurate and linear time pose estimation from points and lines. In ECCV, pages 583–599, 2016. 2, 4
[26] Yifan Xu, Weijian Xu, David Cheung, and Zhuowen Tu. Line segment detection using transformers without edges. In CVPR, pages 4257–4266, 2021. 2
[27] Nan Xue, Song Bai, Fudong Wang, Gui-Song Xia, Tianfu Wu, and Liangpei Zhang. Learning attraction field representation for robust line segment detection. In CVPR, pages 1595–1603, 2019. 2
[28] Nan Xue, Tianfu Wu, Song Bai, Fudong Wang, Gui-Song Xia, Liangpei Zhang, and Philip H. S. Torr. Holistically-attracted wireframe parsing. In CVPR, pages 2788–2797, 2020. 1, 2
[29] Guanfeng Yu, Siyuan Shen, Lei Zhang, and Zhengjun Zhai. VI-DynaNet: a vision-inertial dynamical network model for pose estimation of fixed-wing aircraft landing. Measurement Science and Technology, 36(12):126305, 2025. 2
[30] Kai Zhao, Qi Han, Chang-Bin Zhang, Jun Xu, and Ming-Ming Cheng. Deep Hough transform for semantic line detection. IEEE TPAMI, 44(9):4793–4806, 2022. 2
[31] Yi Zhou, Connelly Barnes, Jingwan Lu, Jimei Yang, and Hao Li. On the continuity of rotation representations in neural networks. In CVPR, pages 5745–5753, 2019. 3
[32] Yichao Zhou, Haozhi Qi, and Yi Ma. End-to-end wireframe parsing. In ICCV, pages 962–971, 2019. 2
Appendix
A. Oracle evaluation protocol for general line detectors
Unstructured line segment detectors predict an unorganized set of line segments , where represents the line geometry and denotes its confidence score. Unlike keyline detectors, these models output no instance-level bounding boxes, category labels, or fixed semantic slot ordering.
To evaluate general line detectors under our instance-centric keyline detection benchmark (AP and AR ), we construct an oracle best-case object hypothesis for each ground-truth object instance m.
Ground-truth definition. Each ground-truth object instance m consists of L semantic keylines
where each keyline is defined by its finite support endpoints and associated with visibility (Sec. 3.1 main paper), alongside an object area derived from the instance bounding box area.
Best-case line slot matching. For a given ground-truth object and each visible semantic line slot (Sec. 3.3 main paper), we evaluate all predicted lines using the individual OKLS metric with tolerance :
where and are the perpendicular distances from the support endpoints to the infinite extension of predicted line .
For each slot , we select the optimal predicted line index that maximizes similarity:
Instance aggregation and COCO ranking. The overall reconstructed object-level similarity score and its aggregated object confidence score are defined as the mean over all visible slots:
These reconstructed object hypotheses are ranked by confidence score and evaluated using standard COCO 101-point interpolated precision-recall curves across thresholds . If , the instance prediction is registered as a true positive, and as a false positive otherwise. Because this protocol grants unstructured detectors ground-truth-guided slot assignment and permits line reuse across slots, it represents an optimistic upper bound on their instance-level detection performance.
B. Cell-relative keyline decoding
At each output grid cell, the detector initially predicts unconstrained raw line parameters
To achieve a valid unit normal vector, the raw directional outputs are passed through a tanh activation and normalized:
where is a small constant to prevent division by zero.
The raw predicted distance represents the local distance between the output cell center and the predicted line in the head's output coordinates. We therefore first scale the predicted distances to the model-input coordinate system
with the respective head stride . Secondly, we convert the cell-relative line
to global Hesse normal form (relative to the coordinate origin) using
The decoded head output is therefore
All subsequent loss, assignment, and evaluation operations use this global representation.
C. Inference-time post processing
In YOLO, input images are resized and sometimes padded, to adhere to a standard, typically square, input resolution. Outputs, such as keypoints and keylines, must therefore be mapped back to the original image. Let
denote the uniform resize and padding transformation. To map keylines to the original coordinate system, the unit normal can be left unchanged, while the line distance is transformed to the new origin and unscaled:
D. Example approach predictions

Figure D1. Keyline predictions recorded during an approach to San Francisco International Airport (SFO), sampled at 12-second intervals. Solid lines denote the highest-confidence predictions, while dashed lines show predictions with the second-highest confidence (when present).