Using neural networks in the problem of classifying anomalous behavior in financial transactions using Python and Keras
Abstract
The purpose of this work is to study and develop neural networks for the problems of classifying anomalous behavior in financial transactions using Python and Keras. To achieve this goal, a dataset was chosen, consisting of 100,000 financial transactions, data was preprocessed, the architecture of the neural network was designed, and the process of its training was disclosed. The basis of the developed architecture is the input layer, which consists of 30 neurons corresponding to 30 features in our data. The output layer of the architecture is two layers that confirm or deny fraudulent transactions. The basis of the output layer is the softmax activation function, which generates probabilities for each class. One of the most important advantages of the developed neural network is the efficiency of activation functions, which is based on the use of ReLU (Rectified Linear Unit) for the input and hidden layers. The model was trained for 50 epochs using the Adam optimization algorithm and a batch size of 32. Adam was chosen as the optimizer, which provides faster and more stable convergence. Based on the results of training in 50 epochs, an accuracy of 88% was achieved. It is important to emphasize that, despite the significant imbalance of classes in the dataset, the model showed the ability to accurately detect anomalies. This opens up great opportunities for applying this approach in a real environment, where fraudulent transactions also usually make up a small proportion of the total number of transactions.
Full Text:
PDF (Russian)References
A. Mauboussin "Dataset of Financial Transactions, Labeled with Intent and Expense Category," Timescale, 02 07 2022. [Online]. Available: https://www.surgehq.ai/blog/financial-transactions-dataset-annotated-with-intent-and-expense-category. [Accessed 02 07 2023].
A.G. Marakhtanov, E.O. Parenchenkov, N.V. Smirnov,
"Determination of electronic fraud by machine learning methods in the case of an unbalanced dataset," Bulletin of the Perm National Research Polytechnic University. Electrical engineering, information technology, control systems, no. 36, pp. 80-95, 2020.
K.A. Kuzmin, “Neural networks as a tool for detecting credit card fraud,” URAO Bulletin, no. 5, pp. 136-140, 2014.
E.G. Milkova, "The use of digital transformation and artificial intelligence in the fight against corruption," International Journal of Applied Sciences and Technologies "Integral", no. 2, pp. 247-252, 2021.
N.Sh. Vatolkina, O.P. Fedotkina, V.G. Feklin, “Digital Financial Assets: Technological Possibilities for Regulation and Control,” Vestnik TSEU, no. 3(103), pp. 96-110, 2022.
V.A. Tveritinova, "Automation as a Means of Improving the Efficiency of Specialized Depository Employees," E-Scio, no. 4, pp. 1-7, 2023.
A.A. Safonov, "On the use of artificial intelligence by law enforcement officers in order to detect and investigate crimes," Bulletin of the Moscow University of the Ministry of Internal Affairs of Russia, no. 3, pp. 173-175, 2023.
M.A. Zheludkov, “Justification of the need to adapt the activities of law enforcement agencies to the conditions of the digital transformation of the criminal environment,” Lex Russica, no. 4(173), pp. 63-70, 2021.
F.V. Bezgachev, "The use of artificial intelligence (neural networks) in police activities," Law and Power, no. 3, pp. 78-82, 2023.
S.L. Larionova, “Mechanisms to combat fraud in online financial services systems,” Financial Markets and Banks, no. 3, pp. 47-52, 2023.
E.G. Bagreeva, N.E. Ismailov, L.M. Bobyleva, "Artificial intelligence as a counteraction to fraud in the banking sector," Eurasian Advocacy, no. 2(57), pp. 90-95, 2022.
D.V. Reznik, “Artificial neural networks. security use case analysis,” The Scientific Heritage, no. 67, pp. 50-53, 2021.
Yu.M. Beketnova, “Comparative Analysis of Machine Learning Methods for Identifying Signs of Involvement of Credit Institutions and Their Clients in Dubious Transactions,” Finance: Theory and Practice, Vol. 25, no. 5, pp. 186-199, 2021.
A.A. Menshchikov, M.Yu. Fedosenko, “Methods and approaches to payment data preprocessing under the condition of strong class imbalance,” StudNet, no. 9, pp. 1-16, 2021.
S.P. Kornyukhina, O.R. Laponina, “Investigation of the possibilities of deep learning algorithms for protection against phishing attacks,” International Journal of Open Information Technologies, Vol. 11, no. 6, 2023.
I.V. Mashechkin, M.I. Petrovsky, D.V. Tsarev, "Methods of machine learning for analyzing user behavior when working with text data in information security problems," Bulletin of the Moscow University. Series 15. Computational Mathematics and Cybernetics, no. 4, pp. 33-48, 2016.
I.B. Saenko, I.V. Kotenko, M.Kh. Al-Bari, “Using Artificial Neural Networks to Detect Anomalous Behavior of Data Center Users,” Cybersecurity Issues, no. 2(48), pp. 87-97, 2022.
K.N. Kolyutsky, "Neural network approach to detecting anomalies in the information system," Bulletin of the Moscow University of Finance and Law, no. 1, pp. 49-52, 2012.
Refbacks
- There are currently no refbacks.
Abava Кибербезопасность IT Congress 2024
ISSN: 2307-8162