ml-interactive-data-augmentation

Interactive Data Augmentation (CHI 2025)

https://github.com/apple/ml-interactive-data-augmentation

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.3%) to scientific vocabulary

Keywords

data-visualization large-language-models machine-learning synthetic-data-generation
Last synced: 6 months ago · JSON representation ·

Repository

Interactive Data Augmentation (CHI 2025)

Basic Info
  • Host: GitHub
  • Owner: apple
  • License: other
  • Language: Svelte
  • Default Branch: main
  • Homepage:
  • Size: 73 MB
Statistics
  • Stars: 22
  • Watchers: 9
  • Forks: 2
  • Open Issues: 0
  • Releases: 0
Topics
data-visualization large-language-models machine-learning synthetic-data-generation
Created about 1 year ago · Last pushed 11 months ago
Metadata Files
Readme Contributing License Code of conduct Citation

README.md

Interactive Data Augmentation

Amplio is an interactive research tool for data augmentation. The system visualizes the embeddings of input sentences and helps users systematically explore and fill in "empty data spaces," i.e., parts of the desired dataset distribution with few or no data points. To do this, Amplio includes a suite of three human-in-the-loop methods for augmenting unstructured text datasets: Augment with LLM, Augment by Interpolation, and Augment with Concepts.

Overview of Amplio

This code accompanies the research paper:

Exploring Empty Spaces: Human-in-the-Loop Data Augmentation
Catherine Yeh, Donghao Ren, Yannick Assogba, Dominik Moritz, Fred Hohman
ACM Conference on Human Factors in Computing Systems (CHI), 2025.
Paper: https://arxiv.org/abs/2410.01088

Demo and Development Setup

The system setup requires running two main components: (1) the backend server and (2) the frontend interface. The backend and frontend run on separate servers.

First, create a secrets file and install the pipenv environment.

Secrets File

To add your API key, duplicate secrets_example.json and rename it to secrets.json. Then copy and paste your own API keys in secrets.json.

Install Requirements

Install pipenv:

pip install pipenv

Build requirements for project:

pipenv install

Start virtual env: pipenv shell

Backend

Navigate into backend folder:

cd backend

Start the backend server:

python server.py

The server should now be running at 127.0.0.1:5000.

Frontend

After the backend server is running, in a separate terminal window, navigate into frontend folder:

cd frontend

Install dependencies:

npm install

Start frontend development server:

npm run dev

The interface should now be live at localhost:5173.

Data and Models

All data needed to run the system is available in the data folder. This data was generated using Python 3.11.

Similarly, all models needed to run the system are available in the models folder.

Note: you may run into issues if your Python version != 3.11. In this case, please run the data/generate_data.ipynb notebook to regenerate the data and model files needed to run the demo. You can also use this notebook to add new datasets.

Adding a New Dataset

If you add a new dataset you will need to update these files:

Look for the sections marked with UPDATE HERE IF YOU ADD A NEW DATASET.

Similarly, if you want to remove a dataset from the system, you will need to edit the files above.

Contributing

When making contributions, refer to the CONTRIBUTING guidelines and read the CODE OF CONDUCT.

BibTeX

To cite our paper, please use:

bibtex @inproceedings{yeh2025exploring, title={{Exploring Empty Spaces: Human-in-the-Loop Data Augmentation}}, author={Yeh, Catherine and Ren, Donghao and Assogba, Yannick and Moritz, Dominik and Hohman, Fred}, booktitle={Proceedings of the SIGCHI Conference on Human Factors in Computing Systems}, year={2025}, organization={ACM}, doi={10.1145/3706598.3713491} }

License

This code is released under the LICENSE terms.

Owner

  • Name: Apple
  • Login: apple
  • Kind: organization
  • Location: Cupertino, CA

Citation (CITATION.cff)

citation-file-format: 1.2.0
creator:
  - family-names: Yeh
    given-names: Catherine
  - family-names: Ren
    given-names: Donghao
  - family-names: Assogba
    given-names: Yannick
  - family-names: Moritz
    given-names: Dominik
  - family-names: Hohman
    given-names: Fred
title: Amplio
version: 1.0.0
url: https://github.com/apple/ml-interactive-data-augmentation
preferred-citation:
  type: article
  authors:
    - family-names: Yeh
      given-names: Catherine
    - family-names: Ren
      given-names: Donghao
    - family-names: Assogba
      given-names: Yannick
    - family-names: Moritz
      given-names: Dominik
    - family-names: Hohman
      given-names: Fred
  title: "Exploring Empty Spaces: Human-in-the-Loop Data Augmentation"
  year: 2024
  journal: arXiv

GitHub Events

Total
  • Watch event: 13
  • Push event: 1
  • Public event: 1
  • Fork event: 1
Last Year
  • Watch event: 13
  • Push event: 1
  • Public event: 1
  • Fork event: 1

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

frontend/package-lock.json npm
  • 584 dependencies
frontend/package.json npm
  • @fontsource/fira-mono ^5.1.0 development
  • @neoconfetti/svelte ^2.2.1 development
  • @sveltejs/adapter-auto ^3.3.1 development
  • @sveltejs/kit ^2.10.1 development
  • @sveltejs/vite-plugin-svelte ^3.1.2 development
  • @types/chroma-js ^2.4.4 development
  • @types/d3-scale-chromatic ^3.1.0 development
  • @types/eslint ^9.6.1 development
  • @types/node ^22.10.2 development
  • autoprefixer ^10.4.20 development
  • eslint ^9.16.0 development
  • eslint-config-prettier ^9.1.0 development
  • eslint-plugin-svelte ^2.46.1 development
  • flowbite ^2.5.2 development
  • flowbite-svelte ^0.47.4 development
  • flowbite-svelte-icons ^1.6.2 development
  • globals ^15.13.0 development
  • postcss ^8.4.49 development
  • prettier ^3.4.2 development
  • prettier-plugin-svelte ^3.3.2 development
  • svelte ^4.2.19 development
  • svelte-check ^4.1.1 development
  • svelte-range-slider-pips ^3.1.4 development
  • tailwindcss ^3.4.16 development
  • tslib ^2.8.1 development
  • typescript ^5.7.2 development
  • typescript-eslint ^8.18.1-alpha.2 development
  • vite ^5.4.11 development
  • @sveltejs/adapter-node ^5.2.9
  • @sveltejs/adapter-static ^3.0.6
  • chroma-js ^3.1.2
  • d3 ^7.9.0
  • deck.gl ^9.0.38
  • sass ^1.82.0
Pipfile pypi
  • ipykernel * develop
  • altair *
  • async-timeout *
  • datasets *
  • duckdb *
  • flask *
  • flask-cors *
  • gensim *
  • llama-cpp-python *
  • nbformat *
  • nltk *
  • pandas *
  • plotly *
  • scipy ==1.12
  • sentence-transformers *
  • spacy *
  • umap-learn *
  • vec2text *
  • vegafusion >=1.5.0