Skip to main content
. 2022 Mar 22;22(Suppl 5):622. doi: 10.1186/s12859-022-04611-3

Fig. 5.

Fig. 5

The process of the semantics similarity calculation between diseases “lupus erythematosus, systemic” and “acne vulgaris”. (1) Construct their own directed acyclic graphs according to the rules; (2) Calculate the contribution of various diseases (nodes) to “lupus erythematosus, systemic” and “acne vulgaris” in the directed acyclic graph, of which the lowest level is “lupus” “erythematosus, systemic” and “acne vulgaris” contribute 1 to themselves, and the parent node decays layer by layer, “autoimmune diseases”, “connective tissue diseases”, etc. contribute 0.5, and so on; (3) Calculate “lupus erythematosus, systemic” and “acne vulgaris” constitute the total contribution of directed acyclic graphs. DVlupus erythematosus,systemic=1+2×0.5+2×0.25=2.5, DVacne vulgaris=1+2×0.5+1×0.25+1×0.125=2.375. Similaritylupus erythematosus,systemic,acne vulgaris=0.25+0.1252.5+2.375=0.0769