

# TenaliAI-FinTech-v1

This model was trained from scratch on banking dataset.
It achieves the following results on the evaluation set:
- Loss: 0.1350

## Model description

This project is integral to the development of a Natural User Interface(NUI) within the Banking and Finance Industry [BFSI].

The TenaliAI-FinTech model is specifically designed to tackle the intricate task of deciphering the intent behind customer queries in the BFSI sector.

The underlying technology behind TenaliAI-FinTech employs advanced natural language processing and machine learning algorithms. These technologies enhance the model's ability to accurately classify and understand the diverse range of customer queries. By leveraging sophisticated classification techniques, the model ensures a more precise interpretation of user intent, regardless of whether the query originates from the bank's net banking portal, mobile banking portal, or other communication channels.

Furthermore, the model excels in query tokenization, making it proficient in breaking down customer queries into meaningful components. This capability not only streamlines the processing of customer requests but also enables a more efficient and targeted response.

Ultimately, the technology powering TenaliAI-FinTech contributes to an enhanced customer service experience by providing quicker and more accurate responses to inquiries across multiple banking platforms.

## Intended uses & limitations

This model is meant to generate "Intent" for a given customer query on bank's netbanking portal or mobile banking. Following is the list of intents :

<pre>
{
    'add_beneficiary': 0, 
    'balance_enquiry': 1, 
    'beneficiary_details': 2, 
    'bill_payment': 3, 
    'block_card': 4, 
    'bulk_payments': 5, 
    'bulk_payments_status': 6, 
    'change_contact_info': 7, 
    'debit_card_details': 8, 
    'delete_beneficiary': 9, 
    'fd_details': 10, 
    'fd_rate': 11, 
    'fd_rate_large_amount': 12, 
    'funds_transfer_other_bank': 13, 
    'funds_transfer_own_account': 14, 
    'funds_transfer_status': 15, 
    'funds_transfer_third_party': 16, 
    'gst_payment': 17, 
    'investment_details': 18, 
    'list_accounts': 19, 
    'list_beneficiary': 20, 
    'list_billers': 21, 
    'list_fd': 22, 
    'list_investments': 23, 
    'list_loans': 24, 
    'loan_details': 25, 
    'nrv_details': 26, 
    'open_account': 27, 
    'pending_authorization': 28, 
    'pin_change': 29, 
    'raise_request': 30, 
    'request_status': 31, 
    'saving_interest_rate': 32, 
    'send_money_abroad': 33, 
    'ss_fd_rate': 34, 
    'transaction_history': 35, 
    'transaction_limit': 36, 
    'update_beneficiary': 37}
</pre>

How to use :

1. Type a query such as
   - "Tell me my last 10 transactions"
   - "I am senior citizen. What is FD rates"
   - "I want to send money to my brother"
   - "I want Fixed Deposit rate for 2 Crore INR"
   - "What is the outstanding EMI or my loan"
   - "How many active loans do I have ?"
   - "I want to add a new beneficiary"
3. This engine will understand the "intent" behind the query and return the value of LABEL_0 to LABEL_50.
4. The LABEL having maximum value (which will be at the top in the result) will be the identified "intent"
5. Use above mapping table and convert LABEL to Code. So, for example, LABEL_34 means "Senior Citizen Fixed Deposit Rate" and so on.

## Training and evaluation data

More information needed

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 10

### Training results

| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| No log        | 1.0   | 226  | 2.2719          |
| No log        | 2.0   | 452  | 0.8482          |
| 2.2725        | 3.0   | 678  | 0.2721          |
| 2.2725        | 4.0   | 904  | 0.1631          |
| 0.2506        | 5.0   | 1130 | 0.1350          |
| 0.2506        | 6.0   | 1356 | 0.1625          |
| 0.0232        | 7.0   | 1582 | 0.1650          |
| 0.0232        | 8.0   | 1808 | 0.1676          |
| 0.0095        | 9.0   | 2034 | 0.1739          |
| 0.0095        | 10.0  | 2260 | 0.1745          |


### Framework versions

- Transformers 4.30.0
- Pytorch 2.0.1
- Datasets 2.12.0
- Tokenizers 0.13.3

{"language": ["en"], "license": "apache-2.0", "tags": ["generated_from_trainer", "banking", "finance", "internet banking", "mobile banking", "Natural User Interface", "NUI", "Voice Banking"], "metrics": ["accuracy"], "widget": [{"text": "Can you pls tell me what is the latest balance in my account number 1001", "example_title": "Balance Enquiry"}, {"text": "I want to send money abroad. What is the process", "example_title": "Outward Remittance"}, {"text": "What is the Fixed Deposit rate for a bulk amount of more than 2 crore INR?", "example_title": "Bulk FD Rate"}, {"text": "What is the total interest paid on my loan till date?", "example_title": "Loan Details"}, {"text": "Can I set a daily spending limit on my debit card? How do I do that?", "example_title": "Transaction Limit"}, {"text": "Tell me the status of the funds transfer I initiated last Wednesday.", "example_title": "Funds Transfer Status"}, {"text": "Can you provide a list of all the Fixed Deposits linked to my customer ID?", "example_title": "Fixed Deposit List"}, {"text": "How can I change my email address associated with the account?", "example_title": "Change Contact Info"}, {"text": "Please send the loan account statement for the month of June to my mailing address.", "example_title": "Account Statement"}, {"text": "Show me last 15 transactions of my saving account", "example_title": "Transaction History"}], "model-index": [{"name": "TenaliAI-FinTech-v1", "results": []}]}
transformers pytorch joblib bert text-classification generated_from_trainer banking finance internet banking mobile banking Natural User Interface NUI Voice Banking en license:apache-2.0 autotrain_compatible endpoints_compatible region:us