Skip to content

Commit

Permalink
add pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnSun1031 committed Jun 1, 2024
1 parent 7e773a4 commit b5f6732
Show file tree
Hide file tree
Showing 15 changed files with 432 additions and 0 deletions.
Empty file.
20 changes: 20 additions & 0 deletions .history/_pages/base_20240602025911.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">

{%- include head.html -%}

<body>

{%- include header.html -%}

<main class="page-content" aria-label="Content">
<div class="wrapper">
{{ content }}
</div>
</main>

{%- include footer.html -%}

</body>

</html>
Empty file.
61 changes: 61 additions & 0 deletions .history/_pages/home_20240602025850.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
layout: base
---

<div class="home">
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}

{{ content }}


{% if site.paginate %}
{% assign posts = paginator.posts %}
{% else %}
{% assign posts = site.posts %}
{% endif %}


{%- if posts.size > 0 -%}
{%- if page.list_title -%}
<h2 class="post-list-heading">{{ page.list_title }}</h2>
{%- endif -%}
<ul class="post-list">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{%- for post in posts -%}
<li>
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{%- if site.show_excerpts -%}
{{ post.excerpt }}
{%- endif -%}
</li>
{%- endfor -%}
</ul>

{% if site.paginate %}
<div class="pager">
<ul class="pagination">
{%- if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
{%- else %}
<li><div class="pager-edge"></div></li>
{%- endif %}
<li><div class="current-page">{{ paginator.page }}</div></li>
{%- if paginator.next_page %}
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
{%- else %}
<li><div class="pager-edge"></div></li>
{%- endif %}
</ul>
</div>
{%- endif %}

{%- endif -%}

</div>
Empty file.
14 changes: 14 additions & 0 deletions .history/_pages/page_20240602025928.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: base
---
<article class="post">

<header class="post-header">
<h1 class="post-title">{{ page.title | escape }}</h1>
</header>

<div class="post-content">
{{ content }}
</div>

</article>
Empty file.
38 changes: 38 additions & 0 deletions .history/_pages/post_20240602025946.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
layout: base
---
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">

<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
<p class="post-meta">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{{ page.date | date: date_format }}
</time>
{%- if page.modified_date -%}
~
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
{{ mdate | date: date_format }}
</time>
{%- endif -%}
{%- if page.author -%}
• {% for author in page.author %}
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
{%- if forloop.last == false %}, {% endif -%}
{% endfor %}
{%- endif -%}</p>
</header>

<div class="post-content e-content" itemprop="articleBody">
{{ content }}
</div>

{%- if site.disqus.shortname -%}
{%- include disqus_comments.html -%}
{%- endif -%}

<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
</article>
File renamed without changes.
83 changes: 83 additions & 0 deletions .history/index_20240602025724.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
Internal-Jugular-Vein Project
===
- Author: [Chin-Hsuan Sun](https://shawnsun1031.github.io/)
- License: MIT License
- Update Date: 2023/12/13
- Download Size: 128 MB
- Github Link: https://github.com/ShawnSun1031/IJV-Project
- Contact :email:: [email protected]

> [!NOTE]
> This is the description of the IJV project, which aims to ensure code behavior consistency. Please ensure that your environment aligns with the following specifications.
![Static Badge](https://img.shields.io/badge/python-v3.8.0-blue)
![Static Badge](https://img.shields.io/badge/pip-v20.2.0_(python3.8)-orange)
![Static Badge](https://img.shields.io/badge/cuda-v11.7.0-green)
![Static Badge](https://img.shields.io/badge/OS-ubuntu_18.04-purple)



## Table of Contents
- [Introduction](#Introduction)
- [Installation](#Installation)
- [Project Flows](#Project-Flows)
- [Simulation](#Simulation)
- [*In-vivo*](#In-vivo)
- [Desciprtion of Each Folder](#Desciprtion-of-Each-Folder)
- [Reference](#Reference)

## Introduction
> &nbsp;&nbsp;&nbsp;The primary objective of this study is to quantitatively measure changes in internal jugular vein oxygen saturation non-invasively using near-infrared spectroscopy. Initially, a surrogate model based on neural networks is employed to accelerate the Monte Carlo method which is traditionally used to simulate photon transport in tissue. Subsequently, another neural network is applied to establish a predictive model for oxygen saturation changes. The input to this model consists of spectral features extracted using formulas same as modified Beer-Lambert law, while the output represents oxygen saturation changes.
> &nbsp;&nbsp;&nbsp;As for the measurement system, the study utilizes 20 wavelength points based on the absorption spectra of blood, within the wavelength range of 700 nm to 850 nm. A dual-channel system is set up, with the short channel having a distance of 10 mm between the light source and detector, and the long channel having a distance of 20 mm. This design effectively minimizes the impact of superficial tissues and enhances the signal from deeper tissues including the internal jugular vein area. During simulation, a three-dimensional numerical model is constructed based on ultrasound images of each subject’s neck, ensuring
that simulation results closely resemble reality, thus providing more accurate simulated data.
> &nbsp;&nbsp;&nbsp;To evaluate the prediction model’s performance, the study investigates the impacts of factors such as human respiration, changes in oxygen levels in surrounding tissues, and measurement noise on the predictive model. The results indicate that the effects of respiration may lead to a maximum increase of 3% to 4% in root-mean-square error (RMSE). Changes in oxygen levels in surrounding tissues have a less significant impact, with a maximum RMSE increase of only 1%. Measurement signal errors can cause an RMSE increase of 1% to 2%.
> &nbsp;&nbsp;&nbsp;For model generalization, the study conducts simulated experiments using transfer learning. Through experimentation, it is observed that by using a thousandth of the original dataset and employing transfer learning, an RMSE of 3.5% can be achieved, while without transfer learning and using only a thousandth of the dataset, an RMSE of 7% is obtained.
> &nbsp;&nbsp;&nbsp;Based on the simulation results, the prediction model established in this study predicts changes in internal jugular vein oxygen saturation with an RMSE of less than 1.5%. In vivo experiments involve measuring diffuse reflectance spectra from living subjects, extracting spectral features using the formulas designed in this study, and inputting them into the prediction model after appropriate normalization. The prediction results are consistent with expected physiological response and spectral features in the measured data.
> &mdash; <cite>[Chin-Hsuan Sun][1]</cite>
[1]: https://shawnsun1031.github.io/

## Installation
> [!TIP]
> Suggestion: create a ${\rm\color{red}{virtual \space environment}}$ and activate it.
> **How to creaete a virtual environment?**
> For **Anaconda** user, Read [**this document**](https://hackmd.io/@aMXX54b3ToSm3kTNB_LuWQ/BJ_No2Rkp)
> [!IMPORTANT]
> 1. make sure your local computer has ${\rm\color{red}{cuda \space toolkit}}$
> 2. ${\rm\color{red}{recompile}}$ the MCX source code at [MD703_edit_MCX_src_v2023/src](https://github.com/ShawnSun1031/IJV-Project/tree/main/MD703_edit_MCX_src_v2023/src)
> 3. Install the dependencies: `pip install -r requirements.txt`
> 4. Install [cupy](https://docs.cupy.dev/en/latest/install.html) package

## Project Flows
### Simulation
1. Building Numerical Model of IJV by Ultrasound Image
2. MCX (Monte Carlo) simulation
3. Surrogate Model (To accerlerate the MC simulation)
> To understand the concept, read this paper: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5905904/
5. Prediction Model
### *In-vivo*
1. In-vivo experiment to validate simulation (ex: hyperventilation, valsalva maneuver, etc.)
2. Preprocess raw data
3. Calibration (remove system response)
4. Feed processed data into prediction data

## Desciprtion of Each Folder
* MCX_src_modified_by_MD703
* We modified the source code of MCX (https://github.com/fangq/mcx). Please see [**this file**](https://hackmd.io/@73X8klpNRmSsdgJzudHbgA/SyeF6nI9P#20210409---mcx_corecu-%E4%BF%AE%E6%94%B9) to check what we modified if you're intereseted in. (adjust the source pattern)
* absoprtion_spectrum_by_substance
* The diffuse reflectance spectra is generated by the chromophore in the tissue.
* find_OPs_boundary
* Based on multiple literature, finding the possible boundary of each optical parameters.
* mcx_sim
* Run Monte Carlo simulation based on the open source **MCX** we modified
* ultrasound_image_processing_parallel
* Constuct the numerical model of IJV by ultrasound image.
* surrogate_model
* Build the surrogate model to replace traditional MC simulation.


## Reference
* To understand more detail, basically this repository is followed by my master thesis. Please check NAS:Data/BOSI Lab/Thesis/R10 to access the full text version.

20 changes: 20 additions & 0 deletions _pages/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">

{%- include head.html -%}

<body>

{%- include header.html -%}

<main class="page-content" aria-label="Content">
<div class="wrapper">
{{ content }}
</div>
</main>

{%- include footer.html -%}

</body>

</html>
61 changes: 61 additions & 0 deletions _pages/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
layout: base
---

<div class="home">
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}

{{ content }}


{% if site.paginate %}
{% assign posts = paginator.posts %}
{% else %}
{% assign posts = site.posts %}
{% endif %}


{%- if posts.size > 0 -%}
{%- if page.list_title -%}
<h2 class="post-list-heading">{{ page.list_title }}</h2>
{%- endif -%}
<ul class="post-list">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{%- for post in posts -%}
<li>
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{%- if site.show_excerpts -%}
{{ post.excerpt }}
{%- endif -%}
</li>
{%- endfor -%}
</ul>

{% if site.paginate %}
<div class="pager">
<ul class="pagination">
{%- if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
{%- else %}
<li><div class="pager-edge"></div></li>
{%- endif %}
<li><div class="current-page">{{ paginator.page }}</div></li>
{%- if paginator.next_page %}
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
{%- else %}
<li><div class="pager-edge"></div></li>
{%- endif %}
</ul>
</div>
{%- endif %}

{%- endif -%}

</div>
14 changes: 14 additions & 0 deletions _pages/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: base
---
<article class="post">

<header class="post-header">
<h1 class="post-title">{{ page.title | escape }}</h1>
</header>

<div class="post-content">
{{ content }}
</div>

</article>
38 changes: 38 additions & 0 deletions _pages/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
layout: base
---
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">

<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
<p class="post-meta">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{{ page.date | date: date_format }}
</time>
{%- if page.modified_date -%}
~
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
{{ mdate | date: date_format }}
</time>
{%- endif -%}
{%- if page.author -%}
• {% for author in page.author %}
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
{%- if forloop.last == false %}, {% endif -%}
{% endfor %}
{%- endif -%}</p>
</header>

<div class="post-content e-content" itemprop="articleBody">
{{ content }}
</div>

{%- if site.disqus.shortname -%}
{%- include disqus_comments.html -%}
{%- endif -%}

<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
</article>
Loading

0 comments on commit b5f6732

Please sign in to comment.