---
title: "R2V-MIF: Rule-to-Vector Contrastive Learning and Multi-channel Information Fusion for Therapy Recommendation"
authors:
  - "Nengjun Zhu"
  - "Jieyun Huang"
  - "Jian Cao"
  - "Liang Hu"
  - "Zixuan Yuan"
  - "Huanjing Gao"
doi: "10.24963/ijcai.2024/291"
url: "https://ijcai.org/proceedings/2024/291"
pdf: "https://ijcai.org/proceedings/2024/0291.pdf"
venue: "Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence"
year: 2024
pages: "2634-2641"
track: "Main Track"
keywords:
  - "Data Mining: DM: Recommender systems"
  - "Data Mining: DM: Mining heterogenous data"
  - "Multidisciplinary Topics and Applications: MTA: Health and medicine"
---

# R2V-MIF: Rule-to-Vector Contrastive Learning and Multi-channel Information Fusion for Therapy Recommendation

Nengjun Zhu, Jieyun Huang, Jian Cao, Liang Hu, Zixuan Yuan, Huanjing Gao

*Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence*, pages 2634-2641. DOI: [10.24963/ijcai.2024/291](https://doi.org/10.24963/ijcai.2024/291)

## Abstract

Integrating data-driven and rule-based approaches is crucial for therapy recommendations since they can collaborate to achieve better performance. Medical rules, which are chains of reasoning that can infer therapies, widely exist. However, their symbolic and logical forms make integrating them with data-driven modeling technologies hard. Although rare attempts have indirectly modeled rules using data that supports them, the poor generalization of medical rules leads to inadequate supporting data and thus impairs the benefit of medical rules. To this end, we propose R2V-MIF, which fills the gap by rule-to-vector contrastive learning (R2V) and multi-channel information fusion (MIF). R2V is a data-free module and utilizes a hypergraph, including condition and result nodes, to instantiate the logic of medical rules. Each rule is reflected in the relations between nodes, and their representations are determined through contrastive learning. By taking rule representations as a bridge, MIF integrates the knowledge from medical rules, similar neighbors, and patient contents, and then recommends therapies. Extensive experiments show that R2V-MIF outperforms the baselines in several metrics using real-world medical data. Our code is available at https://github.com/vgeek-z/r2vmif.

## Full text

## 1 Introduction

Devising a therapy recommendation system (TRS) is hot currently since it helps medical professionals make a more proper treatment plan for patients [Zhu et al., 2023]. Datadriven and rule-based approaches are two typical types of TRS. The former is good at learning potential knowledge behind data using elaborate models [Zhu et al., 2020; Min et al., 2022] but requires high-quality data. While the latter is authoritative and explainable and can avoid outrageous recommendations, but it has poor generalization. Thus, a combination of them is wise as it can inherit the advantages from both of them and boost their collaborations.

∗Corresponding author.

Figure 1: A snippet of medical rules and its hypergraph.

![Image](https://ijcai.org/proceedings/2024/fulltext/291/image_000000_7373865558cb1ef44ece14409e697176edaf8dd4583881d3c86d59d8665cc7ae.png)

However, existing TRSs rarely integrate data-driven and rule-based approaches due to their incompatible paradigm. Specifically, the medical rules from guidelines are chains of reasoning that can infer therapies independently as shown in Figure 1. Their symbolic and logical forms make integrating them with data-driven modeling technologies hard. To overcome this issue, the work in [Zhu et al., 2020] bypassed the joint modeling mechanism and proposed a heuristic collaborative strategy, i.e., filtering out the therapies that are recommended by data-driven approaches and violate medical rules. However, the strategy works only when the patient's situation matches a medical rule. Besides, DeepCtrl [Seo et al., 2021] views supporting data, which matches the rules, as a substitution, and then applies a partial order modeling strategy on the substitution to learn rules indirectly. Obviously, the amount of supporting data could affect the modeling performance.

Although these efforts have a good try to integrate datadriven and rule-based approaches, their performance still suffers the following challenges: 1) Poor generalization of medical rules. As aforementioned, the existing approaches require the target patient to match at least one medical rule or the target rule to have sufficient supporting data. However, the medical rules can only apply to minimal cases in practice, i.e., most patients can't obtain a recommended therapy through medical rules, and most medical rules have very limited supporting data. 2) Complicated collaboration over medical rules. Existing approaches usually consider medical rules independently. However, the complicated collaboration over different medical rules exists and it can help promote medical rules' generalization. For instance, the most common preconditions of medical rules are sometimes enough to infer a result. By contrast, the missing of some insignificant preconditions might have a tiny effect on rule inference.

To this end, we propose R2V-MIF for therapy recommendations via rule-to-vector contrastive learning (R2V for short) and multi-channel information fusion (MIF for short). R2V utilizes a hypergraph shown as the right part of Figure 1 to organize medical rules since it can well instantiate the logic of medical rules. For instance, the hypergraph has two types of nodes, where the condition node represents an attributerelation-value tuple such as "er &lt; 1", and the result node represents a therapy item such as "ec-t". Then, each hyperplane is associated with a rule, and the complicated collaboration over medical rules is reflected in the relations between nodes and hyperplanes. By doing so, contrastive learning can be applied to learn node representations, aiming at pulling the nodes inside a hyperplane close and pushing the nodes from different hyperplanes away. Besides, a graph convolutional network (GCN) and a path-based attention mechanism are applied to aggregate neighbor information. Since R2V learns the logic of medical rules directly using the hypergraph, it is a sample-free module and thus can avoid the influence of data limitations.

By taking rule representations from R2V as a bridge, MIF is proposed to integrate the knowledge from three channels: medical guidelines, similar neighbors, and patient contents. Specifically, in the guideline channel (GC), a representation is modeled for a patient by summarizing their matched condition nodes. It thus promotes the generalization of medical rules by extending a binary relation between patients and rules (i.e., matching or not) to continuous scales (i.e., the similarity between their representations). In the neighbor channel (NC), the patient representation fromGC is further utilized to query similar patients, and then their therapy information is used for reference. In the content channel (CC), instead of transforming the content of patients into the rule representation space, MIF handles them directly to inherit the pure data-driven ability. Finally, the information from the three channels is adaptively fused for therapy recommendations.

Our contributions are summarized: 1) We propose a novel R2V-MIF, which integrates data-driven and rule-based approaches by simultaneously modeling the information from medical guidelines, similar neighbors, and patient contents for therapy recommendations. 2) We devise a new rule encoding method, i.e., R2V, which promotes the generalization of medical rules and supports data-driven approaches more flexibly. 3) We conduct extensive experiments to evaluate our approach, and the performance is superior to baselines.

## 2 RelatedWork

Incorporating rules for a data-driven approach is popular in many domains, such as retail and healthcare [Seo et al., 2021; Wu et al., 2023]. Recent works frequently considered two types of rules: 1) the ones that can only provide some indirect knowledge assisting the data-driven approach in finishing a task, i.e., classification, and 2) the other ones that can infer a result independently without a data-driven approach.

In the first branch, models [Yang et al., 2021; Shang et al., 2019] usually view the rules as auxiliary or constraint information. The contribution of these rules is limited for the final task compared to their partner, i.e., a data-driven approach. For example, MKHAN [Zhang et al., 2019] uses a knowledge graph (KG) containing external regulations to enhance the interpretability of medical question answering (QA). But KG can't conduct QA tasks independently. Besides, the alreadyknown drug interaction is considered as constraint rules in [Ren et al., 2022]. Although it can restrain the model from recommending drugs having a negative interaction, it cannot determine a drug for patients directly. Similarly, the work in [Zheng et al., 2020] treated the position constraints as descriptive rules, e.g., "a lesion must be attached to tissues", and proposed a mathematical encoding to transform descriptive knowledge. However, rules are treated as a regularized item, which can only influence the final task indirectly. Most current research falls into this branch since medical domains have abundant such scattered prior knowledge.

In the second branch, the decision rules are more informative and can act as an independent agent. They significantly influence the task if combined with a data-driven approach. For example, the authors [Zhu et al., 2020] used the inferred results from an authoritative medical guideline which is a set of decision rules, to a data-driven approach for recommendation correction. It is a filtering strategy and ensures the recommended therapies from a data-driven approach do not violate the authoritative guidelines. The cooperation is rough and requires vast rules to cover as many cases as possible. Besides, DeepCtrl [Seo et al., 2021] is a fusion framework that encodes decision rules and data simultaneously. It assumes a partial order "≻" between a sample x+, which completely matches a rule, and a sample x-, which partially matches the rule. If the rule infers a result y, the former is more likely to be categorized to y than the latter, i.e., yx+ ≻ yx-, where xis generated for x+ using a perturbation technology. Then, a partial order loss and a conventional classification loss are combined for training. Since "≻" is defined on sample relations, a rule can only be considered when at least one sample matches it perfectly.

Our work follows the second branch, and the main difference is that our approach incorporates a sample-free rule encoding module. The learned rule embeddings can be freely applied to any other data-driven approach to boost their collaborations. Besides, based on rule embeddings, we easily fuse multi-channel information, including a data channel, to enhance therapy recommendations.

## 3 R2V-MIF Framework

In this section, we first describe the framework of our proposed R2V-MIF, i.e., a therapy recommendation approach based on rule-to-vector contrastive learning and multichannel information f usion, and then introduce its two main modules, i.e., R2V and MIF, in detail.

## 3.1 Overview

Our R2V-MIF comprises two main modules, i.e., R2V and MIF, shown as Figure 2. R2V first constructs a medical guideline hypergraph according to medical rules. Based on the hypergraph, neighbor aggregating and contrastive learning are applied to learn the representation of condition nodes, result nodes, and rules. Then, building upon the representations, MIF models patient information from guidelines, neighbors, and contents. The guideline channel evaluates the coincidence degree between patient information and medical rules; The neighbor channel queries the similar patients in the rule representation space and refers to neighbors' results; The content channel models patient information directly without considering medical rules. Finally, the three channels are fused to make therapy recommendations. Next, we introduce each module in detail.

Figure 2: The overall framework of our proposed R2V-MIF.

![Image](https://ijcai.org/proceedings/2024/fulltext/291/image_000001_44b93e936a0eb43ab6ec43eed766685d6b1c0b7e6d1505b53e05f31154e4d31f.png)

## 3.2 R2VModule

## Medical Guideline Hypergraph Construction

The first step of R2V is to construct a hypergraph for rules from medical guidelines. The hypergraph can better describe medical rules including their conditions and results, and model their relationship. Next, we declare some definitions first.

Definition 1 (Condition and Result Node) Several conditions and one result constitute a medical rule. For example, a1 ∧ a2 inf er ---→ ti is a rule, where a1 and a2 are two conditions, which are attribute-relation-value tuples, e.g., "er ≥ 1" and "tumor = 1a", and ti is a result, which is a recommended therapy item, e.g., "ec-t". Accordingly, we define two types of nodes, i.e., condition nodes and result nodes, for all medical rules.

Definition 2 (Guideline Hypergraph) The guideline hypergraph is defined by G = (V, E,R): V is a set of all condition and result nodes introduced in Definition 1; E is a set of weighted edges, and we construct them according to the following strategy: if a condition and a result exist in the same rule, there is an edge between their corresponding nodes in G, and the weight is one as default; R = {V1, V2, · · · , Vr, · · · } is a partition of nodes according to rules, where Vr is a node set of a sub-graph/hyperplane, marked by rule r, i.e., the condition and result nodes of rule r are recorded in Vr.

All medical rules are transformed into a guideline hypergraph according to Definition 2. Then, the relations between sub-graphs, i.e., rules, and between nodes, i.e., conditions and results, can be learned by hypergraph learning.

## Condition and Result Embedding

Each node xi, which can be ai for a condition node and ti for a result node, is initialized by a randomized and trainable embedding xi ∈ RK , which is a column vector. Specially, ai ∈ RK and tj ∈ RK are an embedding of ai and tj, respectively, where K is the dimensionality. Then, we utilize a GCN [Kipf and Welling, 2016] and a path-based attention mechanism to capture and enhance node connections.

Regarding GCN, the representation xGCN i , which incorporates the structural information of a graph to node xi, is defined as follows:

<!-- formula-not-decoded -->

where Ni is a set of 1-hop neighbors of node xi, wik represents the edge weight between node xi and xk, and its value is 1 in our settings, di and dk are the vertex degrees, and Θ ∈ RK×K is a trainable parameter of GCN. Thus, there is an extra condition embedding aGCN i and result embedding tGCN j according to Equ. (1).

The path-based attention mechanism (PATT) considers the path "ai ↔ tj ↔ ak", in which tj is a bridge, to enhance the relations between condition nodes. Inspired by a selfattentive mechanism [Vaswani et al., 2017; Niu et al., 2021], we treat tj as Query, and construct Key = Value = Nj as follows:

<!-- formula-not-decoded -->

Then, a fused representation t′j is generated as follows:

<!-- formula-not-decoded -->

By fusing the bridge t′j , the connection between ai and ak in the path "ai ↔ tj ↔ ak" is established as follows:

<!-- formula-not-decoded -->

Using the same way, we can obatin tPATT i by considering the path "ti ↔ aj ↔ tk". Finally, the initial representation of a condition and result node is updated by the following weighted combination:

<!-- formula-not-decoded -->

where α and β are two hyper-parameters balancing the contributions of different embeddings.

## Contrastive Learning

Contrastive learning [Hassani and Khasahmadi, 2020; Zhang et al., 2023] can be utilized to model the position of nodes in a hidden high-dimensional space. The distance between positions in the space reveals the relationship between the nodes in their graph. We thus use contrastive learning to narrow the distance between ai and tj if there exists a rule r subject to ai ∈ Vr∧tj ∈ Vr, i.e., ai and tj belong to the same sub-graph regarding rule r. By contrast, if ai and tj have no such a rule, we should push ai and tj away from each other. If two conditions are not necessary to be considered jointly in the same rule, the difference between their nodes should be increased. Besides, we also magnify the distance between result nodes. Accordingly, we construct a set of positive pairs and a set of negative pairs for contrastive learning as follows:

<!-- formula-not-decoded -->

We calculate the distance between nodes as a dot product, followed by a Sigmoid transform:

<!-- formula-not-decoded -->

where σ(·) is a Sigmoid function mapping a scalar to a (0, 1) scale. We then label a positive pair ei ∈ O+ as yi = 1, and a negative pair ei ∈ O- as yi = 0. Finally, we minimize a cross-entropy loss as follows to train node representations.

<!-- formula-not-decoded -->

Besides, we can have a rule representation r by summarizing the embedding of its condition notes.

<!-- formula-not-decoded -->

where tr is the result node of rule r. The distance between r and tr should be narrowed. Thus, we update Lrule as follows:

<!-- formula-not-decoded -->

## 3.3 MIFModule

Based on the node representations, i.e., ai and tj in Equ. (5), MIF models a patient information from the guideline channel, neighbor channel, and content channel, simultaneously.

## Guideline Channel Modeling

Regarding the target patient pi, they have a set of sparse attribute-value pairs (AVPs) denoted by

<!-- formula-not-decoded -->

where vj is an AVP, e.g., "er value = 0.1", and can be viewed as a particular case of an attribute-relation-value tuple in which "relation" is "=". Thus, vj can be utilized to match condition nodes in the guideline hypergraph. Note that the AVP "er value = 1" can also match the condition node "er value ≥ 0". Then, patient pi has a set of matched condition nodes denoted byMi = {· · · , aj, · · · } (12)

where aj is matched by vj. The size |Mi| is usually less than |Pi| since not all vj can be matched. However, as we discussed before, the matched vj usually has a higher importance as it appears in medical guidelines. Thus, we generate a representation of patient pi guided by medical guidelines.

<!-- formula-not-decoded -->

By doing so, even if the patient can't match a rule completely, medical guidelines can also contribute to the decision of therapies as long asMi is not empty.

## Neighbor Channel Modeling

The determined therapies of similar patients have great reference significance to the therapy decision of the target patient [Zhu et al., 2020]. Therefore, we devise a neighbor channel to incorporate this information. However, unlike traditional approaches, we query similar patients using condition nodes as a bridge. Specifically, for historical cases, each patient pm has a pair

<!-- formula-not-decoded -->

where tm is equal to tmj and its j is omitted for convenience. It is a result node embedding and matched by therapy item tm determined for patient pm.

Then, we query historical cases pm by evaluating their similarities to the target patient pi:

<!-- formula-not-decoded -->

where Si is the set of top-K patients, and K is tuned according to datasets; ∥ · ∥ is an L2-normalization. The therapy items of top-K most similar patients are combined to obtain a neighbor-guided representation:

<!-- formula-not-decoded -->

## Content Channel Modeling

The pGC i in Equ. (13) is formed by selecting AVPs according to medical guidelines; thus, the AVPs that do not appear in medical guidelines but are valuable are neglected. To address this issue, we incorporate a traditional content-based DPCNN [Johnson and Zhang, 2017] to model all possible patient information. DPCNN is a widely efficient deep classification method that is pyramid-shaped, and is selected as it performs well compared to others.

The AVPs of a patient are preprocessed according to attribute types. One-hot encoding is employed for a discrete attribute; continuous attributes are encoded to a denser representation by a fully connected layer network (FC). The missing value of attributes is set to 0 for alignment. Then, all outputs are concatenated, which are further fed to DPCNN to obtain a content-based representation as follows:

<!-- formula-not-decoded -->

where fc1(·), concat(·), and preproc(·) represent FC, concatenation, and preprocessing, respectively.

For an extreme situation that there is no AVP of patient pi matched by a condition node, i.e., |Mi| = 0, pCC i ensures that our approach still can provide therapy recommendations based on a pure data-driven strategy.

## Three-channel Fusion

The final representation of a patient is generated by fusing the information from the three channels.

<!-- formula-not-decoded -->

where fc2(·) is another FC.

## 3.4 Model Inference and Recommendation

The fused representation pi is utilized to generate a probability vector yi ∈ RN for therapy recommendations as follows:

<!-- formula-not-decoded -->

where N is the number of therapy items, and each dimension ˆ yi,j represents the recommendation score of therapy item tj.

In the training phase, each patient has a one-hot label vector yi, in which yi,j = 1 if tj is the ground truth, otherwise yi,j = 0. We then minimize the following cross-entropy loss to train model parameters.

<!-- formula-not-decoded -->

<!-- formula-not-decoded -->

Figure 3: The hypergraph whose hyperplane is omitted.

![Image](https://ijcai.org/proceedings/2024/fulltext/291/image_000002_6bc8f9994e859e5d658ec4ae61a5e94e7295219379bed99a2f3afe46bdb3aa4e.png)

## 4 Experiment

## 4.1 Decision Rule and Dataset

We extract 23 rules for breast cancer from NCCN guidelines 1 [Gradishar et al., 2018]. Then, there are 41 unique condition nodes and 8 result nodes for constructing a medical guideline hypergraph shown as Figure 3. Each rule involves 16.43 condition nodes in average and one result node.

BCDB [Zhu et al., 2020] is a real-world medical dataset recording the physical indicators and chemotherapy items (therapies for short) of patients with breast cancer. To better analyze the effect of medical rules, we select the records with at least one attribute appearing in the rules to form our dataset. Then, the final dataset contains 2,648 records, 12 attributes, and 8 therapies. About 18.35% of records can match at least one of the above medical rules completely.

## 4.2 EvaluationMetric

We employ commonly-used Hit Rate (HR), Mean Reciprocal Rank (MRR), and Normalized Discounted Cumulative Gain (NDCG) to assess R2V-MIF and the baselines' performance.

HR is calculated as the proportion of the cases that the actual therapies are in the top-K recommendations. MRR evaluates the position of actual therapies in the recommendation list. The higher the rank of the actual therapies in the recommendation list, the higher the value of MRR. NDCG is similar to MRR but simultaneously considers the position and predicted relevance of actual therapies.

## 4.3 Baseline

We compare R2V-MIF with three typical data-driven approaches without considering medical rules, i.e., Gzip, ConvCond, and DPCNN, and two recent neural networks considering medical rules, i.e., Filter and DeepCtrl. All data-driven parts of baselines have the same data preprocessing as that in our content channel modeling.

Gzip [Jiang et al., 2023] is a simple, lightweight, and universal alternative to NNs. It comprises a lossless compressor, a compressor-based distance metric, normalized compression distance, and a neighbor classifier.

1 https://www.nccn.org/

Figure 4: Performance comparison of different approaches.

![Image](https://ijcai.org/proceedings/2024/fulltext/291/image_000003_07a56c83da8170f20c42b965f1c55560478181e692c9798128819729a817b61b.png)

Figure 5: Performance of variants of the proposed R2V-MIF.

![Image](https://ijcai.org/proceedings/2024/fulltext/291/image_000004_ed4a00954277576628de0cea4540cef9952f45a7b1e7200da1047338fe792652.png)

ConvCond [Yang et al., 2019] uses the idea of dynamic convolution to learn different convolution kernel parameters for different samples, thereby increasing its modeling ability.

DPCNN [Johnson and Zhang, 2017] is a deep pyramid neural network that emphasizes long-range associations in the text while maintaining a lower computational complexity.

Filter adopts the filtering strategy in [Zhu et al., 2020] to handle medical rules. But the difference is that we select DPCNN as a data-driven approach as that in R2V-MIF for a better comparison.

DeepCtrl [Seo et al., 2021] is a fusion framework that encodes medical rules and data simultaneously. A partial order loss and a conventional classification loss are combined for training based on a set of positive-negative sample pairs.

## 4.4 Performance Comparison

We first introduce some default settings in our experiments. For all approaches, the number of epochs and the value of batch size are tuned to 12 and 256, respectively. Since the sample size is limited and the models converge quickly, we set the learning rate to a fixed value of 0.01. Then, for our approach, we query 10 most similar cases in the neighbor channel modeling and the parameters α and β in Equ. (5) are both set to 0.33 for the best performance. Then, all approaches' performance on the BCDB dataset is shown in Figure 4. We can have three main conclusions:

1) Over the three pure data-driven approaches, i.e., Gzip, ConvCond, and DPCNN, DPCNN achieves the best performance in all situations. The improvement might come from their various network structures, which is outside the scope of our discussion. However, we thus select DPCNN as the data-driven part of our model.

2) Although on the top-1 recommendations, the performance difference of all approaches is insignificant, our performance line is on top of all baselines. Especially it greatly improves the top-2 recommendations, e.g., increasing HR@2 by about 5.15% compared to the second-best performance, i.e., Filter, and about 13.1% compared to the worst performance, i.e., ConvCond. The observation has proven the effectiveness of our framework.

3) The performance of Filter is better than that of DPCNN. The only difference between them is that the former considers medical rules, showing that it is crucial for a data-driven approach to incorporate medical rules. However, the improvement is limited since only 18.35% samples can completely match a decision rule. Besides, DeepCtrl, another approach combining rules and data, has results that are not as good as expected. As mentioned, sufficiently matched samples must be required for DeepCtrl to learn rules. By contrast, our R2VMIF is unaffected by data limitation, and the knowledge from medical rules is modeled well.

## 4.5 Ablation Study

We propose six variants to verify the channel influence on R2V-MIF by combining or eliminating different channels. The variants' performance is shown as Figure 5, where ALL

Figure 6: Parameter analysis.

![Image](https://ijcai.org/proceedings/2024/fulltext/291/image_000005_f2954cd851cdd95eaf15a829fcb3bc20678edb4b161df1dd8b8008843ef6b612.png)

represents R2V-MIF in which three channels are considered; the notation "-" represents the removal of a channel, e.g., Ours-GC indicates the guideline channel modeling is removed from R2V-MIF. Besides, GC, NC, and CC represent the variants that only keep the corresponding channel and eliminate others, e.g., GC only keeps the guideline channel.

We then have the following observations: 1) ALL outperforms others, showing the effectiveness of its structure. 2) Except ALL, GC achieves a better performance than others in most situations. That means R2V has a powerful ability to encode rules. As a result, medical rules can also infer a suitable result for the case that partially matches the rules.

## 4.6 Parameter Analysis

We analyze the parameter α and β in Equ. (5) and the number of neighbors queried in the neighbor channel, i.e., K. Others are fixed when exploring one of them. To save space, we only exhibit HR performance in different settings.

The influence of α and β is shown in Figure 6(a). The setting α : β : 1-α-β = 0.33 : 0.33 : 0.33 achieves the best performance. It is equal to combining all node embeddings by a mean operation and indicates that GCN and PATT should be involved for better embedding. The setting α : β : 1-α-β = 0.5 : 0.5 : 0 significantly decreases the HR value, indicating that PATT is important.

The impact of parameter K is shown in Figure 6(b). The best result is obtained when K is set to 6 on HR@1 and is 0.825. However, we set the value of K to 10 as default since the other metrics, e.g., HR@2, HR@3, and HR@4, achieve a great performance. That is why the top-1 performance of our approach is similar to others.

Figure 7: Cosine similarity between pre-trained nodes.

![Image](https://ijcai.org/proceedings/2024/fulltext/291/image_000006_e18d519177c8af1e77cf9077b5429efb61ffb044a1792a95d0081179254eb4e7.png)

## 4.7 Case Study

Figure 7 is a heat map 2 and shows the cosine similarity between condition and result nodes in the learned embedding space. We can observe that a condition node has various similarities to different result nodes, i.e., the condition has different importances when inferring different results. There are some other findings. For example, the condition "patho type:2" has a tiny influence on determining the result "is ct:0", but should be carefully considered when evaluating whether "scheme:8" is appropriate for a patient. Besides, the result node "scheme:13" is close to almost all condition nodes because most of them appear in the same rule.

## 5 Conclusion

In this work, we proposed R2V-MIF, which integrates datadriven and rule-based approaches for therapy recommendations. Specifically, based on the constructed medical guideline hypergraph, the relations between rules are modeled as distances in a rule representation space. Then, the information from guidelines, neighbors, and contents is fused by taking the rule representation, i.e., condition and result embeddings, as a bridge. R2V-MIF achieved excellent performance on a real-world medical dataset, proving the effectiveness of rule modeling and channel fusion. There are several directions for future work. For example, the relations between conditions and results can be elaborated further by defining more positive or negative sample types for contrastive learning. Besides, more technologies and strategies [Xu et al., 2021] to fuse multi-aspect information can be explored.

2 Generated using ChiPlot (https://www.chiplot.online/)

## Acknowledgments

This work is supported by the National Natural Science Foundation of China (No. 62202282) and the Shanghai Youth Science and Technology Talents Sailing Program (No. 22YF1413700). It is also partially sponsored by the Interdisciplinary Program of Shanghai Jiao Tong University (No. YG2024QNB05), and the Guangzhou-HKUST (GZ) Joint Funding Program (No. 2024A03J0630).

## References

1. [Gradishar et al., 2018] William J Gradishar, Benjamin An- derson, Ron Balassanian, et al. Breast cancer, nccn clinical practice guidelines in oncology. Journal of the National Comprehensive Cancer Network, 16(3):310-320, 2018.
2. [Hassani and Khasahmadi, 2020] Kaveh Hassani and Amir Hosein Khasahmadi. Contrastive multi-view representation learning on graphs. In Proceedings of the International Conference on Machine Learning, pages 4116-4126, 2020.
3. [Jiang et al., 2023] Zhiying Jiang, Matthew Yang, Mikhail Tsirlin, Raphael Tang, Yiqin Dai, and Jimmy Lin. "low- resource" text classification: A parameter-free classifica- tion method with compressors. In Findings of the Asso- ciation for Computational Linguistics, pages 6810-6828, 2023.
4. [Johnson and Zhang, 2017] Rie Johnson and Tong Zhang. Deep pyramid convolutional neural networks for text cat- egorization. In Proceedings of the Annual Meeting of the Association for Computational Linguistics, pages 562- 570, 2017.
5. [Kipf and Welling, 2016] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
6. [Min et al., 2022] Xin Min, Wei Li, Jinzhao Yang, Weidong Xie, and Dazhe Zhao. Dual-level diagnostic feature learn- ing with recurrent neural networks for treatment sequence recommendation. In Journal of Biomedical Informatics, volume 134, page 104165, 2022.
7. [Niu et al., 2021] Zhaoyang Niu, Guoqiang Zhong, and Hui Yu. A review on the attention mechanism of deep learning. Neurocomputing, 452:48-62, 2021.
8. [Ren et al., 2022] Yongjian Ren, Yuliang Shi, Kun Zhang, Xinjun Wang, Zhiyong Chen, and Hui Li. A drug rec- ommendation model based on message propagation and ddi gating mechanism. IEEE Journal of Biomedical and Health Informatics, 26(7):3478-3485, 2022.
9. [Seo et al., 2021] Sungyong Seo, Sercan Arik, Jinsung Yoon, Xiang Zhang, Kihyuk Sohn, and Tomas Pfis- ter. Controlling neural networks with rule representa- tions. Advances in Neural Information Processing Sys- tems, 34:11196-11207, 2021.
10. [Shang et al., 2019] Junyuan Shang, Cao Xiao, Tengfei Ma, Hongyan Li, and Jimeng Sun. Gamenet: Graph augmented memory networks for recommending medication combi- nation. In Proceedings of the AAAI Conference on Artifi- cial Intelligence, pages 1126-1133, 2019.
11. [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in Neural Information Processing Sys- tems, 30, 2017.
12. [Wu et al., 2023] Likang Wu, Junji Jiang, Hongke Zhao, Hao Wang, Defu Lian, Mengdi Zhang, and Enhong Chen. Kmf: knowledge-aware multi-faceted represen- tation learning for zero-shot node classification. arXiv preprint arXiv:2308.08563, 2023.
13. [Xu et al., 2021] Yuanbo Xu, En Wang, Yongjian Yang, and Yi Chang. A unified collaborative representation learning for neural-network based recommender systems. IEEE Transactions on Knowledge and Data Engineering, 34(11):5126-5139, 2021.
14. [Yang et al., 2019] Brandon Yang, Gabriel Bender, Quoc V Le, and Jiquan Ngiam. Condconv: Conditionally param- eterized convolutions for efficient inference. Advances in Neural Information Processing Systems, 32, 2019.
15. [Yang et al., 2021] Chaoqi Yang, Cao Xiao, Fenglong Ma, Lucas Glass, and Jimeng Sun. Safedrug: Dual molecular graph encoders for recommending effective and safe drug combinations. In Proceedings of the International Joint Conferences on Artificial Intelligence, pages 3735-3741, 2021.
16. [Zhang et al., 2019] Yingying Zhang, Shengsheng Qian, Quan Fang, and Changsheng Xu. Multi-modal knowledge- aware hierarchical attention network for explainable med- ical question answering. In Proceedings of the ACM In- ternational Conference on Multimedia, pages 1089-1097, 2019.
17. [Zhang et al., 2023] Yifei Zhang, Hao Zhu, Zixing Song, Pi- otr Koniusz, and Irwin King. Spectral feature augmen- tation for graph contrastive learning and beyond. In Pro- ceedings of the AAAI Conference on Artificial Intelligence, pages 11289-11297, 2023.
18. [Zheng et al., 2020] Zhiyang Zheng, Hao Yan, Frank C Set- zer, Katherine J Shi, Mel Mupparapu, and Jing Li. Anatomically constrained deep learning for automating dental cbct segmentation and lesion detection. IEEE Transactions on Automation Science and Engineering, 18(2):603-614, 2020.
19. [Zhu et al., 2020] Nengjun Zhu, Jian Cao, Kunwei Shen, Xi- aosong Chen, and Siji Zhu. A decision support system with intelligent recommendation for multi-disciplinary medical treatment. ACM Transactions on Multimedia Computing, Communications, and Applications, 16(1s):1- 23, 2020.
20. [Zhu et al., 2023] Nengjun Zhu, Jieyun Huang, Jian Cao, Xinjiang Lu, Hao Liu, and Hui Xiong. Mtirec: A medical test recommender system based on the analysis of treat- ment programs. In Proceedings of the IEEE International Conference on Data Mining, pages 898-907, 2023.
