EUD(Equivalent Uniform Dose) 개념을 설명하는 피규어를 그려드리겠습니다.
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.patches as patches
# 한글 폰트 설정
plt.rcParams['font.family'] = 'DejaVu Sans'
plt.rcParams['axes.unicode_minus'] = False
fig, (ax1, ax2, ax3) = plt.subplots(1, 3, figsize=(15, 5))
# 첫 번째 그래프: 균등 분포 (10Gy everywhere)
x1 = np.linspace(0, 10, 100)
y1 = np.ones_like(x1) * 10
ax1.fill_between(x1, 0, y1, alpha=0.6, color='lightblue', label='Uniform 10Gy')
ax1.axhline(y=10, color='red', linestyle='--', linewidth=2, label='Average = 10Gy')
ax1.set_ylim(0, 20)
ax1.set_xlabel('Position')
ax1.set_ylabel('Dose (Gy)')
ax1.set_title('Uniform Distribution\n(Physical dose = Biological dose)')
ax1.legend()
ax1.grid(True, alpha=0.3)
# 두 번째 그래프: 불균등 분포 (평균은 10Gy이지만 분포가 다름)
x2 = np.linspace(0, 10, 100)
# 핫스팟과 콜드스팟이 있는 분포
y2 = 10 + 8*np.sin(2*np.pi*x2/3) * np.exp(-((x2-5)**2)/8)
ax2.fill_between(x2, 0, y2, alpha=0.6, color='lightcoral', label='Non-uniform dose')
ax2.axhline(y=np.mean(y2), color='red', linestyle='--', linewidth=2, label=f'Average = {np.mean(y2):.1f}Gy')
ax2.axhline(y=8, color='green', linestyle=':', linewidth=2, label='EUD = 8Gy')
ax2.set_ylim(0, 20)
ax2.set_xlabel('Position')
ax2.set_ylabel('Dose (Gy)')
ax2.set_title('Non-uniform Distribution\n(Physical avg ≠ Biological effect)')
ax2.legend()
ax2.grid(True, alpha=0.3)
# 세 번째 그래프: 개념 설명
ax3.axis('off')
ax3.text(0.1, 0.9, 'EUD Concept:', fontsize=16, fontweight='bold', transform=ax3.transAxes)
ax3.text(0.1, 0.8, '• Physical average dose ≠ Biological effect', fontsize=12, transform=ax3.transAxes)
ax3.text(0.1, 0.7, '• Hot spots: Higher biological damage', fontsize=12, transform=ax3.transAxes, color='red')
ax3.text(0.1, 0.6, '• Cold spots: Lower biological damage', fontsize=12, transform=ax3.transAxes, color='blue')
ax3.text(0.1, 0.5, '• EUD: Uniform dose giving same', fontsize=12, transform=ax3.transAxes)
ax3.text(0.15, 0.4, 'biological effect as non-uniform dose', fontsize=12, transform=ax3.transAxes)
# 화살표와 설명 추가
ax3.annotate('Same biological\neffect', xy=(0.5, 0.2), xytext=(0.3, 0.1),
arrowprops=dict(arrowstyle='->', color='green', lw=2),
fontsize=12, ha='center', transform=ax3.transAxes, color='green')
plt.tight_layout()
plt.show()
이 피규어는 EUD 개념을 세 부분으로 나누어 설명합니다:
왼쪽 그래프: 균등하게 10Gy가 분포된 경우 - 물리적 선량과 생물학적 효과가 일치합니다.
가운데 그래프: 평균은 10Gy이지만 불균등하게 분포된 경우 - 핫스팟(고선량 영역)에서는 생물학적 손상이 더 크고, 콜드스팟(저선량 영역)에서는 손상이 적습니다. 이 경우 EUD는 약 8Gy로, 실제 생물학적 효과는 균등한 8Gy를 받은 것과 같습니다.
오른쪽: 개념 설명 - 선량-반응 관계가 비선형이기 때문에 같은 평균 선량이라도 분포에 따라 생물학적 효과가 달라진다는 점을 강조합니다.
이렇게 EUD는 "불균등한 선량 분포가 주는 생물학적 효과와 동일한 효과를 내는 균등 선량"이라고 쉽게 설명할 수 있습니다.