3.1. Making Algebraic Equations for Diseases Diagnosis
In this research, we proceeded to study three infectious diseases: CCHF, bacterial meningitis, severe influenza, which have almost the same symptoms. This section aims to obtain equations for diagnosing these three diseases and prioritize their diagnosis. To this purpose, the health records of the patients who were certainly afflicted with one of these three diseases were collected. In this regard, 66 health records for CCHF, 54 health records for bacterial meningitis, and 61 health records for severe Influenza were studied and the related symptoms were extracted. Some symptoms were measured quantitatively such as fever and the others were descriptive, such as sweating, body pain, bleeding, etc. The values of 0, 0.25, 0.5, 0.75, and 1 were calculated for slight, mild, severe, and very severe based on the considered symptom severity, respectively. Then regarding the general form of these diseases equations, the related equation for each health record was written and the best correspondent equation to each set of equations was fitted.
The discussed system in this article proceeds to diagnose the best disease feature among several disease features with almost the same symptoms. This system includes 16 inputs and 3 outputs. The system inputs are x1, x2, …, x16 that each value of each shows one of the symptoms resulted from clinical examinations. For example, x1 is the variable associated with the patient’s fever, x2 is the variable for the headache and other variables are related to one of the 16 symptoms discussed. The three outputs y1, y2, y3 are related to the diagnosis of CCHF, bacterial meningitis, and severe influenza, respectively and their corresponding equations are as follows:
The function y1 is written for 66 patients with certain diagnosis of CCHF, each one is supposed to have a value of 10 for the function y1:
…
There is usually no solution for a system of 66 equations with 16 unknowns. In order to show this, we solve the system, including the first 16 equations from the system (
Equation 2). Considering that this answer does not apply to the 17th, 18th, 19th, and 20th equations of the system (
Equation 2), we conclude that this system of equations has no solution. Therefore, we find the best approximation for the unknowns
a1 through
a16 that are the best coefficients in the function
y1. To do this, we define the function f of 66 variables
y11 through
y166 as:
To obtain the best values of the variables a1 through a16, we minimize the function f. In other words, we are to solve the following nonlinear programming problem.
As such, we can convert the nonlinear problem (
Equation 4) into a linear programming problem (
11,
16,
17):
For i = 1, 2, …, 66, there exists the numbers w1i and z1i such that:
Then, by changing these variables in (
Equation 4) and rearranging the variables and constant values, this problem converts to the following linear minimization problem:
We solved the problem (
Equation 6) by using the Linprog in MATLAB software and the values
ai are obtained. Therefore, the diagnosis function of CCHF is obtained as the below:
By inserting the values of
xi ;
i = 1, 2, …, 16 resulting from the clinical examinations of a patient, we calculate
y1. The closer the value of
y1 to 10, the higher is the possibility of being infected by CCHF. To obtain the equations
y2 and
y3 in (
Equation 1) as the outputs of the diagnostic system for the diagnosis of bacterial meningitis and severe influenza, respectively, we proceed by the same process. The equation
y2 is written for 54 patients with certain diagnosis of bacterial meningitis, each one is supposed to have a value of 20 for the function
y2 and the equation
y3 is also written for 61 patients with certain diagnosis of Severe Influenza, each one is supposed to have value of 30 for the function
y3. Considering these systems and using the method discussed for CCHF, the functions
y2 and
y3 are obtained as follows:
By inserting the values of xi ; i = 1, 2, …, 16 resulting from the clinical examinations of a patient, we calculate y2 and y3. The closer the value of y2 to 20, the higher is the possibility of being infected by bacterial meningitis. Also, the closer the value of y3 to 30, the higher is the possibility of being infected by Severe Influenza.