การระบุธุรกรรมฉ้อโกงและไม่ฉ้อโกง

การตรวจจับการฉ้อโกงด้วย Python

Charlotte Werger

Data Scientist

เริ่มต้นด้วยข้อมูลที่จัดกลุ่มแล้ว

การตรวจจับการฉ้อโกงด้วย Python

กำหนดจุดศูนย์กลางของกลุ่ม (Cluster Centroid)

การตรวจจับการฉ้อโกงด้วย Python

คำนวณระยะห่างจาก Cluster Centroid

การตรวจจับการฉ้อโกงด้วย Python

ระบุธุรกรรมฉ้อโกงจากจุดที่ห่างจาก Centroid มากที่สุด

การตรวจจับการฉ้อโกงด้วย Python

ระบุธุรกรรมฉ้อโกงจากระยะห่างถึง Centroid

# Run the kmeans model on scaled data
kmeans = KMeans(n_clusters=6, random_state=42).fit(X_scaled)

# Get the cluster number for each datapoint X_clusters = kmeans.predict(X_scaled)
# Save the cluster centroids X_clusters_centers = kmeans.cluster_centers_
# Calculate the distance to the cluster centroid for each point dist = [np.linalg.norm(x-y) for x,y in zip(X_scaled, X_clusters_centers[X_clusters])]
# Create predictions based on distance km_y_pred = np.array(dist) km_y_pred[dist>=np.percentile(dist, 93)] = 1 km_y_pred[dist<np.percentile(dist, 93)] = 0
การตรวจจับการฉ้อโกงด้วย Python

การตรวจสอบความถูกต้องของผลลัพธ์โมเดล

  • ตรวจสอบกับนักวิเคราะห์ด้านการฉ้อโกง
  • ตรวจสอบและอธิบายรายกรณีที่ถูกระบุอย่างละเอียด
  • เปรียบเทียบกับกรณีฉ้อโกงที่รู้จักในอดีต
การตรวจจับการฉ้อโกงด้วย Python

มาฝึกกันเถอะ!

การตรวจจับการฉ้อโกงด้วย Python

Preparing Video For Download...