Engineers and computer vision researchers from the Operations Branch of Guizhou Power Grid Co., Ltd. have developed ESAP-SAM, an automated deep-learning framework designed to segment power-grid facilities from high-altitude unmanned aerial vehicle imagery. Overhead electrical infrastructure monitoring forms an essential component of modern grid maintenance, where automated visual inspection assists human crews in detecting mechanical defects, conducting safety assessments, and preventing unexpected structural disruptions across vast geographic networks. However, isolating physical grid components within aerial photographs presents severe computational hurdles because high-voltage transmission lines exhibit extreme aspect ratios, frequently appearing as narrow linear tracks spanning only a few pixels across cluttered natural or artificial backgrounds. Standard computer vision foundation architectures, including the widely adopted Segment Anything Model, often fail to retain the fragile, high-frequency spatial signatures of thin conductors or tend to overfit when retrained on small, highly specialized aerial datasets. To overcome these constraints, the research team engineered an integrated adaptation system that maintains the general representational power of a frozen Vision Transformer image backbone while appending targeted multiscale, prompt-generating, and boundary-refining submodules.
The structural challenges inherent in unmanned aerial vehicle surveys stem directly from the visual contrast between massive, compact transmission towers and remarkably thin overhead transmission lines. Unmanned aircraft capture high-altitude perspectives over diverse landscapes encompassing dense forest vegetation, mountainous terrain, agricultural fields, roadways, and built urban structures. Within these complex visual scenes, transmission towers require broad contextual discrimination so that steel lattice assemblies can be separated from visually similar background clutter, while transmission lines demand the continuous retention of weak, direction-dependent pixel responses across extensive image spans. While general-purpose segmentation foundation models offer extensive pretraining on billions of diverse natural images, their native patch-embedding mechanisms partition inputs using fixed convolutional strides, often stride sixteen, which can severely attenuate or completely blur spatial representations corresponding to narrow linear conductors. Furthermore, adapting large foundation models by retraining their full parameter spaces on constrained, domain-specific remote-sensing datasets requires vast computational resources and introduces severe risks of model overfitting, which impairs general operational deployment during routine aerial grid condition assessments.
To establish a balance between structural preservation and parameter efficiency, ESAP-SAM freezes the native Vision Transformer backbone of the Segment Anything Model and introduces three specialized, trainable processing modules along the analytical pipeline. The overall framework accepts an input aerial red-green-blue image and outputs a pixel-level semantic mask depicting transmission towers and power lines. Spatial features extracted by the initial patch-embedding layer are processed simultaneously through the frozen transformer encoder and a newly designed parallel pathway termed the Efficient Multiscale Adapter. Spatially aligned feature representations from the adapter and the frozen backbone are combined through an additive bypass, ensuring that general semantic embeddings are enriched with orientation-sensitive geometric information without disrupting the pretrained encoder representations. This merged visual representation is subsequently routed into both the lightweight mask decoder and a Hybrid Prompt encoder, which computes spatially aligned dense guidance directly from the image data to drive downstream mask prediction without requiring human operators to supply manual coordinates during flight operations.
The internal mechanics of the Efficient Multiscale Adapter specifically address the anisotropic geometric properties of power lines, which stretch across extensive spatial distances while occupying minimal local thickness. To prevent the computational expansion typically associated with dense convolutional feature processing, the adapter first applies a dimensionality-reduction projection that reduces channel width thirty-two-fold, from the encoder width of one thousand twenty-four channels down to an internal bottleneck dimension of thirty-two channels, while rigorously retaining the native feature-grid layout. The compressed representations enter two distinct parallel operations: a Multiscale Convolution Module and a Multidirectional Convolution Module. The multiscale branch couples three-by-three and five-by-five convolutions to capture complementary receptive fields, subsequently applying global average pooling, a multilayer perceptron, and sigmoid recalibration to derive channel-wise importance weights. In parallel, the multidirectional branch applies dedicated directional convolutions oriented along horizontal, vertical, and two diagonal trajectories at forty-five and one hundred thirty-five degrees, each followed by batch normalization and rectified linear activation, thereby capturing linear conductors regardless of their visual alignment across the camera frame.
To eliminate the historical dependency of foundation segmentation frameworks on manual user prompts, the authors engineered the Hybrid Prompt encoder to generate automatic spatial guidance directly from image representations. Conventional Segment Anything Model pipelines require human operators to supply interactive prompt inputs, such as foreground points or bounding boxes, which severely constrains their utility for automated batch processing across thousands of aerial inspection photographs. The Hybrid Prompt encoder circumvents this limitation by establishing a dual-stream architecture comprising a primary dense guidance stream and an optional sparse geometric stream. The dense stream accepts enhanced feature embeddings directly from the adapter-backbone fusion, applies a targeted convolution to match prompt channel dimensionality, implements layer normalization to stabilize feature distributions, and injects spatial positional embeddings matched to the feature grid. When optional manual points or bounding boxes are available, the sparse stream encodes them alongside dense prompts through a two-layer feed-forward fusion network with Gaussian error linear unit activation; during standard automated inference, however, the dense prompt stream independently supplies complete spatial guidance to the mask decoder.
Following semantic feature decoding, the framework deploys a Boundary-Refinement Attention module to repair broken contours and resolve local edge ambiguities. Fine transmission conductors often register low contrast against visually textured terrains, and transmission tower edges frequently intersect complex vegetation backgrounds, leaving disconnected linear fragments in preliminary semantic predictions. Rather than attempting edge refinement early in the network where background noise can mislead feature extraction, the boundary module intervenes immediately after mask decoding, where structural edge responses can be interpreted in concert with semantic object features. The module projects the decoded feature tensor into a preliminary single-channel segmentation mask using a point-wise convolution, from which horizontal and vertical Sobel filtering kernels extract spatial gradient magnitudes. These directional gradient cues indicate locations where the preliminary prediction changes rapidly, prompting a subsequent three-by-three convolution and sigmoid function to construct a spatial attention map that is residually added to the original decoded feature map, followed by convolutional layers, batch normalization, and a dedicated prediction head.
The research team experimentally validated ESAP-SAM across two widely recognized aerial remote-sensing benchmarks: the Transmission Towers and Power Lines dataset and the Power Line Dataset. The Transmission Towers and Power Lines benchmark encompasses diverse agricultural, mountainous, and urban environments captured under varying angles; for experimental standardization, large aerial photographs were divided into non-overlapping one-thousand-twenty-four-pixel patches, yielding one thousand verified samples following quality screening. The Power Line Dataset contains eight hundred fifty-eight unmanned aerial vehicle photographs collected at five thousand four hundred seventy-two by three thousand six hundred forty-eight pixels across cityscapes and mountain ranges, exhibiting substantial variability in ambient lighting and apparent wire diameters. Both datasets were partitioned randomly into training, validation, and testing splits adhering to a seven-to-two-to-one ratio. Computational experiments were executed on an Ubuntu twenty-four point zero four workstation utilizing PyTorch two point six, an Intel i5-12400F central processing unit, and a single NVIDIA GeForce RTX 3090 graphics processing unit with twenty-four gigabytes of memory, using the AdamW optimizer across three hundred training epochs with Dice loss optimization.
To evaluate performance comprehensively, the authors documented precision, recall, F1 score, mean intersection over union, and average path length similarity, a specialized metric specifically designed to evaluate topological continuity in network-like linear structures. On the Transmission Towers and Power Lines dataset, ESAP-SAM achieved ninety-one point zero two percent precision, eighty-five point eight eight percent recall, eighty-eight point three seven percent F1 score, eighty-two point four three percent mean intersection over union, and eighty-one point five six percent average path length similarity. On the Power Line Dataset, the framework attained ninety point six four percent precision, eighty-four point eight six percent recall, eighty-seven point six five percent F1 score, eighty-four point three four percent mean intersection over union, and eighty-one point nine eight percent average path length similarity. Across both benchmarks, ESAP-SAM ranked first across all five evaluated metrics against nine established baselines, including UNet, PSPNet, DeepLabv3+, Mask R-CNN, native SAM, CoANet, PLNet, HMMEN, and SFFPLDN, demonstrating that targeted structural adaptation yields simultaneous improvements in regional overlap and spatial path connectivity.
Detailed ablation experiments confirmed the distinct functional contributions of each newly introduced module within the complete segmentation pipeline. On the Transmission Towers and Power Lines dataset, native unadapted SAM achieved seventy-nine point two two percent precision, seventy point three seven percent recall, seventy-four point five three percent F1 score, seventy-eight point two zero percent mean intersection over union, and seventy-one point four five percent average path length similarity. Incorporating the Efficient Multiscale Adapter alone produced the largest individual recall and topological improvements, lifting recall by eight point five eight percentage points to seventy-eight point nine five percent and path similarity by six point six seven percentage points to seventy-eight point one two percent. Deploying the Hybrid Prompt encoder independently elevated precision to eighty-eight point one five percent, while deploying the Boundary-Refinement Attention module alone yielded the highest individual precision among isolated components at eighty-nine point five five percent. Combining all three components provided the strongest overall performance, lifting overall recall by fifteen point five one percentage points and average path length similarity by ten point one one percentage points over baseline SAM.
Evaluation of computational complexity confirmed that ESAP-SAM maintains high operational efficiency suitable for automated aerial surveys. The full model encompasses ninety-five point five two million total parameters, of which only five point eight zero million parameters, approximately six point zero seven percent, are trainable, thereby drastically curtailing optimization overhead during domain adaptation. Total floating-point operations reached four hundred sixteen point five zero GFLOPs, representing an increase of only four point five zero GFLOPs over native SAM, while per-image inference latency was measured at forty-eight point zero zero milliseconds on the test hardware. Although lightweight specialized models such as PLNet operated with lower latency at twenty point eight four milliseconds, ESAP-SAM operated substantially faster than classical segmentation architectures like PSPNet and DeepLabv3+ while delivering superior structural continuity. The authors noted that future investigations must examine cross-sensor transferability, validate performance under simulated or real severe weather conditions such as fog and snow, and explore model quantization or knowledge distillation to adapt the framework for edge deployment aboard lightweight aerial drones.
Subject of Research: Automated segmentation of power-grid facilities in aerial imagery using adapted foundation models
Article Title: ESAP-SAM: a power-grid facility segmentation model integrating multiscale adaptation and boundary refinement
Article References: Ye, R., He, Y., Chen, G., Xie, C., Zhang, W., & Pu, Y. (2026). ESAP-SAM: a power-grid facility segmentation model integrating multiscale adaptation and boundary refinement. Frontiers in Remote Sensing, 7, Article 2019246. https://doi.org/10.3389/frsen.2026.2019246
Image Credits: AI Generated
DOI: 10.3389/frsen.2026.2019246
Keywords: Segment Anything Model, power-grid segmentation, transmission lines, unmanned aerial vehicles, remote sensing, computer vision, deep learning, boundary refinement, multiscale adaptation, average path length similarity, TTPLA dataset, Power Line Dataset, Sobel gradients, aerial inspection, parameter-efficient fine-tuning, image segmentation, Vision Transformer
Cite Scienmag News
Blake Davidson. (November 23, 2026). Adapted Foundation Model Improves Aerial Power Grid Segmentation and Wire Continuity. Scienmag. https://scienmag.com/adapted-foundation-model-improves-aerial-power-grid-segmentation-and-wire-continuity/
Blake Davidson. "Adapted Foundation Model Improves Aerial Power Grid Segmentation and Wire Continuity." Scienmag, 23 November 2026, https://scienmag.com/adapted-foundation-model-improves-aerial-power-grid-segmentation-and-wire-continuity/. Accessed 28 November 2026.
Blake Davidson. "Adapted Foundation Model Improves Aerial Power Grid Segmentation and Wire Continuity." Scienmag. November 23, 2026. https://scienmag.com/adapted-foundation-model-improves-aerial-power-grid-segmentation-and-wire-continuity/








