Credit Card Fraud Detection Using Hidden Markov Model A ASP.Net Project is for B.tech Computer science final year students. Credit-Card-Fraud-A-ASP-Net-Project

Description:

The trend today is to use a card instead of cash. Each time you walk past a a store or each time you peep into the wallet of a working class employee, executive or big shot entrepreneur all you tend to see are plastic cards which have great value! 

Nowadays the usage of credit cards has dramatically increased and has become the most popular mode of payment for both online as well as regular purchases. However, it is very easy to manipulate and make wrong use of these cards. The cases of fraud associated with credit cards are rising along with its user group. 

Making cash flow simpler: 

Credit-card-based purchases can be categorized as physical card and  virtual card. In a physical-card based purchase, the cardholders presents his card physically to a merchant for making a payment, in case another user is swiping the stolen or lost card , it can lead to substantial loss to the original card holder or the credit card company. In the latter purchase, only some important information about a card (card number, expiration date, secure code) is required in order to make the payment. 

Such purchases are normally done on the Internet or over the telephone. To commit fraud in these types of purchases, fraudsters require to know the card details.  The only way to detect this kind of fraud is to analyze the spending patterns on every card and to figure out any inconsistency with respect to the “usual” spending patterns.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Windows.Forms;

public partial class ChangePassword : System.Web.UI.Page
{
SqlConnection con;
SqlCommand cmd;
SqlDataAdapter da;
DataSet ds;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection(ConfigurationManager.ConnectionStrings["crms"].ConnectionString);

}
protected void Button1_Click(object sender, EventArgs e)
{
try
{
string UserId = Session["CurrentUser"].ToString();

string oldPassword = txtOldPassword.Text.Replace("'", "''");
string newPassword = txtNewPassword.Text.Replace("'", "''");
string confirmPassword = txtConfirmPassword.Text.Replace("'", "''");

da = new SqlDataAdapter("SELECT UserID,Password FROM Seeker_Registration where UserId = '" + UserId + "' AND Password = '" + oldPassword + "'", con);

DataSet ds = new DataSet();
da.Fill(ds, "UserProfile");
DataTable table = ds.Tables[0];

if (table.Rows.Count == 0)
{

MessageBox.Show("The Old Password you entered is not correct.", "Invalid Password", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}

cmd = new SqlCommand("UPDATE Seeker_Registration set Password = '" + newPassword + "' where UserId = '" + UserId + "'", con);
con.Open();
cmd.ExecuteNonQuery();
Response.Redirect("~/JobSeeker/SeekerMenu.aspx");
con.Close();
}
catch (Exception e1)
{
MessageBox.Show(e1.Message, "Error Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}

 
Conclusion: 

Here, we model the sequence of operations in credit card transaction processing using a Hidden Markov Model (HMM) and show how it can be used for the detection of frauds. An HMM is initially trained with the normal behavior of a cardholders. If an incoming credit card transaction is not accepted by the trained HMM with sufficiently high probability, it is considered to be fraudulent. At the same time, we try to ensure that genuine transactions are not rejected. We present detailed experimental results to show the effectiveness of our approach and compare it with other techniques available in the literature.

download Project Report of Credit Card Fraud Detection Using Hidden Markov Model A ASP.Net Project.