Miva Open University (M.IT research project) · 2026
POSSYS: credit scoring from POS data
Role: Researcher and developer
POSSYS scores a small business's creditworthiness from its POS transaction history, for my Master of Information Technology research. It checks the data, flags attempts to game it, scores the probability of default with a calibrated model, and returns approve, refer or decline with plain-language reasons and a full audit trail.
The problem
Many Nigerian micro, small and medium enterprises have no formal credit history, so lenders cannot score them. Most of them already take payments through POS terminals. The research question: can POS transaction history support a lending decision that a loan officer can explain and audit?
Constraints
- No public dataset links Nigerian POS transactions to loan outcomes, so the model is trained on the Berka (PKDD 1999) loan data and POS scores are labelled illustrative
- Applicants have a reason to game the data, for example by inflating sales in the month they apply
- Agency-banking terminals look like merchants in POS data but are not the business being lent to
- A loan officer has to be able to explain every decision, and every decision has to be auditable
Decisions and why
One feature contract for training and scoring
The nine features are computed by the same code when the model is trained and when a merchant is scored, so the model never sees features calculated differently from the ones it learned on.
A calibrated, monotone-constrained model
Each feature is constrained to move risk only in the direction the credit literature expects, so the model cannot learn an implausible rule from noise, and its probabilities are calibrated. A loan officer can then trust that a 20% probability of default means roughly that. Inputs outside the range the model was trained on are clamped rather than extrapolated.
Approve, refer or decline, never a bare score
The decision uses a 5:1 cost threshold, because lending to a business that defaults costs more than turning away one that would have repaid, plus a refer band for cases a person should look at. Each decision comes with plain-language reason codes from grouped SHAP values.
Gate and flag before scoring
The system checks there is enough history, rejects agency-banking terminals as out of scope, and flags manipulation patterns (application-month sales spikes, round-amount padding, self-transfer loops) so those merchants go to review instead of being scored as normal.
Every step recorded
Validation, gating, scoring and the decision are written to an append-only audit store, so any decision can be reconstructed afterwards.
Result
A working decision application with acceptance tests for each functional requirement (FR-01 to FR-13). On the benchmark loan data, the calibrated LightGBM model had the lowest calibration error of the three models compared: a mean absolute calibration error of 0.020, against 0.030 for a random forest and 0.043 for logistic regression. Scoring a merchant took a median of 0.12 seconds (95th percentile 0.32 seconds over 30 runs).
As of Nov 2026
Stack
- Python
- LightGBM
- scikit-learn
- SHAP
- pandas
- Streamlit
- SQLite
- pytest