Performance versus best-in-class gradient-boosting and classical baselines, across seven public datasets.
MathFi.ai is an end-to-end prediction service, not a model factory. In every domain below there is a specific, costly decision a client must make: approve this loan or not, investigate this claim or not, escalate this patient or not. This analysis benchmarks the MathFi.ai end-to-end platform, its Feature Refinery feature-engineering layer and its Model Crucible model builder, against five widely deployed methods (XGBoost, LightGBM, CatBoost, Random Forest and Logistic Regression) across seven public datasets, each under an identical 80/20 train and test split. Differences in results therefore reflect modelling capability, not differences in data or partitioning.
Results are reported on the minority class, because that is where the value sits: the defaulting borrower, the fraudulent claim, the stroke patient, the failing signal. Under class imbalance, headline accuracy is easily inflated. A model that predicts “no stroke” for everyone scores about 95% accuracy and saves nobody. Minority-class recall, precision and F1 are what determine whether a model earns its place in production, and they are the lens applied throughout.
Across the seven benchmarks, MathFi.ai delivers the highest minority-class F1 in six of seven cases, and the highest or joint-highest minority-class recall in all seven. Where it trails on a secondary metric, we say so plainly and explain the trade-off.
In every table the best value in each column is highlighted. Where more than one model ties for the top score, all of them are highlighted.
| Method | F1 % | Recall % | Precision % | Accuracy % |
|---|---|---|---|---|
| MathFi.ai | 88.50 | 90.91 | 86.21 | 89.17 |
| XGBoost | 86.21 | 90.91 | 81.97 | 86.67 |
| LightGBM | 85.96 | 89.09 | 83.05 | 86.67 |
| Random Forest | 85.96 | 89.09 | 83.05 | 86.67 |
| Logistic Regression | 84.75 | 90.91 | 79.37 | 85.00 |
| CatBoost | 83.48 | 87.27 | 80.00 | 84.17 |
Dataset: UCI Credit Approval ↗. 690 anonymised credit applications, 15 mixed categorical and numerical attributes. A canonical benchmark for mixed-type, partially missing financial data.
| Method | F1 % | Recall % | Precision % | Accuracy % |
|---|---|---|---|---|
| MathFi.ai | 63.60 | 70.00 | 58.33 | 76.00 |
| XGBoost | 59.70 | 66.67 | 54.05 | 73.00 |
| LightGBM | 57.63 | 56.67 | 58.62 | 75.00 |
| Random Forest | 55.74 | 56.67 | 54.84 | 73.00 |
| CatBoost | 54.05 | 50.00 | 58.82 | 74.50 |
| Logistic Regression | 49.65 | 58.33 | 43.21 | 64.50 |
Dataset: UCI Statlog (German Credit Data) ↗. 1,000 loan records, 20 attributes covering financial history, employment and purpose. Ships with an official 5:1 cost matrix penalising missed defaulters.
| Method | F1 % | Recall % | Precision % | Accuracy % |
|---|---|---|---|---|
| MathFi.ai | 75.74 | 96.24 | 62.44 | 95.09 |
| XGBoost | 82.26 | 81.95 | 82.58 | 97.18 |
| LightGBM | 82.26 | 81.95 | 82.58 | 97.18 |
| Random Forest | 82.26 | 81.95 | 82.58 | 97.18 |
| CatBoost | 81.45 | 84.21 | 78.87 | 96.94 |
| Logistic Regression | 36.69 | 93.23 | 22.84 | 74.36 |
Dataset: Warranty Claims (Kaggle) ↗. Warranty claims against manufactured goods with product, region, claim-value and service attributes. Fraud is a small minority of claims.
| Method | F1 % | Recall % | Precision % | Accuracy % |
|---|---|---|---|---|
| MathFi.ai | 27.04 | 66.00 | 17.01 | 82.58 |
| CatBoost | 20.31 | 26.00 | 16.67 | 90.02 |
| Random Forest | 20.24 | 34.00 | 14.41 | 86.89 |
| Logistic Regression | 19.94 | 66.00 | 11.74 | 74.07 |
| LightGBM | 18.78 | 34.00 | 12.98 | 85.62 |
| XGBoost | 18.75 | 30.00 | 13.64 | 87.28 |
Dataset: Stroke Prediction Dataset (IEEE DataPort) ↗. Population health records with demographic, lifestyle and comorbidity attributes. Minority class is about 1 in 20.
| Method | F1 % | Recall % | Precision % | Accuracy % |
|---|---|---|---|---|
| MathFi.ai | 97.44 | 95.00 | 100.00 | 98.33 |
| LightGBM | 91.89 | 85.00 | 100.00 | 95.00 |
| CatBoost | 88.89 | 80.00 | 100.00 | 93.33 |
| XGBoost | 87.18 | 85.00 | 89.47 | 91.67 |
| Random Forest | 86.49 | 80.00 | 94.12 | 91.67 |
| Logistic Regression | 77.78 | 70.00 | 87.50 | 86.67 |
Dataset: UCI Ionosphere ↗. 351 radar returns, 34 continuous attributes derived from antenna signal processing.
| Method | F1 % | Recall % | Precision % | Accuracy % |
|---|---|---|---|---|
| MathFi.ai precision-tuned | 84.20 | 81.70 | 87.01 | 86.42 |
| MathFi.ai recall-tuned | 81.96 | 91.46 | 74.25 | 82.06 |
| XGBoost | 82.63 | 84.15 | 81.18 | 84.24 |
| Random Forest | 82.21 | 81.71 | 82.72 | 84.24 |
| CatBoost | 80.49 | 80.49 | 80.49 | 82.61 |
| LightGBM | 80.00 | 78.05 | 82.05 | 82.61 |
| Logistic Regression | 78.75 | 76.83 | 80.77 | 81.52 |
Dataset: Heart Failure Prediction (Kaggle) ↗. 918 patient records combining five older cardiac datasets, 11 clinical attributes.
| Method | F1 % | Recall % | Precision % | Accuracy % |
|---|---|---|---|---|
| MathFi.ai | 71.11 | 84.21 | 61.53 | 78.33 |
| Logistic Regression | 68.42 | 68.42 | 68.42 | 80.00 |
| Random Forest | 66.67 | 68.42 | 65.00 | 78.33 |
| LightGBM | 55.56 | 52.63 | 58.82 | 73.33 |
| XGBoost | 54.05 | 52.63 | 55.56 | 71.67 |
| CatBoost | 51.61 | 42.11 | 66.67 | 75.00 |
Dataset: Heart Failure Clinical Records (Chicco and Jurman) ↗. 299 heart-failure patients, 12 clinical attributes such as ejection fraction and serum creatinine. Peer-reviewed and published.
Bring us the decision your current models get wrong too often, and we will build on your own data and show you the lift.
See it on your dataAll seven datasets are public, widely cited and independently downloadable, so any reader may inspect them and reproduce these benchmarks. Each was selected because it is an established reference set and mirrors a real commercial or clinical decision under class imbalance, the condition in which conventional models most often fail quietly.
690 anonymised credit applications, 15 mixed categorical and numerical attributes, target: approve or decline. Attribute names and values are redacted to protect confidentiality.
A canonical benchmark for mixed-type, partially missing financial data. Because the features are anonymised, no model can rely on domain shortcuts; it must learn genuine structure, which is why it remains a standard test of a platform's feature-engineering capability.
1,000 loan records, 20 attributes (financial history, employment, purpose), target: good or bad credit risk. Ships with an official 5:1 cost matrix penalising missed defaulters.
The reference dataset for cost-sensitive credit scoring. Its published asymmetric cost matrix makes it one of the few benchmarks that explicitly encodes the real economics of lending, and it is directly representative of consumer underwriting.
Warranty claims against manufactured goods with product, region, claim-value and service attributes, target: fraudulent or genuine claim. Fraud is a small minority of claims.
Representative of high-volume, low-prevalence fraud detection across insurance, warranty and payments. The strong class imbalance and asymmetric loss profile make it a realistic proxy for production fraud operations.
Population health records with demographic, lifestyle and comorbidity attributes, target: stroke event. Minority class is about 1 in 20, roughly 5%.
A severe-imbalance benchmark widely used to expose the weakness of accuracy as a metric. Directly representative of population-level preventative screening, where the cost of a missed case vastly exceeds the cost of a follow-up.
Inspect the data: Stroke Prediction Dataset (IEEE DataPort) ↗
351 radar returns, 34 continuous attributes derived from antenna signal processing, target: good or bad return.
A long-established, clean, well-separated benchmark used to sanity-check classifier behaviour. Representative of sensor-integrity and anomaly-screening problems in telecoms, defence and industrial IoT. Its separability is why several methods reach perfect precision on it.
918 patient records combining five older cardiac datasets, 11 clinical attributes, target: presence of heart disease.
One of the largest consolidated public cardiac datasets. Widely used to benchmark clinical classifiers because its error asymmetry, missed diagnosis versus unnecessary test, mirrors genuine diagnostic decision-making.
299 heart-failure patients, 12 clinical attributes (ejection fraction, serum creatinine and others), target: death during follow-up. Peer-reviewed and published.
A peer-reviewed clinical mortality benchmark with an unusually small sample, a realistic stress test, since most real clinical deployments must learn from limited data rather than millions of rows.
Inspect the data: Heart Failure Clinical Records (Chicco and Jurman) ↗
Every method was evaluated on an identical 80/20 train and test split of each dataset, with the same input data supplied to MathFi.ai and to each competing library. Competing-method benchmarks were produced under the direction of the MathFi.ai CTO. All figures are reported as measured; no result has been omitted or reweighted.
Ready to see what MathFi.ai does on the decision that costs you most?
Get started