{"id":15683696,"url":"https://github.com/bryanlimy/rnn-lie-detector","last_synced_at":"2025-05-07T14:21:16.812Z","repository":{"id":39543985,"uuid":"129540120","full_name":"bryanlimy/rnn-lie-detector","owner":"bryanlimy","description":"TensorFlow RNN-based Lie Detector on the CSC Deceptive Speech Dataset","archived":false,"fork":false,"pushed_at":"2019-07-08T18:37:22.000Z","size":8,"stargazers_count":12,"open_issues_count":1,"forks_count":15,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T10:51:20.447Z","etag":null,"topics":["gru","lstm","neural-network","nlp","rnn","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bryanlimy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-14T17:41:18.000Z","updated_at":"2025-02-02T12:42:32.000Z","dependencies_parsed_at":"2022-09-20T04:53:48.307Z","dependency_job_id":null,"html_url":"https://github.com/bryanlimy/rnn-lie-detector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanlimy%2Frnn-lie-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanlimy%2Frnn-lie-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanlimy%2Frnn-lie-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanlimy%2Frnn-lie-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bryanlimy","download_url":"https://codeload.github.com/bryanlimy/rnn-lie-detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252892511,"owners_count":21820649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gru","lstm","neural-network","nlp","rnn","tensorflow"],"created_at":"2024-10-03T17:08:13.664Z","updated_at":"2025-05-07T14:21:16.789Z","avatar_url":"https://github.com/bryanlimy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Lie Detector on CSC Deceptive Speech Dataset using simple RNN with TensorFlow\n\nImplemented a simple RNN lie detector on the CSC Deceptive Speech Dataset using [TensorFlow 1.7 Estimator API](https://www.tensorflow.org/api_docs/python/tf/estimator).\n\nI tried modeling the data in two different ways; first (per frame method), pass in a MFCC vector with each row as a time step to the RNN, for instance, if the MFCC vector has dimension (28000,13), then the input for the RNN model is (28000, batch_size, 13); second , pass in the MFCC vector such that the whole vector is treated as the same time step, i.e. (1, 1, 28000 * 13). The two method can be selected using flag `--per_frame`.\n\nThe the MFCC vectors have different length, in order to pass in the vectors into TensorFlow's Estimator API, I had to add paddings to the vectors that are shorter than the longest vector, and use the `sequence_length` parameter in `dynamic_rnn to` ignore the padding. The model support the basic RNN, LSTM and GRU which can be specified with flag `--model`. When using the `per frame` method, the last output state from `dynamic_rnn` is then taken to apply dropout with flag `--dropout`, and pass to the output layer.\n\n#### Dataset\n- [CSC Deceptive Speech Dataset](https://catalog.ldc.upenn.edu/LDC2013S09)\n\n#### How to run\n`python3 lie-detector.py --lr=0.001 ---epochs=5 --model=LSTM --data_dir=data --per_frame=True`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanlimy%2Frnn-lie-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryanlimy%2Frnn-lie-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanlimy%2Frnn-lie-detector/lists"}