Introduction
The wide spread of information technologies led to the increase of huge data storage warehouses. The random existence of data requires finding techniques, methods and means to extract information and knowledge from it and harness it in solving issues and making decisions. Modern applications depend on making the computer simulate human thinking in solving many problems without being explicitly programmed, this is what is known as machine learning [1,2]. Many machine learning algorithms have emerged, among the most important and common of these algorithms is the support vector machine algorithm [3]. The support vector machine algorithm is one of the statistical methods that have received great attention, presented by the scientist Vladimir Vabenek in 1995, and it is a learning algorithm by a supervisor The support vector machine algorithm has successful applications in solving many complex real-world problems, including: pattern recognition, neural and medical image analysis, computer vision, robotics, computer security, text and image classification, data retrieval, bioinformatics, self-driving cars, biodiversity analysis, and the stock market [4]. One of the most important applications that made the SVM algorithm popular is handwritten digit recognition as it gave greater accuracy compared to artificial neural networks. Based on the wide applications of the support vector machine algorithm and since the kernel is the backbone on which the support vector machine algorithm is based, we find many research that presented studies to develop this algorithm and solve its problems. [5] presented a new kernel for the SVM algorithm by assembling the Chebchev kernel with the Gaussian kernel to classify regular data on the range [-1,1]. [6] improved the SVM algorithm by merging the Chebyshev kernel with the Hermite kernel, as it gave better results in terms of fewer support rays and faster classification speed. [7] presented a support vector machine with an orthogonal legender kernel and demonstrated its significant role in avoiding duplication of features in space Features, however, the presence of neutral elements affecting decision-making was considered an open issue until the scientist Florentin Samarandakeh presented the nitrosophic logic as a generalization of the fuzzy logic by adding a new component to the degrees of organic and inorganic, which is the degree of indeterminacy [8,9,10,11,12,13,14, 15,16,17,18,19,20] and accordingly [21] studied the support vector machine according to the nitrosophic logic. Although the support vector machine algorithm was studied according to the nitrosophic logic, the study was limited to linearly separable data. Missing values were also processed depending on the average in the formation of neutrosophic groups, but the obtained values were far from their neighbors in the same column.
2.
Discussion
In [21] the support vector machine was studied according to the nitrosophic logic. However, this study of the support vector machine algorithm according to the nitrosophic logic was limited to linearly separable data. Missing values were also processed depending on the average in the formation of nitrosophic groups, and the obtained values were far from their neighbors in the same column.
In this paper, we study the support vector machine algorithm according to the neutrosophic logic in the case of non-linear separation of data using the orthogonal legender kernel. We presented a method to treat the missing values based on the inverse Lagrangian interpolation in the formation of neutrosophic groups, as we applied the proposed method to data used in [21]. The results we obtained were as shown in the following table:
We conclude that the missing values that we obtained are better than the results of the method used in [21], because each missing value that we obtained, shown in yellow above, was very close to its neighbors in the same column, unlike the missing values that were created by [21], as it was very far from the values of We formulated a support vector machine algorithm with an orthogonal Legender kernel according to neutrosophic logic and inverse Lagrange interpolation. We applied the developed algorithm to breast cancer data that we obtained from the Statistics Department of Al-Bayrouni Hospital in Damascus, which are shown as follows.:
id diagnosis radius_mean texture_mean perimeter_mean area_mean \ 0 842302 M 17.99 10.38 122.80 1001.0 1 842517 M NaN 17.77 132.90 1326.0 2 84300903 M 19.69 21.25 130.00 1203.0 3 84348301 M 11.42 20.38 77.58 386.1 4 84358402 M 20.29 14.34 135.10 1297.0 .. ... ... ... ... ... ... 564 926424 M 21.56 22.39 142.00 1479.0 565 926682 M NaN 28.25 131.20 1261.0 566 926954 M 16.60 28.08 108.30 858.1 567 927241 M 20.60 29.33 140.10 1265.0 568 92751 B 7.76 24.54 47.92 181.0 smoothness_mean compactness_mean concavity_mean concave points_mean \ 0 0.11840 0.27760 0.30010 0.14710 1 0.08474 0.07864 0.08690 0.07017 2 0.10960 0.15990 0.19740 0.12790 3 NaN 0.28390 0.24140 0.10520 4 0.10030 0.13280 0.19800 0.10430 .. ... ... ... ... 564 0.11100 0.11590 0.24390 0.13890 565 0.09780 0.10340 0.14400 0.09791 566 0.08455 0.10230 0.09251 0.05302 567 0.11780 0.27700 0.35140 0.15200 568 0.05263 0.04362 0.00000 0.00000 ... texture_worst perimeter_worst area_worst smoothness_worst \ 0 ... 17.33 184.60 2019.0 0.16220 1 ... 23.41 158.80 1956.0 0.12380 2 ... 25.53 152.50 1709.0 0.14440 3 ... 26.50 98.87 567.7 0.20980 4 ... 16.67 152.20 1575.0 0.13740 .. ... ... ... ... ... 564 ... 26.40 166.10 2027.0 0.14100 565 ... 38.25 155.00 1731.0 0.11660 566 ... 34.12 126.70 1124.0 0.11390 567 ... 39.42 184.60 1821.0 0.16500 568 ... 30.37 59.16 268.6 0.08996 compactness_worst concavity_worst concave points_worst symmetry_worst \ 0 0.66560 0.7119 0.2654 0.4601 1 0.18660 0.2416 0.1860 0.2750 2 0.42450 0.4504 0.2430 0.3613 3 0.86630 0.6869 0.2575 0.6638 4 0.20500 0.4000 0.1625 0.2364 .. ... ... ... ... 564 0.21130 0.4107 0.2216 0.2060 565 0.19220 0.3215 0.1628 0.2572 566 0.30940 0.3403 0.1418 0.2218 567 0.86810 0.9387 0.2650 0.4087 568 0.06444 0.0000 0.0000 0.2871 fractal_dimension_worst Unnamed: 32 0 0.11890 NaN
We note that the previous data contains missing values shown above in red color NaN, we processed this data by inverse Lagrangian interpolation and then trained a support vector machine algorithm with orthogonal Legender kernels on this data and got better results than the traditional algorithm. The results are represented in the following criteria (precision , recall, f1-score, accuracy)
3. Performance Measures i.
precision Precision represents the ratio of the relationship of well-expected positive cases to overall expected positive cases. [22] ii. recall This is the magnitude relation of the properly expected positive notes to any or all operations within the actual class i.e. true positive rate. The confusion matrix is employed to assess sensitivity and is mathematically assessed as [23] iii. f1-score The F1 score is a comprehensive calculation of model accuracy that blends recall and accuracy[22].
iv. Accuracy It is a parameter that tests the methodβs capacity by accurately calculating the proportion of cases predicted from all cases. ACC is mathematically expressed as follows [24]
Four major components are used to generate the confusion matrix
TP: It stands for values that are classified correctly and belong to positive values.
TN: It stands for values that are classified as true and belong to negative values.
FP: It stands for values that are incorrectly classified and belong to positive values.
FN: It stands for values that are incorrectly classified and belong to negative values.
2-Legendre polynomials
2-1 Orthogonal boundaries [25]
The set of functions π0, π1, β¦ , ππ is orthogonal to the domain [a,b] ; a,bβR with respect to the weight function w(x) if the following is true
2-2 The weight function [25]
The function h(x) is a weight function on [a,b] if and only if it satisfies the following:
h(x) is continuous -1
2-3 Basic properties of Legendre polynomials[25]
2-4 The Kernel [26]
It is a function that measures the distance between the training sample, that is, between the input points, and this kernel can deal with nonlinearly issues.
2-5 orthogonal legendar kernel [25]
The Legendar kernel is a series of Legendar bounds orthogonal to the domain [-1,+1] with weight function β(π₯) = 1 , each of which can be obtained in the form:
The following iterative relation connecting the Legendar bounds is obtained:
4. Inverse Lagrangian interpolation [31,32] Inverse interpolation is to find the value of s corresponding to a given value of y of a given function in tabular form as well.
We know that the interpolation limits in Newton's direct method are given in terms of progressive differences in the form
Where
We calculate q from this relationship, so we will adopt the method of successive approximations by writing the relationship in the form:
Then write the successive approximations of the relationship
So we solve the equation with respect to q we find
We take π0 as an initial approximation to the figure
And after finding the ππ that achieve the required accuracy, which makes |ππ βππ β1| < π
Where Ξ΅ is the required accuracy, we adopt π= ππ , then we find s from the relationship
5. Formation of the neutrosophic data set Let π= (π₯1, π₯2, π₯3, β¦ , π₯π)π be the set of features for binary classification data, since when the data falls on the decision limit it is difficult for us to classify them, and in order to solve the problem of the data located on the decision limit we form the nitrosophic data set g that It is a generalization of the classical and fuzzy groups. The degree of neutrality was introduced and added to the nitrosophic group. Accordingly, the nitrosophic group was defined as < π, πΌ, πΉ>, as each element of the previous group is denoted by the form [21]:
i: represents neutrality, t: represents the degree of organicity, f: represents the degree of inorganicity, t,i,f are real numbers of T,I,F, respectively.
As we know that one of the disadvantages of the SVM algorithm is that it is very sensitive to outliers, and to solve this problem, we reformulated the nitrosophic group for the input samples based on the distances between the samples.
The neutrosophic group helps solve the problem of outliers when combined with the reformatted SVM.
And using the same previous symbols that express the data representation, we can know the input samples associated with the nitrosophic group with a set of points as follows:
For the set of points on the line π¦= 1
For the set of points on the line y = -1
where π + is the inverse Lagrangian interpolation of the data set on the line π¦= 1
Where π β is the inverse Lagrangian interpolation of the data set on the line π¦= β1 where π πππ is the inverse Lagrangian interpolation of the whole data set.
s is calculated as in stage 2.
6. Support vector machine algorithm with orthogonal legend kernel according to the nitrosophilic group In this research, we categorized the points that are distributed uniformly over the range [-1,1] using the legendar kernel function orthogonal to the input. We were able to achieve more accurate results with fewer support beams. By adding a neutrosophilic value to determine the degree of belonging of each entry to the desired variety, the set of training points became as follows [21,27,28,29,30]
We are looking for the best super surface that classifies points into two classes. Adding the neutrosophilic value g, then the problem becomes:
where C is a qualitative constant associated with g.
And the Lagrangian equation becomes:
To search for the optimal solution, we derive with respect to π€, π, ππ
We find the question of optimization:
within the terms βπ
After we finish the algorithm training phase, any new input is tested by applying the following sign function:
Thus, any new input is classified into its appropriate output.
7.
Conclusion and results:
In this research, we presented a study to classify breast cancer by obtaining study data from Al-Bayrouni Hospital. The data we used was distorted and contained abnormal and missing values.We corrected and processed the data through nitrosophic logic and inverse Lagrangian interpolation, and then we formulated a support vector machine algorithm with two kernels. Legender orthogonal according to the nitrosophic logic, and we trained it on the data, so the result was that our proposed algorithm is superior to the classical support vector machine algorithm. We were able to correlate the inputs of this algorithm, which is calculated based on the
precision recall f1-score support 0 0.97 0.99 0.98 72 1 0.98 0.95 0.96 42 accuracy 0.97 114 macro avg 0.97 0.97 0.97 114 weighted avg 0.97 0.97 0.97 114 Confusion matrix: [[71 1] [ 2 40]]