File size: 4,425 Bytes
e098301
490d46c
52c4b0f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e098301
490d46c
52c4b0f
490d46c
52c4b0f
490d46c
52c4b0f
 
490d46c
52c4b0f
490d46c
52c4b0f
 
490d46c
52c4b0f
490d46c
52c4b0f
490d46c
52c4b0f
 
490d46c
52c4b0f
490d46c
52c4b0f
490d46c
52c4b0f
490d46c
52c4b0f
 
 
 
 
490d46c
52c4b0f
490d46c
52c4b0f
490d46c
52c4b0f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
490d46c
 
52c4b0f
490d46c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
---
language:
  - ko
pretty_name: "KRX Investment Warning Prediction Dataset (OHLCV + Technical Indicators + Korean News)"
tags:
  - finance
  - krx
  - korea
  - time-series
  - ohlcv
  - technical-indicators
  - news
  - multimodal
  - anomaly-detection
  - binary-classification
task_categories:
  - text-classification
  - time-series-forecasting
task_ids:
  - binary-classification
license: mit
---

# KRX Investment Warning Prediction Dataset (OHLCV + Technical Indicators + Korean News)

## Dataset Summary

This dataset is a test dataset for predicting **Investment Warning (투자주의종목)** designations in the Korean stock market (KRX).
It contains **raw daily OHLCV** price data, **13 technical indicators**, and **Korean news text** (title + body), designed for **multimodal anomaly detection / binary classification**.

**Important:** No normalization/scaling is applied. All values are raw.

- **Date range:** 2025-07-01 ~ 2025-09-30
- **Prediction horizon:** whether a stock will be designated as an investment warning **within the next 1 trading day**

## Task

Binary classification:

- **Label 0:** Normal trading (no investment warning designation within the next 1 trading day)
- **Label 1:** Investment warning designation (within the next 1 trading day)

### Label Alignment

For each `(ticker, date=t)`, set `label=1` if the stock is designated as an investment warning on `t+1` (the next trading day).

## Data Sources

| Source | Description |
|------|-------------|
| **Stock Prices** | Daily OHLCV data for KRX listed stocks |
| **Investment Warning** | KRX investment warning designation history (labels) |
| **News** | Korean news articles per stock (title + body) |

## Dataset Format

This dataset is structured to be used directly with Hugging Face `datasets`, and consists of **three columns**:

- **`labels`**: Binary label (`0` or `1`)
- **`time_series`**: Price time-series information (OHLCV + Technical Indicators)
- **`texts`**: Korean news text mapped to the corresponding stock (title + body)

### Example (Conceptual)

- `labels`: `0` or `1`
- `time_series`: `[[open, high, low, close, volume, rsi, macd, macd_signal, macd_hist, bb_upper, bb_middle, bb_lower, bb_width, sma_5, sma_20, ema_9, atr, obv], ...]`
- `texts`: `["article1 ...", "article2 ..."]`

## Feature Details

### Price & Indicators — `time_series`

Each sample has shape `[10, 18]` with the following 18 features:

| Index | Feature | Description |
|-------|---------|-------------|
| 0 | `open` | Opening price (KRW) |
| 1 | `high` | High price (KRW) |
| 2 | `low` | Low price (KRW) |
| 3 | `close` | Closing price (KRW) |
| 4 | `volume` | Trading volume (shares) |
| 5 | `rsi` | Relative Strength Index (14-period) |
| 6 | `macd` | MACD line (12, 26) |
| 7 | `macd_signal` | MACD signal line (9-period) |
| 8 | `macd_hist` | MACD histogram |
| 9 | `bb_upper` | Bollinger Band upper (20, 2std) |
| 10 | `bb_middle` | Bollinger Band middle (20-SMA) |
| 11 | `bb_lower` | Bollinger Band lower (20, 2std) |
| 12 | `bb_width` | Bollinger Band width (normalized) |
| 13 | `sma_5` | Simple Moving Average (5-period) |
| 14 | `sma_20` | Simple Moving Average (20-period) |
| 15 | `ema_9` | Exponential Moving Average (9-period) |
| 16 | `atr` | Average True Range (14-period) |
| 17 | `obv` | On-Balance Volume |

- **No normalization/scaling** is applied. All values are raw.
- **Currency unit:** KRW
- **Volume:** number of shares (not value)
- Technical indicators are computed with a lookback of 35 days to ensure stable values.

### News — `texts`

- News is mapped to tickers via an **exact ticker-code mapping**.
- **Deduplication** has been applied.
- Each news item includes **title + body** (concatenated as a single string).

## Dataset Statistics

- **Total Samples**: 10,605
- **Label Distribution**: {0: 10570, 1: 35}
- **Sequence Length**: 10
- **Features per timestep**: 18
- **Undersampling**: Majority class reduced to 10%

## Recommended Metrics

Because investment warning events are likely to be rare (class imbalance), the following metrics are recommended:

- ROC-AUC, PR-AUC
- F1 (positive class), precision/recall
- Precision/recall at Top-k (useful for practical detection scenarios)
- (Optional) probability calibration

## Usage

```python
from datasets import load_dataset

dataset = load_dataset("k-datasoft/Multimodal-test-dataset-technicalindicators")
```

## License

MIT License