基于FastSAM模型的肌纤维形态快速测量系统

    System for rapid measurement of muscle fiber morphology based on the FastSAM model

    • 摘要: 肌纤维形态测量对畜牧业育种和医学领域具有重要影响。传统的方法在效率和准确性方面存在局限性,需要发展先进的计算机辅助分析技术。该研究介绍了一种基于FastSAM模型的肌纤维形态学测量方法,利用图像锐化裁切处理,精确和有效地分析肌纤维的特征,能够快速大批量地测定HE染色的肌纤维切片图像中的面积、直径等表型指标。结果表明:与传统方法相比,该方法在时间效率更高(单张图像平均处理耗时显著减少,P<0.01);测量精度与可靠性更强(分割 Dice 系数达 0.922,高 IoU 阈值下平均精确率(AP)0.514、F1 分数 0.830,均优于 EdgeSAM、MobileSAM 等主流模型;与手动测量结果高度一致,相关系数 r>0.99,P<0.01)。此外,该方法对猪 12 个不同骨骼区域及 30~170kg 不同生长发育阶段的肌纤维均具有良好适应性。研究结果为猪分子育种与肉质改良、肌纤维相关疾病的病理机制研究及骨骼肌形态学量化分析标准化方案的建立提供参考。

       

      Abstract: Muscle fibers represent the fundamental structural units of skeletal muscle, and their morphology is closely linked to functional performance, adaptability to mechanical stress, and quality traits in both biomedical and agricultural contexts. During resistance training, skeletal muscle experiences mechanical tension that induces micro-damage, followed by repair and remodeling processes that enlarge the cross-sectional area (CSA) of fibers. This adaptive phenomenon, often referred to as supercompensation, underlies muscle hypertrophy, strength gains, and enhanced tolerance. In livestock science, fiber number, CSA, and diameter are critical determinants of meat quality, influencing pH, tenderness, protein composition, and water-holding capacity. Smaller fibers with lower CSA are associated with improved tenderness, whereas enlarged fibers often reduce meat quality. In medical research, quantitative analysis of fiber morphology provides diagnostic markers for neuromuscular disorders, muscle atrophy, and therapeutic efficacy, with CSA reduction serving as a hallmark of cachexia and age-related degeneration. Histological evaluation of muscle fibers commonly employs Hematoxylin-Eosin (HE) staining, a cost-effective and reproducible method that enables visualization of fiber boundaries and morphology. However, manual or semi-automated quantification of fiber size and density is labor-intensive and prone to subjectivity, particularly in high-density tissue sections. Recent advances in computer vision and deep learning have introduced segmentation models such as Cellpose, StarDist, RetinaMask, and FeatureNet, which improve efficiency but remain limited in accuracy for complex muscle structures. The Segment Anything Model (SAM) has attracted attention for its zero-shot generalization, yet its computational demands hinder large-scale deployment. Lightweight derivatives such as Fast Segment Anything Model (FastSAM), Mobile Segment Anything Model (MobileSAM), and Edge Segment Anything Model (EdgeSAM) offer improved inference speed and flexibility. This study developed an automated pipeline for muscle fiber quantification based on FastSAM, which integrates a YOLOv8-segmentation backbone with optimized pre- and post-processing strategies. Pig longissimus dorsi samples across eight developmental stages were collected, fixed, embedded, sectioned, and stained with HE. Images were acquired at 10× magnification using a Zeiss upright microscope and processed through grayscale conversion, histogram equalization, and Laplacian sharpening to enhance fiber boundaries. Large images were systematically cropped into overlapping sub-regions to preserve fiber integrity, followed by batch inference on an NVIDIA L40 graphics processing unit. Post-processing included removal of noise-dominated regions, reconstruction of fiber boundaries, and calculation of CSA and Feret diameters (minimum, maximum, and averaged values). Results were standardized in COCO format to facilitate reproducibility and integration with other platforms. A web-based interface, containerized via Docker and supported by NGINX, was implemented to enable user-friendly image upload, batch processing, visualization, and data export. Comparative evaluation against SAM, MobileSAM, and EdgeSAM demonstrated superior performance of FastSAM, with higher Dice coefficient, precision, recall, and F1 score, while maintaining lower inference latency than SAM. Correlation analysis revealed strong agreement between automated and manual measurements (r > 0.99), validating the reliability of the system. Application to twelve distinct muscle groups highlighted significant heterogeneity in CSA and diameter distributions, reflecting functional specialization and fiber type composition. Developmental analysis across weight stages confirmed progressive enlargement of fibers, consistent with established growth physiology. In conclusion, the proposed FastSAM-based framework provides a robust, efficient, and accurate solution for automated quantification of muscle fiber morphology in HE - stained sections. It overcomes limitations of manual and semi-automated methods, supports high - throughput analysis, and offers standardized outputs for downstream research. While current implementation does not differentiate fiber types, integration of immunohistochemical markers and multimodal learning is expected to enhance specificity in future studies. This approach establishes a scalable platform for biomedical diagnostics, livestock breeding, and meat quality assessment, bridging computational innovation with applied muscle biology.

       

    /

    返回文章
    返回