Skip to content

feat: implement enhanced churn risk prediction system#265

Merged
elizabetheonoja-art merged 1 commit into
SubStream-Protocol:mainfrom
frankosakwe:feature/enhanced-churn-risk-prediction
Apr 28, 2026
Merged

feat: implement enhanced churn risk prediction system#265
elizabetheonoja-art merged 1 commit into
SubStream-Protocol:mainfrom
frankosakwe:feature/enhanced-churn-risk-prediction

Conversation

@frankosakwe
Copy link
Copy Markdown

@frankosakwe frankosakwe commented Apr 28, 2026

Closes #217


  • Add comprehensive risk metrics and balance history tracking
  • Implement just-in-time topup detection algorithm
  • Create risk analysis API endpoint for merchants
  • Add background worker for daily risk score updates
  • Optimize for large-scale user processing
  • Include actionable insights and retention suggestions
  • Add comprehensive test suite and documentation

Addresses requirements:

  • Analyzes balance_history and missed_payment_streak over last 6 cycles
  • Flags High_Churn_Risk for users with 3+ just-in-time topups
  • Provides actionable risk scores via GET /api/v1/merchants/:id/risk-analysis
  • Stores predictions in Risk_Metrics table with daily updates
  • Optimized for thousands of users without database bottlenecks
  • Enables proactive retention webhooks and email campaigns

- Add comprehensive risk metrics and balance history tracking
- Implement just-in-time topup detection algorithm
- Create risk analysis API endpoint for merchants
- Add background worker for daily risk score updates
- Optimize for large-scale user processing
- Include actionable insights and retention suggestions
- Add comprehensive test suite and documentation

Addresses requirements:
- Analyzes balance_history and missed_payment_streak over last 6 cycles
- Flags High_Churn_Risk for users with 3+ just-in-time topups
- Provides actionable risk scores via GET /api/v1/merchants/:id/risk-analysis
- Stores predictions in Risk_Metrics table with daily updates
- Optimized for thousands of users without database bottlenecks
- Enables proactive retention webhooks and email campaigns
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 28, 2026

@frankosakwe Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@elizabetheonoja-art elizabetheonoja-art merged commit fc7bb97 into SubStream-Protocol:main Apr 28, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Portfolio-Wide "Involuntary Churn" Predictive Analytics

2 participants