How to Generate Synthetic Data: A Step-by-Step Guide with BlueGen.ai

If you work with sensitive data, you already know the challenge: your dataset contains valuable insights, yet regulatory constraints, complex approval procedures, and the persistent risk of data leaks limit how it can be shared and used.

Imagine you’re a medical researcher studying breast cancer treatments. Your data could answer life-saving questions. But you can’t send patient data to external partners due to all these restrictions. 

This is where our synthetic data platform comes in. It lets you create and expand a privacy-safe version of your dataset while keeping the same statistical patterns, without exposing anyone’s identity.

In this step-by-step guide, you will learn how to create your own synthetic dataset by using BlueGen.ai.

Jump-to:

  1. What Is Synthetic Data?
  2. Why is Synthetic Data important?
  3. Step-by-Step: Generating Synthetic Data in BlueGen.ai
  4. How to Evaluate Synthetic Data Quality and Privacy?
  5. Experience BlueGen.ai in a Live Demo

What Is Synthetic Data?

Let’s go back to the breast cancer dataset. You want to study survival outcomes and collaborate with external researchers. But you cannot share real patient data due to privacy restrictions.

Synthetic data is data that looks, feels and behaves the same as your real dataset. However, the big difference is that it’s artificially generated and protects real patient records from being exposed. The system learns how variables relate, such as how treatment type affects survival, and then creates entirely new rows based on those patterns.

With BlueGen.ai, you can turn sensitive real datasets into a privacy-safe version in just a few clicks and share, analyze, or explore it with collaborators without exposing anyone’s personal data!

What Is Synthetic data?

Why is Synthetic Data important?

The two main challenges when working with datasets are being unable to use real data or not having enough of it. Synthetic data is important because it solves both problems.

In the breast cancer example, the treatment patterns and survival outcomes are clear. The research potential is there. But strict privacy rules prevent the hospital from sharing real patient data. The dataset stays locked inside, slowing collaboration and delaying progress.

At the same time, other research teams face the opposite issue. Their datasets are too small, incomplete, or unbalanced. Rare treatment cases are underrepresented, which makes reliable model training difficult. 

Our synthetic data software allows the medical research team to generate a privacy-safe version of the breast cancer dataset that can be shared without exposing patient records. It also allows researchers to expand limited datasets, balance rare cases, and test models under more realistic conditions.

BlueGen.ai helps you unlock restricted data and strengthen limited data. You protect privacy, increase usable data, and move research forward with confidence.

Why Is Synthetic Data important?

Step-by-Step: Generating Synthetic Data in BlueGen.ai

Creating synthetic data in BlueGen.ai is easy. You do not need coding skills or machine learning knowledge. The platform handles the complexity for you.

Let’s walk through the breast cancer dataset example.

Step 1: Create a New Project

Start by creating a new project in BlueGen.ai.

Give it a clear name, such as “Breast Cancer Survival Analysis.” This keeps your datasets organized and makes collaboration easier.

Projects help you structure your work. You can return later, generate new versions, or test different scenarios.

How to Create Synthetic Data

Step 2: Upload your Data Set

Next, upload your original dataset. This can be a CSV or similar structured file.

Once uploaded, BlueGen scans your data. It detects columns such as age, treatment type, survival outcome, and other variables.

You can review the columns and adjust settings if necessary for your analysis. For example, you can mark a column as a unique identifier. Most users can leave the default settings as they are.

Step 3: Generate Synthetic Data

With one click, BlueGen starts learning from your dataset. It analyzes how variables relate to each other. For example, how certain treatments influence survival rates.

The system does not copy your data. Instead, it creates entirely new rows based on the patterns it has learned. The result is a new dataset that behaves like the original, but contains no real patient data.

The duration of this process depends on the size of your dataset, and can take from a few minutes up to a couple of days.

Step 4: Review and Download

Once the process is complete, your synthetic dataset is ready. You can download it immediately and use it for analysis, model development, or external collaboration.

BlueGen also generates a quality report. This report shows how closely the synthetic data matches the original and confirms that privacy is protected. This will be expanded on in the next paragraph.

You now have a dataset that is safe to share and delivers reliable research results.

4. How to: Evaluating Synthetic Data Quality and Privacy?

When creating synthetic data, you also need to know if it is accurate and safe to use.

After generating the synthetic breast cancer dataset, BlueGen.ai automatically validates it. Each run produces a detailed report that compares the synthetic data to the original dataset.

The report focuses on two key questions:

1. Does it behave and perform like the original dataset?

First, we measure whether the synthetic dataset preserves the statistical patterns of the original.

Two key metrics are evaluated:

Resemblance:
How closely do distributions and relationships between variables match?

Utility:
How well do models trained on synthetic data perform compared to models trained on

The results from the breast cancer dataset imply:

  • Treatment effects remain consistent
  • Survival patterns are preserved
  • Predictive models perform nearly the same

These metrics highlight that the synthetic data behaves like the original, without containing real patients.

How to Evaluate Synthetic Data

2. What level of privacy is achieved?

In our breast cancer research example, the synthetic dataset must preserve survival and treatment patterns, without exposing any real patient records.

To ensure this, BlueGen.ai applies five statistical privacy tests:

1. Exact Duplicate Analysis

We verify that no synthetic record is identical to any real individual.

If a synthetic row exactly matches a real patient, privacy is compromised.

Result in the breast cancer research dataset:
No exact duplicates detected.

2. Near-Duplicate Detection (NNDR)

Even if records are not identical, they could still be extremely similar.

BlueGen measures whether synthetic records are unusually close to real individuals compared to how real individuals relate to each other.

If synthetic data points cluster too tightly around real people, anonymity weakens.

Result:
No abnormal proximity detected. Synthetic records maintain statistical distance.

near neighbour distance ratio visual

3. Inference Risk Testing

Inference risk measures whether someone could guess sensitive information if they already know a few attributes.

Example from the case:
If an attacker knows that a patient is Stage III and underwent surgery in 2021, could they predict whether a revision occurred within 2 years using the synthetic dataset?

Result:
Remaining inference risk is extremely low and well below predefined thresholds. Attack performance on synthetic data remains comparable to the control dataset.

This means the synthetic breast cancer data does not reveal sensitive outcomes beyond expected statistical limits.

4. Linkability Risk Assessment

This test checks whether synthetic data could be linked with external datasets to re-identify individuals.

If auxiliary datasets (for example containing age or hospital ID) could be connected to synthetic records, privacy would be at risk.

Result:
No successful re-linkage detected. Linkability risk remains low.

5. Singling-Out Risk Analysis

Singling-out occurs when a rare combination of attributes makes one individual unique.

For example:
Stage IV + rare therapy + prior surgeries + early revision.

BlueGen tests whether such rare profiles become easier to isolate in synthetic data.

Result:
Singling-out risk remains below safety thresholds.

Even uncommon patient profiles remain statistically anonymous.

Combined together, these privacy checks confirm one thing: the synthetic breast cancer dataset does not expose real patients. The data keeps the medical patterns needed for research, while protecting individual identities.

It is safe to share and ready to use!

5. Experience BlueGen.ai in a Live Demo!

Want to find out how synthetic data can help your organization protect sensitive information, unlock restricted datasets, and validate data quality with measurable metrics?

Explore the BlueGen.ai demo to experience the full workflow, from data upload to privacy validation, in a secure environment. Discover today how your organisation can move forward without compromising privacy or utility!

Share this article:

Get inspired by our cases.