Artificial intelligence plays an important role in the field of personal computers. Right now personal computers are part of our lives, so AI should be used in all everyday tasks. Humans are great thinkers, but machines can be more effective at counting than humans. The machine cannot fully explain different conditions, but it can create a different type of connection between different salient points and features. Either way, there can be many benefits to establishing machine learning computing in our daily lives. Machine learning or machine learning is one of the subsets of artificial intelligence that enables systems to learn and improve automatically without explicit programming, and controlling the credit risk of real bank customers is one of these benefits that can help the monetary and banking system to improve conditions and reduce risk. Therefore, the use of machine learning to create an algorithm to manage credit risks is a topic addressed in this research.