Skip to content

Instantly share code, notes, and snippets.

@xurror
Last active August 31, 2021 06:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xurror/bba79ecbf063dd8eae8ee9c24732701e to your computer and use it in GitHub Desktop.
Save xurror/bba79ecbf063dd8eae8ee9c24732701e to your computer and use it in GitHub Desktop.

enter image description here

Google Summer of Code 2021 Project Report

Project Title: Machine Learning Scorecard for Credit Risk Assessment Phase 4

ORGANISATION: Apache Software Foundation

STUDENT: Yemdjih Kaze Nasser

MENTORS: Abhijit Ramesh, Lalit Mohan


Introduction

Credit risk is the risk of default on debt obligations by the borrowers. It occurs when the borrowers fail to meet their contractual debt obligations and are unable to repay the borrowed amount of money during a specified period. Fineract credit scorecard is an AI powered solution that allows users to perform credit assessment of loans using various techniques such as rule based based scoring, statistical scoring and machine learning scoring.


Background

Financial institutions have been struggling for years to make sure that they minimize credit risks. Credit risk can lead to heavy losses for money lenders like banks and other financial institutions who lend funds to borrowers for a specified interest rate. Credit risk can disrupt cash flows for the lending party. It arises when money is not repaid within a specific period as agreed upon earlier. The risk and loses for lenders includes lost interest and principal amount. It can lead to an increased cost of collection for lenders.

In lights of this the Mifos Initiative has been trying to put in place a credit assessment platform into their financial inclusion platform. This integration is mean to improve the scope of the Fineract platform by empowering financial institutions with the ability to use mathematical methods confidentially assess the credit worthiness of their clients.


Project Implementation

In this years GSoC, the main goal was to refactor, improve and deploy the work that was made in the previous years. A couple of planning and steps were made to bring this integration to a usable state.

  1. Cleaning up and refactoring the previous work

    In the past iterations of this effort, a lot research and investigations were done to try to fine the suited approaches and solutions to the credit risk assessment of financial institution. This work was documented, some models were developed and tested.

    All this efforts needed to be refactored, cleaned up and a RESTful API built around it so it can be used in real world scenarios. For that reason, the work was ported into django application with django rest framework. This REST server comes with the ability to work independently as a unit on it's and deliver various credit scoring methods. This server comes with the ability to track and keep record credit assessment operations for future use and references so the model can be self improved over time.

  2. Integrating the scorecard in Fineract

    The next step for this effort was to integrate the solution into the Fineract platform as a reference implementation. This involved developing both Backend and Frontend integrations in the Mifos Web-App and Fineract 1.x backend so the solution can be used realistically in a production scenario.

  3. Testing the scorecard

    Another important component of the work was to provide a testing framework for the modules and integration; this involved both Unit and Integration tests. These tests were written and integrated in all the components and implementations.

  4. Documentation

    The final piece was the documentation for the project about what it is and how to use it.


Summary

Fineract users have been lacking a proper way of assess the credit worthiness of their clients for years and during this summers Google Summer of Code, extra focus was set on finally making the previous years of investigation and research on the topic available to the public.


Conclusion

The credit scoring engine for Fineract took a step forward during this summer, delivering multiple scoring capabilities methods and algorithms and integrating a reference implementation within Fineract 1.x and the Mifos Web-App.


Further Works

Though a lot was delivered during this summer of code session, the credit risk assessment engine could still use some improvements. First off will be improving on the engine using H2O.ai which could largely improve the accuracy and precision of the scoring engine. Next would be developing an ML pipeline so the ML scorecard engine can be improved with time.


Useful Links

  1. Project main task and subtasks
  2. Fineract Credit Scorecard project repository
  3. Fineract 1.x Integration
  4. Mifos Web-App Integration
  5. Implementation and Integration Documentation
  6. Credit Scorecard Phase 4 Video Demo credit scorecard phase 4 demo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment