Giter Club home page Giter Club logo

bazilinskyy / trust-crowdsourced Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 312.03 MB

A framework for the analysis of trust in the interaction between pedestrians and vehicle (manual and automated), from the perspective of the driver of a manual or an automated vehicle, using a crowdsourcing approach.

Procfile 0.01% JavaScript 97.30% CSS 0.02% HTML 0.57% Python 2.11%
automated-driving autonomous-driving crowdsourcing self-driving-car trust

trust-crowdsourced's Introduction

Analysing trust in a traffic scene with an automated vehicle

This project defines a framework for the analysis of the level of trust in a traffic environment involving an automated vehicle. The jsPsych framework is used to for the frontend. In the description below, it is assumed that the repo is stored in the folder trust-crowdsourced. Terminal commands lower assume macOS.

Setup

Tested with Python 3.9.12. To setup the environment run these two commands in a parent folder of the downloaded repository (replace / with \ and possibly add --user if on Windows):

  • pip install -e trust-crowdsourced will setup the project as a package accessible in the environment.
  • pip install -r trust-crowdsourced/requirements.txt will install required packages.

Configuration of project

Configuration of the project needs to be defined in trust-crowdsourced/config. Please use the default.config file for the required structure of the file. If no custom config file is provided, default.config is used. The config file has the following parameters:

  • appen_job: ID of the appen job.
  • num_stimuli: number of stimuli in the study.
  • num_stimuli_participant: subset of stimuli in the study shown to each participant.
  • allowed_min_time: the cut-off for minimal time of participation for filtering.
  • num_repeat: number of times each stimulus is repeated.
  • kp_resolution: bin size in ms in which data is stored.
  • allowed_stimulus_wrong_duration: if the percentage of videos with abnormal length is above this value, exclude participant from analysis.
  • allowed_mistakes_signs: number of allowed mistakes in the questions about traffic signs.
  • sign_answers: answers to the questions on traffic signs.
  • mask_id: number for masking worker IDs in appen data.
  • files_heroku: files with data from heroku.
  • file_appen: file with data from appen.
  • file_cheaters: CSV file with cheaters for flagging.
  • path_source: path with source files for the stimuli from the Unity3D project.
  • path_stimuli: path consisting of all videos included in the survey.
  • mapping_stimuli: CSV file that contains all data found in the videos.
  • plotly_template: template used to make graphs in the analysis.

Preparation of stimuli

The source files of the video stimuli are outputted from Unity to config.path_source. To prepare them for the crowdsourced setup python trust-crowdsourced/preparation/process_videos.py. Videos will be outputted to config.path_stimuli.

Troubleshooting

Troubleshooting setup

ERROR: trust-crowdsourced is not a valid editable requirement

Check that you are indeed in the parent folder for running command pip install -e trust-crowdsourced. This command will not work from inside of the folder containing the repo.

trust-crowdsourced's People

Contributors

bazilinskyy avatar rolling0321 avatar

Watchers

 avatar  avatar

Forkers

rolling0321

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.