A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection

preprint OA: closed CC-BY-4.0

Abstract

Background: Credit card fraud detection remains a major challenge because of the highly imbalanced nature of transaction data. Conventional supervised models often suffer from low recall or high false positive rates, whereas unsupervised methods lack precision. Methods In this study, we propose a hybrid anomaly detection framework that combines an unsupervised autoencoder trained on normal transactions to capture reconstruction error patterns with a supervised XGBoost classifier trained on the same dataset. The hybrid system integrates both scores via an optimized thresholding mechanism to balance sensitivity and specificity. We evaluated the model on the publicly available Kaggle creditcard.csv dataset comprising 284,807 transactions, with only 492 labelled fraudulent. Results The proposed model achieved superior performance, with a recall of 0.9250, precision of 0.9569, F1-score of 0.9407, and Matthews Correlation Coefficient (MCC) of 0.9407, with an accuracy of 0.9998, surpassing the results of similar published models using the same dataset. Conclusions This framework provides a practical, reproducible, high-performance solution for detecting financial fraud. The code, model configuration, and data-processing pipeline were made available to support transparency and future research.
Full text 245,472 characters · extracted from preprint-html · click to expand
A Hybrid Anomaly Detection Framework Combining... | F1000Research "use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t=function(){var t,e,o=[],n=window,r=n;for(;r;){try{if(r.frames.__tcfapiLocator){t=r;break}}catch(t){}if(r===n.top)break;r=r.parent}t||(!function t(){var e=n.document,o=!!n.frames.__tcfapiLocator;if(!o)if(e.body){var r=e.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",e.body.appendChild(r)}else setTimeout(t,5);return!o}(),n.__tcfapi=function(){for(var t=arguments.length,n=new Array(t),r=0;r 3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):o.push(n)},n.addEventListener("message",(function(t){var e="string"==typeof t.data,o={};if(e)try{o=JSON.parse(t.data)}catch(t){}else o=t.data;var n="object"===_typeof(o)&&null!==o?o.__tcfapiCall:null;n&&window.__tcfapi(n.command,n.version,(function(o,r){var a={__tcfapiReturn:{returnValue:o,success:r,callId:n.callId}};t&&t.source&&t.source.postMessage&&t.source.postMessage(e?JSON.stringify(a):a,"*")}),n.parameter)}),!1))};"undefined"!=typeof module?module.exports=t:t()}(); dataLayer = dataLayer || []; // Standard GTM initialization - Google Consent Mode handles consent automatically (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl+ '>m_auth=hzk0Vc3qFsQYhCrIoHz68A>m_preview=env-1>m_cookies_win=x';f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-MWFK8L5J'); ;window.NREUM||(NREUM={});NREUM.init={distributed_tracing:{enabled:true},privacy:{cookies_enabled:true},ajax:{deny_list:["bam.nr-data.net"]}}; ;NREUM.loader_config={accountID:"438030",trustKey:"438030",agentID:"772317073",licenseKey:"97f8f67f26",applicationID:"772317073"} ;NREUM.info={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",licenseKey:"97f8f67f26",applicationID:"772317073",sa:1} ;/*! For license information please see nr-loader-spa-1.236.0.min.js.LICENSE.txt */ (()=>{"use strict";var e,t,r={5763:(e,t,r)=>{r.d(t,{P_:()=>l,Mt:()=>g,C5:()=>s,DL:()=>v,OP:()=>T,lF:()=>D,Yu:()=>y,Dg:()=>h,CX:()=>c,GE:()=>b,sU:()=>_});var n=r(8632),i=r(9567);const o={beacon:n.ce.beacon,errorBeacon:n.ce.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},a={};function s(e){if(!e)throw new Error("All info objects require an agent identifier!");if(!a[e])throw new Error("Info for ".concat(e," was never set"));return a[e]}function c(e,t){if(!e)throw new Error("All info objects require an agent identifier!");a[e]=(0,i.D)(t,o),(0,n.Qy)(e,a[e],"info")}var u=r(7056);const d=()=>{const e={blockSelector:"[data-nr-block]",maskInputOptions:{password:!0}};return{allow_bfcache:!0,privacy:{cookies_enabled:!0},ajax:{deny_list:void 0,enabled:!0,harvestTimeSeconds:10},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},session:{domain:void 0,expiresMs:u.oD,inactiveMs:u.Hb},ssl:void 0,obfuscate:void 0,jserrors:{enabled:!0,harvestTimeSeconds:10},metrics:{enabled:!0},page_action:{enabled:!0,harvestTimeSeconds:30},page_view_event:{enabled:!0},page_view_timing:{enabled:!0,harvestTimeSeconds:30,long_task:!1},session_trace:{enabled:!0,harvestTimeSeconds:10},harvest:{tooManyRequestsDelay:60},session_replay:{enabled:!1,harvestTimeSeconds:60,sampleRate:.1,errorSampleRate:.1,maskTextSelector:"*",maskAllInputs:!0,get blockClass(){return"nr-block"},get ignoreClass(){return"nr-ignore"},get maskTextClass(){return"nr-mask"},get blockSelector(){return e.blockSelector},set blockSelector(t){e.blockSelector+=",".concat(t)},get maskInputOptions(){return e.maskInputOptions},set maskInputOptions(t){e.maskInputOptions={...t,password:!0}}},spa:{enabled:!0,harvestTimeSeconds:10}}},f={};function l(e){if(!e)throw new Error("All configuration objects require an agent identifier!");if(!f[e])throw new Error("Configuration for ".concat(e," was never set"));return f[e]}function h(e,t){if(!e)throw new Error("All configuration objects require an agent identifier!");f[e]=(0,i.D)(t,d()),(0,n.Qy)(e,f[e],"config")}function g(e,t){if(!e)throw new Error("All configuration objects require an agent identifier!");var r=l(e);if(r){for(var n=t.split("."),i=0;i {r.d(t,{D:()=>i});var n=r(50);function i(e,t){try{if(!e||"object"!=typeof e)return(0,n.Z)("Setting a Configurable requires an object as input");if(!t||"object"!=typeof t)return(0,n.Z)("Setting a Configurable requires a model to set its initial properties");const r=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),o=0===Object.keys(r).length?e:r;for(let a in o)if(void 0!==e[a])try{"object"==typeof e[a]&&"object"==typeof t[a]?r[a]=i(e[a],t[a]):r[a]=e[a]}catch(e){(0,n.Z)("An error occurred while setting a property of a Configurable",e)}return r}catch(e){(0,n.Z)("An error occured while setting a Configurable",e)}}},6818:(e,t,r)=>{r.d(t,{Re:()=>i,gF:()=>o,q4:()=>n});const n="1.236.0",i="PROD",o="CDN"},385:(e,t,r)=>{r.d(t,{FN:()=>a,IF:()=>u,Nk:()=>f,Tt:()=>s,_A:()=>o,il:()=>n,pL:()=>c,v6:()=>i,w1:()=>d});const n="undefined"!=typeof window&&!!window.document,i="undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self.navigator instanceof WorkerNavigator||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis.navigator instanceof WorkerNavigator),o=n?window:"undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis),a=""+o?.location,s=/iPad|iPhone|iPod/.test(navigator.userAgent),c=s&&"undefined"==typeof SharedWorker,u=(()=>{const e=navigator.userAgent.match(/Firefox[/\s](\d+\.\d+)/);return Array.isArray(e)&&e.length>=2?+e[1]:0})(),d=Boolean(n&&window.document.documentMode),f=!!navigator.sendBeacon},1117:(e,t,r)=>{r.d(t,{w:()=>o});var n=r(50);const i={agentIdentifier:"",ee:void 0};class o{constructor(e){try{if("object"!=typeof e)return(0,n.Z)("shared context requires an object as input");this.sharedContext={},Object.assign(this.sharedContext,i),Object.entries(e).forEach((e=>{let[t,r]=e;Object.keys(i).includes(t)&&(this.sharedContext[t]=r)}))}catch(e){(0,n.Z)("An error occured while setting SharedContext",e)}}}},8e3:(e,t,r)=>{r.d(t,{L:()=>d,R:()=>c});var n=r(2177),i=r(1284),o=r(4322),a=r(3325);const s={};function c(e,t){const r={staged:!1,priority:a.p[t]||0};u(e),s[e].get(t)||s[e].set(t,r)}function u(e){e&&(s[e]||(s[e]=new Map))}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"feature";if(u(e),!e||!s[e].get(t))return a(t);s[e].get(t).staged=!0;const r=[...s[e]];function a(t){const r=e?n.ee.get(e):n.ee,a=o.X.handlers;if(r.backlog&&a){var s=r.backlog[t],c=a[t];if(c){for(var u=0;s&&u {let[t,r]=e;return r.staged}))&&(r.sort(((e,t)=>e[1].priority-t[1].priority)),r.forEach((e=>{let[t]=e;a(t)})))}function f(e,t){var r=e[1];(0,i.D)(t[r],(function(t,r){var n=e[0];if(r[0]===n){var i=r[1],o=e[3],a=e[2];i.apply(o,a)}}))}},2177:(e,t,r)=>{r.d(t,{c:()=>f,ee:()=>u});var n=r(8632),i=r(2210),o=r(1284),a=r(5763),s="nr@context";let c=(0,n.fP)();var u;function d(){}function f(e){return(0,i.X)(e,s,l)}function l(){return new d}function h(){u.aborted=!0,u.backlog={}}c.ee?u=c.ee:(u=function e(t,r){var n={},c={},f={},g=!1;try{g=16===r.length&&(0,a.OP)(r).isolatedBacklog}catch(e){}var p={on:b,addEventListener:b,removeEventListener:y,emit:v,get:x,listeners:w,context:m,buffer:A,abort:h,aborted:!1,isBuffering:E,debugId:r,backlog:g?{}:t&&"object"==typeof t.backlog?t.backlog:{}};return p;function m(e){return e&&e instanceof d?e:e?(0,i.X)(e,s,l):l()}function v(e,r,n,i,o){if(!1!==o&&(o=!0),!u.aborted||i){t&&o&&t.emit(e,r,n);for(var a=m(n),s=w(e),d=s.length,f=0;fn,p:()=>i});var n=r(2177).ee.get("handle");function i(e,t,r,i,o){o?(o.buffer([e],i),o.emit(e,t,r)):(n.buffer([e],i),n.emit(e,t,r))}},4322:(e,t,r)=>{r.d(t,{X:()=>o});var n=r(5546);o.on=a;var i=o.handlers={};function o(e,t,r,o){a(o||n.E,i,e,t,r)}function a(e,t,r,i,o){o||(o="feature"),e||(e=n.E);var a=t[o]=t[o]||{};(a[r]=a[r]||[]).push([e,i])}},3239:(e,t,r)=>{r.d(t,{bP:()=>s,iz:()=>c,m$:()=>a});var n=r(385);let i=!1,o=!1;try{const e={get passive(){return i=!0,!1},get signal(){return o=!0,!1}};n._A.addEventListener("test",null,e),n._A.removeEventListener("test",null,e)}catch(e){}function a(e,t){return i||o?{capture:!!e,passive:i,signal:t}:!!e}function s(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0;window.addEventListener(e,t,a(r,n))}function c(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0;document.addEventListener(e,t,a(r,n))}},4402:(e,t,r)=>{r.d(t,{Ht:()=>u,M:()=>c,Rl:()=>a,ky:()=>s});var n=r(385);const i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";function o(e,t){return e?15&e[t]:16*Math.random()|0}function a(){const e=n._A?.crypto||n._A?.msCrypto;let t,r=0;return e&&e.getRandomValues&&(t=e.getRandomValues(new Uint8Array(31))),i.split("").map((e=>"x"===e?o(t,++r).toString(16):"y"===e?(3&o()|8).toString(16):e)).join("")}function s(e){const t=n._A?.crypto||n._A?.msCrypto;let r,i=0;t&&t.getRandomValues&&(r=t.getRandomValues(new Uint8Array(31)));const a=[];for(var s=0;s {r.d(t,{Bq:()=>n,Hb:()=>o,oD:()=>i});const n="NRBA",i=144e5,o=18e5},7894:(e,t,r)=>{function n(){return Math.round(performance.now())}r.d(t,{z:()=>n})},7243:(e,t,r)=>{r.d(t,{e:()=>o});var n=r(385),i={};function o(e){if(e in i)return i[e];if(0===(e||"").indexOf("data:"))return{protocol:"data"};let t;var r=n._A?.location,o={};if(n.il)t=document.createElement("a"),t.href=e;else try{t=new URL(e,r.href)}catch(e){return o}o.port=t.port;var a=t.href.split("://");!o.port&&a[1]&&(o.port=a[1].split("/")[0].split("@").pop().split(":")[1]),o.port&&"0"!==o.port||(o.port="https"===a[0]?"443":"80"),o.hostname=t.hostname||r.hostname,o.pathname=t.pathname,o.protocol=a[0],"/"!==o.pathname.charAt(0)&&(o.pathname="/"+o.pathname);var s=!t.protocol||":"===t.protocol||t.protocol===r.protocol,c=t.hostname===r.hostname&&t.port===r.port;return o.sameOrigin=s&&(!t.hostname||c),"/"===o.pathname&&(i[e]=o),o}},50:(e,t,r)=>{function n(e,t){"function"==typeof console.warn&&(console.warn("New Relic: ".concat(e)),t&&console.warn(t))}r.d(t,{Z:()=>n})},2587:(e,t,r)=>{r.d(t,{N:()=>c,T:()=>u});var n=r(2177),i=r(5546),o=r(8e3),a=r(3325);const s={stn:[a.D.sessionTrace],err:[a.D.jserrors,a.D.metrics],ins:[a.D.pageAction],spa:[a.D.spa],sr:[a.D.sessionReplay,a.D.sessionTrace]};function c(e,t){const r=n.ee.get(t);e&&"object"==typeof e&&(Object.entries(e).forEach((e=>{let[t,n]=e;void 0===u[t]&&(s[t]?s[t].forEach((e=>{n?(0,i.p)("feat-"+t,[],void 0,e,r):(0,i.p)("block-"+t,[],void 0,e,r),(0,i.p)("rumresp-"+t,[Boolean(n)],void 0,e,r)})):n&&(0,i.p)("feat-"+t,[],void 0,void 0,r),u[t]=Boolean(n))})),Object.keys(s).forEach((e=>{void 0===u[e]&&(s[e]?.forEach((t=>(0,i.p)("rumresp-"+e,[!1],void 0,t,r))),u[e]=!1)})),(0,o.L)(t,a.D.pageViewEvent))}const u={}},2210:(e,t,r)=>{r.d(t,{X:()=>i});var n=Object.prototype.hasOwnProperty;function i(e,t,r){if(n.call(e,t))return e[t];var i=r();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}},1284:(e,t,r)=>{r.d(t,{D:()=>n});const n=(e,t)=>Object.entries(e||{}).map((e=>{let[r,n]=e;return t(r,n)}))},4351:(e,t,r)=>{r.d(t,{P:()=>o});var n=r(2177);const i=()=>{const e=new WeakSet;return(t,r)=>{if("object"==typeof r&&null!==r){if(e.has(r))return;e.add(r)}return r}};function o(e){try{return JSON.stringify(e,i())}catch(e){try{n.ee.emit("internal-error",[e])}catch(e){}}}},3960:(e,t,r)=>{r.d(t,{K:()=>a,b:()=>o});var n=r(3239);function i(){return"undefined"==typeof document||"complete"===document.readyState}function o(e,t){if(i())return e();(0,n.bP)("load",e,t)}function a(e){if(i())return e();(0,n.iz)("DOMContentLoaded",e)}},8632:(e,t,r)=>{r.d(t,{EZ:()=>u,Qy:()=>c,ce:()=>o,fP:()=>a,gG:()=>d,mF:()=>s});var n=r(7894),i=r(385);const o={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net"};function a(){return i._A.NREUM||(i._A.NREUM={}),void 0===i._A.newrelic&&(i._A.newrelic=i._A.NREUM),i._A.NREUM}function s(){let e=a();return e.o||(e.o={ST:i._A.setTimeout,SI:i._A.setImmediate,CT:i._A.clearTimeout,XHR:i._A.XMLHttpRequest,REQ:i._A.Request,EV:i._A.Event,PR:i._A.Promise,MO:i._A.MutationObserver,FETCH:i._A.fetch}),e}function c(e,t,r){let i=a();const o=i.initializedAgents||{},s=o[e]||{};return Object.keys(s).length||(s.initializedAt={ms:(0,n.z)(),date:new Date}),i.initializedAgents={...o,[e]:{...s,[r]:t}},i}function u(e,t){a()[e]=t}function d(){return function(){let e=a();const t=e.info||{};e.info={beacon:o.beacon,errorBeacon:o.errorBeacon,...t}}(),function(){let e=a();const t=e.init||{};e.init={...t}}(),s(),function(){let e=a();const t=e.loader_config||{};e.loader_config={...t}}(),a()}},7956:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(3239);function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return void(0,n.iz)("visibilitychange",(function(){if(t)return void("hidden"==document.visibilityState&&e());e(document.visibilityState)}),r,i)}},1214:(e,t,r)=>{r.d(t,{em:()=>v,u5:()=>N,QU:()=>S,_L:()=>I,Gm:()=>L,Lg:()=>M,gy:()=>U,BV:()=>Q,Kf:()=>ee});var n=r(2177);const i="nr@original";var o=Object.prototype.hasOwnProperty,a=!1;function s(e,t){return e||(e=n.ee),r.inPlace=function(e,t,n,i,o){n||(n="");var a,s,c,u="-"===n.charAt(0);for(c=0;c 2?n-2:0),o=2;o {r(A[T],e,w),r(E[T],e,w)})),r(l._A,"fetch",y),t.on(y+"end",(function(e,r){var n=this;if(r){var i=r.headers.get("content-length");null!==i&&(n.rxSize=i),t.emit(y+"done",[null,r],n)}else t.emit(y+"done",[e],n)})),t}const O={},j=["pushState","replaceState"];function S(e){const t=function(e){return(e||n.ee).get("history")}(e);return!l.il||O[t.debugId]++||(O[t.debugId]=1,s(t).inPlace(window.history,j,"-")),t}var P=r(3239);const C={},R=["appendChild","insertBefore","replaceChild"];function I(e){const t=function(e){return(e||n.ee).get("jsonp")}(e);if(!l.il||C[t.debugId])return t;C[t.debugId]=!0;var r=s(t),i=/[?&](?:callback|cb)=([^&#]+)/,o=/(.*)\.([^.]+)/,a=/^(\w+)(\.|$)(.*)$/;function c(e,t){var r=e.match(a),n=r[1],i=r[3];return i?c(i,t[n]):t[n]}return r.inPlace(Node.prototype,R,"dom-"),t.on("dom-start",(function(e){!function(e){if(!e||"string"!=typeof e.nodeName||"script"!==e.nodeName.toLowerCase())return;if("function"!=typeof e.addEventListener)return;var n=(a=e.src,s=a.match(i),s?s[1]:null);var a,s;if(!n)return;var u=function(e){var t=e.match(o);if(t&&t.length>=3)return{key:t[2],parent:c(t[1],window)};return{key:e,parent:window}}(n);if("function"!=typeof u.parent[u.key])return;var d={};function f(){t.emit("jsonp-end",[],d),e.removeEventListener("load",f,(0,P.m$)(!1)),e.removeEventListener("error",l,(0,P.m$)(!1))}function l(){t.emit("jsonp-error",[],d),t.emit("jsonp-end",[],d),e.removeEventListener("load",f,(0,P.m$)(!1)),e.removeEventListener("error",l,(0,P.m$)(!1))}r.inPlace(u.parent,[u.key],"cb-",d),e.addEventListener("load",f,(0,P.m$)(!1)),e.addEventListener("error",l,(0,P.m$)(!1)),t.emit("new-jsonp",[e.src],d)}(e[0])})),t}var k=r(5763);const H={};function L(e){const t=function(e){return(e||n.ee).get("mutation")}(e);if(!l.il||H[t.debugId])return t;H[t.debugId]=!0;var r=s(t),i=k.Yu.MO;return i&&(window.MutationObserver=function(e){return this instanceof i?new i(r(e,"fn-")):i.apply(this,arguments)},MutationObserver.prototype=i.prototype),t}const z={};function M(e){const t=function(e){return(e||n.ee).get("promise")}(e);if(z[t.debugId])return t;z[t.debugId]=!0;var r=n.c,o=s(t),a=k.Yu.PR;return a&&function(){function e(r){var n=t.context(),i=o(r,"executor-",n,null,!1);const s=Reflect.construct(a,[i],e);return t.context(s).getCtx=function(){return n},s}l._A.Promise=e,Object.defineProperty(e,"name",{value:"Promise"}),e.toString=function(){return a.toString()},Object.setPrototypeOf(e,a),["all","race"].forEach((function(r){const n=a[r];e[r]=function(e){let i=!1;[...e||[]].forEach((e=>{this.resolve(e).then(a("all"===r),a(!1))}));const o=n.apply(this,arguments);return o;function a(e){return function(){t.emit("propagate",[null,!i],o,!1,!1),i=i||!e}}}})),["resolve","reject"].forEach((function(r){const n=a[r];e[r]=function(e){const r=n.apply(this,arguments);return e!==r&&t.emit("propagate",[e,!0],r,!1,!1),r}})),e.prototype=a.prototype;const n=a.prototype.then;a.prototype.then=function(){var e=this,i=r(e);i.promise=e;for(var a=arguments.length,s=new Array(a),c=0;c e())),t};function m(e,t){i.inPlace(t,["onreadystatechange"],"fn-",E)}function b(){var e=this,t=r.context(e);e.readyState>3&&!t.resolved&&(t.resolved=!0,r.emit("xhr-resolved",[],e)),i.inPlace(e,f,"fn-",E)}if(function(e,t){for(var r in e)t[r]=e[r]}(o,p),p.prototype=o.prototype,i.inPlace(p.prototype,J,"-xhr-",E),r.on("send-xhr-start",(function(e,t){m(e,t),function(e){h.push(e),a&&(y?y.then(A):u?u(A):(w=-w,x.data=w))}(t)})),r.on("open-xhr-start",m),a){var y=c&&c.resolve();if(!u&&!c){var w=1,x=document.createTextNode(w);new a(A).observe(x,{characterData:!0})}}else t.on("fn-end",(function(e){e[0]&&e[0].type===d||A()}));function A(){for(var e=0;e {r.d(t,{t:()=>n});const n=r(3325).D.ajax},6660:(e,t,r)=>{r.d(t,{A:()=>i,t:()=>n});const n=r(3325).D.jserrors,i="nr@seenError"},3081:(e,t,r)=>{r.d(t,{gF:()=>o,mY:()=>i,t9:()=>n,vz:()=>s,xS:()=>a});const n=r(3325).D.metrics,i="sm",o="cm",a="storeSupportabilityMetrics",s="storeEventMetrics"},4649:(e,t,r)=>{r.d(t,{t:()=>n});const n=r(3325).D.pageAction},7633:(e,t,r)=>{r.d(t,{Dz:()=>i,OJ:()=>a,qw:()=>o,t9:()=>n});const n=r(3325).D.pageViewEvent,i="firstbyte",o="domcontent",a="windowload"},9251:(e,t,r)=>{r.d(t,{t:()=>n});const n=r(3325).D.pageViewTiming},3614:(e,t,r)=>{r.d(t,{BST_RESOURCE:()=>i,END:()=>s,FEATURE_NAME:()=>n,FN_END:()=>u,FN_START:()=>c,PUSH_STATE:()=>d,RESOURCE:()=>o,START:()=>a});const n=r(3325).D.sessionTrace,i="bstResource",o="resource",a="-start",s="-end",c="fn"+a,u="fn"+s,d="pushState"},7836:(e,t,r)=>{r.d(t,{BODY:()=>A,CB_END:()=>E,CB_START:()=>u,END:()=>x,FEATURE_NAME:()=>i,FETCH:()=>_,FETCH_BODY:()=>v,FETCH_DONE:()=>m,FETCH_START:()=>p,FN_END:()=>c,FN_START:()=>s,INTERACTION:()=>l,INTERACTION_API:()=>d,INTERACTION_EVENTS:()=>o,JSONP_END:()=>b,JSONP_NODE:()=>g,JS_TIME:()=>T,MAX_TIMER_BUDGET:()=>a,REMAINING:()=>f,SPA_NODE:()=>h,START:()=>w,originalSetTimeout:()=>y});var n=r(5763);const i=r(3325).D.spa,o=["click","submit","keypress","keydown","keyup","change"],a=999,s="fn-start",c="fn-end",u="cb-start",d="api-ixn-",f="remaining",l="interaction",h="spaNode",g="jsonpNode",p="fetch-start",m="fetch-done",v="fetch-body-",b="jsonp-end",y=n.Yu.ST,w="-start",x="-end",A="-body",E="cb"+x,T="jsTime",_="fetch"},5938:(e,t,r)=>{r.d(t,{W:()=>o});var n=r(5763),i=r(2177);class o{constructor(e,t,r){this.agentIdentifier=e,this.aggregator=t,this.ee=i.ee.get(e,(0,n.OP)(this.agentIdentifier).isolatedBacklog),this.featureName=r,this.blocked=!1}}},9144:(e,t,r)=>{r.d(t,{j:()=>m});var n=r(3325),i=r(5763),o=r(5546),a=r(2177),s=r(7894),c=r(8e3),u=r(3960),d=r(385),f=r(50),l=r(3081),h=r(8632);function g(){const e=(0,h.gG)();["setErrorHandler","finished","addToTrace","inlineHit","addRelease","addPageAction","setCurrentRouteName","setPageViewName","setCustomAttribute","interaction","noticeError","setUserId"].forEach((t=>{e[t]=function(){for(var r=arguments.length,n=new Array(r),i=0;i 1?r-1:0),i=1;i {e.exposed&&e.api[t]&&o.push(e.api[t](...n))})),o.length>1?o:o[0]}(t,...n)}}))}var p=r(2587);function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=arguments.length>2?arguments[2]:void 0,v=arguments.length>3?arguments[3]:void 0,{init:b,info:y,loader_config:w,runtime:x={loaderType:m},exposed:A=!0}=t;const E=(0,h.gG)();y||(b=E.init,y=E.info,w=E.loader_config),(0,i.Dg)(e,b||{}),(0,i.GE)(e,w||{}),(0,i.sU)(e,x),y.jsAttributes??={},d.v6&&(y.jsAttributes.isWorker=!0),(0,i.CX)(e,y),g();const T=function(e,t){t||(0,c.R)(e,"api");const h={};var g=a.ee.get(e),p=g.get("tracer"),m="api-",v=m+"ixn-";function b(t,r,n,o){const a=(0,i.C5)(e);return null===r?delete a.jsAttributes[t]:(0,i.CX)(e,{...a,jsAttributes:{...a.jsAttributes,[t]:r}}),x(m,n,!0,o||null===r?"session":void 0)(t,r)}function y(){}["setErrorHandler","finished","addToTrace","inlineHit","addRelease"].forEach((e=>h[e]=x(m,e,!0,"api"))),h.addPageAction=x(m,"addPageAction",!0,n.D.pageAction),h.setCurrentRouteName=x(m,"routeName",!0,n.D.spa),h.setPageViewName=function(t,r){if("string"==typeof t)return"/"!==t.charAt(0)&&(t="/"+t),(0,i.OP)(e).customTransaction=(r||"http://custom.transaction")+t,x(m,"setPageViewName",!0)()},h.setCustomAttribute=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"==typeof e){if(["string","number"].includes(typeof t)||null===t)return b(e,t,"setCustomAttribute",r);(0,f.Z)("Failed to execute setCustomAttribute.\nNon-null value must be a string or number type, but a type of was provided."))}else(0,f.Z)("Failed to execute setCustomAttribute.\nName must be a string type, but a type of was provided."))},h.setUserId=function(e){if("string"==typeof e||null===e)return b("enduser.id",e,"setUserId",!0);(0,f.Z)("Failed to execute setUserId.\nNon-null value must be a string type, but a type of was provided."))},h.interaction=function(){return(new y).get()};var w=y.prototype={createTracer:function(e,t){var r={},i=this,a="function"==typeof t;return(0,o.p)(v+"tracer",[(0,s.z)(),e,r],i,n.D.spa,g),function(){if(p.emit((a?"":"no-")+"fn-start",[(0,s.z)(),i,a],r),a)try{return t.apply(this,arguments)}catch(e){throw p.emit("fn-err",[arguments,this,"string"==typeof e?new Error(e):e],r),e}finally{p.emit("fn-end",[(0,s.z)()],r)}}}};function x(e,t,r,i){return function(){return(0,o.p)(l.xS,["API/"+t+"/called"],void 0,n.D.metrics,g),i&&(0,o.p)(e+t,[(0,s.z)(),...arguments],r?null:this,i,g),r?void 0:this}}function A(){r.e(439).then(r.bind(r,7438)).then((t=>{let{setAPI:r}=t;r(e),(0,c.L)(e,"api")})).catch((()=>(0,f.Z)("Downloading runtime APIs failed...")))}return["actionText","setName","setAttribute","save","ignore","onEnd","getContext","end","get"].forEach((e=>{w[e]=x(v,e,void 0,n.D.spa)})),h.noticeError=function(e,t){"string"==typeof e&&(e=new Error(e)),(0,o.p)(l.xS,["API/noticeError/called"],void 0,n.D.metrics,g),(0,o.p)("err",[e,(0,s.z)(),!1,t],void 0,n.D.jserrors,g)},d.il?(0,u.b)((()=>A()),!0):A(),h}(e,v);return(0,h.Qy)(e,T,"api"),(0,h.Qy)(e,A,"exposed"),(0,h.EZ)("activatedFeatures",p.T),T}},3325:(e,t,r)=>{r.d(t,{D:()=>n,p:()=>i});const n={ajax:"ajax",jserrors:"jserrors",metrics:"metrics",pageAction:"page_action",pageViewEvent:"page_view_event",pageViewTiming:"page_view_timing",sessionReplay:"session_replay",sessionTrace:"session_trace",spa:"spa"},i={[n.pageViewEvent]:1,[n.pageViewTiming]:2,[n.metrics]:3,[n.jserrors]:4,[n.ajax]:5,[n.sessionTrace]:6,[n.pageAction]:7,[n.spa]:8,[n.sessionReplay]:9}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.m=r,i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,r)=>(i.f[r](e,t),t)),[])),i.u=e=>(({78:"page_action-aggregate",147:"metrics-aggregate",242:"session-manager",317:"jserrors-aggregate",348:"page_view_timing-aggregate",412:"lazy-feature-loader",439:"async-api",538:"recorder",590:"session_replay-aggregate",675:"compressor",733:"session_trace-aggregate",786:"page_view_event-aggregate",873:"spa-aggregate",898:"ajax-aggregate"}[e]||e)+"."+{78:"ac76d497",147:"3dc53903",148:"1a20d5fe",242:"2a64278a",317:"49e41428",348:"bd6de33a",412:"2f55ce66",439:"30bd804e",538:"1b18459f",590:"cf0efb30",675:"ae9f91a8",733:"83105561",786:"06482edd",860:"03a8b7a5",873:"e6b09d52",898:"998ef92b"}[e]+"-1.236.0.min.js"),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="NRBA:",i.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),d=0;d {s.onerror=s.onload=null,clearTimeout(h);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},h=setTimeout(l.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=l.bind(null,s.onerror),s.onload=l.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=364,i.p="https://js-agent.newrelic.com/",(()=>{var e={364:0,953:0};i.f.j=(t,r)=>{var n=i.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,i)=>n=e[t]=[r,i]));r.push(n[2]=o);var a=i.p+i.u(t),s=new Error;i.l(a,(r=>{if(i.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[a,s,c]=r,u=0;if(a.some((t=>0!==e[t]))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(c)c(i)}for(t&&t(r);u {i.r(o);var e=i(3325),t=i(5763);const r=Object.values(e.D);function n(e){const n={};return r.forEach((r=>{n[r]=function(e,r){return!1!==(0,t.Mt)(r,"".concat(e,".enabled"))}(r,e)})),n}var a=i(9144);var s=i(5546),c=i(385),u=i(8e3),d=i(5938),f=i(3960),l=i(50);class h extends d.W{constructor(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];super(e,t,r),this.auto=n,this.abortHandler,this.featAggregate,this.onAggregateImported,n&&(0,u.R)(e,r)}importAggregator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.featAggregate||!this.auto)return;const r=c.il&&!0===(0,t.Mt)(this.agentIdentifier,"privacy.cookies_enabled");let n;this.onAggregateImported=new Promise((e=>{n=e}));const o=async()=>{let t;try{if(r){const{setupAgentSession:e}=await Promise.all([i.e(860),i.e(242)]).then(i.bind(i,3228));t=e(this.agentIdentifier)}}catch(e){(0,l.Z)("A problem occurred when starting up session manager. This page will not start or extend any session.",e)}try{if(!this.shouldImportAgg(this.featureName,t))return void(0,u.L)(this.agentIdentifier,this.featureName);const{lazyFeatureLoader:r}=await i.e(412).then(i.bind(i,8582)),{Aggregate:o}=await r(this.featureName,"aggregate");this.featAggregate=new o(this.agentIdentifier,this.aggregator,e),n(!0)}catch(e){(0,l.Z)("Downloading and initializing ".concat(this.featureName," failed..."),e),this.abortHandler?.(),n(!1)}};c.il?(0,f.b)((()=>o()),!0):o()}shouldImportAgg(r,n){return r!==e.D.sessionReplay||!1!==(0,t.Mt)(this.agentIdentifier,"session_trace.enabled")&&(!!n?.isNew||!!n?.state.sessionReplay)}}var g=i(7633),p=i(7894);class m extends h{static featureName=g.t9;constructor(r,n){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(super(r,n,g.t9,i),("undefined"==typeof PerformanceNavigationTiming||c.Tt)&&"undefined"!=typeof PerformanceTiming){const n=(0,t.OP)(r);n[g.Dz]=Math.max(Date.now()-n.offset,0),(0,f.K)((()=>n[g.qw]=Math.max((0,p.z)()-n[g.Dz],0))),(0,f.b)((()=>{const t=(0,p.z)();n[g.OJ]=Math.max(t-n[g.Dz],0),(0,s.p)("timing",["load",t],void 0,e.D.pageViewTiming,this.ee)}))}this.importAggregator()}}var v=i(1117),b=i(1284);class y extends v.w{constructor(e){super(e),this.aggregatedData={}}store(e,t,r,n,i){var o=this.getBucket(e,t,r,i);return o.metrics=function(e,t){t||(t={count:0});return t.count+=1,(0,b.D)(e,(function(e,r){t[e]=w(r,t[e])})),t}(n,o.metrics),o}merge(e,t,r,n,i){var o=this.getBucket(e,t,n,i);if(o.metrics){var a=o.metrics;a.count+=r.count,(0,b.D)(r,(function(e,t){if("count"!==e){var n=a[e],i=r[e];i&&!i.c?a[e]=w(i.t,n):a[e]=function(e,t){if(!t)return e;t.c||(t=x(t.t));return t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t}(i,a[e])}}))}else o.metrics=r}storeMetric(e,t,r,n){var i=this.getBucket(e,t,r);return i.stats=w(n,i.stats),i}getBucket(e,t,r,n){this.aggregatedData[e]||(this.aggregatedData[e]={});var i=this.aggregatedData[e][t];return i||(i=this.aggregatedData[e][t]={params:r||{}},n&&(i.custom=n)),i}get(e,t){return t?this.aggregatedData[e]&&this.aggregatedData[e][t]:this.aggregatedData[e]}take(e){for(var t={},r="",n=!1,i=0;i t.max&&(t.max=e),e 2&&void 0!==arguments[2])||arguments[2];super(e,r,j.t,n),c.il&&((0,t.OP)(e).initHidden=Boolean("hidden"===document.visibilityState),(0,N.N)((()=>(0,s.p)("docHidden",[(0,p.z)()],void 0,j.t,this.ee)),!0),(0,O.bP)("pagehide",(()=>(0,s.p)("winPagehide",[(0,p.z)()],void 0,j.t,this.ee))),this.importAggregator())}}var P=i(3081);class C extends h{static featureName=P.t9;constructor(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];super(e,t,P.t9,r),this.importAggregator()}}var R,I=i(2210),k=i(1214),H=i(2177),L={};try{R=localStorage.getItem("__nr_flags").split(","),console&&"function"==typeof console.log&&(L.console=!0,-1!==R.indexOf("dev")&&(L.dev=!0),-1!==R.indexOf("nr_dev")&&(L.nrDev=!0))}catch(e){}function z(e){try{L.console&&z(e)}catch(e){}}L.nrDev&&H.ee.on("internal-error",(function(e){z(e.stack)})),L.dev&&H.ee.on("fn-err",(function(e,t,r){z(r.stack)})),L.dev&&(z("NR AGENT IN DEVELOPMENT MODE"),z("flags: "+(0,b.D)(L,(function(e,t){return e})).join(", ")));var M=i(6660);class B extends h{static featureName=M.t;constructor(r,n){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];super(r,n,M.t,i),this.skipNext=0;try{this.removeOnAbort=new AbortController}catch(e){}const o=this;o.ee.on("fn-start",(function(e,t,r){o.abortHandler&&(o.skipNext+=1)})),o.ee.on("fn-err",(function(t,r,n){o.abortHandler&&!n[M.A]&&((0,I.X)(n,M.A,(function(){return!0})),this.thrown=!0,(0,s.p)("err",[n,(0,p.z)()],void 0,e.D.jserrors,o.ee))})),o.ee.on("fn-end",(function(){o.abortHandler&&!this.thrown&&o.skipNext>0&&(o.skipNext-=1)})),o.ee.on("internal-error",(function(t){(0,s.p)("ierr",[t,(0,p.z)(),!0],void 0,e.D.jserrors,o.ee)})),this.origOnerror=c._A.onerror,c._A.onerror=this.onerrorHandler.bind(this),c._A.addEventListener("unhandledrejection",(t=>{const r=function(e){let t="Unhandled Promise Rejection: ";if(e instanceof Error)try{return e.message=t+e.message,e}catch(t){return e}if(void 0===e)return new Error(t);try{return new Error(t+(0,D.P)(e))}catch(e){return new Error(t)}}(t.reason);(0,s.p)("err",[r,(0,p.z)(),!1,{unhandledPromiseRejection:1}],void 0,e.D.jserrors,this.ee)}),(0,O.m$)(!1,this.removeOnAbort?.signal)),(0,k.gy)(this.ee),(0,k.BV)(this.ee),(0,k.em)(this.ee),(0,t.OP)(r).xhrWrappable&&(0,k.Kf)(this.ee),this.abortHandler=this.#e,this.importAggregator()}#e(){this.removeOnAbort?.abort(),this.abortHandler=void 0}onerrorHandler(t,r,n,i,o){"function"==typeof this.origOnerror&&this.origOnerror(...arguments);try{this.skipNext?this.skipNext-=1:(0,s.p)("err",[o||new F(t,r,n),(0,p.z)()],void 0,e.D.jserrors,this.ee)}catch(t){try{(0,s.p)("ierr",[t,(0,p.z)(),!0],void 0,e.D.jserrors,this.ee)}catch(e){}}return!1}}function F(e,t,r){this.message=e||"Uncaught error with no additional information",this.sourceURL=t,this.line=r}let U=1;const q="nr@id";function G(e){const t=typeof e;return!e||"object"!==t&&"function"!==t?-1:e===c._A?0:(0,I.X)(e,q,(function(){return U++}))}function V(e){if("string"==typeof e&&e.length)return e.length;if("object"==typeof e){if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&e.byteLength)return e.byteLength;if("undefined"!=typeof Blob&&e instanceof Blob&&e.size)return e.size;if(!("undefined"!=typeof FormData&&e instanceof FormData))try{return(0,D.P)(e).length}catch(e){return}}}var X=i(7243);class W{constructor(e){this.agentIdentifier=e,this.generateTracePayload=this.generateTracePayload.bind(this),this.shouldGenerateTrace=this.shouldGenerateTrace.bind(this)}generateTracePayload(e){if(!this.shouldGenerateTrace(e))return null;var r=(0,t.DL)(this.agentIdentifier);if(!r)return null;var n=(r.accountID||"").toString()||null,i=(r.agentID||"").toString()||null,o=(r.trustKey||"").toString()||null;if(!n||!i)return null;var a=(0,_.M)(),s=(0,_.Ht)(),c=Date.now(),u={spanId:a,traceId:s,timestamp:c};return(e.sameOrigin||this.isAllowedOrigin(e)&&this.useTraceContextHeadersForCors())&&(u.traceContextParentHeader=this.generateTraceContextParentHeader(a,s),u.traceContextStateHeader=this.generateTraceContextStateHeader(a,c,n,i,o)),(e.sameOrigin&&!this.excludeNewrelicHeader()||!e.sameOrigin&&this.isAllowedOrigin(e)&&this.useNewrelicHeaderForCors())&&(u.newrelicHeader=this.generateTraceHeader(a,s,c,n,i,o)),u}generateTraceContextParentHeader(e,t){return"00-"+t+"-"+e+"-01"}generateTraceContextStateHeader(e,t,r,n,i){return i+"@nr=0-1-"+r+"-"+n+"-"+e+"----"+t}generateTraceHeader(e,t,r,n,i,o){if(!("function"==typeof c._A?.btoa))return null;var a={v:[0,1],d:{ty:"Browser",ac:n,ap:i,id:e,tr:t,ti:r}};return o&&n!==o&&(a.d.tk=o),btoa((0,D.P)(a))}shouldGenerateTrace(e){return this.isDtEnabled()&&this.isAllowedOrigin(e)}isAllowedOrigin(e){var r=!1,n={};if((0,t.Mt)(this.agentIdentifier,"distributed_tracing")&&(n=(0,t.P_)(this.agentIdentifier).distributed_tracing),e.sameOrigin)r=!0;else if(n.allowed_origins instanceof Array)for(var i=0;i 2&&void 0!==arguments[2])||arguments[2];super(r,n,Z.t,i),(0,t.OP)(r).xhrWrappable&&(this.dt=new W(r),this.handler=(e,t,r,n)=>(0,s.p)(e,t,r,n,this.ee),(0,k.u5)(this.ee),(0,k.Kf)(this.ee),function(r,n,i,o){function a(e){var t=this;t.totalCbs=0,t.called=0,t.cbTime=0,t.end=E,t.ended=!1,t.xhrGuids={},t.lastSize=null,t.loadCaptureCalled=!1,t.params=this.params||{},t.metrics=this.metrics||{},e.addEventListener("load",(function(r){_(t,e)}),(0,O.m$)(!1)),c.IF||e.addEventListener("progress",(function(e){t.lastSize=e.loaded}),(0,O.m$)(!1))}function s(e){this.params={method:e[0]},T(this,e[1]),this.metrics={}}function u(e,n){var i=(0,t.DL)(r);i.xpid&&this.sameOrigin&&n.setRequestHeader("X-NewRelic-ID",i.xpid);var a=o.generateTracePayload(this.parsedOrigin);if(a){var s=!1;a.newrelicHeader&&(n.setRequestHeader("newrelic",a.newrelicHeader),s=!0),a.traceContextParentHeader&&(n.setRequestHeader("traceparent",a.traceContextParentHeader),a.traceContextStateHeader&&n.setRequestHeader("tracestate",a.traceContextStateHeader),s=!0),s&&(this.dt=a)}}function d(e,t){var r=this.metrics,i=e[0],o=this;if(r&&i){var a=V(i);a&&(r.txSize=a)}this.startTime=(0,p.z)(),this.listener=function(e){try{"abort"!==e.type||o.loadCaptureCalled||(o.params.aborted=!0),("load"!==e.type||o.called===o.totalCbs&&(o.onloadCalled||"function"!=typeof t.onload)&&"function"==typeof o.end)&&o.end(t)}catch(e){try{n.emit("internal-error",[e])}catch(e){}}};for(var s=0;s 1?e[1]=i:e.push(i)}else e[0]&&e[0].headers&&s(e[0].headers,n)&&(this.dt=n);function s(e,t){var r=!1;return t.newrelicHeader&&(e.set("newrelic",t.newrelicHeader),r=!0),t.traceContextParentHeader&&(e.set("traceparent",t.traceContextParentHeader),t.traceContextStateHeader&&e.set("tracestate",t.traceContextStateHeader),r=!0),r}}function x(e,t){this.params={},this.metrics={},this.startTime=(0,p.z)(),this.dt=t,e.length>=1&&(this.target=e[0]),e.length>=2&&(this.opts=e[1]);var r,n=this.opts||{},i=this.target;"string"==typeof i?r=i:"object"==typeof i&&i instanceof Y?r=i.url:c._A?.URL&&"object"==typeof i&&i instanceof URL&&(r=i.href),T(this,r);var o=(""+(i&&i instanceof Y&&i.method||n.method||"GET")).toUpperCase();this.params.method=o,this.txSize=V(n.body)||0}function A(t,r){var n;this.endTime=(0,p.z)(),this.params||(this.params={}),this.params.status=r?r.status:0,"string"==typeof this.rxSize&&this.rxSize.length>0&&(n=+this.rxSize);var o={txSize:this.txSize,rxSize:n,duration:(0,p.z)()-this.startTime};i("xhr",[this.params,o,this.startTime,this.endTime,"fetch"],this,e.D.ajax)}function E(t){var r=this.params,n=this.metrics;if(!this.ended){this.ended=!0;for(var o=0;o 2&&void 0!==arguments[2])||arguments[2];super(e,t,we.t,r),this.importAggregator()}}new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,_.ky)(16);c._A?(this.agentIdentifier=t,this.sharedAggregator=new y({agentIdentifier:this.agentIdentifier}),this.features={},this.desiredFeatures=new Set(e.features||[]),this.desiredFeatures.add(m),Object.assign(this,(0,a.j)(this.agentIdentifier,e,e.loaderType||"agent")),this.start()):(0,l.Z)("Failed to initial the agent. Could not determine the runtime environment.")}get config(){return{info:(0,t.C5)(this.agentIdentifier),init:(0,t.P_)(this.agentIdentifier),loader_config:(0,t.DL)(this.agentIdentifier),runtime:(0,t.OP)(this.agentIdentifier)}}start(){const t="features";try{const r=n(this.agentIdentifier),i=[...this.desiredFeatures];i.sort(((t,r)=>e.p[t.featureName]-e.p[r.featureName])),i.forEach((t=>{if(r[t.featureName]||t.featureName===e.D.pageViewEvent){const n=function(t){switch(t){case e.D.ajax:return[e.D.jserrors];case e.D.sessionTrace:return[e.D.ajax,e.D.pageViewEvent];case e.D.sessionReplay:return[e.D.sessionTrace];case e.D.pageViewTiming:return[e.D.pageViewEvent];default:return[]}}(t.featureName);n.every((e=>r[e]))||(0,l.Z)("".concat(t.featureName," is enabled but one or more dependent features has been disabled (").concat((0,D.P)(n),"). This may cause unintended consequences or missing data...")),this.features[t.featureName]=new t(this.agentIdentifier,this.sharedAggregator)}})),(0,T.Qy)(this.agentIdentifier,this.features,t)}catch(e){(0,l.Z)("Failed to initialize all enabled instrument classes (agent aborted) -",e);for(const e in this.features)this.features[e].abortHandler?.();const r=(0,T.fP)();return delete r.initializedAgents[this.agentIdentifier]?.api,delete r.initializedAgents[this.agentIdentifier]?.[t],delete this.sharedAggregator,r.ee?.abort(),delete r.ee?.get(this.agentIdentifier),!1}}}({features:[J,m,S,class extends h{static featureName=oe;constructor(t,r){if(super(t,r,oe,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),!c.il)return;const n=this.ee;let i;(0,k.QU)(n),this.eventsEE=(0,k.em)(n),this.eventsEE.on(se,(function(e,t){this.bstStart=(0,p.z)()})),this.eventsEE.on(ae,(function(t,r){(0,s.p)("bst",[t[0],r,this.bstStart,(0,p.z)()],void 0,e.D.sessionTrace,n)})),n.on(ce+ne,(function(e){this.time=(0,p.z)(),this.startPath=location.pathname+location.hash})),n.on(ce+ie,(function(t){(0,s.p)("bstHist",[location.pathname+location.hash,this.startPath,this.time],void 0,e.D.sessionTrace,n)}));try{i=new PerformanceObserver((t=>{const r=t.getEntries();(0,s.p)(te,[r],void 0,e.D.sessionTrace,n)})),i.observe({type:re,buffered:!0})}catch(e){}this.importAggregator({resourceObserver:i})}},C,xe,B,class extends h{static featureName=de;constructor(e,r){if(super(e,r,de,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),!c.il)return;if(!(0,t.OP)(e).xhrWrappable)return;try{this.removeOnAbort=new AbortController}catch(e){}let n,i=0;const o=this.ee.get("tracer"),a=(0,k._L)(this.ee),s=(0,k.Lg)(this.ee),u=(0,k.BV)(this.ee),d=(0,k.Kf)(this.ee),f=this.ee.get("events"),l=(0,k.u5)(this.ee),h=(0,k.QU)(this.ee),g=(0,k.Gm)(this.ee);function m(e,t){h.emit("newURL",[""+window.location,t])}function v(){i++,n=window.location.hash,this[ve]=(0,p.z)()}function b(){i--,window.location.hash!==n&&m(0,!0);var e=(0,p.z)();this[pe]=~~this[pe]+e-this[ve],this[ye]=e}function y(e,t){e.on(t,(function(){this[t]=(0,p.z)()}))}this.ee.on(ve,v),s.on(be,v),a.on(be,v),this.ee.on(ye,b),s.on(ge,b),a.on(ge,b),this.ee.buffer([ve,ye,"xhr-resolved"],this.featureName),f.buffer([ve],this.featureName),u.buffer(["setTimeout"+le,"clearTimeout"+fe,ve],this.featureName),d.buffer([ve,"new-xhr","send-xhr"+fe],this.featureName),l.buffer([me+fe,me+"-done",me+he+fe,me+he+le],this.featureName),h.buffer(["newURL"],this.featureName),g.buffer([ve],this.featureName),s.buffer(["propagate",be,ge,"executor-err","resolve"+fe],this.featureName),o.buffer([ve,"no-"+ve],this.featureName),a.buffer(["new-jsonp","cb-start","jsonp-error","jsonp-end"],this.featureName),y(l,me+fe),y(l,me+"-done"),y(a,"new-jsonp"),y(a,"jsonp-end"),y(a,"cb-start"),h.on("pushState-end",m),h.on("replaceState-end",m),window.addEventListener("hashchange",m,(0,O.m$)(!0,this.removeOnAbort?.signal)),window.addEventListener("load",m,(0,O.m$)(!0,this.removeOnAbort?.signal)),window.addEventListener("popstate",(function(){m(0,i>1)}),(0,O.m$)(!0,this.removeOnAbort?.signal)),this.abortHandler=this.#e,this.importAggregator()}#e(){this.removeOnAbort?.abort(),this.abortHandler=void 0}}],loaderType:"spa"})})(),window.NRBA=o})(); window.jQuery || document.write(' ') CKEDITOR_BASEPATH='https://f1000research.com/js/vendor/ckeditor/' window.reactTheme = 'research'; window.MathJax = { CommonHTML: { linebreaks: { automatic: true } }, 'HTML-CSS': { linebreaks: { automatic: true } }, SVG: { linebreaks: { automatic: true } }, AuthorInit: function() { MathJax.Hub.Register.MessageHook('End Process', function () { let timeout = false; // holder for timeout id const delay = 250; // delay after event is "complete" to run callback const reflowMath = function() { const dispFormulas = document.querySelectorAll('.disp-formula.panel'); if (!dispFormulas) { return; } for (const dispFormula of dispFormulas) { const child = dispFormula.querySelector('.MathJax_Preview').nextSibling.firstChild; const isMultiline = MathJax.Hub.getAllJax(dispFormula)[0].root.isMultiline; if (dispFormula.offsetWidth < child.offsetWidth || isMultiline) { MathJax.Hub.Queue(['Rerender', MathJax.Hub, dispFormula]); } } }; window.addEventListener('resize', function() { clearTimeout(timeout); // clear the timeout timeout = setTimeout(reflowMath, delay); // start timing for event "completion" }); }); }, }; if (window.location.hash == '#_=_'){ window.location = window.location.href.split('#')[0] } !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function() {n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;if(!f._fbq)f._fbq=n; n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, document,'script','https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '1641728616063202'); fbq('track', "PixelInitialized", {}); (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:2318163,hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); search file_upload Submit your research search menu close search Browse Gateways & Collections How to Publish Submit your Research My Submissions Article Guidelines Article Guidelines (New Versions) Open Data, Software and Code Guidelines Open Data and Accessible Source Materials Guidelines (HSS) Open Data, Software and Code Guidelines (PSE) Prepublication Checks Production Process Posters and Slides Guidelines Document Guidelines Article Processing Charges Peer Review Finding Article Reviewers About How it Works For Reviewers Our Advisors Policies Glossary FAQs For Developers Newsroom Contact My Research Submissions Content and Tracking Alerts My Details Sign In file_upload Submit your research { "@context": "https://schema.org", "@type": "ScholarlyArticle", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://f1000research.com/articles/14-664" }, "headline": "A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud...", "datePublished": "2025-07-07T15:43:23", "dateModified": "2025-12-11T16:03:45", "author": [ { "@type": "Person", "name": "Mohammad Shanaa" }, { "@type": "Person", "name": "Sherief Abdallah" } ], "publisher": { "@type": "Organization", "name": "F1000Research", "logo": { "@type": "ImageObject", "url": "https://f1000research.com/img/AMP/F1000Research_image.png", "height": 480, "width": 60 } }, "image": { "@type": "ImageObject", "url": "https://f1000research.com/img/AMP/F1000Research_image.png", "height": 1200, "width": 150 }, "description": " Background Credit card fraud detection remains a major challenge because of the highly imbalanced nature of transaction data. Conventional supervised models often suffer from low recall or high false positive rates, whereas unsupervised methods lack precision. Methods In this study, we propose a hybrid anomaly detection framework that combines an unsupervised autoencoder trained on normal transactions to capture reconstruction error patterns with a supervised XGBoost classifier trained on the same dataset. The hybrid system integrates both scores via an optimized thresholding mechanism to balance sensitivity and specificity. We evaluated the model on the publicly available Kaggle creditcard.csv dataset comprising 284,807 transactions, with only 492 labelled fraudulent. Results The proposed model achieved superior performance, with a recall of 0.9250, precision of 0.9569, F1-score of 0.9407, and Matthews Correlation Coefficient (MCC) of 0.9407, with an accuracy of 0.9998, surpassing the results of similar published models using the same dataset. Conclusions This framework provides a practical, reproducible, high-performance solution for detecting financial fraud. The code, model configuration, and data-processing pipeline were made available to support transparency and future research. " } { "@context": "http://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": "1", "item": { "@id": "https://f1000research.com/", "name": "Home" } }, { "@type": "ListItem", "position": "2", "item": { "@id": "https://f1000research.com/browse/articles", "name": "Browse" } }, { "@type": "ListItem", "position": "3", "item": { "@id": "https://f1000research.com/articles/14-664/v1", "name": "A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised..." } } ] } Home Browse A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised... ALL Metrics - Views Downloads Get PDF Get XML Cite How to cite this article Shanaa M and Abdallah S. A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection [version 1; peer review: 1 approved with reservations, 1 not approved] . F1000Research 2025, 14 :664 ( https://doi.org/10.12688/f1000research.166350.1 ) NOTE: If applicable, it is important to ensure the information in square brackets after the title is included in all citations of this article. Close Copy Citation Details Export Export Citation Sciwheel EndNote Ref. Manager Bibtex ProCite Sente EXPORT Select a format first Track Share ▬ ✚ Research Article A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection [version 1; peer review: 1 approved with reservations, 1 not approved] Mohammad Shanaa https://orcid.org/0000-0001-9787-1408 1 , Sherief Abdallah 1 Mohammad Shanaa https://orcid.org/0000-0001-9787-1408 1 , Sherief Abdallah 1 PUBLISHED 07 Jul 2025 Author details Author details 1 Faculty of Engineering and IT, The British University in Dubai, Dubai, Dubai, United Arab Emirates Mohammad Shanaa Roles: Conceptualization, Data Curation, Formal Analysis, Methodology, Resources, Software, Visualization, Writing – Original Draft Preparation Sherief Abdallah Roles: Supervision, Validation, Writing – Review & Editing OPEN PEER REVIEW DETAILS REVIEWER STATUS This article is included in the Artificial Intelligence and Machine Learning gateway. Abstract Background Credit card fraud detection remains a major challenge because of the highly imbalanced nature of transaction data. Conventional supervised models often suffer from low recall or high false positive rates, whereas unsupervised methods lack precision. Methods In this study, we propose a hybrid anomaly detection framework that combines an unsupervised autoencoder trained on normal transactions to capture reconstruction error patterns with a supervised XGBoost classifier trained on the same dataset. The hybrid system integrates both scores via an optimized thresholding mechanism to balance sensitivity and specificity. We evaluated the model on the publicly available Kaggle creditcard.csv dataset comprising 284,807 transactions, with only 492 labelled fraudulent. Results The proposed model achieved superior performance, with a recall of 0.9250, precision of 0.9569, F1-score of 0.9407, and Matthews Correlation Coefficient (MCC) of 0.9407, with an accuracy of 0.9998, surpassing the results of similar published models using the same dataset. Conclusions This framework provides a practical, reproducible, high-performance solution for detecting financial fraud. The code, model configuration, and data-processing pipeline were made available to support transparency and future research. READ ALL READ LESS Keywords Fraud Detection, Autoencoder, Isolation Forest, XGBoost, Random Forest, Hybrid Model, Anomaly Detection, Imbalanced Dataset. Corresponding Author(s) Mohammad Shanaa ( [email protected] ) Close Corresponding author: Mohammad Shanaa Competing interests: No competing interests were disclosed. Grant information: The author(s) declared that no grants were involved in supporting this work. Copyright: © 2025 Shanaa M and Abdallah S. This is an open access article distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. How to cite: Shanaa M and Abdallah S. A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection [version 1; peer review: 1 approved with reservations, 1 not approved] . F1000Research 2025, 14 :664 ( https://doi.org/10.12688/f1000research.166350.1 ) First published: 07 Jul 2025, 14 :664 ( https://doi.org/10.12688/f1000research.166350.1 ) Latest published: 11 Dec 2025, 14 :664 ( https://doi.org/10.12688/f1000research.166350.2 )  There is a newer version of this article available. Suppress this message for one day. Introduction Credit card fraud remains one of the most persistent and damaging threats to the digital financial ecosystem. As the volume of online transactions continues to grow, so too does the complexity of fraudulent activities increases. Global losses are projected to exceed $40 billion annually by 2025, driven by the increasing digitalization of financial services and constant evolution of fraud tactics. 1 The core challenge in this domain lies in accurately detecting fraudulent transactions that are rare (less than 1%), adaptive, and often indistinguishable from legitimate user behavior. This imbalance (between legitimate and fraudulent transactions) significantly impairs the performance of both conventional and machine learning-based detection systems, often leading to biased predictions and poor generalizability across datasets. 2 , 3 Traditional fraud detection methods struggle to scale effectively in such dynamic and imbalanced environments, frequently resulting in missed fraud cases or excessive false positives. Detection systems frequently encounter difficulties in balancing sensitivity and specificity; enhancing fraud detection (true positives) often leads to an increase in false positives, thereby disrupting the customer experience and straining resources. Conversely, conservative models may fail to identify fraudulent activities, leading to financial losses and reputational harm. Recent research has highlighted the potential of hybrid models that combine supervised classification techniques with unsupervised anomaly detection to enhance both the precision and robustness of fraud detection. For instance, studies integrating techniques, such as autoencoders, isolation-based methods, and gradient boosting classifiers, have demonstrated improved performance in identifying complex and evolving fraud patterns. 4 However, many of these models still lack generalizability or require substantial computational resources, which limits their practical application in real-time financial environments. The aim of this study is to develop and evaluate a hybrid anomaly detection framework that integrates both supervised and unsupervised learning techniques to improve the accuracy, robustness, and generalizability of credit card fraud-detection systems. This study specifically targets the challenges posed by imbalanced data, evolving fraud patterns, and limitations of single-model detection strategies. Our approach is empirically validated using the publicly available European credit card fraud dataset, which presents realistic challenges including severe class imbalance. We conducted comprehensive experiments to measure the performance of the model across standard evaluation metrics and benchmarked its results against state-of-the-art techniques. Using this approach, this study aims to demonstrate the practical value and academic contribution of hybrid learning models in improving credit card fraud detection. This study makes the following contributions: 1. A novel hybrid anomaly detection framework that integrates supervised (XGBoost, Random Forest) and unsupervised (Autoencoder, Isolation Forest) models is proposed to address the challenges of data imbalance and concept drift in credit card fraud detection. 2. Comparative analysis of the hybrid model against state-of-the-art models using the publicly available and widely adopted Kaggle creditcard.csv dataset. 3. A reproducible pipeline suitable for adaptation in real-world applications that balances detection accuracy with computational efficiency. Related work Credit card fraud detection has become increasingly critical with the rapid expansion of online transactions and growing sophistication of fraudulent activities. Contemporary trends underscore the adoption of advanced machine learning (ML) techniques, which have shown considerable promise in enhancing both the accuracy and efficiency of fraud-detection systems. Nevertheless, these advancements have introduced several challenges, particularly the limitations of traditional anomaly detection methods and the constraints inherent in current ML-based models. Traditional approaches to anomaly detection, including rule-based systems and statistical models, have long served as the foundation for fraud detection. However, these techniques frequently struggle to address the dynamic and adaptive nature of fraudulent behavior, which often mimics legitimate transaction patterns. Consequently, they tend to exhibit high false positive rates. 5 , 6 Moreover, such approaches generally fail to scale effectively with the vast and continuously growing volume of transaction data, rendering them less viable in real-time fraud detection scenarios. 7 , 8 Consequently, there has been an increasing shift toward machine learning models that are better equipped to manage large datasets and adapt to evolving fraud strategies. 9 , 10 Despite their advantages, the existing ML models are not without limitations. A primary concern is the class imbalance inherent in credit card transaction datasets, where legitimate transactions overwhelmingly outnumber fraudulent transactions. This imbalance often leads to skewed model performance, resulting in a high rate of false negatives in which fraudulent transactions remain undetected. 2 , 3 Additionally, many ML models demand extensive feature engineering and frequently struggle to generalize across datasets because of variations in consumer behavior and transaction patterns. 11 , 12 The scarcity of accurately labelled fraudulent transactions further complicates the training process, as acquiring such labels is challenging in real-world settings. 13 Hybrid approaches have emerged as promising solutions for mitigating these issues. By combining different methodologies, researchers have been able to enhance the detection accuracy and reduce false positives. 14 , 15 For example, hybrid models that integrate convolutional neural networks with support vector machines have demonstrated improved performance in identifying anomalies in financial datasets. 15 These methods exploit the strengths of diverse algorithms and contribute more robust and generalizable detection capabilities. Moreover, similar hybrid strategies have shown effectiveness in other domains facing anomaly detection challenges, including healthcare and cybersecurity. 14 In the context of fraud detection research, several benchmark datasets are frequently used, notably the European Credit Card Transactions dataset and the Kaggle Credit Card Fraud Detection dataset. These datasets are distinguished by their high dimensionality and extreme class imbalance, with fraudulent instances often comprising less than 1% of the total records. 2 , 3 In particular, the European dataset includes anonymized transaction features derived from Principal Component Analysis (PCA) to ensure user privacy, making it suitable for academic use. 12 , 16 Such datasets are instrumental in training and evaluating fraud-detection models because they closely reflect the complexities encountered in real-world applications. In summary, although traditional anomaly detection techniques have laid the foundational framework for credit card fraud detection, the adoption of machine learning and hybrid methodologies opens new possibilities for improving the detection efficacy. Nonetheless, persistent challenges necessitate ongoing research in this field. The advancement of more sophisticated hybrid models and the utilization of comprehensive real-world datasets will be essential to overcome these hurdles and further progress in this critical area. In the domain of credit card fraud detection, unsupervised learning methods have garnered increasing attention owing to their capacity to identify anomalies without relying on labelled data. Among these, clustering algorithms such as DBSCAN and HDBSCAN have demonstrated considerable potential. For instance, 1 reported that combining HDBSCAN with UMAP and SMOTE enables the identification of previously unseen fraud patterns, while significantly reducing false positives. Similarly, deep-learning-based anomaly detection frameworks, such as the attentional anomaly detection network proposed by, 16 show promise for capturing behavioral transaction anomalies without the need for predefined class labels. These approaches are particularly advantageous in real-world contexts where labelled fraudulent data are limited, allowing the detection of novel fraud patterns that traditional supervised models may overlook. 17 Conversely, supervised learning techniques, particularly gradient boosting methods, such as XGBoost, have been widely adopted owing to their robustness and interpretability. 2 highlighted the effectiveness of XGBoost when paired with data augmentation strategies, such as SMOTE ENN, achieving high accuracy with low false-positive rates. Further evidence from 18 demonstrated that integrating XGBoost with resampling methods enhanced the overall performance across a range of machine learning models. Notably, the inherent capability of XGBoost to handle imbalanced datasets makes it particularly well-suited for credit card fraud detection, where fraudulent transactions comprise only a small fraction of the total dataset. 10 Hybrid approaches integrating supervised and unsupervised learning have emerged as promising strategies, 14 for example, presented a deep learning model combined with SMOTE oversampling, which effectively addressed the class imbalance issue while improving the detection accuracy. Similarly, 19 illustrated the benefits of combining neural networks with traditional machine learning techniques to enhance the overall detection efficacy. These hybrid models exploit the complementary strengths of each learning paradigm, thereby resulting in adaptive and accurate systems. Despite these advancements, several persistent challenges continue to hinder optimal fraud detection performance. A primary issue is class imbalance, wherein the overwhelming dominance of legitimate transactions can bias models and reduce their sensitivity to fraudulent instances. 11 Additionally, the constantly evolving tactics of fraudsters necessitate frequent model retraining and updates, which can be both computationally and operationally demanding. 11 Scalability is also a concern, as many models exhibit performance degradation when deployed in large-scale or real-time transaction streams. 20 The performance metrics across existing models vary significantly in terms of scalability, accuracy, and operational efficiency. Research indicates that ensemble techniques that combine multiple classifiers tend to outperform individual models in terms of their robustness and accuracy. 21 However, the increased computational requirements of ensemble models may limit their applicability in time-sensitive scenarios. 20 In contrast, XGBoost has often been identified as a suitable compromise, offering a favorable balance between predictive performance and computational efficiency, which makes it attractive for real-world fraud detection systems. 2 , 22 Research into hybrid anomaly detection models typically seeks to fulfil several key objectives, including enhancing detection accuracy, improving robustness against emerging fraud patterns, and integrating both supervised and unsupervised learning techniques to capitalize on the strengths of each approach. Hybrid models are particularly advantageous in scenarios where labelled data are limited because they enable the use of unsupervised methods to identify anomalies, whereas supervised models refine and validate these detections. 23 – 25 For example, integrating supervised models that learn from historical transaction data with unsupervised models capable of detecting novel anomalies facilitates a more comprehensive detection framework, addressing the limitations of methods that rely solely on a single-learning paradigm. 23 , 24 The literature highlights notable gaps in existing anomaly detection frameworks, particularly their limited adaptability to evolving fraud patterns and poor generalizability across diverse datasets. Hybrid models offer a promising solution to these issues by leveraging various data sources and learning strategies, thereby increasing their effectiveness in real-world deployment. 26 , 27 For instance, studies incorporating Generative Adversarial Networks (GANs) into traditional machine learning workflows have demonstrated improved detection of complex fraud patterns that may elude conventional models. 4 Moreover, the flexibility of hybrid models supports continuous learning and adaptation, which are essential features of the constantly evolving fraud landscape. 23 , 24 Success in fraud detection research is typically measured using performance metrics such as accuracy, precision, recall, and F1-score, which collectively evaluate a model’s capability to correctly identify fraudulent transactions while maintaining operational efficiency. 28 , 29 Minimizing false positives and effectively identifying previously unseen fraud cases are also critical indicators of success. 23 , 24 Models that strike a balance between high accuracy and low false positive rates are particularly valued, as they reduce the burden of manual transaction reviews and minimize disruption to legitimate users. 23 , 24 , 29 Both supervised and unsupervised learning play an integral role in addressing the research challenges in fraud detection. Supervised learning is particularly effective when sufficient labelled data are available, enabling the model to learn the distinctions between fraudulent and non-fraudulent transactions. 30 , 31 By contrast, unsupervised learning excels in scenarios where labels are unavailable, identifying novel or emerging fraud patterns without prior examples. 23 – 25 The integration of both techniques enhances not only the model’s detection capacity but also the interpretability and adaptability of the fraud detection framework, as evidenced by research that underscores their complementary nature. 24 , 25 In the literature, “success” in fraud detection is frequently defined in terms of balancing detection performance with operational efficiency. This includes the ability to accurately detect fraudulent transactions with minimal false positives, thereby ensuring that genuine users are not adversely affected. 23 – 25 Furthermore, a model’s adaptability to new fraud typologies and its performance across various datasets are equally important for assessing its practical applicability and overall robustness. 23 – 25 Unsupervised methods Autoencoders Autoencoders have emerged as powerful tools for feature extraction in anomaly detection, particularly fraud detection. By leveraging their ability to learn compressed representations of data, autoencoders can effectively identify anomalies by reconstructing the input data and measuring the reconstruction error. This process allows for the extraction of relevant features that distinguish normal data from anomalies, as the model learns to ignore noise and irrelevant information during training. 32 – 34 The architecture of autoencoders, which typically consists of an encoder and decoder, facilitates dimensionality reduction, making them suitable for high-dimensional datasets often encountered in fraud detection scenarios. 35 , 36 Despite their advantages, autoencoders have limitations when applied to unsupervised-learning tasks. A significant challenge is determining an appropriate reconstruction error threshold, which is crucial for distinguishing between normal and anomalous instances. This threshold can be influenced by the distribution of reconstruction errors, and improper selection may lead to high false positive rates or missed detections. 33 , 37 , 38 Moreover, autoencoders can struggle with class imbalances because they are typically trained on predominantly normal data, making it difficult to generalize to rare fraudulent instances. 37 , 39 Additionally, the complexity of the model can lead to overfitting, particularly when the training dataset is small or lacks diversity. 40 , 41 When comparing autoencoders to other unsupervised methods in fraud detection, such as clustering and traditional statistical methods, autoencoders often demonstrate superior performance because of their ability to learn complex, non-linear relationships in the data. 35 , 39 , 42 For example, while clustering methods may struggle with high-dimensional data, autoencoders can effectively reduce dimensionality and capture intricate patterns that signify fraudulent behavior. 35 , 39 , 42 Furthermore, ensemble methods that combine autoencoders with other algorithms, such as Random Forests or Gradient Boosting, have shown promising results in improving detection accuracy and robustness against class imbalance. 40 , 41 In summary, autoencoders are effective for feature extraction in anomaly detection, particularly fraud. Their architectures, such as VAEs and LSTM autoencoders, are suitable for various data types. However, issues, such as threshold determination and class imbalance, require further investigation. In this study, we combined autoencoders with other models to enhance the results and address these challenges. Isolation forest The Isolation Forest algorithm is a powerful tool for anomaly detection, particularly in financial datasets. It operates based on the principle of isolating anomalies, instead of profiling normal data points. This is achieved by constructing a random forest of isolation trees, where each tree is built by randomly selecting a feature and then randomly selecting a split value between the maximum and minimum values of that feature. Anomalies are identified as instances that require fewer splits to be isolated because they are often located far from the majority of the data points in the feature space. 43 , 44 This characteristic makes isolation forests particularly effective in high-dimensional datasets, where traditional methods may struggle owing to the curse of dimensionality. Studies have shown that isolation forests maintain robust performance in high-dimensional settings, effectively identifying outliers, even when dimensionality increases significantly. 43 , 45 Parameter tuning is crucial for optimizing the performance of an isolation-forest algorithm. Common techniques include adjusting the number of trees in the forest and subsampling size, which can influence the sensitivity of the model to anomalies. For instance, increasing the number of trees generally improves the robustness of the model, while the subsampling size can be tuned to balance between computational efficiency and detection accuracy. 45 , 46 In terms of computational advantages, the Isolation Forest algorithm is highly efficient and requires linear time complexity relative to the number of data points, making it scalable for large datasets. 44 , 47 Isolated forests can also be integrated into hybrid models to enhance their anomaly detection capabilities. For example, it can be combined with supervised learning techniques to refine the detection process by leveraging labelled data for training. This integration allows for improved feature selection and anomaly characterization, leading to better overall performance in detecting complex patterns in financial datasets. 48 , 49 Such hybrid approaches can utilize the strengths of multiple algorithms, thereby improving the robustness and accuracy of anomaly detection frameworks in various applications, including fraud detection in banking and finance. 49 In summary, the Isolation Forest algorithm is a robust method for detecting anomalies in financial datasets, and is particularly effective in high-dimensional spaces. Parameter tuning plays a critical role in optimizing the performance, whereas its computational efficiency makes it suitable for large datasets. Despite these limitations, the integration of isolated forests with other methods in hybrid models can significantly enhance their anomaly detection capabilities. Supervised methods XGBoost Extreme gradient boosting (XGBoost) has emerged as a powerful tool for fraud detection, particularly in the context of imbalanced datasets. The algorithm’s inherent ability to handle imbalanced data stems from its gradient boosting framework, which optimizes the model by focusing on misclassified instances, thereby enhancing its sensitivity to minority classes, such as fraudulent transactions. This characteristic is crucial in fraud detection, where fraudulent cases often significantly outnumber legitimate ones. 50 , 51 Furthermore, XGBoost incorporates regularization techniques that help mitigate overfitting, which is a common challenge in machine learning models trained on imbalanced datasets 50 , 51 Hyperparameter tuning is essential for optimizing the performance of XGBoost in fraud detection tasks. Techniques such as grid search, random search, and more advanced methods such as Bayesian optimization have been employed to identify the most effective hyperparameters. For instance, the use of Bayesian optimization has been shown to enhance the model’s ability to balance training weights for asymmetric examples, which is particularly beneficial in fraud-detection scenarios. 52 , 53 When comparing XGBoost with other supervised learning methods, it consistently demonstrates superior performance in fraud-detection tasks. Studies have shown that XGBoost outperforms traditional models such as logistic regression and decision trees as well as other ensemble methods such as random forests. This superiority is attributed to its ability to capture complex non-linear relationships and interactions between features, which are often present in fraud detection datasets. 54 , 55 Moreover, XGBoost’s feature importance capabilities allow practitioners to gain insights into the most influential predictors of fraud, further enhancing model interpretability and decision-making processes. 19 , 56 Researchers have also explored the integration of XGBoost with hybrid anomaly-detection models. For instance, combining XGBoost with unsupervised learning techniques allows for the extraction of patterns from data that can be used as new features, thereby improving the robustness of the model against noise and outliers. 57 In conclusion, XGBoost’s optimization for fraud detection in imbalanced datasets is facilitated by its robust handling of misclassifications, effective hyperparameter tuning techniques, and superior performance compared to other supervised learning methods. The role of feature importance is critical in refining model performance, while hybrid approaches continue to expand the capabilities of XGBoost in anomaly detection scenarios. Random forest Random Forest (RF) is a versatile ensemble technique that has been broadly applied in anomaly detection for both supervised and semi-supervised learning tasks. In fully supervised settings, RF algorithms are trained with labelled examples covering both normal and anomalous classes, thereby enabling the model to learn complex non-linear decision boundaries that can reliably separate rare and abnormal events. 58 In contrast, semi-supervised applications typically exploit RF’s ability to capture underlying data distributions by training exclusively on normal (or “positive”) samples and subsequently flagging deviations as anomalies. 59 The performance of RF is particularly noteworthy in high-dimensional and large-scale datasets such as those encountered in credit card fraud detection. RF can naturally handle large numbers of features owing to its random feature subspace selection at each split, which mitigates overfitting and improves generalization. 60 Empirical studies have demonstrated that RF-based methods perform competitively in scenarios characterized by rare events, such as fraud detection, by effectively identifying subtle patterns that differentiate fraudulent from legitimate behaviors. 60 Nevertheless, the class imbalance inherent in such applications often calls for hybrid or improved approaches, for example, through combination with feature selection procedures or integration with unsupervised algorithms, to further boost detection accuracy. Hybrid integration Hybrid models, which combine unsupervised and supervised learning techniques, have gained traction in various fields owing to their ability to leverage the strengths of both approaches. The integration of unsupervised outputs with supervised methods can enhance the predictive performance, particularly in scenarios where labelled data are scarce. This synthesis typically involves several strategies, including feature extraction, ensemble methods, and model stacking, which can significantly improve the overall performance of the hybrid models. One effective integration strategy is the use of unsupervised learning for feature extraction, which can reduce dimensionality and capture underlying patterns in the data. For instance, autoencoders or clustering algorithms can preprocess data before they are fed into a supervised learning model, thereby enhancing their predictive capabilities. 61 , 62 In addition, ensemble methods that combine predictions from unsupervised and supervised models can lead to more robust outcomes. For example, a hybrid model that integrates predictions from a clustering algorithm with those from a regression model can yield a better accuracy than either model alone. 63 Handling conflicting outputs from unsupervised and supervised models is a critical challenge in hybrid modelling. Researchers often employ conflict resolution strategies such as voting mechanisms, where the final decision is based on the majority output, or weighted averaging, where outputs are combined based on their reliability or performance metrics. 64 , 65 This approach allows for more nuanced integration of the models, ensuring that the final output reflects the strengths of both methodologies. In this study, we utilized a weighting method to combine the outputs of supervised and unsupervised algorithms. In summary, hybrid models that integrate unsupervised and supervised methods offer significant advantages in terms of predictive performance and robustness. By employing effective integration strategies, resolving conflicts between outputs, and utilizing appropriate benchmarks for evaluation, researchers can harness the strengths of both methodologies to address complex challenges across various domains. Evaluation metrics In fraud detection studies, various evaluation metrics were employed to assess the performance of the models. Commonly used metrics include accuracy, precision, recall, F1-score, and area under the receiver operating characteristic curve (AUC-ROC). Each metric provides unique insights into the effectiveness of the model in identifying fraudulent activity. Precision, recall, and F1-score are particularly significant in the context of anomaly detection. Precision measures the proportion of true positive predictions among all positive predictions, indicating the number of flagged instances that were fraudulent. However, recall assesses the proportion of true positives among all actual positives, reflecting the model’s ability to identify all relevant instances. The F1-score is the harmonic mean of the precision and recall, providing a single metric that balances both concerns. In fraud detection, where false positives can lead to unnecessary investigations and false negatives can result in undetected fraud, these metrics are crucial for evaluating the model performance. 66 , 67 Precision = TP TP + FP Precision means: Of all predicted positive cases, how many were actually positive. Recall = TP TP + FN Recall means: Of all actual positive cases, how many were correctly predicted. F 1 − Score = 2 × Precision × Recall Precision + Recall F1-Score: Harmonic means of Precision and Recall — a balance between the two. Where: TP = True Positives TN = True Negatives FP = False Positives FN = False Negatives The trade-off between accuracy and computational efficiency is critical for fraud detection. While accuracy provides a straightforward measure of overall correctness, it can be misleading in imbalanced datasets, which are common in fraud-detection scenarios where fraudulent cases are rare compared with legitimate ones. Computational efficiency, on the other hand, refers to the time and resources required to train and deploy models. Models that achieve high accuracy may require extensive computational resources, making them less practical for real-time fraud detection applications. Therefore, it is necessary to strike a balance must be struck between achieving high accuracy and maintaining computational efficiency to ensure that the models can operate effectively in real-world environments. 66 , 67 AUC-ROC curves are instrumental in assessing model performance, particularly in binary classification tasks such as fraud detection. The ROC (Receiver Operating Characteristic) curve plots the true positive rate against the false positive rate at various threshold settings, allowing for visualization of the trade-off between sensitivity and specificity. The AUC (Area Under the Curve) quantifies the overall ability of the model to discriminate between the positive and negative classes, with values closer to 1 indicating better performance. AUC-ROC is particularly useful in fraud detection because it provides a comprehensive view of the model’s performance across different decision thresholds, aiding in the selection of an optimal threshold for deployment. 68 – 70 Several datasets and competitions exist in terms of benchmarks for comparing model results for fraud detection. For instance, Kaggle competitions often provide standardized datasets for benchmarking machine-learning models. Additionally, the UCI Machine Learning Repository includes various datasets relevant to fraud detection, allowing researchers to compare their models with established baselines. These benchmarks facilitate the evaluation of new methods against existing approaches and promote advancements in the field. 66 , 67 In summary, the evaluation metrics commonly used in fraud-detection studies include precision, recall, F1-score, and AUC-ROC. Each metric offers valuable insights into the model performance, particularly in the context of imbalanced datasets. The trade-off between accuracy and computational efficiency highlights the need for practical solutions for real-time applications. AUC-ROC curves serve as vital tools for assessing model discrimination capabilities, whereas established benchmarks provide a framework for comparative analysis in the field. The researcher used precision, recall, and F1-score to evaluate the performance of the hybrid model. Additionally, AUC-ROC and MCC (Matthews Correlation Coefficient) values were calculated to obtain insights into the model results. Methods In dataset description The creditcard.csv dataset, which is widely utilized in fraud-detection research, is characterized by its focus on credit card transactions, specifically anonymized records from European cardholders. This dataset typically contains features such as transaction time, transaction amount, and various anonymized features derived from PCA (Principal Component Analysis) to protect user privacy. A notable aspect of this dataset is its significant class imbalance, where fraudulent transactions are vastly outnumbered by legitimate transactions, presenting a challenge for machine learning models. 30 , 71 , 72 The dataset consists of approximately 284,807 transactions, with only 492 labelled as fraudulent, highlighting the difficulty of detecting fraud owing to the rarity of positive instances. 9 , 73 The quality of datasets significantly affects the performance of hybrid models in fraud detection. High-quality datasets enable more accurate feature extraction and model training, leading to improved detection rates and reduced false positives. 20 , 74 Conversely, poor-quality datasets can result in overfitting, where models perform well on training data but fail to generalize to unseen data, ultimately undermining their effectiveness in real-world applications. 9 , 75 Therefore, ensuring high-quality data is essential for developing reliable and efficient fraud-detection systems. This study employs the publicly available creditcard.csv dataset from Kaggle, which contains anonymized credit card transaction data from European cardholders. The dataset consists of 284,807 transactions , of which 492 are labelled as fraudulent , representing approximately 0.17% of the total data. The features include 28 principal components (V1–V28) derived through Principal Component Analysis (PCA) to preserve privacy, along with the Amount , Time , and Class attributes. The Class variable serves as the binary target label, where 1 indicates fraud, and 0 represents a legitimate transaction. Data preprocessing and class imbalance The preprocessing challenges in real-world financial datasets are prevalent and multifaceted. Common issues include handling missing values, addressing class imbalances, and ensuring data privacy and security. 2 , 6 , 76 As a preprocessing step, The MinMaxScaler technique was used. MinMaxScaler is a widely used data pre-processing technique that transforms numerical features by rescaling them to a specified range, typically between 0 and 1. This scaling method preserves the relationships between the original data values while ensuring that all features contribute proportionately to model training. It is particularly effective for distance-based algorithms and neural networks, which are sensitive to differences in feature magnitude. This helps standardize features such as transaction amounts or time-related attributes, enabling models such as autoencoders to converge more quickly and effectively. Additionally, researchers have employed Principal Component Analysis ( PCA ) as a preprocessing tool for dimensionality reduction . PCA is a widely used technique for dimensionality reduction during anomaly detection. By transforming high-dimensional data into a lower-dimensional space, PCA helps identify patterns and anomalies more efficiently. This is achieved by projecting the data onto the directions of maximum variance, effectively filtering out noise and irrelevant features, which can obscure the detection of anomalies. 77 , 78 Furthermore, class imbalance , where legitimate transactions far outnumber fraudulent transactions, complicates the training of machine-learning models, often leading to biased predictions that favor the majority class. 72 , 79 To address class imbalance, researchers employed the BorderlineSMOTE method to address class imbalance in the creditcard.csv dataset. However, this method is exclusively applied during the training of supervised methods because it adversely affects the unsupervised algorithms. Results and Discussion In this study, XGBoost and Random Forest were employed as supervised learning algorithms, whereas the Autoencoder and Isolation Forest were utilized as unsupervised methods to detect anomalies. The data preprocessing pipeline includes MinMax normalization to standardize the feature scales and remove statistical outliers to reduce noise and improve model stability. To address the high dimensionality of the dataset, Principal Component Analysis (PCA) was applied as a dimensionality reduction technique, preserving the most significant variance components. In addition, BorderlineSMOTE was incorporated into the training process of the supervised models to address class imbalance and improve minority class learning. This technique was particularly beneficial in enhancing the sensitivity of classifiers to fraudulent transactions while also reducing the risk of overfitting to rare fraud instances. Moreover, BorderlineSMOTE contributes to increased robustness against boundary-region vulnerabilities and potential data-poisoning attacks, thereby strengthening the overall generalization capability of supervised components. As an initial step, we analyzed the performance of each method. The table below ( Table 1 ) presents the results of the precision, recall, F1-score and accuracy for each method for both normal cases (0) and fraud cases (1). Table 1. Performance results for XGBoost, RandomForest, Autoencoder, and IsolationForest. Method Precision(0) Precision(1) Recall(0) Recall(1) F1-score(0) F1-score(1) Accuracy XGBoost 0.9999 0.9407 0.9999 0.9250 0.9999 0.9328 0.9998 RandomForest 0.9998 0.9459 0.9999 0.8750 0.9999 0.9091 0.9997 Autoencoder 0.9993 0.5847 0.9994 0.5750 0.9993 0.5798 0.9987 IsolationForest 0.9999 0.0192 0.9230 0.9500 0.9599 0.0376 0.9230 Among the evaluated methods, XGBoost exhibited the best overall performance. It achieves near-perfect results for the majority class (Class 0) with precision (0) = 0.9999 and recall (0) = 0.9999 and maintains a high level of performance in the minority class (Class 1, i.e., fraud cases), with precision (1) = 0.9407, recall (1) = 0.9250, and F1-score (1) = 0.9328. This balance between precision and recall is crucial for fraud detection, indicating that XGBoost not only detects the most fraudulent transactions but also minimizes false alarms. The overall accuracy of 0.9998 further confirms its robustness, although in imbalanced datasets, the accuracy alone is not a sufficient indicator. In conclusion, XGBoost is a top-performing supervised method that effectively manages both false positives and false negatives. Moreover, Random Forest also demonstrates strong performance in the majority class, similar to XGBoost, with Precision(0) = 0.9998 and Recall(0) = 0.9999. However, it performed slightly lower on the minority class, with recall (1) = 0.8750 and F1-score (1) = 0.9091. This suggests that while Random Forest is highly effective, it may miss a small number of fraud cases compared to XGBoost. Nevertheless, its accuracy of 0.9997 confirms its high reliability. In conclusion, Random Forest is an effective and reliable ensemble method, but slightly less optimal than XGBoost for fraud detection. In contrast, The Autoencoder, an unsupervised learning method trained on normal data (Class 0), performs exceptionally well on the majority class, with precision (0) = 0.9993 and recall (0) = 0.9994. However, its fraud detection performance was significantly lower, with precision (1) = 0.5847, recall (1) = 0.5750, and F1-score (1) = 0.5798. Although it still detects some anomalies, the model generates a large number of false positives and fails to detect many frauds. In conclusion, the autoencoder is moderately effective as a baseline anomaly detector but lacks precision and recall for minority class identification in isolation. The isolation Forest produces poor results for fraud detection, with precision (1) = 0.0192 and F1-score (1) = 0.0376, despite a relatively high recall (1) = 0.9500. This suggests that while it flags nearly all frauds (high recall), it generates an extremely high number of false positives (very low precision), making it impractical for real-world fraud detection, where every alert carries a cost. The overall accuracy of 0.9230 was misleadingly high, inflated by the overwhelming presence of normal transactions. In conclusion, the forest isolation method is overly sensitive and lacks practical usefulness for fraud detection in imbalanced datasets. In high-stakes domains, such as credit card fraud detection, the cost of false positives (customer complaints) and false negatives (missed fraud) must be minimized. Among the models tested, XGBoost provided the best trade-off between fraud detection and noise minimization. Hybrid approaches that combine the sensitivity of unsupervised methods (such as autoencoders) with the precision of supervised learners (such as XGBoost or RF) may offer better results when properly tuned. Hence, in this study, we tested a hybrid model by combining these four methods (XGBoost, RandomForest, Autoencoder, and IsolationForest) and applied a weight tool as it assigns different importance levels (weights) to the outputs of various models (e.g., Autoencoder, XGBoost, Isolation Forest, etc.) when combining their anomaly scores into a single decision score. The table below ( Table 2 ) presents the final performance results after combining the methods and applying the weights. We named the model XRAI, which is the first letter of each method ( X GBoost, R andomForest, A utoencoder, and I solationForest). Table 2. Performance comparison between XRAI and other models. Method Precision(0) Precision(1) Recall(0) Recall(1) F1-score(0) F1-score(1) Accuracy XRAI 0.9999 0.9569 0.9999 0.9250 0.9999 0.9407 0.9998 XGBoost 0.9999 0.9407 0.9999 0.9250 0.9999 0.9328 0.9998 RandomForest 0.9998 0.9459 0.9999 0.8750 0.9999 0.9091 0.9997 Autoencoder 0.9993 0.5847 0.9994 0.5750 0.9993 0.5798 0.9987 IsolationForest 0.9999 0.0192 0.9230 0.9500 0.9599 0.0376 0.9230 The hybrid XRAI model, which integrates the strengths of XGBoost, Random Forest, Autoencoder, and Isolation Forest using a weighted score, demonstrates outstanding anomaly detection capability. It effectively combines supervised and unsupervised methods to balance precision, recall, and generalization, which are crucial in high-stake fraud detection scenarios. Performance on the majority class (Normal - Class 0) • Precision (0) = 0.9999 and recall (0) = 0.9999 indicate near-perfect classification of legitimate transactions. This means that the model is extremely reliable for minimizing false positives, which is critical for avoiding the disruption of normal customer activity. • The F1-score (0) = 0.9999 confirms that there is no trade-off between precision and recall for normal transactions. Performance on the minority class (Fraud - Class 1) • Precision (1) = 0.9569 indicates that when the model flags a transaction as fraudulent, it is correct approximately 96% of the time, which is vital to avoid wasting resources on false alarms. • Recall (1) = 0.9250 shows that the model can capture over 92% of all fraudulent transactions, which is an impressive detection rate given the class imbalance and subtlety of the fraud patterns. • The F1-score (1) = 0.9407 demonstrates a strong harmonic balance between precision and recall, making the model highly effective for real-world deployment. Figure 1 illustrates the Receiver Operating Characteristic (ROC) curve for the proposed hybrid anomaly detection model, XRAI (XGBoost, Random Forest, Autoencoder, Isolation Forest). The ROC curve plots the True Positive Rate (recall) against the False Positive Rate (1 - Specificity) across a range of classification thresholds. Figure 1. Receiver Operating Characteristic (ROC) curve for the proposed model XRAI. (XRAI: First letters of XGBoost, Random Forest, Autoencoder, Isolation Forest). The curve shows a steep rise toward the upper-left corner of the plot, which is indicative of a high-performing classifier. The area under the ROC curve (AUC) is 0.9885, suggesting that the model had excellent discriminative capability. An AUC value closer to 1 indicates that the classifier is highly capable of distinguishing between the positive class (fraudulent transactions) and negative class (legitimate transactions). In summary, the ROC curve and its corresponding AUC of 0.9885 provide strong empirical evidence of XRAI’s ability to effectively separate fraud from non-fraud, even under class imbalance conditions, a critical requirement for robust fraud-detection systems in the financial domain. The proposed XRAI model, an ensemble combining XGBoost, Random Forest, Autoencoder, and Isolation Forest, achieved a Matthews Correlation Coefficient (MCC) of 94.07%, indicating a strong and balanced predictive performance, particularly in the context of imbalanced classification tasks such as credit card fraud detection. The XRAI model demonstrates a highly optimized hybrid ensemble for credit card fraud detection. It achieves excellent detection of rare fraudulent cases, while maintaining ultralow false-positive rates. The combination of supervised precision and unsupervised anomaly sensitivity is managed through a weighted mechanism that positions XRAI as a practically deployable solution in real-time financial anomaly detection systems. Comparison to other similar studies To contextualize the performance of the proposed hybrid anomaly detection framework, a comparative analysis was conducted with recent studies on credit card fraud detection that utilized similar datasets and evaluation metrics. The objective of this comparison is to demonstrate the relative effectiveness of the proposed model in terms of precision, recall, F1-score, and MCC. Several studies have explored both the single-model and hybrid approaches using the Kaggle credit card fraud dataset. These models include supervised methods such as Logistic Regression, Random Forest, and XGBoost as well as unsupervised techniques such as Isolation Forest and Autoencoder-based anomaly detectors. In more recent works, hybrid models combining deep learning and ensemble techniques have been proposed to address the limitations of detection accuracy and generalizability. Table 3 , summarizes the selection of comparable studies, outlining the key models used and their reported results. The evaluation metrics used in each study were also included to enable a standardized comparison. Where applicable, the performance of the proposed hybrid model is highlighted to illustrate the improvements over the existing approaches. Table 3. Comparative performance of proposed model vs. existing studies. Method Accuracy Precision Recall (TPR) F1-score MCC TNR Our Proposed Method (XRAI) 0.9998 0.9569 0.9250 0.9407 0.9407 0.9999 Ding et al. (2024) 80 - AE + LightGBM (AEELG) 0.921 0.8875 0.3451 0.4722 0.4739 Du et al. (2024) 81 - AE-XGB-SMOTE-CGAN 0.9993 0.7839 0.8845 0.9997 Alshameri & Xia (2024) 82 – VAE 0.93 0.92 0.92 Wu & Wang (2022) 83 - Autoencoder + Adversarial Net 0.9061 0.9216 0.8878 0.9044 0.8128 Lok et al. (2022) 23 - Hybrid Kmeans -KNN 0.9579 0.7215 0.8231 Ishak et al. (2022) 84 - Enhanced Stacking Classifier System 0.9837 0.8841 Benchaji et al. (2021) 85 - Attention + LSTM 0.9672 0.9885 0.9191 As shown in the Table 3 , the proposed hybrid model achieved superior performance across multiple metrics, attaining the highest accuracy with value of 0.9998 , precision of 0.9569 (in top threee) and recall of 0.9250 (top one) , resulting in an F1-score of 0.9407 (top one) and MCC of 0.9407 (top one) . These results reflect significant advancements over earlier models, particularly in balancing the trade-off between the sensitivity and specificity. This comparison substantiates the effectiveness of the proposed framework and supports its relevance as a practical, high-performance solution for financial fraud detection. Real-world applications of the model in financial fraud detection The findings of this study have significant implications for real-world financial fraud detection, particularly in environments where data are imbalanced, adversarial, and evolving. The proposed hybrid model, XRAI, demonstrated exceptional accuracy and robustness in detecting anomalies in widely used credit cards. csv dataset. By leveraging the strengths of XGBoost, Random Forest, Autoencoder, and Isolation Forest through a weighted scoring mechanism, XRAI offers a holistic and practical approach for identifying fraudulent financial transactions in real-time. One of the most critical applications of this model is early detection of credit card fraud. Financial institutions are facing increasing threats from sophisticated fraud schemes that are often hidden within massive volumes of transactional data. Traditional models that rely solely on supervised learning struggle with previously unseen and rare types of fraud. By incorporating unsupervised models, such as autoencoders and isolation forests, XRAI can detect previously unclassified anomalies, enabling systems to capture zero-day fraud attacks that evade conventional classifiers. In addition to fraud detection, this hybrid approach can be adapted for anti-money laundering (AML) systems, insurance fraud detection, and transaction monitoring in e-commerce. Given the adaptability of the model to high-dimensional and noisy data, it can also be used in environments beyond banking, such as healthcare claim validation or cyber intrusion detection, where anomalous patterns are often rare and context dependent. The practical benefits of this hybrid system extend beyond academic experimentation. It offers a deployable, scalable, and intelligent solution for industries facing complex fraud challenges. As financial crime continues to grow in scale and complexity, systems such as XRAI provide a promising blueprint for building more secure, proactive, and trustworthy fraud detection frameworks. Challenges in implementation and model limitations Although the XRAI hybrid model presents a strong case for fraud-detection performance, several limitations emerged during the development and evaluation that must be addressed to fully understand its practical applicability. These limitations can be grouped into three primary categories: data, models, and operational constraints. First, it relies on the creditcard.csv dataset, which has certain constraints despite its popularity. It is highly imbalanced, anonymized, and preprocessed and does not fully reflect the diversity and noise found in real-world financial data. Features such as merchant category, transaction geolocation, and time-series behavior were not present in this dataset. This limits the generalizability of the model to broader financial environments. Moreover, the dataset lacks adversarial fraud samples that mimic legitimate behavior, which is increasingly common in real financial systems. Second, the complexity of hybrid architecture introduces challenges in terms of interpretability, maintenance, and scalability. Although the ensemble combines multiple strengths, it also has its weaknesses. For example, autoencoders require careful tuning and are sensitive to reconstruction thresholds, whereas Isolation Forests tend to produce high false-positive rates unless precisely calibrated. Managing the balance of weights across all models adds an additional layer of complexity, particularly when adapting a system to new datasets or changing fraud patterns. Another limitation is the requirement for labelled data for supervised components, such as XGBoost and Random Forest. Labeling fraud in real-world data is often delayed or incomplete, which can limit the speed of retraining and adaptation. In rapidly changing environments, supervised models become stable unless mechanisms are in place for online or incremental learning. In summary, although XRAI provides strong fraud-detection performance in experimental settings, its real-world deployment requires careful consideration of data diversity, model manageability, latency, and compliance. Addressing these limitations can further enhance its reliability and adoption. Conclusion and future work This study introduced a novel hybrid model, XRAI , designed to enhance the performance and robustness of anomaly detection in credit card fraud-detection systems. By strategically integrating supervised learning algorithms such as XGBoost and Random Forest with unsupervised techniques such as autoencoders and isolation forests, the model effectively overcomes the limitations of single-classifier approaches in highly unbalanced and adversarial environments. The XRAI model demonstrated strong predictive power across a range of performance metrics, achieving an accuracy of 99.98%, precision of 95.69%, recall of 92.50%, and F1-score of 94.07%. The Matthews Correlation Coefficient (MCC) of 94.07% and AUC of 0.9885 further indicate a high discriminative ability and balanced performance between the fraud and non-fraud classes. These results highlight the model’s potential for real-time deployment in financial institutions aimed at reducing operational risks and minimizing false alarms. Despite these achievements, the study also acknowledged key limitations, including reliance on a single publicly available dataset (creditcard.csv), the computational cost of the hybrid architecture, and interpretability challenges. These limitations pave the way for further research in this area. Building on the current findings, future research on the XRAI model can pursue several promising directions to enhance its applicability and robustness in real-world settings. A critical improvement involves incorporating temporal and contextual features , as fraudulent behaviors often manifest as sequential patterns over time. Leveraging techniques such as LSTM-based Autoencoders or Transformer-based architectures can enhance the detection of complex and evolving fraud strategies. Moreover, integrating contextual data, such as customer profiles, merchant categories, and geographic transaction information, can further improve classification accuracy and reduce false positives. Future studies should focus on adaptive ensemble strategies , explainable AI techniques , and robustness against adversarial attacks . Testing the model across diverse datasets and domains is essential to validate its generalizability and scalability. In conclusion, the XRAI model presents a scalable, intelligent, and highly accurate solution for credit-card fraud detection. With further refinements in temporal modelling, explainability, and robustness, hybrid models such as XRAI hold significant promise for building trustworthy and resilient fraud detection systems tailored to the ever-evolving landscape of financial crime. Ethical considerations Not applicable. This study does not involve human or animal subjects. Contributions The contributions of each author are described according to the CRediT (Contributor Roles Taxonomy) system: • Mohammad Shanaa: Conceptualization; Methodology; Data Curation; Formal Analysis; Software; Validation; Visualization; Writing – Original Draft; Writing – Review & Editing; Project Administration. Mohammad Shanaa led the design and execution of the research, conducted the data analysis and model development, and prepared the initial and revised versions of the manuscript. • Sherief Abdallah: Supervision; Conceptualization; Writing – Review & Editing. Sherief Abdallah supervised the research process, contributed to refining the methodology and framing the research direction, and provided critical revisions to the manuscript. Data availability Underlying data This project is utilizing creditcard.csv dataset which is available on Kaggle website. The dataset is available with license type Database Contents License (DbCL) v1.0. Users can download the dataset using the following steps: - Visit: https://www.kaggle.com/datasets/mlg-ulb/creditcardfraud - Login/Register with Kaggle website - Click on Download option, and select Download dataset option Extended data The source code can be accessed from: https://github.com/mohshanaa/XRAI.git Archived code as time of publication 86 : https://doi.org/10.5281/zenodo.15626193 License: Creative Commons Attribution 4.0 International Acknowledgements This manuscript utilized OpenAI’s ChatGPT (GPT-4) for drafting, linguistic refinement, and grammatical editing. Additionally, scite.ai was employed to identify and evaluate pertinent academic sources. The final content is the result of the author’s original work and the critical analysis. References 1. Setiawan R, Tjahjono B, Firmansyah G, et al. : Fraud Detection in Credit Card Transactions Using HDBSCAN, UMAP and SMOTE Methods. International Journal of Science, Technology & Management. 2023; 4 : 1333–1339. Publisher Full Text 2. Noviandy TR, Idroes GM, Maulana A, et al. : Credit Card Fraud Detection for Contemporary Financial Management Using XGBoost-Driven Machine Learning and Data Augmentation Techniques. Indatu J Manag Account. 2023; 1 : 29–35. Publisher Full Text 3. Shimu Khatun M, Rabiul Alam B, Taslim M, et al. : Handling Class Imbalance in Credit Card Fraud Using Various Sampling Techniques. Am J Multidis Res Innov. 2022; 1 : 160–168. Publisher Full Text 4. Naidoo K, Marivate V: Unsupervised Anomaly Detection of Healthcare Providers Using Generative Adversarial Networks.Hattingh M, Matthee M, Smuts H, et al. , editors. Responsible Design, Implementation and Use of Information and Communication Technology. Cham: Springer International Publishing; 2020; vol. 12066 . : pp. 419–430. Publisher Full Text 5. Peng H, Wang J: Unbalanced Data Processing and Machine Learning in Credit Card Fraud Detection.2022. Publisher Full Text 6. Gowda VT: Credit Card Fraud Detection using Supervised and Unsupervised Learning. Computer Science & Information Technology (CS & IT), AIRCC Publishing Corporation; 2021; 93–98. Publisher Full Text 7. Ganji VR, Chaparala A, Sajja R: Shuffled shepherd political optimization-based deep learning method for credit card fraud detection. Concurr. Comput. 2023; 35 : e7666. Publisher Full Text 8. Jain A, Arora M, Mehra A, et al. : Anomaly Detection Algorithms in Financial Data. IJEAT. 2021; 10 : 76–78. Publisher Full Text 9. Aslam F: Advancing Credit Card Fraud Detection: A Review of Machine Learning Algorithms and the Power of Light Gradient Boosting. AJCST. 2024. Publisher Full Text 10. Pitsane MY, Mogale H, Rensburg JJV: Improving Accuracy of Credit Card Fraud Detection Using Supervised Machine Learning Models and Dimension Reduction. ICONIC. 2022; 2022 : 290–301. Publisher Full Text 11. Saad S, Nadher I, Hameed SM: Credit Card Fraud Detection Challenges and Solutions: A Review. Iraqi J. Sci. 2024; 2287–2303. Publisher Full Text 12. Zhang Y-F, Lu H-L, Lin H-F, et al. : The Optimized Anomaly Detection Models Based on an Approach of Dealing with Imbalanced Dataset for Credit Card Fraud Detection. Mob. Inf. Syst. 2022; 2022 : 1–10. Publisher Full Text 13. Zheng J, Yang L, Xin D, et al. : The Credit Card Anti-fraud Detection Model in the Context of Dynamic Integration Selection Algorithm. FCIS. 2024; 6 : 119–122. Publisher Full Text 14. Maheshwari VC, Osman NA, Aziz N: A Hybrid Approach Adopted for Credit Card Fraud Detection Based on Deep Neural Networks and Attention Mechanism. ARASET. 2023; 32 : 315–331. Publisher Full Text 15. Berhane T, Melese T, Walelign A, et al. : A Hybrid Convolutional Neural Network and Support Vector Machine-Based Credit Card Fraud Detection Model. Math. Probl. Eng. 2023; 2023 : 8134627. Publisher Full Text 16. Jiang S, Dong R, Wang J, et al. : Credit Card Fraud Detection Based on Unsupervised Attentional Anomaly Detection Network. Systems. 2023; 11 : 305. Publisher Full Text 17. Alharbi A, Alshammari M, Okon OD, et al. : A Novel text2IMG Mechanism of Credit Card Fraud Detection: A Deep Learning Approach. Electronics. 2022; 11 : 756. Publisher Full Text 18. Hajek P, Abedin MZ, Sivarajah U: Fraud Detection in Mobile Payment Systems using an XGBoost-based Framework. Inf. Syst. Front. 2023; 25 : 1985–2003. PubMed Abstract | Publisher Full Text | Free Full Text 19. Liu C: Enhancing Credit Card Fraud Detection on Imbalanced Datasets. HBEM. 2023; 21 : 765–773. Publisher Full Text 20. Airlangga G: Evaluating the Efficacy of Machine Learning Models in Credit Card Fraud Detection. CNAHPC. 2024; 6 : 829–837. Publisher Full Text 21. Murat RK, Tursunmetova F, Nadirov NK: MULTI-CLASSIFIERS SYSTEM FOR CREDIT CARD FRAUD DETECTION. BTOUPhMath. 2023; 33–47. Publisher Full Text 22. Sujitha P, Vanitha R: Enhanced Technique for Credit Card Extortion Detection Using Extreme Gradient Boosting Algorithm. MEJAST. 2023; 06 : 35–45. Publisher Full Text 23. Lok LK, Abdul Hameed V, Ehsan Rana M: Hybrid machine learning approach for anomaly detection. IJEECS. 2022; 27 : 1016. Publisher Full Text 24. Debener J, Heinke V, Kriebel J: Detecting insurance fraud using supervised and unsupervised machine learning. J. Risk Insur. 2023; 90 : 743–768. Publisher Full Text 25. Carcillo F, Le Borgne Y-A, Caelen O, et al. : Combining unsupervised and supervised learning in credit card fraud detection. Inf. Sci. 2021; 557 : 317–331. Publisher Full Text 26. Nassif AB, Talib MA, Nasir Q, et al. : Machine Learning for Anomaly Detection: A Systematic Review. IEEE Access. 2021; 9 : 78658–78700. Publisher Full Text 27. Benedek B, Ciumas C, Nagy BZ: Automobile insurance fraud detection in the age of big data – a systematic and comprehensive literature review. JFRC. 2022; 30 : 503–523. Publisher Full Text 28. Fraud Guard: A Comprehensive Comparative Analysis of Machine Learning Approaches to Enhance Credit Card Fraud Detection. JIEA. 2024. Publisher Full Text 29. Sulaiman SS, Nadher I, Hameed SM: Credit Card Fraud Detection Using Improved Deep Learning Models. CMC. 2024; 78 : 1049–1069. Publisher Full Text 30. Lai G: Artificial Intelligence Techniques for Fraud Detection.2023. Publisher Full Text 31. Adelakun BO, Onwubuariri ER, Adeniran GA, et al. : Enhancing fraud detection in accounting through AI: Techniques and case studies. Financ. Account Res. J. 2024; 6 : 978–999. Publisher Full Text 32. Esmaeili F, Cassie E, Nguyen HPT, et al. : Anomaly Detection for Sensor Signals Utilizing Deep Learning Autoencoder-Based Neural Networks. Bioengineering. 2023; 10 : 405. PubMed Abstract | Publisher Full Text | Free Full Text 33. Park S, Adosoglou G, Pardalos PM: Interpreting Rate-Distortion of Variational Autoencoder and Using Model Uncertainty for Anomaly Detection.2020. Publisher Full Text 34. Fraser K, Homiller S, Mishra RK, et al. : Challenges for Unsupervised Anomaly Detection in Particle Physics.2021. Publisher Full Text 35. Kim Y-G, Park T-H: Anomaly Detection Using Autoencoder With Feature Vector Frequency Map. IEEE Access. 2021; 9 : 73808–73817. Publisher Full Text 36. Zhu J, Jiang M, Liu Z: Fault Detection and Diagnosis in Industrial Processes with Variational Autoencoder: A Comprehensive Study. Sensors. 2021; 22 : 227. PubMed Abstract | Publisher Full Text | Free Full Text 37. Ikeda C, Ouazzane K, Yu Q, et al. : New Feature Engineering Framework for Deep Learning in Financial Fraud Detection. IJACSA. 2021; 12 . Publisher Full Text 38. Rosley N, Tong G-K, Ng K-H, et al. : Autoencoders with Reconstruction Error and Dimensionality Reduction for Credit Card Fraud Detection. Haw S-C, Sonai Muthu K, editors. Proceedings of the International Conference on Computer, Information Technology and Intelligent Computing (CITIC 2022). Dordrecht: Atlantis Press International BV; 2022; pp. 503–512. Publisher Full Text 39. Salekshahrezaee Z, Leevy JL, Khoshgoftaar TM: The effect of feature extraction and data sampling on credit card fraud detection. J. Big Data. 2023; 10 : 6. Publisher Full Text 40. Lin T-H, Jiang J-R: Credit Card Fraud Detection with Autoencoder and Probabilistic Random Forest. Mathematics. 2021; 9 : 2683. Publisher Full Text 41. Prabha DP, Priscilla CV: Probabilistic XGBoost Threshold Classification with Autoencoder for Credit Card Fraud Detection. IJRITCC. 2023; 11 : 528–537. Publisher Full Text 42. Gomes C, Jin Z, Yang H: Insurance fraud detection with unsupervised deep learning. J. Risk Insur. 2021; 88 : 591–624. Publisher Full Text 43. Bulut O, Gorgun G, He S: Unsupervised Anomaly Detection in Sequential Process Data: Insights From PIAAC Problem-Solving Tasks. Z. Psychol. 2024; 232 : 74–94. Publisher Full Text 44. Mohamed Elmahalwy A, Mousa HM, Amin KM: New hybrid ensemble method for anomaly detection in data science. IJECE. 2023; 13 : 3498. Publisher Full Text 45. Feng B, Zhang L: Optimizing the Isolation Forest Algorithm for Identifying Abnormal Behaviors of Students in Education Management Big Data. JAIT. 2023. Publisher Full Text 46. Research Scholar: Department of Computer Science, Karpagam Academy of Higher Education, Coimbatore, 641 021, Tamil Nadu, India, Prajesha TM, Veni S. An Efficient Outlier Detection Using Isolation Forest Based on Robust Scaling and Principal Component Analysis for the Prediction of Anxiety Disorder. IJST. 2023; 16 : 2244–2251. Publisher Full Text 47. Fang N, Fang X, Lu K: Anomalous Behavior Detection Based on the Isolation Forest Model with Multiple Perspective Business Processes. Electronics. 2022; 11 : 3640. Publisher Full Text 48. Hadi MU, Tashi QA, Qureshi R, et al. : A Survey on Large Language Models: Applications, Challenges, Limitations, and Practical Usage.2023. Publisher Full Text 49. Meduri K: Cybersecurity threats in banking: Unsupervised fraud detection analysis. Int. J. Sci. Res. Arch. 2024; 11 : 915–925. Publisher Full Text 50. Liu J, Wang Y, Sun Y, et al. : Preparation and Optimization of Mesoporous SnO 2 Quantum Dot Thin Film Gas Sensors for H 2 S Detection Using XGBoost Parameter Importance Analysis. Chemosensors. 2023; 11 : 525. Publisher Full Text 51. Shi F, Lu S, Gu J, et al. : Modeling and Evaluation of the Permeate Flux in Forward Osmosis Process with Machine Learning. Ind. Eng. Chem. Res. 2022; 61 : 18045–18056. Publisher Full Text 52. Wang X, Ding C, Chen T, et al. : Research on the Application of Bayesian-Optimized XGBoost in Minor Faults in Coalfields. Math. Probl. Eng. 2022; 2022 : 1–13. Publisher Full Text 53. Nam SM, Peterson TA, Seo KY, et al. : Discovery of Depression-Associated Factors From a Nationwide Population-Based Survey: Epidemiological Study Using Machine Learning and Network Analysis. J. Med. Internet Res. 2021; 23 : e27344. PubMed Abstract | Publisher Full Text | Free Full Text 54. Huang P, Yan H, Song Z, et al. : Combining autoencoder with clustering analysis for anomaly detection in radiotherapy plans. Quant. Imaging Med. Surg. 2023; 13 : 2328–2338. PubMed Abstract | Publisher Full Text | Free Full Text 55. Guo M, Yuan Z, Janson B, et al. : Older Pedestrian Traffic Crashes Severity Analysis Based on an Emerging Machine Learning XGBoost. Sustainability. 2021; 13 : 926. Publisher Full Text 56. Patel S, Singh G, Zarbiv S, et al. : Mortality Prediction Using SaO 2 /FiO 2 Ratio Based on eICU Database Analysis. Crit. Care Res. Prac. 2021; 2021 : 1–9. PubMed Abstract | Publisher Full Text | Free Full Text 57. Ru B, Kujawski S, Lee Afanador N, et al. : Predicting Measles Outbreaks in the United States: Evaluation of Machine Learning Approaches (Preprint).2022. Publisher Full Text 58. Esmaeilzadeh S, Salajegheh N, Ziai A, et al. : Abuse and Fraud Detection in Streaming Services Using Heuristic-Aware Machine Learning.2022. Publisher Full Text 59. Dong Y, Chen K, Peng Y, et al. : Comparative Study on Supervised versus Semi-supervised Machine Learning for Anomaly Detection of In-vehicle CAN Network. 2022 IEEE 25th International Conference on Intelligent Transportation Systems (ITSC). Macau, China: IEEE; 2022; pp. 2914–2919. Publisher Full Text 60. Bakumenko A, Elragal A: Detecting Anomalies in Financial Data Using Machine Learning Algorithms. Systems. 2022; 10 : 130. Publisher Full Text 61. Aghaee M, Krau S, Tamer IM, et al. : Unsupervised Hybrid Models Integrating Deep Autoencoders and Process Controllers’ Models for Enhanced Process Monitoring and Fault Detection. Ind. Eng. Chem. Res. 2024; 63 : 14748–14760. Publisher Full Text 62. Zhang Y, Huangfu Y, Ziada Y, et al. : A Hybrid Fault Detection Method for Hairpin Windings Integrating Physics Model and Machine Learning. IEEE Access. 2024; 12 : 70392–70404. Publisher Full Text 63. Giroh H, Kumar V, Singh G: Improving the Performance of Hybrid Models Using Machine Learning and Optimization Techniques. Ijmst. 2023; 10 : 3396–3409. Publisher Full Text 64. Albahlal B: Emerging Technology-Driven Hybrid Models for Preventing and Monitoring Infectious Diseases: A Comprehensive Review and Conceptual Framework. Diagnostics. 2023; 13 : 3047. PubMed Abstract | Publisher Full Text | Free Full Text 65. Li N, Chiang F, Down DG, et al. : A decision integration strategy for short-term demand forecasting and ordering for red blood cell components.2020. Publisher Full Text 66. Liao W-W, Hsieh Y-W, Lee T-H, et al. : Machine learning predicts clinically significant health related quality of life improvement after sensorimotor rehabilitation interventions in chronic stroke. Sci. Rep. 2022; 12 : 11235. PubMed Abstract | Publisher Full Text | Free Full Text 67. Ito G, Yada S, Wakamiya S, et al. : Predictive Model for Extended-Spectrum β-Lactamase–Producing Bacterial Infections Using Natural Language Processing Technique and Open Data in Intensive Care Unit Environment: Retrospective Observational Study. JMIR Form Res. 2024; 8 : e54044. PubMed Abstract | Publisher Full Text | Free Full Text 68. Tan M, Ma W, Sun Y, et al. : Prediction of the Growth Rate of Early-Stage Lung Adenocarcinoma by Radiomics. Front. Oncol. 2021; 11 : 658138. PubMed Abstract | Publisher Full Text | Free Full Text 69. Sun F, Han B, Wu F, et al. : Development And Validation Of Models To Predict Cesarean Delivery Among Low-Risk Nulliparous Women At Term: A Retrospective Study In China.2020. Publisher Full Text 70. Tu K-C, Tau ENT, Chen N-C, et al. : Machine Learning Algorithm Predicts Mortality Risk in Intensive Care Unit for Patients with Traumatic Brain Injury. Diagnostics. 2023; 13 : 3016. PubMed Abstract | Publisher Full Text | Free Full Text 71. Manda VT, Kondapalli D, Malla AS, et al. : Imbalanced Data Challenges and Their Resolution to Improve Fraud Detection in Credit Card Transactions.2024. Publisher Full Text 72. Esenogho E, Mienye ID, Swart TG, et al. : A Neural Network Ensemble With Feature Engineering for Improved Credit Card Fraud Detection. IEEE Access. 2022; 10 : 16400–16407. Publisher Full Text 73. Sudhakar M, Kaliyamurthie KP: A Novel Machine learning Algorithms used to Detect Credit Card Fraud Transactions. IJRITCC. 2023; 11 : 163–168. Publisher Full Text 74. Ileberi E, Sun Y, Wang Z: Performance Evaluation of Machine Learning Methods for Credit Card Fraud Detection Using SMOTE and AdaBoost. IEEE Access. 2021; 9 : 165286–165294. Publisher Full Text 75. Assessing the feasibility of machine learning-based modelling and prediction of credit fraud outcomes using hyperparameter tuning. ACSS. 2023; 7 . Publisher Full Text 76. Trisanto D, Rismawati N, Mulya M, et al. : Effectiveness Undersampling Method and Feature Reduction in Credit Card Fraud Detection. IJIES. 2020; 13 : 173–181. Publisher Full Text 77. Mohammed RA, A. Bazzi Y.: Implement an Intrusion Detection System Utilizing Machine Learning and Principal Component Analysis. IRJIET. 2024; 08 : 01–07. Publisher Full Text 78. Ezekiel S, Alshehri AA, Pearlstein L, et al. : IoT Anomaly Detection using Multivariate. IJITEE. 2020; 9 : 1662–9. Publisher Full Text 79. Zhu M, Zhang Y, Gong Y, et al. : Enhancing Credit Card Fraud Detection: A Neural Network and SMOTE Integrated Approach. JTPES. 2024; 4 : 23–30. Publisher Full Text 80. Ding L, Liu L, Wang Y, et al. : An AutoEncoder enhanced light gradient boosting machine method for credit card fraud detection. PeerJ Comput. Sci. 2024; 10 : e2323. PubMed Abstract | Publisher Full Text | Free Full Text 81. Du H, Lv L, Wang H, et al. : A novel method for detecting credit card fraud problems. PLoS ONE. 2024; 19 : e0294537. PubMed Abstract | Publisher Full Text | Free Full Text 82. Alshameri F, Xia R: An Evaluation of Variational Autoencoder in Credit Card Anomaly Detection. Big Data Min. Anal. 2024; 7 : 718–729. Publisher Full Text 83. Wu T, Wang Y: Locally Interpretable One-Class Anomaly Detection for Credit Card Fraud Detection.2022. Publisher Full Text 84. Ishak NA, Ng K-H, Tong G-K, et al. : Mitigating unbalanced and overlapped classes in credit card fraud data with enhanced stacking classifiers system. F1000Res. 2022; 11 : 71. Publisher Full Text 85. Benchaji I, Douzi S, El Ouahidi B, et al. : Enhanced credit card fraud detection based on attention mechanism and LSTM deep model. J. Big Data. 2021; 8 : 151. Publisher Full Text 86. Shanaa M, Abdallah S: XRAI: A Hybrid Anomaly Detection Framework for Credit Card Fraud Detection.2025. Publisher Full Text Comments on this article Comments (0) Version 2 VERSION 2 PUBLISHED 07 Jul 2025 ADD YOUR COMMENT Comment Author details Author details 1 Faculty of Engineering and IT, The British University in Dubai, Dubai, Dubai, United Arab Emirates Mohammad Shanaa Roles: Conceptualization, Data Curation, Formal Analysis, Methodology, Resources, Software, Visualization, Writing – Original Draft Preparation Sherief Abdallah Roles: Supervision, Validation, Writing – Review & Editing Competing interests No competing interests were disclosed. Grant information The author(s) declared that no grants were involved in supporting this work. Article Versions (2) version 2 Revised Published: 11 Dec 2025, 14:664 https://doi.org/10.12688/f1000research.166350.2 version 1 Published: 07 Jul 2025, 14:664 https://doi.org/10.12688/f1000research.166350.1 Copyright © 2025 Shanaa M and Abdallah S. This is an open access article distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. Download Export To Sciwheel Bibtex EndNote ProCite Ref. Manager (RIS) Sente metrics Views Downloads F1000Research - - PubMed Central info_outline Data from PMC are received and updated monthly. - - Citations open_in_new 0 open_in_new 0 open_in_new SEE MORE DETAILS CITE how to cite this article Shanaa M and Abdallah S. A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection [version 1; peer review: 1 approved with reservations, 1 not approved] . F1000Research 2025, 14 :664 ( https://doi.org/10.12688/f1000research.166350.1 ) NOTE: If applicable, it is important to ensure the information in square brackets after the title is included in all citations of this article. COPY CITATION DETAILS track receive updates on this article Track an article to receive email alerts on any updates to this article. TRACK THIS ARTICLE Share Open Peer Review Current Reviewer Status: ? Key to Reviewer Statuses VIEW HIDE Approved The paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved Fundamental flaws in the paper seriously undermine the findings and conclusions Version 1 VERSION 1 PUBLISHED 07 Jul 2025 Views 0 Cite How to cite this report: Palit S. Reviewer Report For: A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection [version 1; peer review: 1 approved with reservations, 1 not approved] . F1000Research 2025, 14 :664 ( https://doi.org/10.5256/f1000research.183325.r432010 ) The direct URL for this report is: https://f1000research.com/articles/14-664/v1#referee-response-432010 NOTE: it is important to ensure the information in square brackets after the title is included in this citation. Close Copy Citation Details Reviewer Report 27 Nov 2025 Shamik Palit , University of Stirling RAK Campus, Ras Al Khaimah, Ras Al Khaimah, United Arab Emirates Approved with Reservations VIEWS 0 https://doi.org/10.5256/f1000research.183325.r432010 Exact hyperparameter configuration for each model. XGBoost: number of trees, max_depth, learning_rate, subsampling, regularization parameters, etc. Random Forest: n_estimators, max_features, max_depth, class_weight (if any). Autoencoder: architecture (layers, hidden sizes, activation functions), ... Continue reading READ ALL Exact hyperparameter configuration for each model. XGBoost: number of trees, max_depth, learning_rate, subsampling, regularization parameters, etc. Random Forest: n_estimators, max_features, max_depth, class_weight (if any). Autoencoder: architecture (layers, hidden sizes, activation functions), optimizer, learning rate, number of epochs, batch size, reconstruction threshold selection. Isolation Forest: n_estimators, max_samples, contamination, max_features. Precise description of train/validation/test splitting. Is there a single held-out test set? Was cross-validation used? If yes, k-fold or repeated stratified? How is random seeding handled? Details of how BorderlineSMOTE is applied. Confirm explicitly that SMOTE is applied only on the training folds and not on the test set (to avoid data leakage). Clarify whether SMOTE is applied before or inside cross-validation loops. Mathematical or algorithmic description of the hybrid XRAI weighting scheme. How are the outputs of XGBoost, RF, AE, IF combined? Simple average? Weighted sum? Threshold on each then voting? How are the weights chosen? Manually tuned? Based on validation metrics? Grid search? Conceptually and experimentally, the paper is strong, well-motivated, and technically sound. The main remaining gaps are in the detail level of the methods, particularly around hyperparameters, data splitting, resampling protocol, and ensemble weighting. Once these are clarified, the work will be scientifically solid and reproducible, and in my view, suitable for publication in an applied machine learning or fintech/security venue. Is the work clearly and accurately presented and does it cite the current literature? Yes Is the study design appropriate and is the work technically sound? Yes Are sufficient details of methods and analysis provided to allow replication by others? Partly If applicable, is the statistical analysis and its interpretation appropriate? Yes Are all the source data underlying the results available to ensure full reproducibility? Partly Are the conclusions drawn adequately supported by the results? Yes Competing Interests: No competing interests were disclosed. Reviewer Expertise: Machine Learning I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however I have significant reservations, as outlined above. Close READ LESS CITE CITE HOW TO CITE THIS REPORT Palit S. Reviewer Report For: A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection [version 1; peer review: 1 approved with reservations, 1 not approved] . F1000Research 2025, 14 :664 ( https://doi.org/10.5256/f1000research.183325.r432010 ) The direct URL for this report is: https://f1000research.com/articles/14-664/v1#referee-response-432010 NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article. COPY CITATION DETAILS Report a concern Author Response 11 Dec 2025 Mohammad Shanaa , Faculty of Engineering and IT, The British University in Dubai, Dubai, United Arab Emirates 11 Dec 2025 Author Response 1) Exact hyperparameter configuration for each model Response: The full and exact configurations are available in the public GitHub repository https://github.com/mohshanaa/XRAI.git Direct link https://github.com/mohshanaa/XRAI/blob/main/Configurations 2) Precise description ... Continue reading 1) Exact hyperparameter configuration for each model Response: The full and exact configurations are available in the public GitHub repository https://github.com/mohshanaa/XRAI.git Direct link https://github.com/mohshanaa/XRAI/blob/main/Configurations 2) Precise description of train/validation/test splitting Response: The study uses a single stratified 70/30 train–test split of the creditcard.csv dataset. 70% of the data is used for model development (training + internal validation as needed). 30% is held out once as the final test set. Stratification ensures the fraud ratio is preserved in both subsets. 3) Is there a single held-out test set? Response: Yes. A single stratified 30% test set was held out and never used during training, resampling, weight tuning, or threshold selection. All reported performance metrics are computed on this untouched 30% test portion. 4) Was cross-validation used? Response: No. The experiments used a single 70/30 stratified hold-out split only . No k-fold, repeated k-fold, or stratified cross-validation was used. Any internal tuning was performed on the training portion of the split. 5) How is random seeding handled? Response: A consistent random_state = 42 was applied to: the stratified 70/30 split, BorderlineSMOTE, stochastic models (Random Forest, XGBoost, Isolation Forest), and Autoencoder initialization (where applicable). This ensures full reproducibility. The seed usage is visible in the GitHub code. 6) Details of how BorderlineSMOTE is applied Response: The procedure is: Perform a stratified 70/30 split . Apply BorderlineSMOTE only to the training 70% subset (for supervised models). Leave the 30% test set untouched . Train unsupervised models (Autoencoder, Isolation Forest) on non-SMOTE data , preserving natural anomaly structure. This avoids leakage and preserves anomaly boundaries for unsupervised models. 7) Confirm SMOTE is applied only on the training set Response: We confirm that BorderlineSMOTE is applied exclusively to the training 70% subset . The 30% test set is never oversampled or modified. No SMOTE-generated samples ever enter evaluation. 8) Clarify whether SMOTE is applied before or inside cross-validation loops Response: Since cross-validation was not used , BorderlineSMOTE was not applied inside any CV loop. It is applied only once , after the 70/30 split, and only on the training set . 9) How are model outputs combined? Weighted sum? Voting? Response: XRAI uses a weighted sum of normalized scores , not voting or averaging. XGBoost & RF: use predicted fraud probability Autoencoder: uses normalized reconstruction error Isolation Forest: uses normalized anomaly score All four are scaled to ([0,1]), weighted, summed, and thresholded. 10) How were the weights chosen? Response: Weights were chosen empirically based on the behavior of the individual models and the overall ensemble performance. Higher weights were assigned to XGBoost and Random Forest, which exhibited stronger precision and stability, while lower weights were assigned to the Autoencoder and Isolation Forest to preserve anomaly sensitivity without allowing noisy alerts to dominate the ensemble. The final chosen weights and their implementation are documented in the publicly available GitHub repository. 1) Exact hyperparameter configuration for each model Response: The full and exact configurations are available in the public GitHub repository https://github.com/mohshanaa/XRAI.git Direct link https://github.com/mohshanaa/XRAI/blob/main/Configurations 2) Precise description of train/validation/test splitting Response: The study uses a single stratified 70/30 train–test split of the creditcard.csv dataset. 70% of the data is used for model development (training + internal validation as needed). 30% is held out once as the final test set. Stratification ensures the fraud ratio is preserved in both subsets. 3) Is there a single held-out test set? Response: Yes. A single stratified 30% test set was held out and never used during training, resampling, weight tuning, or threshold selection. All reported performance metrics are computed on this untouched 30% test portion. 4) Was cross-validation used? Response: No. The experiments used a single 70/30 stratified hold-out split only . No k-fold, repeated k-fold, or stratified cross-validation was used. Any internal tuning was performed on the training portion of the split. 5) How is random seeding handled? Response: A consistent random_state = 42 was applied to: the stratified 70/30 split, BorderlineSMOTE, stochastic models (Random Forest, XGBoost, Isolation Forest), and Autoencoder initialization (where applicable). This ensures full reproducibility. The seed usage is visible in the GitHub code. 6) Details of how BorderlineSMOTE is applied Response: The procedure is: Perform a stratified 70/30 split . Apply BorderlineSMOTE only to the training 70% subset (for supervised models). Leave the 30% test set untouched . Train unsupervised models (Autoencoder, Isolation Forest) on non-SMOTE data , preserving natural anomaly structure. This avoids leakage and preserves anomaly boundaries for unsupervised models. 7) Confirm SMOTE is applied only on the training set Response: We confirm that BorderlineSMOTE is applied exclusively to the training 70% subset . The 30% test set is never oversampled or modified. No SMOTE-generated samples ever enter evaluation. 8) Clarify whether SMOTE is applied before or inside cross-validation loops Response: Since cross-validation was not used , BorderlineSMOTE was not applied inside any CV loop. It is applied only once , after the 70/30 split, and only on the training set . 9) How are model outputs combined? Weighted sum? Voting? Response: XRAI uses a weighted sum of normalized scores , not voting or averaging. XGBoost & RF: use predicted fraud probability Autoencoder: uses normalized reconstruction error Isolation Forest: uses normalized anomaly score All four are scaled to ([0,1]), weighted, summed, and thresholded. 10) How were the weights chosen? Response: Weights were chosen empirically based on the behavior of the individual models and the overall ensemble performance. Higher weights were assigned to XGBoost and Random Forest, which exhibited stronger precision and stability, while lower weights were assigned to the Autoencoder and Isolation Forest to preserve anomaly sensitivity without allowing noisy alerts to dominate the ensemble. The final chosen weights and their implementation are documented in the publicly available GitHub repository. Competing Interests: No competing interests were disclosed. Close Report a concern Respond or Comment COMMENTS ON THIS REPORT Author Response 11 Dec 2025 Mohammad Shanaa , Faculty of Engineering and IT, The British University in Dubai, Dubai, United Arab Emirates 11 Dec 2025 Author Response 1) Exact hyperparameter configuration for each model Response: The full and exact configurations are available in the public GitHub repository https://github.com/mohshanaa/XRAI.git Direct link https://github.com/mohshanaa/XRAI/blob/main/Configurations 2) Precise description ... Continue reading 1) Exact hyperparameter configuration for each model Response: The full and exact configurations are available in the public GitHub repository https://github.com/mohshanaa/XRAI.git Direct link https://github.com/mohshanaa/XRAI/blob/main/Configurations 2) Precise description of train/validation/test splitting Response: The study uses a single stratified 70/30 train–test split of the creditcard.csv dataset. 70% of the data is used for model development (training + internal validation as needed). 30% is held out once as the final test set. Stratification ensures the fraud ratio is preserved in both subsets. 3) Is there a single held-out test set? Response: Yes. A single stratified 30% test set was held out and never used during training, resampling, weight tuning, or threshold selection. All reported performance metrics are computed on this untouched 30% test portion. 4) Was cross-validation used? Response: No. The experiments used a single 70/30 stratified hold-out split only . No k-fold, repeated k-fold, or stratified cross-validation was used. Any internal tuning was performed on the training portion of the split. 5) How is random seeding handled? Response: A consistent random_state = 42 was applied to: the stratified 70/30 split, BorderlineSMOTE, stochastic models (Random Forest, XGBoost, Isolation Forest), and Autoencoder initialization (where applicable). This ensures full reproducibility. The seed usage is visible in the GitHub code. 6) Details of how BorderlineSMOTE is applied Response: The procedure is: Perform a stratified 70/30 split . Apply BorderlineSMOTE only to the training 70% subset (for supervised models). Leave the 30% test set untouched . Train unsupervised models (Autoencoder, Isolation Forest) on non-SMOTE data , preserving natural anomaly structure. This avoids leakage and preserves anomaly boundaries for unsupervised models. 7) Confirm SMOTE is applied only on the training set Response: We confirm that BorderlineSMOTE is applied exclusively to the training 70% subset . The 30% test set is never oversampled or modified. No SMOTE-generated samples ever enter evaluation. 8) Clarify whether SMOTE is applied before or inside cross-validation loops Response: Since cross-validation was not used , BorderlineSMOTE was not applied inside any CV loop. It is applied only once , after the 70/30 split, and only on the training set . 9) How are model outputs combined? Weighted sum? Voting? Response: XRAI uses a weighted sum of normalized scores , not voting or averaging. XGBoost & RF: use predicted fraud probability Autoencoder: uses normalized reconstruction error Isolation Forest: uses normalized anomaly score All four are scaled to ([0,1]), weighted, summed, and thresholded. 10) How were the weights chosen? Response: Weights were chosen empirically based on the behavior of the individual models and the overall ensemble performance. Higher weights were assigned to XGBoost and Random Forest, which exhibited stronger precision and stability, while lower weights were assigned to the Autoencoder and Isolation Forest to preserve anomaly sensitivity without allowing noisy alerts to dominate the ensemble. The final chosen weights and their implementation are documented in the publicly available GitHub repository. 1) Exact hyperparameter configuration for each model Response: The full and exact configurations are available in the public GitHub repository https://github.com/mohshanaa/XRAI.git Direct link https://github.com/mohshanaa/XRAI/blob/main/Configurations 2) Precise description of train/validation/test splitting Response: The study uses a single stratified 70/30 train–test split of the creditcard.csv dataset. 70% of the data is used for model development (training + internal validation as needed). 30% is held out once as the final test set. Stratification ensures the fraud ratio is preserved in both subsets. 3) Is there a single held-out test set? Response: Yes. A single stratified 30% test set was held out and never used during training, resampling, weight tuning, or threshold selection. All reported performance metrics are computed on this untouched 30% test portion. 4) Was cross-validation used? Response: No. The experiments used a single 70/30 stratified hold-out split only . No k-fold, repeated k-fold, or stratified cross-validation was used. Any internal tuning was performed on the training portion of the split. 5) How is random seeding handled? Response: A consistent random_state = 42 was applied to: the stratified 70/30 split, BorderlineSMOTE, stochastic models (Random Forest, XGBoost, Isolation Forest), and Autoencoder initialization (where applicable). This ensures full reproducibility. The seed usage is visible in the GitHub code. 6) Details of how BorderlineSMOTE is applied Response: The procedure is: Perform a stratified 70/30 split . Apply BorderlineSMOTE only to the training 70% subset (for supervised models). Leave the 30% test set untouched . Train unsupervised models (Autoencoder, Isolation Forest) on non-SMOTE data , preserving natural anomaly structure. This avoids leakage and preserves anomaly boundaries for unsupervised models. 7) Confirm SMOTE is applied only on the training set Response: We confirm that BorderlineSMOTE is applied exclusively to the training 70% subset . The 30% test set is never oversampled or modified. No SMOTE-generated samples ever enter evaluation. 8) Clarify whether SMOTE is applied before or inside cross-validation loops Response: Since cross-validation was not used , BorderlineSMOTE was not applied inside any CV loop. It is applied only once , after the 70/30 split, and only on the training set . 9) How are model outputs combined? Weighted sum? Voting? Response: XRAI uses a weighted sum of normalized scores , not voting or averaging. XGBoost & RF: use predicted fraud probability Autoencoder: uses normalized reconstruction error Isolation Forest: uses normalized anomaly score All four are scaled to ([0,1]), weighted, summed, and thresholded. 10) How were the weights chosen? Response: Weights were chosen empirically based on the behavior of the individual models and the overall ensemble performance. Higher weights were assigned to XGBoost and Random Forest, which exhibited stronger precision and stability, while lower weights were assigned to the Autoencoder and Isolation Forest to preserve anomaly sensitivity without allowing noisy alerts to dominate the ensemble. The final chosen weights and their implementation are documented in the publicly available GitHub repository. Competing Interests: No competing interests were disclosed. Close Report a concern COMMENT ON THIS REPORT Views 0 Cite How to cite this report: Paldino GM. Reviewer Report For: A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection [version 1; peer review: 1 approved with reservations, 1 not approved] . F1000Research 2025, 14 :664 ( https://doi.org/10.5256/f1000research.183325.r398688 ) The direct URL for this report is: https://f1000research.com/articles/14-664/v1#referee-response-398688 NOTE: it is important to ensure the information in square brackets after the title is included in this citation. Close Copy Citation Details Reviewer Report 26 Aug 2025 Gian Marco Paldino , Université Libre de Bruxelles, Brussels, Belgium Not Approved VIEWS 0 https://doi.org/10.5256/f1000research.183325.r398688 The manuscript presents a hybrid model, named XRAI, for credit card fraud detection. The model combines two supervised (XGBoost, Random Forest) and two unsupervised (Autoencoder, Isolation Forest) algorithms, reporting superior performance on the public Kaggle creditcard.csv dataset. The problem of fraud detection ... Continue reading READ ALL The manuscript presents a hybrid model, named XRAI, for credit card fraud detection. The model combines two supervised (XGBoost, Random Forest) and two unsupervised (Autoencoder, Isolation Forest) algorithms, reporting superior performance on the public Kaggle creditcard.csv dataset. The problem of fraud detection is of significant practical and academic importance, and the authors' effort to develop a high-performance solution is commendable. However, the manuscript in its current form suffers from several major methodological and conceptual issues that must be addressed before it can be considered for indexing. The core concerns relate to the justification of the preprocessing pipeline, the rationale for the ensemble's architecture, and the practical significance of the model's contribution. Major Concerns Fundamental Flaw in Preprocessing Methodology: A significant methodological concern is the application of Principal Component Analysis (PCA) for dimensionality reduction. The creditcard.csv dataset's primary features (V1-V28) are already the result of a PCA transformation, a fact the authors acknowledge. Applying PCA again to these components is conceptually flawed, as it assumes the components are correlated in a way that allows for further linear dimensionality reduction, which is not guaranteed and highly unusual. This step demonstrates a misunderstanding of the dataset's nature and potentially distorts the data's inherent structure. The authors must either remove this step or provide a strong theoretical justification for this unconventional approach. Unjustified Ensemble Architecture and Model Selection: The rationale for the specific composition of the XRAI model is unclear and seems arbitrary. Inclusion of a Poorly Performing Model: The authors' own results (Table 1) show that the Isolation Forest model yields extremely low precision (0.0192) and an F1-score (0.0376) for the fraud class, which the authors rightly identify as "impractical" and lacking "practical usefulness." Its inclusion in the final weighted ensemble is counterintuitive and requires justification. A clear explanation is needed as to why a model known to be highly noisy and generate excessive false positives contributes positively to the final ensemble. Redundancy of Supervised Models: The framework includes both XGBoost and Random Forest, which are methodologically similar tree-based ensemble methods. The manuscript does not explain the benefit of using both in the final model rather than selecting the single best-performing supervised algorithm. This adds unnecessary complexity without a clear, stated advantage. Marginal Performance Gain and Novelty of Contribution: The manuscript claims to propose a "novel" framework. While the specific four-model combination might be new, the general concept of creating a hybrid model by combining supervised and unsupervised learning for fraud detection is well-established in the literature, as cited by the authors themselves (e.g., Carcillo et al., 2021). Furthermore, the performance gain of the complex XRAI model over its best individual component (XGBoost) is marginal. The F1-score for the fraud class improves from 0.9328 to 0.9407—a gain of less than one percentage point—while the recall remains identical. The authors should clarify the practical significance of this small improvement in light of the model's increased complexity, maintainability, and computational overhead. A simpler ensemble, perhaps combining only XGBoost and the Autoencoder, should be tested and discussed as a more parsimonious alternative. Insufficient Motivation for Imbalance Handling Technique: The choice of BorderlineSMOTE for handling class imbalance is stated but not motivated. The authors should briefly explain why this specific technique was selected over other common methods (e.g., ADASYN, SMOTE-ENN, random over/under-sampling) and how it is particularly suited for this dataset and model architecture Generalizability: The framework is not specific to fraud detection and is tested on a single, anonymized dataset. While this is a limitation of the study, the authors could strengthen the discussion by more clearly positioning the framework as a general anomaly detection pipeline and suggesting how it might be adapted with domain-specific features for other applications, and including performance metrics for other publicly available datasets. Is the work clearly and accurately presented and does it cite the current literature? Partly Is the study design appropriate and is the work technically sound? No Are sufficient details of methods and analysis provided to allow replication by others? Yes If applicable, is the statistical analysis and its interpretation appropriate? Yes Are all the source data underlying the results available to ensure full reproducibility? Yes Are the conclusions drawn adequately supported by the results? Partly Competing Interests: No competing interests were disclosed. Reviewer Expertise: Credit Card Fraud Detection, Time Series Forecasting, Anomaly Detection I confirm that I have read this submission and believe that I have an appropriate level of expertise to state that I do not consider it to be of an acceptable scientific standard, for reasons outlined above. Close READ LESS CITE CITE HOW TO CITE THIS REPORT Paldino GM. Reviewer Report For: A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection [version 1; peer review: 1 approved with reservations, 1 not approved] . F1000Research 2025, 14 :664 ( https://doi.org/10.5256/f1000research.183325.r398688 ) The direct URL for this report is: https://f1000research.com/articles/14-664/v1#referee-response-398688 NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article. COPY CITATION DETAILS Report a concern Author Response 11 Dec 2025 Mohammad Shanaa , Faculty of Engineering and IT, The British University in Dubai, Dubai, United Arab Emirates 11 Dec 2025 Author Response We sincerely thank the reviewer for their detailed, insightful, and constructive feedback. We have carefully considered each point and submitted a revised manuscript to clarify the theoretical justification, methodological rationale, ... Continue reading We sincerely thank the reviewer for their detailed, insightful, and constructive feedback. We have carefully considered each point and submitted a revised manuscript to clarify the theoretical justification, methodological rationale, and generalizability of the XRAI framework. Below, we provide a point-by-point response to each major concern. 1. Fundamental Flaw in Preprocessing Methodology (PCA Application) Reviewer Comment: The creditcard.csv dataset's primary features (V1–V28) are already the result of PCA transformation. Applying PCA again to these components is conceptually flawed… The authors must either remove this step or provide a strong theoretical justification for this unconventional approach. Author Response: We thank the reviewer for highlighting this important point. We acknowledge that the creditcard.csv dataset already includes PCA-derived features (V1–V28). In our framework, PCA was not used to perform an additional feature extraction, but rather as a numerical conditioning and normalization step to ensure that all sub-models within the XRAI ensemble operate on a consistent, decorrelated feature space. This approach is supported by previous studies that emphasize the role of PCA and whitening transformations in improving feature orthogonality, numerical stability, and model convergence (Jolliffe & Cadima, 2016; Kessy, Lewin & Strimmer, 2018). To clarify this, we have explicitly revised the manuscript to state: “Although the creditcard.csv dataset already contains PCA-derived features, we applied an additional PCA/whitening step purely as a normalization and conditioning layer so that all XRAI sub-models operate on a consistent, decorrelated feature space; this use of PCA/whitening for orthogonalization and numerical stability is well-established in the literature (Jolliffe & Cadima, 2016; Kessy, Lewin & Strimmer, 2018).” 2. Unjustified Ensemble Architecture and Model Selection Reviewer Comment: The rationale for the specific composition of the XRAI model is unclear and seems arbitrary. Author Response: We appreciate this observation and have expanded the discussion to clarify the theoretical complementarity of the selected models. Each model contributes a distinct strength within the hybrid architecture. To clarify this, we have explicitly revised the manuscript to state: “The XRAI framework integrates four complementary models, each contributing distinct capabilities that collectively enhance anomaly-detection performance. The supervised learners, XGBoost and Random Forest, establish strong foundational decision boundaries and improve model stability. XGBoost offers high precision and interpretability, providing calibrated scoring that anchors the ensemble’s primary classification behavior, while Random Forest enhances robustness by reducing variance and mitigating overfitting, thereby strengthening generalization. To detect anomalies that supervised models may miss, XRAI incorporates two unsupervised detectors: the Autoencoder, which is highly sensitive to structural irregularities and identifies latent deviations within the data, and the Isolation Forest, which excels at capturing rare or extreme outliers and ensuring broad boundary-level coverage. This structure was inspired by hybrid anomaly-detection principles found in recent research (Carcillo et al., Information Sciences , 2021; Liu et al., HBEM , 2023), which demonstrate that combining precision-oriented supervised models with sensitivity-oriented unsupervised models improves recall without inflating false positives; this justification has been added to the Methods section. Together, these components form a tightly integrated ensemble that delivers a more reliable and comprehensive detection mechanism.” 3. Inclusion of a Poorly Performing Model (Isolation Forest) Reviewer Comment: The Isolation Forest yields extremely low precision and F1-score. Its inclusion in the final ensemble is counterintuitive and requires justification. Author Response: We agree that Isolation Forest alone performs poorly on imbalanced datasets due to excessive false positives. However, its extremely high recall (0.95) makes it valuable when used in weighted ensemble combination . The low individual precision was penalized during ensemble weighting , but its sensitivity helped ensure that rare fraud instances—often missed by purely supervised models—were not overlooked. This approach is consistent with ensemble learning literature emphasizing the inclusion of high-recall “weak detectors” to prevent false negatives in rare-event detection tasks (Debener et al., Journal of Risk and Insurance , 2023; Meduri, IJ Sci Res Arch , 2024). We have clarified this in the revised manuscript: “In summary, the Isolation Forest algorithm is a robust method for detecting anomalies in financial datasets, particularly effective in high-dimensional spaces, with parameter tuning playing a critical role in optimizing its performance. Its computational efficiency also makes it well-suited for large datasets, and although it can be individually noisy, its high sensitivity to rare and extreme anomalies remains a valuable asset. For this reason, within the hybrid XRAI framework, the Isolation Forest was assigned a relatively low ensemble weight but retained to ensure broad boundary coverage and strengthen robustness against unseen fraud patterns. Despite its limitations, integrating Isolation Forest with complementary methods in a hybrid ensemble significantly enhances overall anomaly-detection capability.” 4. Redundancy of Supervised Models (XGBoost and Random Forest) Reviewer Comment: Including both Random Forest and XGBoost adds unnecessary complexity without clear benefit. Author Response: We thank the reviewer for raising this valid concern. While both models are tree-based, they exhibit complementary learning biases: XGBoost reduces bias via gradient boosting, excelling in fine-grained pattern detection; Random Forest reduces variance via bagging, enhancing stability and resistance to overfitting. Their combination thus enhances both precision and generalization — a strategy validated in comparative ensemble studies (Murat et al., BTOUPhMath , 2023; Liu, HBEM , 2023). We have revised the “Hybrid Integration” subsection to explain this rationale explicitly. 5. Marginal Performance Gain and Novelty of Contribution Reviewer Comment: The model’s performance gain is marginal (<1% F1 improvement) and the novelty claim is overstated. Author Response: We acknowledge that the numerical F1 gain appears modest; however, in highly imbalanced domains , even fractional improvements can translate into substantial real-world cost savings. For example, in large-scale financial operations, a 0.8% improvement in fraud detection precision can prevent hundreds of false alerts per million transactions, enhancing customer trust and reducing manual review overhead. Furthermore, the novelty of the study lies not solely in the combination of four algorithms but in: The weighted ensemble optimization mechanism that balances supervised and unsupervised outputs. The open-source reproducibility framework (GitHub) ensuring transparency and reusability. The focus on real-time operational applicability of hybrid detection pipelines. These contributions align with F1000Research’s emphasis on reproducibility and practical impact . We have revised the “Conclusion and Future Work” section to emphasize these aspects more clearly. 6. Motivation for Using BorderlineSMOTE Reviewer Comment: The choice of BorderlineSMOTE is stated but not motivated. Author Response: We appreciate this important point and have added a detailed explanation. BorderlineSMOTE was selected because fraudulent transactions in credit card data typically occur near class decision boundaries , making standard SMOTE or ADASYN less effective. BorderlineSMOTE focuses on minority samples close to the borderline region, generating more realistic synthetic examples and improving model sensitivity without introducing noise. This choice follows findings by Han et al. (2005) and recent credit card fraud studies such as Noviandy et al. (2023) and Zhang et al. (2022), which demonstrated superior F1-scores using BorderlineSMOTE for imbalanced fraud data. The rationale and supporting citations have been added to the “Data Preprocessing and Class Imbalance” section. 7. Generalizability and Broader Applications Reviewer Comment: The framework was tested on a single dataset and may not generalize well. Author Response: We fully agree and appreciate this suggestion. We have revised the Conclusion section to position XRAI as a general anomaly detection framework adaptable to multiple domains beyond fraud detection. We have added the following text: “Although validated on the creditcard.csv dataset, XRAI’s architecture is domain-agnostic and can be readily adapted to other anomaly detection contexts such as cybersecurity intrusion detection, insurance fraud, and healthcare anomaly analysis. Future work will involve evaluating the model on diverse benchmark datasets, including IEEE-CIS Fraud Detection and UNSW-NB15, to establish its cross-domain generalizability.” · Carcillo, F., Le Borgne, Y.-A., Caelen, O., Bontempi, G. (2019). Combining unsupervised and supervised learning in credit card fraud detection. Information Sciences , 557 , 317–331. ScienceDirect · Han, H., Wang, W.-Y. & Mao, B.-H. (2005). Borderline-SMOTE: A new over-sampling method in imbalanced data sets learning. In Advances in Intelligent Computing (ICIC 2005), LNCS 3644, 878–887. Springer. SpringerLink · Huang, Y., Wang, S., Hu, Y. & et al. (2021). A robust anomaly detection algorithm based on principal component analysis. Intelligent Data Analysis , 25 (6), 1331–1348. https://doi.org/10.3233/IDA-195054 . SAGE Journals · Jolliffe, I.T. & Cadima, J. (2016). Principal component analysis: A review and recent developments. Philosophical Transactions of the Royal Society A , 374 (2065), 20150202. https://doi.org/10.1098/rsta.2015.0202 . PMC · Kessy, A., Lewin, A. & Strimmer, K. (2018). Optimal whitening and decorrelation. The American Statistician , 72 (4), 309–314. https://doi.org/10.1080/00031305.2016.1277159 . IDEAS/RePEc We sincerely thank the reviewer for their detailed, insightful, and constructive feedback. We have carefully considered each point and submitted a revised manuscript to clarify the theoretical justification, methodological rationale, and generalizability of the XRAI framework. Below, we provide a point-by-point response to each major concern. 1. Fundamental Flaw in Preprocessing Methodology (PCA Application) Reviewer Comment: The creditcard.csv dataset's primary features (V1–V28) are already the result of PCA transformation. Applying PCA again to these components is conceptually flawed… The authors must either remove this step or provide a strong theoretical justification for this unconventional approach. Author Response: We thank the reviewer for highlighting this important point. We acknowledge that the creditcard.csv dataset already includes PCA-derived features (V1–V28). In our framework, PCA was not used to perform an additional feature extraction, but rather as a numerical conditioning and normalization step to ensure that all sub-models within the XRAI ensemble operate on a consistent, decorrelated feature space. This approach is supported by previous studies that emphasize the role of PCA and whitening transformations in improving feature orthogonality, numerical stability, and model convergence (Jolliffe & Cadima, 2016; Kessy, Lewin & Strimmer, 2018). To clarify this, we have explicitly revised the manuscript to state: “Although the creditcard.csv dataset already contains PCA-derived features, we applied an additional PCA/whitening step purely as a normalization and conditioning layer so that all XRAI sub-models operate on a consistent, decorrelated feature space; this use of PCA/whitening for orthogonalization and numerical stability is well-established in the literature (Jolliffe & Cadima, 2016; Kessy, Lewin & Strimmer, 2018).” 2. Unjustified Ensemble Architecture and Model Selection Reviewer Comment: The rationale for the specific composition of the XRAI model is unclear and seems arbitrary. Author Response: We appreciate this observation and have expanded the discussion to clarify the theoretical complementarity of the selected models. Each model contributes a distinct strength within the hybrid architecture. To clarify this, we have explicitly revised the manuscript to state: “The XRAI framework integrates four complementary models, each contributing distinct capabilities that collectively enhance anomaly-detection performance. The supervised learners, XGBoost and Random Forest, establish strong foundational decision boundaries and improve model stability. XGBoost offers high precision and interpretability, providing calibrated scoring that anchors the ensemble’s primary classification behavior, while Random Forest enhances robustness by reducing variance and mitigating overfitting, thereby strengthening generalization. To detect anomalies that supervised models may miss, XRAI incorporates two unsupervised detectors: the Autoencoder, which is highly sensitive to structural irregularities and identifies latent deviations within the data, and the Isolation Forest, which excels at capturing rare or extreme outliers and ensuring broad boundary-level coverage. This structure was inspired by hybrid anomaly-detection principles found in recent research (Carcillo et al., Information Sciences , 2021; Liu et al., HBEM , 2023), which demonstrate that combining precision-oriented supervised models with sensitivity-oriented unsupervised models improves recall without inflating false positives; this justification has been added to the Methods section. Together, these components form a tightly integrated ensemble that delivers a more reliable and comprehensive detection mechanism.” 3. Inclusion of a Poorly Performing Model (Isolation Forest) Reviewer Comment: The Isolation Forest yields extremely low precision and F1-score. Its inclusion in the final ensemble is counterintuitive and requires justification. Author Response: We agree that Isolation Forest alone performs poorly on imbalanced datasets due to excessive false positives. However, its extremely high recall (0.95) makes it valuable when used in weighted ensemble combination . The low individual precision was penalized during ensemble weighting , but its sensitivity helped ensure that rare fraud instances—often missed by purely supervised models—were not overlooked. This approach is consistent with ensemble learning literature emphasizing the inclusion of high-recall “weak detectors” to prevent false negatives in rare-event detection tasks (Debener et al., Journal of Risk and Insurance , 2023; Meduri, IJ Sci Res Arch , 2024). We have clarified this in the revised manuscript: “In summary, the Isolation Forest algorithm is a robust method for detecting anomalies in financial datasets, particularly effective in high-dimensional spaces, with parameter tuning playing a critical role in optimizing its performance. Its computational efficiency also makes it well-suited for large datasets, and although it can be individually noisy, its high sensitivity to rare and extreme anomalies remains a valuable asset. For this reason, within the hybrid XRAI framework, the Isolation Forest was assigned a relatively low ensemble weight but retained to ensure broad boundary coverage and strengthen robustness against unseen fraud patterns. Despite its limitations, integrating Isolation Forest with complementary methods in a hybrid ensemble significantly enhances overall anomaly-detection capability.” 4. Redundancy of Supervised Models (XGBoost and Random Forest) Reviewer Comment: Including both Random Forest and XGBoost adds unnecessary complexity without clear benefit. Author Response: We thank the reviewer for raising this valid concern. While both models are tree-based, they exhibit complementary learning biases: XGBoost reduces bias via gradient boosting, excelling in fine-grained pattern detection; Random Forest reduces variance via bagging, enhancing stability and resistance to overfitting. Their combination thus enhances both precision and generalization — a strategy validated in comparative ensemble studies (Murat et al., BTOUPhMath , 2023; Liu, HBEM , 2023). We have revised the “Hybrid Integration” subsection to explain this rationale explicitly. 5. Marginal Performance Gain and Novelty of Contribution Reviewer Comment: The model’s performance gain is marginal (<1% F1 improvement) and the novelty claim is overstated. Author Response: We acknowledge that the numerical F1 gain appears modest; however, in highly imbalanced domains , even fractional improvements can translate into substantial real-world cost savings. For example, in large-scale financial operations, a 0.8% improvement in fraud detection precision can prevent hundreds of false alerts per million transactions, enhancing customer trust and reducing manual review overhead. Furthermore, the novelty of the study lies not solely in the combination of four algorithms but in: The weighted ensemble optimization mechanism that balances supervised and unsupervised outputs. The open-source reproducibility framework (GitHub) ensuring transparency and reusability. The focus on real-time operational applicability of hybrid detection pipelines. These contributions align with F1000Research’s emphasis on reproducibility and practical impact . We have revised the “Conclusion and Future Work” section to emphasize these aspects more clearly. 6. Motivation for Using BorderlineSMOTE Reviewer Comment: The choice of BorderlineSMOTE is stated but not motivated. Author Response: We appreciate this important point and have added a detailed explanation. BorderlineSMOTE was selected because fraudulent transactions in credit card data typically occur near class decision boundaries , making standard SMOTE or ADASYN less effective. BorderlineSMOTE focuses on minority samples close to the borderline region, generating more realistic synthetic examples and improving model sensitivity without introducing noise. This choice follows findings by Han et al. (2005) and recent credit card fraud studies such as Noviandy et al. (2023) and Zhang et al. (2022), which demonstrated superior F1-scores using BorderlineSMOTE for imbalanced fraud data. The rationale and supporting citations have been added to the “Data Preprocessing and Class Imbalance” section. 7. Generalizability and Broader Applications Reviewer Comment: The framework was tested on a single dataset and may not generalize well. Author Response: We fully agree and appreciate this suggestion. We have revised the Conclusion section to position XRAI as a general anomaly detection framework adaptable to multiple domains beyond fraud detection. We have added the following text: “Although validated on the creditcard.csv dataset, XRAI’s architecture is domain-agnostic and can be readily adapted to other anomaly detection contexts such as cybersecurity intrusion detection, insurance fraud, and healthcare anomaly analysis. Future work will involve evaluating the model on diverse benchmark datasets, including IEEE-CIS Fraud Detection and UNSW-NB15, to establish its cross-domain generalizability.” · Carcillo, F., Le Borgne, Y.-A., Caelen, O., Bontempi, G. (2019). Combining unsupervised and supervised learning in credit card fraud detection. Information Sciences , 557 , 317–331. ScienceDirect · Han, H., Wang, W.-Y. & Mao, B.-H. (2005). Borderline-SMOTE: A new over-sampling method in imbalanced data sets learning. In Advances in Intelligent Computing (ICIC 2005), LNCS 3644, 878–887. Springer. SpringerLink · Huang, Y., Wang, S., Hu, Y. & et al. (2021). A robust anomaly detection algorithm based on principal component analysis. Intelligent Data Analysis , 25 (6), 1331–1348. https://doi.org/10.3233/IDA-195054 . SAGE Journals · Jolliffe, I.T. & Cadima, J. (2016). Principal component analysis: A review and recent developments. Philosophical Transactions of the Royal Society A , 374 (2065), 20150202. https://doi.org/10.1098/rsta.2015.0202 . PMC · Kessy, A., Lewin, A. & Strimmer, K. (2018). Optimal whitening and decorrelation. The American Statistician , 72 (4), 309–314. https://doi.org/10.1080/00031305.2016.1277159 . IDEAS/RePEc Competing Interests: No competing interests were disclosed. Close Report a concern Respond or Comment COMMENTS ON THIS REPORT Author Response 11 Dec 2025 Mohammad Shanaa , Faculty of Engineering and IT, The British University in Dubai, Dubai, United Arab Emirates 11 Dec 2025 Author Response We sincerely thank the reviewer for their detailed, insightful, and constructive feedback. We have carefully considered each point and submitted a revised manuscript to clarify the theoretical justification, methodological rationale, ... Continue reading We sincerely thank the reviewer for their detailed, insightful, and constructive feedback. We have carefully considered each point and submitted a revised manuscript to clarify the theoretical justification, methodological rationale, and generalizability of the XRAI framework. Below, we provide a point-by-point response to each major concern. 1. Fundamental Flaw in Preprocessing Methodology (PCA Application) Reviewer Comment: The creditcard.csv dataset's primary features (V1–V28) are already the result of PCA transformation. Applying PCA again to these components is conceptually flawed… The authors must either remove this step or provide a strong theoretical justification for this unconventional approach. Author Response: We thank the reviewer for highlighting this important point. We acknowledge that the creditcard.csv dataset already includes PCA-derived features (V1–V28). In our framework, PCA was not used to perform an additional feature extraction, but rather as a numerical conditioning and normalization step to ensure that all sub-models within the XRAI ensemble operate on a consistent, decorrelated feature space. This approach is supported by previous studies that emphasize the role of PCA and whitening transformations in improving feature orthogonality, numerical stability, and model convergence (Jolliffe & Cadima, 2016; Kessy, Lewin & Strimmer, 2018). To clarify this, we have explicitly revised the manuscript to state: “Although the creditcard.csv dataset already contains PCA-derived features, we applied an additional PCA/whitening step purely as a normalization and conditioning layer so that all XRAI sub-models operate on a consistent, decorrelated feature space; this use of PCA/whitening for orthogonalization and numerical stability is well-established in the literature (Jolliffe & Cadima, 2016; Kessy, Lewin & Strimmer, 2018).” 2. Unjustified Ensemble Architecture and Model Selection Reviewer Comment: The rationale for the specific composition of the XRAI model is unclear and seems arbitrary. Author Response: We appreciate this observation and have expanded the discussion to clarify the theoretical complementarity of the selected models. Each model contributes a distinct strength within the hybrid architecture. To clarify this, we have explicitly revised the manuscript to state: “The XRAI framework integrates four complementary models, each contributing distinct capabilities that collectively enhance anomaly-detection performance. The supervised learners, XGBoost and Random Forest, establish strong foundational decision boundaries and improve model stability. XGBoost offers high precision and interpretability, providing calibrated scoring that anchors the ensemble’s primary classification behavior, while Random Forest enhances robustness by reducing variance and mitigating overfitting, thereby strengthening generalization. To detect anomalies that supervised models may miss, XRAI incorporates two unsupervised detectors: the Autoencoder, which is highly sensitive to structural irregularities and identifies latent deviations within the data, and the Isolation Forest, which excels at capturing rare or extreme outliers and ensuring broad boundary-level coverage. This structure was inspired by hybrid anomaly-detection principles found in recent research (Carcillo et al., Information Sciences , 2021; Liu et al., HBEM , 2023), which demonstrate that combining precision-oriented supervised models with sensitivity-oriented unsupervised models improves recall without inflating false positives; this justification has been added to the Methods section. Together, these components form a tightly integrated ensemble that delivers a more reliable and comprehensive detection mechanism.” 3. Inclusion of a Poorly Performing Model (Isolation Forest) Reviewer Comment: The Isolation Forest yields extremely low precision and F1-score. Its inclusion in the final ensemble is counterintuitive and requires justification. Author Response: We agree that Isolation Forest alone performs poorly on imbalanced datasets due to excessive false positives. However, its extremely high recall (0.95) makes it valuable when used in weighted ensemble combination . The low individual precision was penalized during ensemble weighting , but its sensitivity helped ensure that rare fraud instances—often missed by purely supervised models—were not overlooked. This approach is consistent with ensemble learning literature emphasizing the inclusion of high-recall “weak detectors” to prevent false negatives in rare-event detection tasks (Debener et al., Journal of Risk and Insurance , 2023; Meduri, IJ Sci Res Arch , 2024). We have clarified this in the revised manuscript: “In summary, the Isolation Forest algorithm is a robust method for detecting anomalies in financial datasets, particularly effective in high-dimensional spaces, with parameter tuning playing a critical role in optimizing its performance. Its computational efficiency also makes it well-suited for large datasets, and although it can be individually noisy, its high sensitivity to rare and extreme anomalies remains a valuable asset. For this reason, within the hybrid XRAI framework, the Isolation Forest was assigned a relatively low ensemble weight but retained to ensure broad boundary coverage and strengthen robustness against unseen fraud patterns. Despite its limitations, integrating Isolation Forest with complementary methods in a hybrid ensemble significantly enhances overall anomaly-detection capability.” 4. Redundancy of Supervised Models (XGBoost and Random Forest) Reviewer Comment: Including both Random Forest and XGBoost adds unnecessary complexity without clear benefit. Author Response: We thank the reviewer for raising this valid concern. While both models are tree-based, they exhibit complementary learning biases: XGBoost reduces bias via gradient boosting, excelling in fine-grained pattern detection; Random Forest reduces variance via bagging, enhancing stability and resistance to overfitting. Their combination thus enhances both precision and generalization — a strategy validated in comparative ensemble studies (Murat et al., BTOUPhMath , 2023; Liu, HBEM , 2023). We have revised the “Hybrid Integration” subsection to explain this rationale explicitly. 5. Marginal Performance Gain and Novelty of Contribution Reviewer Comment: The model’s performance gain is marginal (<1% F1 improvement) and the novelty claim is overstated. Author Response: We acknowledge that the numerical F1 gain appears modest; however, in highly imbalanced domains , even fractional improvements can translate into substantial real-world cost savings. For example, in large-scale financial operations, a 0.8% improvement in fraud detection precision can prevent hundreds of false alerts per million transactions, enhancing customer trust and reducing manual review overhead. Furthermore, the novelty of the study lies not solely in the combination of four algorithms but in: The weighted ensemble optimization mechanism that balances supervised and unsupervised outputs. The open-source reproducibility framework (GitHub) ensuring transparency and reusability. The focus on real-time operational applicability of hybrid detection pipelines. These contributions align with F1000Research’s emphasis on reproducibility and practical impact . We have revised the “Conclusion and Future Work” section to emphasize these aspects more clearly. 6. Motivation for Using BorderlineSMOTE Reviewer Comment: The choice of BorderlineSMOTE is stated but not motivated. Author Response: We appreciate this important point and have added a detailed explanation. BorderlineSMOTE was selected because fraudulent transactions in credit card data typically occur near class decision boundaries , making standard SMOTE or ADASYN less effective. BorderlineSMOTE focuses on minority samples close to the borderline region, generating more realistic synthetic examples and improving model sensitivity without introducing noise. This choice follows findings by Han et al. (2005) and recent credit card fraud studies such as Noviandy et al. (2023) and Zhang et al. (2022), which demonstrated superior F1-scores using BorderlineSMOTE for imbalanced fraud data. The rationale and supporting citations have been added to the “Data Preprocessing and Class Imbalance” section. 7. Generalizability and Broader Applications Reviewer Comment: The framework was tested on a single dataset and may not generalize well. Author Response: We fully agree and appreciate this suggestion. We have revised the Conclusion section to position XRAI as a general anomaly detection framework adaptable to multiple domains beyond fraud detection. We have added the following text: “Although validated on the creditcard.csv dataset, XRAI’s architecture is domain-agnostic and can be readily adapted to other anomaly detection contexts such as cybersecurity intrusion detection, insurance fraud, and healthcare anomaly analysis. Future work will involve evaluating the model on diverse benchmark datasets, including IEEE-CIS Fraud Detection and UNSW-NB15, to establish its cross-domain generalizability.” · Carcillo, F., Le Borgne, Y.-A., Caelen, O., Bontempi, G. (2019). Combining unsupervised and supervised learning in credit card fraud detection. Information Sciences , 557 , 317–331. ScienceDirect · Han, H., Wang, W.-Y. & Mao, B.-H. (2005). Borderline-SMOTE: A new over-sampling method in imbalanced data sets learning. In Advances in Intelligent Computing (ICIC 2005), LNCS 3644, 878–887. Springer. SpringerLink · Huang, Y., Wang, S., Hu, Y. & et al. (2021). A robust anomaly detection algorithm based on principal component analysis. Intelligent Data Analysis , 25 (6), 1331–1348. https://doi.org/10.3233/IDA-195054 . SAGE Journals · Jolliffe, I.T. & Cadima, J. (2016). Principal component analysis: A review and recent developments. Philosophical Transactions of the Royal Society A , 374 (2065), 20150202. https://doi.org/10.1098/rsta.2015.0202 . PMC · Kessy, A., Lewin, A. & Strimmer, K. (2018). Optimal whitening and decorrelation. The American Statistician , 72 (4), 309–314. https://doi.org/10.1080/00031305.2016.1277159 . IDEAS/RePEc We sincerely thank the reviewer for their detailed, insightful, and constructive feedback. We have carefully considered each point and submitted a revised manuscript to clarify the theoretical justification, methodological rationale, and generalizability of the XRAI framework. Below, we provide a point-by-point response to each major concern. 1. Fundamental Flaw in Preprocessing Methodology (PCA Application) Reviewer Comment: The creditcard.csv dataset's primary features (V1–V28) are already the result of PCA transformation. Applying PCA again to these components is conceptually flawed… The authors must either remove this step or provide a strong theoretical justification for this unconventional approach. Author Response: We thank the reviewer for highlighting this important point. We acknowledge that the creditcard.csv dataset already includes PCA-derived features (V1–V28). In our framework, PCA was not used to perform an additional feature extraction, but rather as a numerical conditioning and normalization step to ensure that all sub-models within the XRAI ensemble operate on a consistent, decorrelated feature space. This approach is supported by previous studies that emphasize the role of PCA and whitening transformations in improving feature orthogonality, numerical stability, and model convergence (Jolliffe & Cadima, 2016; Kessy, Lewin & Strimmer, 2018). To clarify this, we have explicitly revised the manuscript to state: “Although the creditcard.csv dataset already contains PCA-derived features, we applied an additional PCA/whitening step purely as a normalization and conditioning layer so that all XRAI sub-models operate on a consistent, decorrelated feature space; this use of PCA/whitening for orthogonalization and numerical stability is well-established in the literature (Jolliffe & Cadima, 2016; Kessy, Lewin & Strimmer, 2018).” 2. Unjustified Ensemble Architecture and Model Selection Reviewer Comment: The rationale for the specific composition of the XRAI model is unclear and seems arbitrary. Author Response: We appreciate this observation and have expanded the discussion to clarify the theoretical complementarity of the selected models. Each model contributes a distinct strength within the hybrid architecture. To clarify this, we have explicitly revised the manuscript to state: “The XRAI framework integrates four complementary models, each contributing distinct capabilities that collectively enhance anomaly-detection performance. The supervised learners, XGBoost and Random Forest, establish strong foundational decision boundaries and improve model stability. XGBoost offers high precision and interpretability, providing calibrated scoring that anchors the ensemble’s primary classification behavior, while Random Forest enhances robustness by reducing variance and mitigating overfitting, thereby strengthening generalization. To detect anomalies that supervised models may miss, XRAI incorporates two unsupervised detectors: the Autoencoder, which is highly sensitive to structural irregularities and identifies latent deviations within the data, and the Isolation Forest, which excels at capturing rare or extreme outliers and ensuring broad boundary-level coverage. This structure was inspired by hybrid anomaly-detection principles found in recent research (Carcillo et al., Information Sciences , 2021; Liu et al., HBEM , 2023), which demonstrate that combining precision-oriented supervised models with sensitivity-oriented unsupervised models improves recall without inflating false positives; this justification has been added to the Methods section. Together, these components form a tightly integrated ensemble that delivers a more reliable and comprehensive detection mechanism.” 3. Inclusion of a Poorly Performing Model (Isolation Forest) Reviewer Comment: The Isolation Forest yields extremely low precision and F1-score. Its inclusion in the final ensemble is counterintuitive and requires justification. Author Response: We agree that Isolation Forest alone performs poorly on imbalanced datasets due to excessive false positives. However, its extremely high recall (0.95) makes it valuable when used in weighted ensemble combination . The low individual precision was penalized during ensemble weighting , but its sensitivity helped ensure that rare fraud instances—often missed by purely supervised models—were not overlooked. This approach is consistent with ensemble learning literature emphasizing the inclusion of high-recall “weak detectors” to prevent false negatives in rare-event detection tasks (Debener et al., Journal of Risk and Insurance , 2023; Meduri, IJ Sci Res Arch , 2024). We have clarified this in the revised manuscript: “In summary, the Isolation Forest algorithm is a robust method for detecting anomalies in financial datasets, particularly effective in high-dimensional spaces, with parameter tuning playing a critical role in optimizing its performance. Its computational efficiency also makes it well-suited for large datasets, and although it can be individually noisy, its high sensitivity to rare and extreme anomalies remains a valuable asset. For this reason, within the hybrid XRAI framework, the Isolation Forest was assigned a relatively low ensemble weight but retained to ensure broad boundary coverage and strengthen robustness against unseen fraud patterns. Despite its limitations, integrating Isolation Forest with complementary methods in a hybrid ensemble significantly enhances overall anomaly-detection capability.” 4. Redundancy of Supervised Models (XGBoost and Random Forest) Reviewer Comment: Including both Random Forest and XGBoost adds unnecessary complexity without clear benefit. Author Response: We thank the reviewer for raising this valid concern. While both models are tree-based, they exhibit complementary learning biases: XGBoost reduces bias via gradient boosting, excelling in fine-grained pattern detection; Random Forest reduces variance via bagging, enhancing stability and resistance to overfitting. Their combination thus enhances both precision and generalization — a strategy validated in comparative ensemble studies (Murat et al., BTOUPhMath , 2023; Liu, HBEM , 2023). We have revised the “Hybrid Integration” subsection to explain this rationale explicitly. 5. Marginal Performance Gain and Novelty of Contribution Reviewer Comment: The model’s performance gain is marginal (<1% F1 improvement) and the novelty claim is overstated. Author Response: We acknowledge that the numerical F1 gain appears modest; however, in highly imbalanced domains , even fractional improvements can translate into substantial real-world cost savings. For example, in large-scale financial operations, a 0.8% improvement in fraud detection precision can prevent hundreds of false alerts per million transactions, enhancing customer trust and reducing manual review overhead. Furthermore, the novelty of the study lies not solely in the combination of four algorithms but in: The weighted ensemble optimization mechanism that balances supervised and unsupervised outputs. The open-source reproducibility framework (GitHub) ensuring transparency and reusability. The focus on real-time operational applicability of hybrid detection pipelines. These contributions align with F1000Research’s emphasis on reproducibility and practical impact . We have revised the “Conclusion and Future Work” section to emphasize these aspects more clearly. 6. Motivation for Using BorderlineSMOTE Reviewer Comment: The choice of BorderlineSMOTE is stated but not motivated. Author Response: We appreciate this important point and have added a detailed explanation. BorderlineSMOTE was selected because fraudulent transactions in credit card data typically occur near class decision boundaries , making standard SMOTE or ADASYN less effective. BorderlineSMOTE focuses on minority samples close to the borderline region, generating more realistic synthetic examples and improving model sensitivity without introducing noise. This choice follows findings by Han et al. (2005) and recent credit card fraud studies such as Noviandy et al. (2023) and Zhang et al. (2022), which demonstrated superior F1-scores using BorderlineSMOTE for imbalanced fraud data. The rationale and supporting citations have been added to the “Data Preprocessing and Class Imbalance” section. 7. Generalizability and Broader Applications Reviewer Comment: The framework was tested on a single dataset and may not generalize well. Author Response: We fully agree and appreciate this suggestion. We have revised the Conclusion section to position XRAI as a general anomaly detection framework adaptable to multiple domains beyond fraud detection. We have added the following text: “Although validated on the creditcard.csv dataset, XRAI’s architecture is domain-agnostic and can be readily adapted to other anomaly detection contexts such as cybersecurity intrusion detection, insurance fraud, and healthcare anomaly analysis. Future work will involve evaluating the model on diverse benchmark datasets, including IEEE-CIS Fraud Detection and UNSW-NB15, to establish its cross-domain generalizability.” · Carcillo, F., Le Borgne, Y.-A., Caelen, O., Bontempi, G. (2019). Combining unsupervised and supervised learning in credit card fraud detection. Information Sciences , 557 , 317–331. ScienceDirect · Han, H., Wang, W.-Y. & Mao, B.-H. (2005). Borderline-SMOTE: A new over-sampling method in imbalanced data sets learning. In Advances in Intelligent Computing (ICIC 2005), LNCS 3644, 878–887. Springer. SpringerLink · Huang, Y., Wang, S., Hu, Y. & et al. (2021). A robust anomaly detection algorithm based on principal component analysis. Intelligent Data Analysis , 25 (6), 1331–1348. https://doi.org/10.3233/IDA-195054 . SAGE Journals · Jolliffe, I.T. & Cadima, J. (2016). Principal component analysis: A review and recent developments. Philosophical Transactions of the Royal Society A , 374 (2065), 20150202. https://doi.org/10.1098/rsta.2015.0202 . PMC · Kessy, A., Lewin, A. & Strimmer, K. (2018). Optimal whitening and decorrelation. The American Statistician , 72 (4), 309–314. https://doi.org/10.1080/00031305.2016.1277159 . IDEAS/RePEc Competing Interests: No competing interests were disclosed. Close Report a concern COMMENT ON THIS REPORT Comments on this article Comments (0) Version 2 VERSION 2 PUBLISHED 07 Jul 2025 ADD YOUR COMMENT Comment keyboard_arrow_left keyboard_arrow_right Open Peer Review Reviewer Status info_outline Alongside their report, reviewers assign a status to the article: Approved The paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved Fundamental flaws in the paper seriously undermine the findings and conclusions Reviewer Reports Invited Reviewers 1 2 3 Version 2 (revision) 11 Dec 25 read read Version 1 07 Jul 25 read read Gian Marco Paldino , Université Libre de Bruxelles, Brussels, Belgium Shamik Palit , University of Stirling RAK Campus, Ras Al Khaimah, United Arab Emirates John Adejoh , African University of Science and Technology, Abuja, Nigeria Comments on this article All Comments (0) Add a comment Sign up for content alerts Sign Up You are now signed up to receive this alert Browse by related subjects keyboard_arrow_left Back to all reports Reviewer Report 0 Views copyright © 2026 Adejoh J. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. 25 Feb 2026 | for Version 2 John Adejoh , African University of Science and Technology, Abuja, Nigeria 0 Views copyright © 2026 Adejoh J. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. format_quote Cite this report speaker_notes Responses (0) info_outline Alongside their report, reviewers assign a status to the article: Approved The paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved Fundamental flaws in the paper seriously undermine the findings and conclusions A. Summarry of the article This manuscript proposes XRAI, a hybrid anomaly detection ensemble for credit card fraud detection. The framework combines two supervised detectors a reconstruction-error-based Autoencoder and an isolation forest. outputs from all four models are normalized to [0,1], combined via a manually tuned weighted sum, and passed through a threshold to produce a binary fraud/non-fraud decision. the model is evaluated on the widely used kaggle creditcard.csv dataset (284,807) transactions 492 fraudulent, approximate 0.17% positive rate). class imbalance in the training set is addressed using borderlineSMOTE applied only to the suppervised model. evaluation uses a single stratified 70/30 train-test split. Reported results include precision of 0.9407, MCC of 0.9407, and ROC-AUC of 0.9885. The paper positions XRAI as superior to several prior published approaches on same dataset. B. Major Strengths the paper address a problem of genuine pratical and academic significant. the decision to combine supervised pre Is the work clearly and accurately presented and does it cite the current literature? Partly Is the study design appropriate and is the work technically sound? Partly Are sufficient details of methods and analysis provided to allow replication by others? Partly If applicable, is the statistical analysis and its interpretation appropriate? Partly Are all the source data underlying the results available to ensure full reproducibility? Partly Are the conclusions drawn adequately supported by the results? Partly Competing Interests No competing interests were disclosed. reply Respond to this report Responses (0) Adejoh J. Peer Review Report For: A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection [version 1; peer review: 1 approved with reservations, 1 not approved] . F1000Research 2025, 14 :664 ( https://doi.org/10.5256/f1000research.193150.r460492) NOTE: it is important to ensure the information in square brackets after the title is included in this citation. The direct URL for this report is: https://f1000research.com/articles/14-664/v2#referee-response-460492 keyboard_arrow_left Back to all reports Reviewer Report 0 Views copyright © 2026 Palit S. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. 07 Jan 2026 | for Version 2 Shamik Palit , University of Stirling RAK Campus, Ras Al Khaimah, Ras Al Khaimah, United Arab Emirates 0 Views copyright © 2026 Palit S. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. format_quote Cite this report speaker_notes Responses (0) Approved With Reservations info_outline Alongside their report, reviewers assign a status to the article: Approved The paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved Fundamental flaws in the paper seriously undermine the findings and conclusions The paper is well-motivated (class imbalance, false positives vs false negatives) and the hybrid idea is plausible. class imbalance and operational trade-off (FP vs FN) is correctly emphasized. Covers supervised, unsupervised and hybrid trends, and explains why hybrids help. Precision/recall/F1, AUC and MCC are relevant for imbalanced Classification. acknowledges dataset constraints, interpretability and operational issues. As per abstract, “autoencoder and XGBoost integrated via optimized thresholding”. but the body later says the hybrid model XRAI combines 4 models (XGBoost + RF + Autoencoder + Isolation Forest) using weighted scoring. Need to Decide: Either the paper is AE and XGB only, or It is truly 4-model ensemble (XRAI). Data split / leakage risk not clearly specified: train/validation/test split ratio, Whether the split is stratified, whether used time-based split (important in fraud), whether scaling/SMOTE/PCA were fit only on training data. SMOTE / BorderlineSMOTE usage is under-specified and risky. It has been stated BorderlineSMOTE is used “only for supervised methods”, but it is not specified , at what stage (before split? after split? within CV?), which models exactly receive oversampling, what parameters were used, whether it inflates performance by contaminating validation. “Optimized thresholding / weighting mechanism” is not defined. Claimed an optimized threshold / weighted fusion, but no description of : how the threshold is chosen (Youden J? F1-max? cost-based? PR-curve?), how weights are learned (grid search? Bayesian? regression stacking?), whether threshold/weights tuned on validation only. Claimed “surpassing similar published models” needs evidence. As per reference Table 3, but the comparison as written is weak unless: same dataset split and preprocessing, same evaluation protocol, comparable metrics reported. Competing Interests No competing interests were disclosed. Reviewer Expertise Machine Learning I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however I have significant reservations, as outlined above. reply Respond to this report Responses (0) Palit S. Peer Review Report For: A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection [version 1; peer review: 1 approved with reservations, 1 not approved] . F1000Research 2025, 14 :664 ( https://doi.org/10.5256/f1000research.193150.r440910) NOTE: it is important to ensure the information in square brackets after the title is included in this citation. The direct URL for this report is: https://f1000research.com/articles/14-664/v2#referee-response-440910 keyboard_arrow_left Back to all reports Reviewer Report 0 Views copyright © 2025 Palit S. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. 27 Nov 2025 | for Version 1 Shamik Palit , University of Stirling RAK Campus, Ras Al Khaimah, Ras Al Khaimah, United Arab Emirates 0 Views copyright © 2025 Palit S. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. format_quote Cite this report speaker_notes Responses (1) Approved With Reservations info_outline Alongside their report, reviewers assign a status to the article: Approved The paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved Fundamental flaws in the paper seriously undermine the findings and conclusions Exact hyperparameter configuration for each model. XGBoost: number of trees, max_depth, learning_rate, subsampling, regularization parameters, etc. Random Forest: n_estimators, max_features, max_depth, class_weight (if any). Autoencoder: architecture (layers, hidden sizes, activation functions), optimizer, learning rate, number of epochs, batch size, reconstruction threshold selection. Isolation Forest: n_estimators, max_samples, contamination, max_features. Precise description of train/validation/test splitting. Is there a single held-out test set? Was cross-validation used? If yes, k-fold or repeated stratified? How is random seeding handled? Details of how BorderlineSMOTE is applied. Confirm explicitly that SMOTE is applied only on the training folds and not on the test set (to avoid data leakage). Clarify whether SMOTE is applied before or inside cross-validation loops. Mathematical or algorithmic description of the hybrid XRAI weighting scheme. How are the outputs of XGBoost, RF, AE, IF combined? Simple average? Weighted sum? Threshold on each then voting? How are the weights chosen? Manually tuned? Based on validation metrics? Grid search? Conceptually and experimentally, the paper is strong, well-motivated, and technically sound. The main remaining gaps are in the detail level of the methods, particularly around hyperparameters, data splitting, resampling protocol, and ensemble weighting. Once these are clarified, the work will be scientifically solid and reproducible, and in my view, suitable for publication in an applied machine learning or fintech/security venue. Is the work clearly and accurately presented and does it cite the current literature? Yes Is the study design appropriate and is the work technically sound? Yes Are sufficient details of methods and analysis provided to allow replication by others? Partly If applicable, is the statistical analysis and its interpretation appropriate? Yes Are all the source data underlying the results available to ensure full reproducibility? Partly Are the conclusions drawn adequately supported by the results? Yes Competing Interests No competing interests were disclosed. Reviewer Expertise Machine Learning I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however I have significant reservations, as outlined above. reply Respond to this report Responses (1) Author Response 11 Dec 2025 Mohammad Shanaa, Faculty of Engineering and IT, The British University in Dubai, Dubai, United Arab Emirates 1) Exact hyperparameter configuration for each model Response: The full and exact configurations are available in the public GitHub repository https://github.com/mohshanaa/XRAI.git Direct link https://github.com/mohshanaa/XRAI/blob/main/Configurations 2) Precise description of train/validation/test splitting Response: The study uses a single stratified 70/30 train–test split of the creditcard.csv dataset. 70% of the data is used for model development (training + internal validation as needed). 30% is held out once as the final test set. Stratification ensures the fraud ratio is preserved in both subsets. 3) Is there a single held-out test set? Response: Yes. A single stratified 30% test set was held out and never used during training, resampling, weight tuning, or threshold selection. All reported performance metrics are computed on this untouched 30% test portion. 4) Was cross-validation used? Response: No. The experiments used a single 70/30 stratified hold-out split only . No k-fold, repeated k-fold, or stratified cross-validation was used. Any internal tuning was performed on the training portion of the split. 5) How is random seeding handled? Response: A consistent random_state = 42 was applied to: the stratified 70/30 split, BorderlineSMOTE, stochastic models (Random Forest, XGBoost, Isolation Forest), and Autoencoder initialization (where applicable). This ensures full reproducibility. The seed usage is visible in the GitHub code. 6) Details of how BorderlineSMOTE is applied Response: The procedure is: Perform a stratified 70/30 split . Apply BorderlineSMOTE only to the training 70% subset (for supervised models). Leave the 30% test set untouched . Train unsupervised models (Autoencoder, Isolation Forest) on non-SMOTE data , preserving natural anomaly structure. This avoids leakage and preserves anomaly boundaries for unsupervised models. 7) Confirm SMOTE is applied only on the training set Response: We confirm that BorderlineSMOTE is applied exclusively to the training 70% subset . The 30% test set is never oversampled or modified. No SMOTE-generated samples ever enter evaluation. 8) Clarify whether SMOTE is applied before or inside cross-validation loops Response: Since cross-validation was not used , BorderlineSMOTE was not applied inside any CV loop. It is applied only once , after the 70/30 split, and only on the training set . 9) How are model outputs combined? Weighted sum? Voting? Response: XRAI uses a weighted sum of normalized scores , not voting or averaging. XGBoost & RF: use predicted fraud probability Autoencoder: uses normalized reconstruction error Isolation Forest: uses normalized anomaly score All four are scaled to ([0,1]), weighted, summed, and thresholded. 10) How were the weights chosen? Response: Weights were chosen empirically based on the behavior of the individual models and the overall ensemble performance. Higher weights were assigned to XGBoost and Random Forest, which exhibited stronger precision and stability, while lower weights were assigned to the Autoencoder and Isolation Forest to preserve anomaly sensitivity without allowing noisy alerts to dominate the ensemble. The final chosen weights and their implementation are documented in the publicly available GitHub repository. View more View less Competing Interests No competing interests were disclosed. reply Respond Report a concern Palit S. Peer Review Report For: A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection [version 1; peer review: 1 approved with reservations, 1 not approved] . F1000Research 2025, 14 :664 ( https://doi.org/10.5256/f1000research.183325.r432010) NOTE: it is important to ensure the information in square brackets after the title is included in this citation. The direct URL for this report is: https://f1000research.com/articles/14-664/v1#referee-response-432010 keyboard_arrow_left Back to all reports Reviewer Report 0 Views copyright © 2025 Paldino G. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. 26 Aug 2025 | for Version 1 Gian Marco Paldino , Université Libre de Bruxelles, Brussels, Belgium 0 Views copyright © 2025 Paldino G. This is an open access peer review report distributed under the terms of the Creative Commons Attribution License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. format_quote Cite this report speaker_notes Responses (1) Not Approved info_outline Alongside their report, reviewers assign a status to the article: Approved The paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved Fundamental flaws in the paper seriously undermine the findings and conclusions The manuscript presents a hybrid model, named XRAI, for credit card fraud detection. The model combines two supervised (XGBoost, Random Forest) and two unsupervised (Autoencoder, Isolation Forest) algorithms, reporting superior performance on the public Kaggle creditcard.csv dataset. The problem of fraud detection is of significant practical and academic importance, and the authors' effort to develop a high-performance solution is commendable. However, the manuscript in its current form suffers from several major methodological and conceptual issues that must be addressed before it can be considered for indexing. The core concerns relate to the justification of the preprocessing pipeline, the rationale for the ensemble's architecture, and the practical significance of the model's contribution. Major Concerns Fundamental Flaw in Preprocessing Methodology: A significant methodological concern is the application of Principal Component Analysis (PCA) for dimensionality reduction. The creditcard.csv dataset's primary features (V1-V28) are already the result of a PCA transformation, a fact the authors acknowledge. Applying PCA again to these components is conceptually flawed, as it assumes the components are correlated in a way that allows for further linear dimensionality reduction, which is not guaranteed and highly unusual. This step demonstrates a misunderstanding of the dataset's nature and potentially distorts the data's inherent structure. The authors must either remove this step or provide a strong theoretical justification for this unconventional approach. Unjustified Ensemble Architecture and Model Selection: The rationale for the specific composition of the XRAI model is unclear and seems arbitrary. Inclusion of a Poorly Performing Model: The authors' own results (Table 1) show that the Isolation Forest model yields extremely low precision (0.0192) and an F1-score (0.0376) for the fraud class, which the authors rightly identify as "impractical" and lacking "practical usefulness." Its inclusion in the final weighted ensemble is counterintuitive and requires justification. A clear explanation is needed as to why a model known to be highly noisy and generate excessive false positives contributes positively to the final ensemble. Redundancy of Supervised Models: The framework includes both XGBoost and Random Forest, which are methodologically similar tree-based ensemble methods. The manuscript does not explain the benefit of using both in the final model rather than selecting the single best-performing supervised algorithm. This adds unnecessary complexity without a clear, stated advantage. Marginal Performance Gain and Novelty of Contribution: The manuscript claims to propose a "novel" framework. While the specific four-model combination might be new, the general concept of creating a hybrid model by combining supervised and unsupervised learning for fraud detection is well-established in the literature, as cited by the authors themselves (e.g., Carcillo et al., 2021). Furthermore, the performance gain of the complex XRAI model over its best individual component (XGBoost) is marginal. The F1-score for the fraud class improves from 0.9328 to 0.9407—a gain of less than one percentage point—while the recall remains identical. The authors should clarify the practical significance of this small improvement in light of the model's increased complexity, maintainability, and computational overhead. A simpler ensemble, perhaps combining only XGBoost and the Autoencoder, should be tested and discussed as a more parsimonious alternative. Insufficient Motivation for Imbalance Handling Technique: The choice of BorderlineSMOTE for handling class imbalance is stated but not motivated. The authors should briefly explain why this specific technique was selected over other common methods (e.g., ADASYN, SMOTE-ENN, random over/under-sampling) and how it is particularly suited for this dataset and model architecture Generalizability: The framework is not specific to fraud detection and is tested on a single, anonymized dataset. While this is a limitation of the study, the authors could strengthen the discussion by more clearly positioning the framework as a general anomaly detection pipeline and suggesting how it might be adapted with domain-specific features for other applications, and including performance metrics for other publicly available datasets. Is the work clearly and accurately presented and does it cite the current literature? Partly Is the study design appropriate and is the work technically sound? No Are sufficient details of methods and analysis provided to allow replication by others? Yes If applicable, is the statistical analysis and its interpretation appropriate? Yes Are all the source data underlying the results available to ensure full reproducibility? Yes Are the conclusions drawn adequately supported by the results? Partly Competing Interests No competing interests were disclosed. Reviewer Expertise Credit Card Fraud Detection, Time Series Forecasting, Anomaly Detection I confirm that I have read this submission and believe that I have an appropriate level of expertise to state that I do not consider it to be of an acceptable scientific standard, for reasons outlined above. reply Respond to this report Responses (1) Author Response 11 Dec 2025 Mohammad Shanaa, Faculty of Engineering and IT, The British University in Dubai, Dubai, United Arab Emirates We sincerely thank the reviewer for their detailed, insightful, and constructive feedback. We have carefully considered each point and submitted a revised manuscript to clarify the theoretical justification, methodological rationale, and generalizability of the XRAI framework. Below, we provide a point-by-point response to each major concern. 1. Fundamental Flaw in Preprocessing Methodology (PCA Application) Reviewer Comment: The creditcard.csv dataset's primary features (V1–V28) are already the result of PCA transformation. Applying PCA again to these components is conceptually flawed… The authors must either remove this step or provide a strong theoretical justification for this unconventional approach. Author Response: We thank the reviewer for highlighting this important point. We acknowledge that the creditcard.csv dataset already includes PCA-derived features (V1–V28). In our framework, PCA was not used to perform an additional feature extraction, but rather as a numerical conditioning and normalization step to ensure that all sub-models within the XRAI ensemble operate on a consistent, decorrelated feature space. This approach is supported by previous studies that emphasize the role of PCA and whitening transformations in improving feature orthogonality, numerical stability, and model convergence (Jolliffe & Cadima, 2016; Kessy, Lewin & Strimmer, 2018). To clarify this, we have explicitly revised the manuscript to state: “Although the creditcard.csv dataset already contains PCA-derived features, we applied an additional PCA/whitening step purely as a normalization and conditioning layer so that all XRAI sub-models operate on a consistent, decorrelated feature space; this use of PCA/whitening for orthogonalization and numerical stability is well-established in the literature (Jolliffe & Cadima, 2016; Kessy, Lewin & Strimmer, 2018).” 2. Unjustified Ensemble Architecture and Model Selection Reviewer Comment: The rationale for the specific composition of the XRAI model is unclear and seems arbitrary. Author Response: We appreciate this observation and have expanded the discussion to clarify the theoretical complementarity of the selected models. Each model contributes a distinct strength within the hybrid architecture. To clarify this, we have explicitly revised the manuscript to state: “The XRAI framework integrates four complementary models, each contributing distinct capabilities that collectively enhance anomaly-detection performance. The supervised learners, XGBoost and Random Forest, establish strong foundational decision boundaries and improve model stability. XGBoost offers high precision and interpretability, providing calibrated scoring that anchors the ensemble’s primary classification behavior, while Random Forest enhances robustness by reducing variance and mitigating overfitting, thereby strengthening generalization. To detect anomalies that supervised models may miss, XRAI incorporates two unsupervised detectors: the Autoencoder, which is highly sensitive to structural irregularities and identifies latent deviations within the data, and the Isolation Forest, which excels at capturing rare or extreme outliers and ensuring broad boundary-level coverage. This structure was inspired by hybrid anomaly-detection principles found in recent research (Carcillo et al., Information Sciences , 2021; Liu et al., HBEM , 2023), which demonstrate that combining precision-oriented supervised models with sensitivity-oriented unsupervised models improves recall without inflating false positives; this justification has been added to the Methods section. Together, these components form a tightly integrated ensemble that delivers a more reliable and comprehensive detection mechanism.” 3. Inclusion of a Poorly Performing Model (Isolation Forest) Reviewer Comment: The Isolation Forest yields extremely low precision and F1-score. Its inclusion in the final ensemble is counterintuitive and requires justification. Author Response: We agree that Isolation Forest alone performs poorly on imbalanced datasets due to excessive false positives. However, its extremely high recall (0.95) makes it valuable when used in weighted ensemble combination . The low individual precision was penalized during ensemble weighting , but its sensitivity helped ensure that rare fraud instances—often missed by purely supervised models—were not overlooked. This approach is consistent with ensemble learning literature emphasizing the inclusion of high-recall “weak detectors” to prevent false negatives in rare-event detection tasks (Debener et al., Journal of Risk and Insurance , 2023; Meduri, IJ Sci Res Arch , 2024). We have clarified this in the revised manuscript: “In summary, the Isolation Forest algorithm is a robust method for detecting anomalies in financial datasets, particularly effective in high-dimensional spaces, with parameter tuning playing a critical role in optimizing its performance. Its computational efficiency also makes it well-suited for large datasets, and although it can be individually noisy, its high sensitivity to rare and extreme anomalies remains a valuable asset. For this reason, within the hybrid XRAI framework, the Isolation Forest was assigned a relatively low ensemble weight but retained to ensure broad boundary coverage and strengthen robustness against unseen fraud patterns. Despite its limitations, integrating Isolation Forest with complementary methods in a hybrid ensemble significantly enhances overall anomaly-detection capability.” 4. Redundancy of Supervised Models (XGBoost and Random Forest) Reviewer Comment: Including both Random Forest and XGBoost adds unnecessary complexity without clear benefit. Author Response: We thank the reviewer for raising this valid concern. While both models are tree-based, they exhibit complementary learning biases: XGBoost reduces bias via gradient boosting, excelling in fine-grained pattern detection; Random Forest reduces variance via bagging, enhancing stability and resistance to overfitting. Their combination thus enhances both precision and generalization — a strategy validated in comparative ensemble studies (Murat et al., BTOUPhMath , 2023; Liu, HBEM , 2023). We have revised the “Hybrid Integration” subsection to explain this rationale explicitly. 5. Marginal Performance Gain and Novelty of Contribution Reviewer Comment: The model’s performance gain is marginal (<1% F1 improvement) and the novelty claim is overstated. Author Response: We acknowledge that the numerical F1 gain appears modest; however, in highly imbalanced domains , even fractional improvements can translate into substantial real-world cost savings. For example, in large-scale financial operations, a 0.8% improvement in fraud detection precision can prevent hundreds of false alerts per million transactions, enhancing customer trust and reducing manual review overhead. Furthermore, the novelty of the study lies not solely in the combination of four algorithms but in: The weighted ensemble optimization mechanism that balances supervised and unsupervised outputs. The open-source reproducibility framework (GitHub) ensuring transparency and reusability. The focus on real-time operational applicability of hybrid detection pipelines. These contributions align with F1000Research’s emphasis on reproducibility and practical impact . We have revised the “Conclusion and Future Work” section to emphasize these aspects more clearly. 6. Motivation for Using BorderlineSMOTE Reviewer Comment: The choice of BorderlineSMOTE is stated but not motivated. Author Response: We appreciate this important point and have added a detailed explanation. BorderlineSMOTE was selected because fraudulent transactions in credit card data typically occur near class decision boundaries , making standard SMOTE or ADASYN less effective. BorderlineSMOTE focuses on minority samples close to the borderline region, generating more realistic synthetic examples and improving model sensitivity without introducing noise. This choice follows findings by Han et al. (2005) and recent credit card fraud studies such as Noviandy et al. (2023) and Zhang et al. (2022), which demonstrated superior F1-scores using BorderlineSMOTE for imbalanced fraud data. The rationale and supporting citations have been added to the “Data Preprocessing and Class Imbalance” section. 7. Generalizability and Broader Applications Reviewer Comment: The framework was tested on a single dataset and may not generalize well. Author Response: We fully agree and appreciate this suggestion. We have revised the Conclusion section to position XRAI as a general anomaly detection framework adaptable to multiple domains beyond fraud detection. We have added the following text: “Although validated on the creditcard.csv dataset, XRAI’s architecture is domain-agnostic and can be readily adapted to other anomaly detection contexts such as cybersecurity intrusion detection, insurance fraud, and healthcare anomaly analysis. Future work will involve evaluating the model on diverse benchmark datasets, including IEEE-CIS Fraud Detection and UNSW-NB15, to establish its cross-domain generalizability.” · Carcillo, F., Le Borgne, Y.-A., Caelen, O., Bontempi, G. (2019). Combining unsupervised and supervised learning in credit card fraud detection. Information Sciences , 557 , 317–331. ScienceDirect · Han, H., Wang, W.-Y. & Mao, B.-H. (2005). Borderline-SMOTE: A new over-sampling method in imbalanced data sets learning. In Advances in Intelligent Computing (ICIC 2005), LNCS 3644, 878–887. Springer. SpringerLink · Huang, Y., Wang, S., Hu, Y. & et al. (2021). A robust anomaly detection algorithm based on principal component analysis. Intelligent Data Analysis , 25 (6), 1331–1348. https://doi.org/10.3233/IDA-195054 . SAGE Journals · Jolliffe, I.T. & Cadima, J. (2016). Principal component analysis: A review and recent developments. Philosophical Transactions of the Royal Society A , 374 (2065), 20150202. https://doi.org/10.1098/rsta.2015.0202 . PMC · Kessy, A., Lewin, A. & Strimmer, K. (2018). Optimal whitening and decorrelation. The American Statistician , 72 (4), 309–314. https://doi.org/10.1080/00031305.2016.1277159 . IDEAS/RePEc View more View less Competing Interests No competing interests were disclosed. reply Respond Report a concern Paldino GM. Peer Review Report For: A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection [version 1; peer review: 1 approved with reservations, 1 not approved] . F1000Research 2025, 14 :664 ( https://doi.org/10.5256/f1000research.183325.r398688) NOTE: it is important to ensure the information in square brackets after the title is included in this citation. The direct URL for this report is: https://f1000research.com/articles/14-664/v1#referee-response-398688 Alongside their report, reviewers assign a status to the article: Approved - the paper is scientifically sound in its current form and only minor, if any, improvements are suggested Approved with reservations - A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit. Not approved - fundamental flaws in the paper seriously undermine the findings and conclusions Adjust parameters to alter display View on desktop for interactive features Includes Interactive Elements View on desktop for interactive features Competing Interests Policy Provide sufficient details of any financial or non-financial competing interests to enable users to assess whether your comments might lead a reasonable person to question your impartiality. Consider the following examples, but note that this is not an exhaustive list: Examples of 'Non-Financial Competing Interests' Within the past 4 years, you have held joint grants, published or collaborated with any of the authors of the selected paper. You have a close personal relationship (e.g. parent, spouse, sibling, or domestic partner) with any of the authors. You are a close professional associate of any of the authors (e.g. scientific mentor, recent student). You work at the same institute as any of the authors. You hope/expect to benefit (e.g. favour or employment) as a result of your submission. You are an Editor for the journal in which the article is published. Examples of 'Financial Competing Interests' You expect to receive, or in the past 4 years have received, any of the following from any commercial organisation that may gain financially from your submission: a salary, fees, funding, reimbursements. You expect to receive, or in the past 4 years have received, shared grant support or other funding with any of the authors. You hold, or are currently applying for, any patents or significant stocks/shares relating to the subject matter of the paper you are commenting on. Stay Updated Sign up for content alerts and receive a weekly or monthly email with all newly published articles Register with F1000Research Already registered? Sign in Not now, thanks close PLEASE NOTE If you are an AUTHOR of this article, please check that you signed in with the account associated with this article otherwise we cannot automatically identify your role as an author and your comment will be labelled as a “User Comment”. If you are a REVIEWER of this article, please check that you have signed in with the account associated with this article and then go to your account to submit your report, please do not post your review here. If you do not have access to your original account, please contact us . All commenters must hold a formal affiliation as per our Policies . The information that you give us will be displayed next to your comment. User comments must be in English, comprehensible and relevant to the article under discussion. We reserve the right to remove any comments that we consider to be inappropriate, offensive or otherwise in breach of the User Comment Terms and Conditions . Commenters must not use a comment for personal attacks. When criticisms of the article are based on unpublished data, the data should be made available. I accept the User Comment Terms and Conditions Please confirm that you accept the User Comment Terms and Conditions. Affiliation ✕ refresh Please enter your institution. Note: To add your institution or organisation, start typing the name and then select the correct name from the list. Where applicable, the name will appear in both the original language and in English. Do not paste in the name. If the name does not appear in the drop-down list, we will display the information you have entered. ✕ refresh Country/Region * USA UK Canada China France Germany Afghanistan Aland Islands Albania Algeria American Samoa Andorra Angola Anguilla Antarctica Antigua and Barbuda Argentina Armenia Aruba Australia Austria Azerbaijan Bahamas Bahrain Bangladesh Barbados Belarus Belgium Belize Benin Bermuda Bhutan Bolivia Bosnia and Herzegovina Botswana Bouvet Island Brazil British Indian Ocean Territory British Virgin Islands Brunei Bulgaria Burkina Faso Burundi Cambodia Cameroon Canada Cape Verde Cayman Islands Central African Republic Chad Chile China Christmas Island Cocos (Keeling) Islands Colombia Comoros Congo Cook Islands Costa Rica Cote d'Ivoire Croatia Cuba Cyprus Czech Republic Democratic Republic of the Congo Denmark Djibouti Dominica Dominican Republic Ecuador Egypt El Salvador Equatorial Guinea Eritrea Estonia Ethiopia Falkland Islands Faroe Islands Federated States of Micronesia Fiji Finland France French Guiana French Polynesia French Southern Territories Gabon Georgia Germany Ghana Gibraltar Greece Greenland Grenada Guadeloupe Guam Guatemala Guernsey Guinea Guinea-Bissau Guyana Haiti Heard Island and Mcdonald Islands Holy See (Vatican City State) Honduras Hong Kong Hungary Iceland India Indonesia Iran Iraq Ireland Israel Italy Jamaica Japan Jersey Jordan Kazakhstan Kenya Kiribati Kosovo (Serbia and Montenegro) Kuwait Kyrgyzstan Lao People's Democratic Republic Latvia Lebanon Lesotho Liberia Libya Liechtenstein Lithuania Luxembourg Macao Madagascar Malawi Malaysia Maldives Mali Malta Marshall Islands Martinique Mauritania Mauritius Mayotte Mexico Minor Outlying Islands of the United States Moldova Monaco Mongolia Montenegro Montserrat Morocco Mozambique Myanmar Namibia Nauru Nepal Netherlands Antilles New Caledonia New Zealand Nicaragua Niger Nigeria Niue Norfolk Island North Korea North Macedonia Northern Mariana Islands Norway Oman Pakistan Palau Palestinian Territory Panama Papua New Guinea Paraguay Peru Philippines Pitcairn Poland Portugal Puerto Rico Qatar Reunion Romania Russian Federation Rwanda Saint Helena Saint Kitts and Nevis Saint Lucia Saint Pierre and Miquelon Saint Vincent and the Grenadines Samoa San Marino Sao Tome and Principe Saudi Arabia Senegal Serbia Seychelles Sierra Leone Singapore Slovakia Slovenia Solomon Islands Somalia South Africa South Georgia and the South Sandwich Is South Korea South Sudan Spain Sri Lanka Sudan Suriname Svalbard and Jan Mayen Swaziland Sweden Switzerland Syria Taiwan Tajikistan Tanzania Thailand The Gambia The Netherlands Timor-Leste Togo Tokelau Tonga Trinidad and Tobago Tunisia Turkey Turkmenistan Turks and Caicos Islands Tuvalu UK USA Uganda Ukraine United Arab Emirates United States Virgin Islands Uruguay Uzbekistan Vanuatu Venezuela Vietnam Wallis and Futuna West Bank and Gaza Strip Western Sahara Yemen Zambia Zimbabwe Please select your country/region. You must enter a comment. Competing Interests Please disclose any competing interests that might be construed to influence your judgment of the article's or peer review report's validity or importance. Competing Interests Policy Provide sufficient details of any financial or non-financial competing interests to enable users to assess whether your comments might lead a reasonable person to question your impartiality. Consider the following examples, but note that this is not an exhaustive list: Examples of 'Non-Financial Competing Interests' Within the past 4 years, you have held joint grants, published or collaborated with any of the authors of the selected paper. You have a close personal relationship (e.g. parent, spouse, sibling, or domestic partner) with any of the authors. You are a close professional associate of any of the authors (e.g. scientific mentor, recent student). You work at the same institute as any of the authors. You hope/expect to benefit (e.g. favour or employment) as a result of your submission. You are an Editor for the journal in which the article is published. Examples of 'Financial Competing Interests' You expect to receive, or in the past 4 years have received, any of the following from any commercial organisation that may gain financially from your submission: a salary, fees, funding, reimbursements. You expect to receive, or in the past 4 years have received, shared grant support or other funding with any of the authors. You hold, or are currently applying for, any patents or significant stocks/shares relating to the subject matter of the paper you are commenting on. Please state your competing interests The comment has been saved. An error has occurred. Please try again. Cancel Post var lTitle = "A Hybrid Anomaly Detection Framework Combining...".replace("'", ''); var linkedInUrl = "http://www.linkedin.com/shareArticle?url=https://f1000research.com/articles/14-664/v1" + "&title=" + encodeURIComponent(lTitle) + "&summary=" + encodeURIComponent('Read the article by '); var deliciousUrl = "https://del.icio.us/post?url=https://f1000research.com/articles/14-664/v1&title=" + encodeURIComponent(lTitle); var redditUrl = "http://reddit.com/submit?url=https://f1000research.com/articles/14-664/v1" + "&title=" + encodeURIComponent(lTitle); linkedInUrl += encodeURIComponent('Shanaa M and Abdallah S'); var offsetTop = /chrome/i.test( navigator.userAgent ) ? 4 : -10; var addthis_config = { ui_offset_top: offsetTop, services_compact : "facebook,twitter,www.linkedin.com,www.mendeley.com,reddit.com", services_expanded : "facebook,twitter,www.linkedin.com,www.mendeley.com,reddit.com", services_custom : [ { name: "LinkedIn", url: linkedInUrl, icon:"/img/icon/at_linkedin.svg" }, { name: "Mendeley", url: "http://www.mendeley.com/import/?url=https://f1000research.com/articles/14-664/v1/mendeley", icon:"/img/icon/at_mendeley.svg" }, { name: "Reddit", url: redditUrl, icon:"/img/icon/at_reddit.svg" }, ] }; var addthis_share = { url: "https://f1000research.com/articles/14-664", templates : { twitter : "A Hybrid Anomaly Detection Framework Combining Supervised and.... Shanaa M and Abdallah S, published by " + "@F1000Research" + ", https://f1000research.com/articles/14-664/v1" } }; if (typeof(addthis) != "undefined"){ addthis.addEventListener('addthis.ready', checkCount); addthis.addEventListener('addthis.menu.share', checkCount); } $(".f1r-shares-twitter").attr("href", "https://twitter.com/intent/tweet?text=" + addthis_share.templates.twitter); $(".f1r-shares-facebook").attr("href", "https://www.facebook.com/sharer/sharer.php?u=" + addthis_share.url); $(".f1r-shares-linkedin").attr("href", addthis_config.services_custom[0].url); $(".f1r-shares-reddit").attr("href", addthis_config.services_custom[2].url); $(".f1r-shares-mendelay").attr("href", addthis_config.services_custom[1].url); function checkCount(){ setTimeout(function(){ $(".addthis_button_expanded").each(function(){ var count = $(this).text(); if (count !== "" && count != "0") $(this).removeClass("is-hidden"); else $(this).addClass("is-hidden"); }); }, 1000); } close How to cite this report {{reportCitation}} Cancel Copy Citation Details $(function(){R.ui.buttonDropdowns('.dropdown-for-downloads');}); $(function(){R.ui.toolbarDropdowns('.toolbar-dropdown-for-downloads');}); $.get("/articles/acj/166350/183325") new F1000.Clipboard(); new F1000.ThesaurusTermsDisplay("articles", "article", "183325"); $(document).ready(function() { $( "#frame1" ).on('load', function() { var mydiv = $(this).contents().find("div"); var h = mydiv.height(); console.log(h) }); var tooltipLivingFigure = jQuery(".interactive-living-figure-label .icon-more-info"), titleLivingFigure = tooltipLivingFigure.attr("title"); tooltipLivingFigure.simpletip({ fixed: true, position: ["-115", "30"], baseClass: 'small-tooltip', content:titleLivingFigure + " " }); tooltipLivingFigure.removeAttr("title"); $("body").on("click", ".cite-living-figure", function(e) { e.preventDefault(); var ref = $(this).attr("data-ref"); $(this).closest(".living-figure-list-container").find("#" + ref).fadeIn(200); }); $("body").on("click", ".close-cite-living-figure", function(e) { e.preventDefault(); $(this).closest(".popup-window-wrapper").fadeOut(200); }); $(document).on("mouseup", function(e) { var metricsContainer = $(".article-metrics-popover-wrapper"); if (!metricsContainer.is(e.target) && metricsContainer.has(e.target).length === 0) { $(".article-metrics-close-button").click(); } }); var articleId = $('#articleId').val(); if($("#main-article-count-box").attachArticleMetrics) { $("#main-article-count-box").attachArticleMetrics(articleId, { articleMetricsView: true }); } }); var figshareWidget = $(".new_figshare_widget"); if (figshareWidget.length > 0) { window.figshare.load("f1000", function(Widget) { // Select a tag/tags defined in your page. In this tag we will place the widget. _.map(figshareWidget, function(el){ var widget = new Widget({ articleId: $(el).attr("figshare_articleId") //height:300 // this is the height of the viewer part. [Default: 550] }); widget.initialize(); // initialize the widget widget.mount(el); // mount it in a tag that's on your page // this will save the widget on the global scope for later use from // your JS scripts. This line is optional. //window.widget = widget; }); }); } close Error Close Add Reset F1000.MICROSERVICES.AFFILIATION = ''; $(document).ready(function () { $('.js-affiliations-form').each((index, form) => { new AffiliationForm({ formId: form.id, institutionErrorSelector: '.comment-enter-institution', departmentErrorSelector: '.comment-enter-department', placeSelector: '.js-add-comment-place', stateSelector: '.js-add-comment-state', zipCodeSelector: '.js-add-comment-zipcode', countrySelector: '.js-add-comment-country', countryErrorSelector: '.comment-enter-country', }); }); }); $(document).ready(function () { var reportIds = { "432006": 0, "432007": 0, "432004": 0, "432005": 0, "441474": 0, "441475": 0, "441472": 0, "441473": 0, "432012": 0, "432013": 0, "432010": 14, "432011": 0, "432008": 0, "432009": 0, "404134": 0, "452134": 0, "404135": 0, "452135": 0, "404132": 0, "452132": 0, "404133": 0, "452133": 0, "404130": 0, "452130": 0, "404131": 0, "452131": 0, "404129": 0, "452138": 0, "452139": 0, "404136": 0, "452136": 0, "404137": 0, "452137": 0, "460487": 0, "460486": 0, "460485": 0, "460484": 0, "460483": 0, "446798": 0, "440910": 11, "440911": 0, "446799": 0, "446796": 0, "460492": 5, "446797": 0, "460491": 0, "446794": 0, "460490": 0, "446795": 0, "460489": 0, "446792": 0, "460488": 0, "446793": 0, "398679": 0, "446800": 0, "446801": 0, "398686": 0, "398687": 0, "398684": 0, "398682": 0, "398683": 0, "398680": 0, "398681": 0, "398688": 32, "398689": 0, "401526": 0, "401527": 0, "401534": 0, "441470": 0, "401535": 0, "441471": 0, "401532": 0, "441468": 0, "401533": 0, "441469": 0, "401530": 0, "441466": 0, "401531": 0, "441467": 0, "401528": 0, "401529": 0, }; $(".referee-response-container,.js-referee-report").each(function(index, el) { var reportId = $(el).attr("data-reportid"), reportCount = reportIds[reportId] || 0; $(el).find(".comments-count-container,.js-referee-report-views").html(reportCount); }); var uuidInput = $("#article_uuid"), oldUUId = uuidInput.val(), newUUId = "c740a212-ad98-49d1-9746-6c80db874e20"; uuidInput.val(newUUId); $("a[href*='article_uuid=']").each(function(index, el) { var newHref = $(el).attr("href").replace(oldUUId, newUUId); $(el).attr("href", newHref); }); }); An innovative open access publishing platform offering rapid publication and open peer review, whilst supporting data deposition and sharing. Browse Gateways Collections How it Works Contact For Developers Cookie Notice Privacy Notice RSS Submit Your Research Follow us © 2012-2026 F1000 Research Ltd. ISSN 2046-1402 | Legal | Partner of Research4Life • CrossRef • ORCID • FAIRSharing R.templateTests.simpleTemplate = R.template(' $text $text $text $text $text '); R.templateTests.runTests(); var F1000platform = new F1000.Platform({ name: "f1000research", displayName: "F1000Research", hostName: "f1000research.com", id: "1", editorialEmail: "[email protected]", infoEmail: "[email protected]", usePmcStats: true }); $(function(){R.ui.dropdowns('.dropdown-for-authors, .dropdown-for-about, .dropdown-for-myresearch');}); // $(function(){R.ui.dropdowns('.dropdown-for-referees');}); $(document).ready(function () { if ($(".cookie-warning").is(":visible")) { $(".sticky").css("margin-bottom", "35px"); $(".devices").addClass("devices-and-cookie-warning"); } $(".cookie-warning .close-button").click(function (e) { $(".devices").removeClass("devices-and-cookie-warning"); $(".sticky").css("margin-bottom", "0"); }); $("#tweeter-feed .tweet-message").each(function (i, message) { var self = $(message); self.html(linkify(self.html())); }); $(".partner").on("mouseenter mouseleave", function() { $(this).find(".gray-scale, .colour").toggleClass("is-hidden"); }); }); Sign In Remember me Forgotten your password? Sign In Cancel Email or password not correct. Please try again Please wait... $(function(){ // Note: All the setup needs to run against a name attribute and *not* the id due the clonish // nature of facebox... $("a[id=googleSignInButton]").click(function(event){ event.preventDefault(); $("input[id=oAuthSystem]").val("GOOGLE"); $("form[id=oAuthForm]").submit(); }); $("a[id=facebookSignInButton]").click(function(event){ event.preventDefault(); $("input[id=oAuthSystem]").val("FACEBOOK"); $("form[id=oAuthForm]").submit(); }); $("a[id=orcidSignInButton]").click(function(event){ event.preventDefault(); $("input[id=oAuthSystem]").val("ORCID"); $("form[id=oAuthForm]").submit(); }); }); If you've forgotten your password, please enter your email address below and we'll send you instructions on how to reset your password. The email address should be the one you originally registered with F1000. Email address not valid, please try again You registered with F1000 via Google, so we cannot reset your password. To sign in, please click here . If you still need help with your Google account password, please click here . You registered with F1000 via Facebook, so we cannot reset your password. To sign in, please click here . If you still need help with your Facebook account password, please click here . Code not correct, please try again Reset password Cancel Email us for further assistance. Server error, please try again. If your email address is registered with us, we will email you instructions to reset your password. If you think you should have received this email but it has not arrived, please check your spam filters and/or contact for further assistance. Please wait... Register $(document).ready(function () { signIn.createSignInAsRow($("#sign-in-form-gfb-popup")); $(".target-field").each(function () { var uris = $(this).val().split("/"); if (uris.pop() === "login") { $(this).val(uris.toString().replace(",","/")); } }); });

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-05-22T02:00:06.705733+00:00
License: CC-BY-4.0