Coder Social home page Coder Social logo

sovinmanuel / activitygen Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 15.71 MB

ActivityGen, a modular framework with optional user guidance for automatically extracting enabled activities from screenshots of interaction logs, allowing translucent event logs to be created

License: Apache License 2.0

Python 88.95% Shell 0.18% Jupyter Notebook 10.87%

activitygen's Introduction

Abstract of Thesis

Robotic Process Automation (RPA) enables the creation of bots that automate time-consuming tasks in applications that exhibit repetitive patterns. Process Mining (PM) techniques help identify such patterns and develop better bots by analyzing interaction logs that capture user interaction with the mouse and contain screenshots for each interaction, which captures the state of the desktop. However, the interaction logs can not be directly used to apply PM techniques, and they have to be transformed into a suitable format, namely event logs. Translucent event logs have been proposed as a new format, an extension of event logs containing information about enabled activities extracted from the screenshots. Dedicated PM techniques for translucent event logs outperform traditional ones on event logs, thereby helping improve RPA initiatives. However, current techniques for extracting enabled activities rely on template matching, which leads to unreliable detection. Moreover, no approach exists for creating translucent event logs based on interaction logs automatically, and a manual creation would be time-consuming, as every enabled activity depicted on the screenshots has to be manually extracted. Therefore, we propose ActivityGen, a modular framework with optional user guidance for automatically extracting enabled activities from screenshots, allowing translucent event logs to be created. First, components in a screenshot are detected and classified using Computer Vision (CV) techniques and Machine Learning (ML). After that, these components are filtered on relevancy and associated with an activity name using a generated expressive label conveying the user interaction. We evaluate ActivityGen extensively in quantitative and qualitative aspects regarding detecting components and generating labels for the activities. We present a case study using a real-life workflow that showcases the promising results of ActivityGen.

Initialization

Install packages using pipenv install (information)

Download the model weights and put them under the folder '/models'

Project Structure

.
├── activitygen                     # Core package folder
│   ├── activity_name_generator     # Modules for generating & saving activity names, context
│   ├── compo_classifier            # Modules for classifying detected components and ViSM
│   ├── compo_detector              # Module for non-text detection and user-guided
│   ├── merge                       # Module for merging all detected components
│   └── text_detector               # Module for text detection
├── configs                         # Folder for config files to change parameters
├── models                          # Folder for model weights 
└── ...

Usage

  1. Run pipenv shell in the terminal where the project is saved

  2. To use ActivityGen, the the run_*.py files can be modified and executed. They are the main entry points and show examples how the different modules can be combined.

    run_batch.py can be used to run ActivityGen on a folder containing different screenshots.

    The Jupyter notebooks can be executed to run example of the transformation from an interaction log into a translucent event log. process_workflow_open.ipynb executes open transformation for an example workflow.
    process_workflow_closed.ipynb executes closed transformation for an example workflow.

activitygen's People

Contributors

sovinmanuel avatar

Watchers

 avatar

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.