Skip to main content

Adaptation of differential privacy algorithms applied to learning analytics.

Project description

Local Privacy in Learning Analytics

This repository contains an adaptation of differential privacy algorithms applied to learning analytics.

Index

Project Description

Learning analytics involves collecting and analyzing data about learners to improve educational outcomes. However, this process raises concerns about the privacy of individual data. To address these concerns, this project implements differential privacy algorithms, which add controlled noise to data, ensuring individual privacy while maintaining the overall utility of the dataset. This approach aligns with recent advancements in safeguarding data privacy in learning analytics.

In this project, we explore two local differential privacy (LDP) algorithms designed for sketching with privacy considerations:

  • Single-User Dataset Algorithm: This algorithm is tailored for scenarios where data is collected from individual users. Each user's data is perturbed locally before aggregation, ensuring that their privacy is preserved without relying on a trusted central authority. Techniques such as randomized response and local perturbation are employed to achieve this.

  • Multi-User Dataset Algorithm: In situations involving data from multiple users, this algorithm aggregates the perturbed data to compute global statistics while preserving individual privacy. Methods like private sketching and frequency estimation are utilized to handle the complexities arising from multi-user data aggregation

For the Single-User Dataset Algorithm, the next figure provides a high-level overview of the proposal workflow. At the end, an interest third party could ask the server a query over the frequency of certain events related to an individual. The estimation phase is simulated on the user side in order to adjust the ratio between privacy and utility before sending the information to the server. The algorithm first filters the information (Filter), then encodes the relevant events extracted (Data Processing) in order to be received for the PLDP-CSM method.

High-Level overview of the workflow

Then, the Cont Sketch based Personalized-LDP (PLDP-CSM) enables the adjustment of the relation between utility and privacy by iterating over data until the output of the simulator satisfies the constraints of users. This part of the algorithm produces the privatize dataset, which will be sent to the server.

Figuras Analysis

Repository Structure

Local_Privacy
│
├── data/                   ├── raw/             # Unprocessed data   ├── private/       # Data after privatizing
│
├── scripts/                ├── preprocess.py    # Data preprocessing routines   ├── algorithms.py    # Implementation of differential privacy algorithms   ├── parameter_fitting.py    # Parameter tuning for algorithms
│
├── src/                 # Privacy code   ├── private_count_mean/          # Code for private count mean algorithms   ├── private_hadamard_count_mean/ # Code for private Hadamard count mean algorithms   ├── rappor/                      # Implementation of RAPPOR algorithm
│
├── requirements.txt     # List of Python dependencies
│
├── individual_method.py # Main file for the single-user dataset algorithm
│
├── general_method.py # Main file for the multi-user dataset algorithm
   

Online Execution

You can execute the code online using Google Colab. Google Colab sessions are intended for individual users and have limitations such as session timeouts after periods of inactivity and maximum session durations.

Installation

Ver en Pypi Follow these steps to set up and execute the methods:

  1. Install with pip
    pip install privadjust
    
  2. Upload your dataset. Place your dataset inside the data/raw directory.
  3. Install dependencies
    pip install -r requirements.txt
    
  4. Run the methods. Navigate to the src directory and execute the desired method:
    • For single-user dataset analysis:
      cd src
      python individual_method.py
      
    • For multi-user dataset analysis:
      cd src
      python general_method.py
      

Documentation

The complete documentation for this project is available online. You can access it at the following link:

This documentation includes detailed explanations of the algorithms, methods, and the overall structure of the project.

Authors

Marta Jones
Marta Jones

💻
Anailys Hernandez
Anailys Hernandez

💡

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

privadjust-1.0.8.tar.gz (11.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

privadjust-1.0.8-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file privadjust-1.0.8.tar.gz.

File metadata

  • Download URL: privadjust-1.0.8.tar.gz
  • Upload date:
  • Size: 11.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for privadjust-1.0.8.tar.gz
Algorithm Hash digest
SHA256 12e16b4a978f32ccac113546a2b5f40543b28554f34eee1159fa20d990db88af
MD5 4d8f5c8cce57d22bca2b5385ceb670f0
BLAKE2b-256 6df39b58fcdd7733b8fac16754f448c63be05c52867ffc5c41819f062bb28c7a

See more details on using hashes here.

File details

Details for the file privadjust-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: privadjust-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for privadjust-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6bdd2d8d84dafba14b41fcdddc5c2317e6d7f771659b6933fc8079d148db69b4
MD5 6b68927fedc93aeb00913f4d587bfd99
BLAKE2b-256 403123da5284315d3d4f3086b5b1bfedc2e0c156f74197a0ff9483d013198b5d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page