|
Algorithm 3 HAM10000 Record to Knowledge Graph Mapping |
-
Require:
Patient record
-
1:
Example Record: (img_ID = ISIC_0024321, age = 67, gender = male, location = face, diagnosis = BCC)
-
2:
Step 1: Disease Node Selection
-
3:
▹ d → BCC
-
4:
Step 2: Risk Factor Retrieval
-
5:
▹ Returns: sun exposure, fair skin, age, male gender
-
6:
Step 3: Anatomical Site Selection
-
7:
▹ s → Face
-
8:
Step 4: Node Embedding Extraction
-
9:
▹ 32-dim vector
-
10:
▹ Mean pooling of risk factors
-
11:
▹ 32-dim vector
-
12:
Step 5: Patient-Aware KG Feature
-
13:
-
14:
return
|