Skip to main content

Table 6 The If–Then rules transformed from the C4.5 Trees constructed by the main topics

From: Descriptive forest: experiments on a novel tree-structure-generalization method for describing cardiovascular diseases

Main Topic

The minNumObj of Leaf Nodes at the Least PTS

The If–Then rules transformed from the C4.5 trees

ChestPainType = ASY

40

If {ChestPainType = ASY}, then consider {ST_Slope} (if {ST_Slope = Down}, then {Heart Disease = Yes}, if {ST_Slope = Flat}, then {Heart Disease = Yes}, if {ST_Slope = Up} then consider {Oldpeak} ( if {Oldpeak ≤ 0.4} then {Heart Disease = No}, if {Oldpeak > 0.4} then {Heart Disease = Yes}))

ExerciseAngina = Y

15

If {ExerciseAngina = Y} then consider {MaxHR} ( if {MaxHR ≤ 150} then {Heart Disease = Yes}, if {MaxHR > 150} then consider {Oldpeak}( if {Oldpeak ≤ 0.8} then {Heart Disease = No}, if {Oldpeak > 0.8} then {Heart Disease = Yes}))

Oldpeak > 0.85

9

If {Oldpeak > 0.85} then consider {MaxHR} ( if {MaxHR ≤ 150 then consider {Sex} ( if{Sex = M} then {Heart Disease = Yes}, if {Sex = F} then consider {ExerciseAngina} ( if {ExcerciseAngina = N} then {Heart Disease = No}, if { ExcerciseAngina = Y} then {Heart Disease = Yes})), if {MaxHR > 150} then consider {Oldpeak} ( if {Oldpeak ≤ 2.4} then consider {ExerciseAngina} (if {ExcerciseAngina = N} then {Heart Disease = No}, if {ExcerciseAngina = Y} then {Heart Disease = Yes}), if {Oldpeak > 2.4} then {Heart Disease = Yes}))

ST_Slope = Flat

5

If {ST_Slope = Flat} then consider {Sex} ( if {Sex = M} then {Heart Disease = Yes}, if {Sex = F} then consider {FastingBS} ( if {FastingBS = Yes} then {Heart Disease = Yes}, if { FastingBS = No} then consider {ExerciseAngina} (if { ExcerciseAngina = Y} then {Heart Disease = Yes}, if { ExcerciseAngina = N} then consider {RestingBP} ( if {RestingBP ≤ 146} then {Heart Disease = No}, if {RestingBP > 146} then {Heart Disease = Yes}))))

Sex = M,

ChestPainType = ASY

35

If {Sex = M, ChestPainType = ASY} then consider {ST_Slope} (if {ST_Slope = Down} then {Heart Disease = Yes}, if {ST_Slope = Flat} then {Heart Disease = Yes}, if {ST_Slope = Up} then consider {OldPeak} ( if {OldPeak ≤ 0.4} then {Heart Disease = No}, if {OldPeak > 0.4} then {Heart Disease = Yes}))

Sex = M,

ExerciseAngina = Y

7

If {Sex = M, ExerciseAngina = Y} then consider {MaxHR} ( if {MaxHR ≤ 150} then {Heart Disease = Yes}, if {MaxHR > 150} then consider {FastingBS} ( if {FastingBS = Yes} then {Heart Disease = Yes}, if {FastingBS = No} then consider {ST_Slope} (if {ST_Slope = Down} then {Heart Disease = No}, if {ST_Slope = Flat} then {Heart Disease = No}, if {ST_Slope = Up} then consider {MaxHR}( if {MaxHR ≤ 162} then {Heart Disease = Yes}, if {MaxHR > 162} then {Heart Disease = No}))))

Sex = M,

ST_Slope = Flat

2

If { Sex = M, ST_Slope = Flat} then consider {ChestPainType} ( if {ChestPainType = ASY} then {Heart Disease = Yes}, if {ChestPainType = NAP} then consider {Age} ( if {Age ≤ 44} then {Heart Disease = No}, if {Age > 44} then {Heart Disease = Yes}), if {ChestPainType = ATA} then consider {Cholesterol} ( if {Cholesterol > 245} then {Heart Disease = Yes}, if {Choleserol ≤ 245} then consider {MaxHR}( if {MaxHR ≤ 130} then {Heart Disease = Yes}, if {MaxHR > 130} then {Heart Disease = No})), if {ChestPainType = TA} then consider RestingECG( if {Resting ECG = Normal} then {Heart Disease = Yes}, {Resting ECG = ST} then {Heart Disease = Yes}, if {RestinfECG = LVH} then consider {Cholesterol} (if {Cholesterol ≤ 258} then {Heart Disease = No}, if {Choleserol > 258} then {Heart Disease = Yes})))

Sex = M

15

If ( {Sex = M}, {ChestPainType ≠ ASY}, {ExerciseAngina ≠ Y}, { ST_Slope ≠ Flat}) then consider {ST_Slope} ( if {ST_Slope = Down} then {Heart Disease = No}, if {ST_ST_slope = up} then consider {OldPeak}( if {OldPeak ≤ 0.4} then {Heart Disease = No},}( if {OldPeak > 0.4} then consider { FastingBS}( if {FastingBS = No} then {Heart Disease = No}, if {FastingBS = Yes} then {Heart Disease = Yes})))