EFD also know as Ethereum Account Fraud Detection is a smart contract on Filecoin that allows users to check if a particular Account is Fraudulent or not which is powered by Machine Learning.
This project allows users to check if a particluar Ethereum Address is Fraudulent or not with the help of Machine Learning. The users needs to input an Ethereum address and the address information is retrieved using the etherscan api which are then used as features for the Machine Learning Model.
This project uses Bacalhau for Machine Learning Training and Inference (Compute) by calling a docker container, Lilypad for calling Bacalhau jobs from smart contracts and TableLand table for storing the results of the Machine Learning model which can be used to monitor the model perfomance.
Enctypt and Decrpyt data with LitProtocol. DACE for LitProtocol
The FVM smart contract deployed on the caliberation testnet. The user interacts with the IsFraudDetector payable function which takes as input an Ethereum Account, the fee payment is used to cover gas cost of the callback from the bridge.
IsFraudDetector then calls the the bridge runLilypadJob payable function sending the gas fee and a constructed bacalhau prompt.
Bacalhau starts the job based on the prompt from the smart contract. (However bacalhau runs a docker container which has already been deployed).
The docker container contains a python script and and RandomForest Model, the python script takes the argument (The Ethereum Address in this case), and retrieves the address information using the etherscan api which are then used as features for the Machine Learning Model. The RandomForest model is then used to predict if the Account is Fraudulent or not.
When the job is done, the bridge calls the lilypadFulfilled function(this is where the gas fee is needed) and send the result to the smart contract.
During contract deployment, a tableland table is created. The bridge while calling the lilypadFulfilled also saves the results to the table which can be used to monitor the model perfomance.