A Machine Learning and Computer Vision Application to Robustly Extract Winnings from Multiple Lottery Tickets in One Shot

Authors

  • Vikramjit S. Rathee Chief Scientific Advisor, Research & Development Department, Nine Star Initiative, DE, USA
  • Wan Li Senior Research Fellow, Sanming University, Fujian, China
  • Pengyue He Doctoral Researcher, Sanming University, Fujian, China

Keywords:

Machine Learning, Lottery, Computer Vision, Powerball, Mega Millions

Abstract

Mega Millions and Powerball are among the most popular American lottery games. This article provides a practical software application that can conveniently examine and evaluate several lottery tickets for prizes using just the images. The application accepts as input a directory containing the images of lottery tickets and utilizes machine learning and computer vision to extract lottery ticket data, lottery name, lottery draw date, 5-digit lottery numbers, 2-digit lottery "ball" numbers, and the lottery multiplier. The application also retrieves winning lottery data that corresponds to the lottery draw date using a public database API. This is compared with data collected from each lottery ticket image to establish matches, and the corresponding prize amount is computed. The current version of the application supports GPU usage, and image orientation has no impact on its functionality. It is believed that a considerable portion of the U.S. public participating in the Powerball and Mega Millions lotteries will find such an application beneficial and handy.

References

Aho, A. V. (1991). Algorithms for finding patterns in strings. In Handbook of theoretical computer science (vol. A): Algorithms and complexity (pp. 255–300). MIT Press.

Akenine-Moller, T. & Strom, J. (2008). Graphics Processing Units for Handhelds. Proceedings of the IEEE, 96(5), 779–789. https://doi.org/10.1109/JPROC.2008.917719

Allen-Zhu, Z. & Li, Y. (2019). What Can ResNet Learn Efficiently, Going Beyond Kernels? Advances in Neural Information Processing Systems, 32. https://proceedings.neurips.cc/paper/2019/hash/5857d68cd9280bc98d079fa912f d6740-Abstract.html

Awalgaonkar, N., Bartakke, P., & Chaugule, R. (2021). Automatic License Plate Recognition System Using SSD. 394–399. https://doi.org/10.1109/IRIA53009.2021.9588707

Bernadette McKinney, E. & Swain, J. W. (1993). State lotteries: Explaining their popularity. International Journal of Public Administration, 16(7), 1015– 1033. https://doi.org/10.1080/01900699308524833

Castaño-Díez, D., Moser, D., Schoenegger, A., Pruggnaller, S., & Frangakis, A. S. (2008). Performance evaluation of image processing algorithms on the GPU. Journal of Structural Biology, 164(1), 153–160. https://doi.org/10.1016/j.jsb.2008.07.006

Google Cloud. (2022). Pricing Overview. https://cloud.google.com/pricing JaidedAI (2022). EasyOCR (1.4.2) [Python]. https://github.com/JaidedAI/EasyOCR

Kemenade, H. Van, Murray, A., wiredfool, Jeffrey A. Clark, “Alex,” Karpinsky, A., Baranovič, O., Gohlke, C., Dufresne, J., DWesl, Schmidt, D., Kopachev, K., Houghton, A., Mani, S., Landey, S., Vashek, Ware, J., Piolie, Douglas, J., T, S., … Base, M. (2022). Python-Pillow (7.1.2). Zenodo. https://doi.org/10.5281/zenodo.6788304

Lucky for Life Lotteries (2022). Lucky for Life. https://www.luckyforlife.us/

Mega Millions (2022a). How to Claim a Mega Millions Prize. https://megamillions.com/how-to-claim

Mega Millions (2022b). How To Play. https://www.megamillions.com/How-toPlay.aspx

Multi-State Lottery Association (2022). About. https://www.lottery.net/multistate-numbers

O’Brien, S. (2021, March 15). A $1 million, year-old Mega Millions winning ticket expires March 17. Here’s how many prizes remain unclaimed. CNBC. https://www.cnbc.com/2021/03/15/mega-millions-ticket-worth-1-million-toexpire-join-unclaimed-prizes.html

Opencv (2022). Opencv (4.5.4) [C++]. OpenCV. https://github.com/opencv/opencv

Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., Desmaison, A., Kopf, A., Yang, E., DeVito, Z., Raison, M., Tejani, A., Chilamkurthy, S., Steiner, B., Fang, L., … Chintala, S. (2019). PyTorch: An Imperative Style, High-Performance Deep Learning Library. Advances in Neural Information Processing Systems, 32. https://papers.nips.cc/paper/2019/hash/bdbca288fee7f92f2bfa9f7012727740- Abstract.html

Pennsylvania Lottery (2022). Cash4Life. https://www.palottery.state.pa.us/Draw-Games/Cash4Life.aspx

Powerball (2022a). 9 ways to win! https://www.powerball.com/games/home

Powerball (2022b). How to Claim Powerball Winnings. https://www.powerball.net/how-to-claim-winnings

Prashanth, B., Mendu, M., & Thallapalli, R. (2021). Cloud based Machine learning with advanced predictive Analytics using Google Colaboratory. Materials Today: Proceedings. https://doi.org/10.1016/j.matpr.2021.01.800 Socrata (2022). Socrata Developers. https://dev.socrata.com/

Staudemeyer, R. C. & Morris, E. R. (2019). Understanding LSTM -- a tutorial into Long Short-Term Memory Recurrent Neural Networks (arXiv:1909.09586). arXiv. https://doi.org/10.48550/arXiv.1909.09586

The Lotter (2022). Top 6 Biggest Unclaimed Jackpots. https://www.thelotter.com/biggest-unclaimed-jackpots/

Tom Huddleston Jr (2022). The $1.28 billion Mega Millions jackpot would be one of the biggest ever—Here are the top 5 so far. CNBC. https://www.cnbc.com/2022/07/27/1-billion-mega-millions-jackpot-amongbiggest-us-lottery-prizes.html

Van Rossum, G. & Drake, F. L. (2009). Python 3 Reference Manual. CreateSpace.

VikramjitSinghRathee (2022). A Machine Learning and Computer Vision Application to Compute Winnings from Multiple Lottery tickets (1.0) [Python]. https://github.com/VikramjitSinghRathee/A-Machine-Learning-and-ComputerVision-Application-to-Compute-Winnings-from-Multiple-Lottery-tickets

Waller, P. (2022). Pyfiglet (0.8.post1) [Python]. https://github.com/pwaller/pyfiglet xmunoz (2022). Sodapy (2.1.1) [Python]. https://github.com/xmunoz/sodapy

Xu, R., Han, F., & Ta, Q. (2018). Deep Learning at Scale on NVIDIA V100 Accelerators. 23–32. https://doi.org/10.1109/PMBS.2018.8641600

Ye, Q. & Doermann, D. (2015). Text Detection and Recognition in Imagery: A Survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 37(7), 1480–1500. https://doi.org/10.1109/TPAMI.2014.2366765

Downloads

Published

2023-11-22

How to Cite

Rathee, V. S., Li, W., & He, P. (2023). A Machine Learning and Computer Vision Application to Robustly Extract Winnings from Multiple Lottery Tickets in One Shot. ESI Preprints, 23, 373. Retrieved from https://esipreprints.org/index.php/esipreprints/article/view/624

Issue

Section

Preprints