Skip to main content
. 2022 Jul 13;12(7):1706. doi: 10.3390/diagnostics12071706
Algorithm 1: Pneumonia Status Prediction by Data Preprocessing and Feature Vectorization using Multi-Modal Data Analysis
  1. Input:  DRaw and IRaw, Vital signs record and CXR images of the patients.

  2.      DLabelled and ILabelled, Labelling performed by the doctors.

  3.      RInference, Inference rules with threshold specified by the doctors.

  4.      Threshold, Determines pneumonia status prediction limit.

  5. Output:  NNConf, NN model predicted confidence.

  6.       Alert, MDA-PSP system alert for discharge or no discharge within 7 days.

  7. Initialize (candidateSet 1, candidateSet 2, NNConf, CandidateFinal) =

  8. DProcessedIM, IProcessedIM = Imputation (DRaw, IRaw)

  9. DProcessedCG, IProcessedCG = Categorization (DProcessedIM, IProcessedIM)

  10. DProcessedVS = Adaptive Imputation (DProcessedCG) ⋃ DLabelled

  11. IProcessedIP = Grey-Scale (Resize (IProcessedCG)) ⋃ ILabelled

  12. RInference = Pneumonia ˄ General Ward ˄ Clinical Checkup ˄ Comorbidity

  13. If DProcessedVS is Consistent and Score (RInference) ≥ Threshold then

  14.    Feature VectorsVS, Feature VectorsIP = CNN (DProcessedVS, IProcessedIP)

  15.      candidate Set 1, candidate Set 2 = Feature VectorsVS, Feature VectorsIP

  16. else

  17.    Print “Inconsistent Data”

  18.    break

  19. candidateFinal = candidate Set 1 ⋃ candidate Set 2

  20. NNConf = Dense-BN(CandidateFinal)

  21. If NNConf ≥ Threshold then

  22.    Alert “Discharge”

  23. else

  24.    Alert “No Discharge”

  25. Return NNConf, Alert