Acta Optica Sinica, Volume. 43, Issue 13, 1310001(2023)

Lightweight Directional Transformer for X-Ray-Aided Pneumonia Diagnosis

Tao Zhou1,2, Xinyu Ye1,2、*, Fengzhen Liu1,2, and Huiling Lu3
Author Affiliations
  • 1School of Computer Science and Engineering, North Minzu University, Yinchuan 750021, Ningxia, China
  • 2The Key Laboratory of Images and Graphics Intelligent Processing of State Ethnic Affairs Commission, North Minzu University, Yinchuan 750021, Ningxia, China
  • 3School of Medical information and Engineering, Ningxia Medical University, Yinchuan 750004, Ningxia, China
  • show less
    Figures & Tables(11)
    Overall frame structure of LDTransformer
    Structure of directional Transformer. (a) Directional Transformer layer; (b) directional convolution; (c) calculation process
    Structure of lightweight convolution. (a) General convolution; (b) lightweight convolution
    Thermograms of ablation model on pneumonia X-ray
    ROC curves of each model
    P-R curves of each model
    • Table 1. Specific results of ablation experiments

      View table

      Table 1. Specific results of ablation experiments

      ModelParameter amountCalculation amountTotal time /sA /%AUC /%R /%F1 /%P /%
      Base6.96×1062.87×1091667093.44±2.193.60±2.092.69±1.694.33±1.796.04±1.8
      15.09×1062.18×1091728594.30±3.394.26±3.594.49±3.495.14±3.395.78±3.2
      24.68×1061.81×1091638195.83±2.395.63±2.296.74±2.296.47±2.396.19±2.4
      33.75×1061.27×1091556495.49±2.795.44±2.895.73±2.896.16±2.796.59±2.6
      41.26×1064.95×1081347997.22±2.097.17±2.397.41±2.197.63±1.997.85±2.0
      52.53×1053.98×1071204797.54±1.797.53±1.997.64±1.797.91±1.698.19±1.6
    • Table 2. Comparison of evaluation indices with different loss functions

      View table

      Table 2. Comparison of evaluation indices with different loss functions

      ModelA /%AUC /%R /%
      Cross entropy loss97.54±1.797.53±1.997.64±1.7
      Hinge loss1597.88±0.997.86±1.197.98±1.0
      Symmetric cross entropy loss1698.01±1.797.99±1.998.09±1.8
      Focal loss1698.41±1.998.43±2.098.31±1.9
      Class balance focal loss1998.48±1.598.51±1.798.31±1.8
      Balanced focal loss98.87±0.898.85±1.098.99±0.9
    • Table 3. Comparison results of each model in pneumonia X-ray dataset

      View table

      Table 3. Comparison results of each model in pneumonia X-ray dataset

      ModelParameter amountCalculation amountTotal time /sA /%AUC /%R /%F1 /%P /%
      EfficientNetb034.48×1041.35×1071515591.52±2.591.68±2.890.78±3.192.65±2.694.61±2.4
      MobileNetV3131.66×1066.24×1071475792.05±1.892.03±2.392.13±2.293.17±1.994.25±1.8
      GhostNet53.90×1061.48×1081539894.17±2.094.05±2.294.71±2.495.03±2.195.36±2.0
      DeiT-S82.19×1064.24×1092198692.78±3.392.63±3.693.48±3.193.85±3.294.22±3.3
      T2T-ViT-1992.14×1064.33×1092217994.62±2.694.37±2.995.84±2.495.46±2.595.09±2.5
      XCiT-S24-16T204.76×1078.95×1092514296.02±1.995.94±2.196.40±1.896.62±1.896.84±1.9
      ConvViT104.22×1059.08×1071581793.17±3.992.99±3.894.04±4.194.20±3.894.36±4.0
      Mobile-Former134.58×1069.26×1071612493.37±2.893.28±2.793.81±2.894.43±2.794.88±2.9
      Mobile-ViT145.63×1061.75×1091897895.19±2.395.19±2.396.00±2.495.27±2.394.55±2.2
      EdgeNeXt-S215.58×1069.57×1081653596.02±2.595.92±2.496.51±2.396.62±2.496.73±2.6
      NextVit-S223.18×1075.79×1092013696.75±2.196.63±2.097.30±2.297.25±2.197.19±2.0
      LDTransformer2.53×1053.98×1071178398.87±0.898.85±1.098.99±0.999.04±0.999.10±0.8
    • Table 4. Results of the first public dataset

      View table

      Table 4. Results of the first public dataset

      ModelTPR /%TNR /%A /%AUC /%
      DenseNet1211291.0087.0088.1390.00
      EfficientNetb0383.0092.0094.6495.00
      Covid-caps2390.0095.0095.0097.00
      ViT-B322396.0096.0096.0099.10
      LDTransformer98.5598.9798.7199.53
    • Table 5. Results of the second public dataset

      View table

      Table 5. Results of the second public dataset

      ModelA /%AUC /%
      CVDNet2497.20-
      AF-CAP2499.1698.80
      LDTransformer99.6399.17
    Tools

    Get Citation

    Copy Citation Text

    Tao Zhou, Xinyu Ye, Fengzhen Liu, Huiling Lu. Lightweight Directional Transformer for X-Ray-Aided Pneumonia Diagnosis[J]. Acta Optica Sinica, 2023, 43(13): 1310001

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category: Image Processing

    Received: Jan. 6, 2023

    Accepted: Feb. 21, 2023

    Published Online: Jul. 12, 2023

    The Author Email: Xinyu Ye (3303626778@qq.com)

    DOI:10.3788/AOS230447

    Topics