Skip to main content
. 2026 Jun 4;26(11):3582. doi: 10.3390/s26113582
Algorithm 2 Validation-Tuned Caption-Mediated Late Fusion
  • Input: reranked candidate list πc(0), case-caption text g(c), disease caption bank h(d), candidate weight set W.

  • Output: final ranked list πc.
    1. For each candidate disease d∈πc(0), compute the caption-overlap score simg(c,d) using Equation (8).
    2. Min–max normalize the BM25, classifier, dense-retrieval, reranker, and image scores within case c.
    3. For each candidate weight vector w∈W, compute validation-set rankings with Equation (9).
    4. Select the weight vector that maximizes the objective in Equation (10) on the validation split.
    5. Apply the selected weights to the validation and test candidates and sort diseases by sfinal(c,d).