| Literature DB >> 34083927 |
Thanida Sananmuang1, Kanchanarat Mankong2, Suppawiwat Ponglowhapan3, Kaj Chokeshaiusaha1.
Abstract
BACKGROUND AND AIM: Fetal biparietal diameter (BPD) is a feasible parameter to predict canine parturition date due to its inverted correlation with days before parturition (DBP). Although such a relationship is generally described using a simple linear regression (SLR) model, the imprecision of this model in predicting the parturition date in small- to medium-sized dogs is a common problem among veterinarian practitioners. Support vector regression (SVR) is a useful machine learning model for prediction. This study aimed to compare the accuracy of SVR with that of SLR in predicting DBP.Entities:
Keywords: biparietal diameter; dog size; prediction accuracy; support vector regression
Year: 2021 PMID: 34083927 PMCID: PMC8167531 DOI: 10.14202/vetworld.2021.829-834
Source DB: PubMed Journal: Vet World ISSN: 0972-8988
Figure-1Experimental flowchart. Maternal weight and fetal biparietal diameter (BPD) data were collected from a local animal hospital. Training datasets and testing datasets were generated for training support vector regression (SVR) models and testing their performances comparing to those acquired from conventional simple linear regression (SLR) models. The total of 3 SVR models was obtained as follows: Radial basis function SVR (Rbf SVR), linear SVR, and polynomial SVR. Predicted DBPs of testing datasets were calculated from trained SVR models and conventional SLR models. Accuracy among these models was compared using bootstrap coefficient of determination (R2), mean absolute error (MAE), and mean squared error (MSE) scores acquired among regression models.
Python and R packages.
| Programming | Packages | Usages |
|---|---|---|
| Python3 | matplotlib | Distribution plot and graph plot |
| numpy | Data array management; R2, MAE, and MSE calculation | |
| optunity | SVR parameter optimization | |
| pandas | Dataframe management | |
| sklearn | Model fitting and prediction |
Models and corresponding parameters used in this study.
| Model | Abbreviation | Optimized parameters | |
|---|---|---|---|
| Simple linear regression | SLR | Small-sized dog | [ |
| Medium-sized dog | [ | ||
| Support vector regression using radial basis function | Rbf SVR | [ | |
| Support vector regression using linear function | Linear SVR | [ | |
| Support vector regression using polynomial function | Polynomial SVR | [ |
coef=Coefficients for the linear regression,
inter=Intercept for linear regression,
C=Regularization parameter,
gamma=Kernel coefficient,
coef0=Independent term,
degree=Degree of the polynomial kernel function
Figure-2Scatter plot of testing datasets. Days before parturition (DBP) values acquired from testing datasets were plotted with their corresponding biparietal diameter (BPD) (a) and maternal weight (b). The red dots represented values acquired from small-sized bitches while the green ones represented those of medium-sized bitches.
R2, MAE and MSE scores.
| Model | [ | [ | [ |
|---|---|---|---|
| Small-sized bitch | |||
| SLR | −0.17±0.58 | 2.50±0.24 | 8.02±1.60 |
| Linear SVR | 0.95±0.03 | 1.12±0.11 | 1.61±0.29 |
| Polynomial SVR | 0.95±0.03 | 1.13±0.11 | 1.68±0.30 |
| Rbf SVR | 0.85±0.07 | 1.50±0.15 | 2.91±0.47 |
| Medium-sized bitch | |||
| SLR | −0.18±0.59 | 2.49±0.23 | 8.03±1.52 |
| Linear SVR | 0.95±0.02 | 1.12±0.11 | 1.62±0.29 |
| Polynomial SVR | 0.95±0.03 | 1.13±0.11 | 1.69±0.29 |
| Rbf SVR | 0.85±0.07 | 1.50±0.14 | 2.91±0.47 |
R2=Coefficient of determination,
MAE=Mean absolute error,
MSE=Mean squared error
Post hoc Tukey HSD results.
| Compared models | p-value | |||
|---|---|---|---|---|
| Small-sized bitch | R2 score | MAE score | MSE score | |
| Model 1 | Model 2 | |||
| SLR | Linear SVR | 0.001 | 0.001 | 0.001 |
| SLR | Polynomial SVR | 0.001 | 0.001 | 0.001 |
| SLR | Rbf SVR | 0.001 | 0.001 | 0.001 |
| Linear SVR | Polynomial SVR | 0.900 | 0.300 | 0.276 |
| Linear SVR | Rbf SVR | 0.001 | 0.001 | 0.001 |
| Polynomial SVR | Rbf SVR | 0.001 | 0.001 | 0.001 |
| SLR | Linear SVR | 0.001 | 0.001 | 0.001 |
| SLR | Polynomial SVR | 0.001 | 0.001 | 0.001 |
| SLR | Rbf SVR | 0.001 | 0.001 | 0.001 |
| Linear SVR | Polynomial SVR | 0.900 | 0.402 | 0.202 |
| Linear SVR | Rbf SVR | 0.001 | 0.001 | 0.001 |
| Polynomial SVR | Rbf SVR | 0.001 | 0.001 | 0.001 |
Figure-3Simple linear regression (SLR) and support vector regression (SVR) plot. The predicted values generated by SLR, linear SVR, and polynomial SVR models were presented by different line types as the legend indicated. The radial basis function SVR was excluded for figure’s simplicity. The lines were plotted against scatter plots of days before parturition (DBP) versus biparietal diameter (BPD) (a) and DBP versus maternal weight (b). Erroneous DBP predicted by SLR in small-sized bitches (red dots) was obviously noticeable.