Custom ML algorithms for an insurance platform
Itransition performed exploratory data analysis, developed 100+ features, conducted experiments, trained an AI model for predicting application conversion, and deployed it as a microservice.
ContextÂ
Since 2016, Integrated Specialty Coverages (ISC), an award-winning insurance MGA, has provided 40+ exclusive insurance programs for construction, hospitality, property, entertainment, and freight transportation industries. ISC also includes wholesale programs for business owner policy management, commercial packages, cyber and pollution liability, worker’s compensations, and more. They use an innovative AI underwriting solution that increases the speed of distribution and the company’s profitability. ISC also constantly establishes new partnerships with companies and SaaS providers in the insurance brokerage sector to provide its clients with the best exclusive programs.Â
The customer has an insurance liability app designed to provide a great user experience on the go. ISC sells systems to insurance companies that use a multi-step form to offer users the most fitting insurance programs. As part of the first application step, the app predicts if users will complete the form and purchase the insurance policy. Based on the likelihood of completing certain sections on the application form, ISC offers targeted price policies to the customer, increasing their satisfaction and loyalty.Â
The app used a prediction ML model that couldn’t identify users with a positive attitude to purchasing insurance, while the company needed a more accurate understanding of users’ intentions to maximize conversion and ROI with the help of personal pricing policies and incentives.Â
ISC required a trusted and experienced ML consultant to revamp their model, so they chose Itransition for project rescue based on our portfolio of ML projects, including a project where we achieved a 50% increase in image recognition thanks to our ML-powered solution for intelligent brand tracking and analytics.Â
SolutionÂ
Exploratory data analysisÂ
We conducted the initial project investigation to understand the company’s business needs and project expectations and then began with the EDA (Exploratory Data Analysis) phase. During this stage, our ML engineers analyzed the previous machine learning model and found it lacked scalability and capabilities for more accurate predictions. One of its flaws was its strict connection to the existing clients, while the customer was always acquiring new ones. Itransition also realized that the current solution could be improved not only by retraining the model using more relevant data of larger quantities but also by expanding the list of features the model uses.Â
We made a report with our findings for ISC, explaining why it was necessary to:Â
-
Develop a new model from scratchÂ
-
Carry out an additional feature engineering phase to significantly expand the existing functionalityÂ
-
Train the model to be less dependent on existing clientsÂ
Feature engineeringÂ
Before engineering new features, our team carried out data preprocessing and preparation. We analyzed the data to be used and cleaned it from outliers and incorrect data. Then our AI team developed capabilities that transform raw data into features that better represent the underlying business problem. Based on historical data, we created sets of features outlining the criteria for the likelihood of users’ completing the application process.Â
Itransition’s AI team created as-is features based on available user data, such as:Â
- Socio-demographic characteristicsÂ
- History of client interactions with ISC (time from the first registration, purchased plans, number of registered requests, etc.)Â
- Client background (such as the user’s business domain)Â
Other features had to be calculated, such as the average insurance price, based on the number of purchases of insurance policies and policy costs.Â
We developed 100+ features in close cooperation between our team and ISC specialists, which allowed us to merge our technical data analysis skills and experience with ISC’s domain knowledge. Our AI team trained the model to discard unnecessary features and select the ones that would be the most important prediction factors for the model.Â
We experimented with three kinds of data manipulations:Â
- Filtering data (using different filters, introducing different data filtering methods)Â
- Feature configurations (changing the number of features, adding new features, giving different weights to features)Â
- Different combinations of data (data partitioning, removing irrelevant samples, using different data configurations)Â
Itransition found the most optimal feature sets and gave the correct weights to each feature for the model. We documented and presented the results of our experiments to the customer along with our interpretation of the solution’s vision to enable experiment tracking and reproducibility. Thus, with the help of sophisticated feature engineering, we ensured the model’s awareness of dynamic market conditions.Â
Model trainingÂ
After creating the features, we proceeded to model training and ML solution development. Our team tried various decision-tree-based solutions and neural networks, but the final version of the model was created using CatBoost since it demonstrated the best results.Â
Itransition’s AI team created an ML solution using 500,000 insurance application records for training the model and perfecting feature selection. We also used 50,000 records for testing to validate the model's accuracy.Â
During model training, we modified some features to improve the ML model’s quality and remove features of low importance to the model during decision-making.Â
We used the following metrics for assessing the quality of model training:Â
- AUC (area under the ROC Curve) measures the quality of the model's predictions regardless of the chosen classification threshold. It also measures how well predictions are ranked rather than their absolute values.Â
- F1 score measures model accuracy using the number of correct and incorrect predictions in a given dataset.Â
Our team also utilized the model drift metric called PSI (population stability index) for measuring how much data has shifted over time and monitoring the applicability of a model to the current population. Data drift monitoring helps detect and triage issues with data in a working solution.Â
As a result of model training and feature selection, we delivered a model that can make decisions based on around 20 most important features. This choice of the optimal feature set allowed us to increase decision-making speed, save costs on computing power resources, and enable rapid iteration and configuration.Â
Production monitoring & supportÂ
After we showed the results to the customer and discussed integration strategies, we deployed the model as a microservice and delivered it to the customer’s team for integration together with the solution’s technical documentation. The model was deployed to production by the customer’s team as a microservice and part of ISC’s infrastructure.Â
Itransition constantly monitors and trains the ML model when there are new data or use cases. Using the dashboards we built, we also track model drift, i.e. the decay of models' predictive power caused by changes in real-world environments. When the customer wants to improve prediction capabilities but lacks knowledge on how to proceed, we collaborate closely with ISC to understand their goals and objectives. We then conduct analyses to identify potential use cases. Once we clearly understand the requirements, we develop additional features for the predictive model. Throughout this process, we maintain open communication with ISC’s team and work together to refine and validate the model.Â
As a technical consultant and partner, Itransition provides guidance and expertise to help the customer improve the created model, thoroughly analyzing its work and identifying areas for improvement. During collaborative syncs, we work with the customer to set goals and establish a roadmap for adding value to the business. We have our unique approach and interpretation of strategies and technologies that would be most beneficial to the customer's business.Â
We used the following technologies and tools for the project:Â
- Streamlit — demos and results visualization and analysisÂ
- Flask — API developmentÂ
- NumPy, PandasAI, Matplotlib/Seaborn — data analysis and processing frameworksÂ
- Population Stability Index — developing a feature drift analysis mechanismÂ
ResultsÂ
Itransition’s machine learning engineers developed an ML model that predicts application conversion to a bound policy according to the customer’s requirements. Since the model has been released, the customer selects targeted user price policies and discounts based on its predictions. The model’s accuracy increased from 60% to 75% in the first model version.Â
Services
Artificial intelligence consulting
Explore our AI consulting services, along with related technologies, use cases by industry, and implementation best practices.
Services
Machine learning development services
Machine learning development services from certified ML developers and seasoned data scientists. We build well-performing and future-proof ML apps.
Case study
AI answer engine for doctors and patients
Learn how we delivered a PoC of an OpenAI-based web application that answers medical questions interacting with the Davinci AI model.
Case study
ML PoC for a plant pathology recognition solution
Learn how we developed a PoC for an ML plant pathology recognition solution, helping the customer attract investments and partner with scientific institutes.
Case study
ML PoC for aquatic environment analysis
Learn more about a PoC of an ML-based plankton detection and classification solution we developed, proving the suggested approach.
Case study
Internal talent marketplace implementation for a software testing company
Learn how we implemented a tailored talent marketplace platform Talenteer, optimizing the staffing process in a software testing company.
Case study
Cyber liability portal for a global insurance provider
Here’s how Itransition developed an educational portal with content and learning management capabilities and robust security features for an insurance company.
Case study
Health insurance management platform
Maximus Inc. leverages Itransition’s expertise to handle their insurance management platform development.