2 research outputs found

    Agri-food sales prediction with contrastive learning and Self-attention model

    No full text
    ํ•™์œ„๋…ผ๋ฌธ(์„์‚ฌ) -- ์„œ์šธ๋Œ€ํ•™๊ต๋Œ€ํ•™์› : ๋†์—…์ƒ๋ช…๊ณผํ•™๋Œ€ํ•™ ๋†๊ฒฝ์ œ์‚ฌํšŒํ•™๋ถ€(์ง€์—ญ์ •๋ณดํ•™์ „๊ณต), 2022. 8. ์ตœ์˜์ฐฌ.๋ณธ ์—ฐ๊ตฌ๋Š” ๋†์‹ํ’ˆ ํŒ๋งค๋Ÿ‰ ์‹œ๊ณ„์—ด์˜ ํŠน์„ฑ์„ ๋ฐ˜์˜ํ•œ ํŒ๋งค๋Ÿ‰ ์˜ˆ์ธก ๋ชจ๋ธ์„ ๊ฐœ๋ฐœํ•˜๋Š” ๊ฒƒ์„ ๋ชฉํ‘œ๋กœ ํ•œ๋‹ค. ์ด๋ฅผ ์œ„ํ•ด 1)๋ณ€๋™์„ฑ์ด ๋†’์€ ๋†์‹ํ’ˆ ํŒ๋งค๋Ÿ‰ ๋ฐ์ดํ„ฐ์— ์ ํ•ฉํ•˜๋ฉฐ 2)๋‹ค์–‘ํ•œ ์ฃผ๊ธฐ์˜ ๋™์ ์œผ๋กœ ๋ณ€ํ•˜๋Š” ๊ณ„์ ˆ์„ฑ์„ ํฌ์ฐฉ ๊ฐ€๋Šฅํ•˜๊ณ  3) ๋‹ค์ˆ˜์˜ ์‹œ๊ณ„์—ด์˜ ๊ด€๊ณ„๋ฅผ ๊ณ ์ •๋œ ์ˆ˜์˜ ํŒŒ๋ผ๋ฏธํ„ฐ ๋งŒ์œผ๋กœ ๋ฐ˜์˜ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์„ ์ œ์•ˆํ•˜์˜€๋‹ค. ๋†์‹ํ’ˆ ์‹œ๊ณ„์—ด์˜ ๋น„์„ ํ˜• ํŒจํ„ด์„ ์žก์•„๋‚ด๊ธฐ ์œ„ํ•ด์„œ ์…€ํ”„-์–ดํ…์…˜ ๋ชจ๋ธ์„ ํ™œ์šฉํ–ˆ๋‹ค. ํ•ด๋‹น ๋ชจ๋ธ์€ ์žฅ, ๋‹จ๊ธฐ์˜ ๋น„์„ ํ˜• ํŒจํ„ด์„ ์žก์•„๋‚ด๊ธฐ์— ์šฉ์ดํ•˜๋ฉฐ ์‹œ์ ์— ๋Œ€ํ•œ ์ •๋ณด๋ฅผ ์ฃผ๋Š” ๋ฐฉ๋ฒ•์„ ์กฐ์ •ํ•˜์—ฌ ๋‹ค์–‘ํ•œ ๊ณ„์ ˆ์  ํŒจํ„ด์„ ํฌ์ฐฉํ•  ์ˆ˜ ์žˆ๋‹ค. ๋˜ํ•œ ๋‹ค์ˆ˜ ํŒ๋งค ์‹œ๊ณ„์—ด ๋ฐ์ดํ„ฐ๋ฅผ ๊ณ ๋ คํ•˜๊ธฐ ์œ„ํ•ด ๋Œ€์กฐํ•™์Šต์„ ํ™œ์šฉํ•ด ์ƒํ’ˆ ์‹œ๊ณ„์—ด ๋ฐ์ดํ„ฐ์˜ ๊ฒฐํ•ฉ ๋ถ„ํฌ๋ฅผ ํ•™์Šตํ–ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ์ด ๊ณผ์ •์—์„œ ํ•™์Šตํ•œ ์ž ์žฌ๋ณ€์ˆ˜๋ฅผ ํŒ๋งค๋Ÿ‰ ์˜ˆ์ธก์— ์ „์ดํ•˜์—ฌ ํ™œ์šฉํ–ˆ๋‹ค. ๋ชจ๋ธ์˜ ๊ฐœ๋ฐœ๊ณผ ๊ฒ€์ฆ์€ A ์ƒํ™œํ˜‘๋™์กฐํ•ฉ์˜ ๋†์‹ํ’ˆ ํŒ๋งค ์‹œ๊ณ„์—ด ๋ฐ์ดํ„ฐ๋ฅผ ํ†ตํ•ด ์ด๋ฃจ์–ด ์กŒ๋‹ค. A ์ƒํ˜‘์˜ ๋†์‹ํ’ˆ ํŒ๋งค ์‹œ๊ณ„์—ด ๋ฐ์ดํ„ฐ๋Š” ๋ณ€๋™์„ฑ์ด ํฌ๊ณ  ๋‹ค์–‘ํ•œ, ๊ทธ๋ฆฌ๊ณ  ๋ณ€ํ•˜๋Š” ๊ณ„์ ˆ์  ํŒจํ„ด์„ ๋ณด์—ฌ ๋ณธ ์—ฐ๊ตฌ ๋ชจ๋ธ์˜ ๊ฒ€์ฆ์— ์ ํ•ฉํ•œ ํŠน์„ฑ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค. ์ด ๋ฐ์ดํ„ฐ๋ฅผ ์ด์šฉํ•ด ๋ณธ ์—ฐ๊ตฌ์—์„œ ์ œ์•ˆํ•œ ์ „์ดํ•™์Šต ๋ฐฉ๋ฒ•, ๋ชจ๋ธ ๊ตฌ์กฐ์˜ ์˜ˆ์ธก ์„ฑ๋Šฅ์„ ๊ธฐ์กด ์—ฐ๊ตฌ์—์„œ ํ™œ์šฉํ•œ ๋ชจ๋ธ๊ณผ ๋น„๊ตํ•˜์˜€๊ณ  ์ผ, ์ฃผ, ์›” ๋‹จ์œ„ ํŒ๋งค๋Ÿ‰ ์˜ˆ์ธก์—์„œ ๋” ๋†’์€ R^2, ๋” ๋‚ฎ์€ ํ‰๊ท  ์˜ค์ฐจ๋ฅผ ๋ณด์˜€๋‹ค. ๋ณธ ์—ฐ๊ตฌ๋Š” ์ƒํ’ˆ ํŒ๋งค ์‹œ๊ณ„์—ด ๋ฐ์ดํ„ฐ์™€ ๋ชจ๋ธ์˜ ์ ํ•ฉ์„ฑ์„ ๊ฒ€์ฆํ–ˆ์œผ๋ฉฐ ๋‹ค์ˆ˜์˜ ์ƒํ’ˆ ํŒ๋งค ์‹œ๊ณ„์—ด ๋ฐ์ดํ„ฐ์˜ ์ •๋ณด๋ฅผ ํ•˜๋‚˜์˜ ๋ชจ๋ธ๋กœ ํ•™์Šตํ–ˆ๊ณ  ์ด๋ฅผ ํŒ๋งค๋Ÿ‰ ์˜ˆ์ธก์— ์ „์ดํ•˜๋Š” ๊ฒƒ์„ ์‹œ๋„ํ–ˆ๋‹ค. ๋˜ํ•œ ๋”ฅ๋Ÿฌ๋‹ ๊ธฐ๋ฐ˜ ์‹œ๊ณ„์—ด ๋ชจ๋ธ ์ค‘ ๊ฐ€์žฅ ๋†’์€ ์˜ˆ์ธก ์„ฑ๋Šฅ์„ ๋ณด์ธ ์…€ํ”„-์–ดํ…์…˜ ๊ธฐ๋ฐ˜ ๋ชจ๋ธ์„ ๋†์‹ํ’ˆ ํŒ๋งค๋Ÿ‰ ์‹œ๊ณ„์—ด ๋ฐ์ดํ„ฐ์— ์ ์šฉํ•˜์˜€๊ณ  ๋ฐ์ดํ„ฐ์˜ ํŠน์„ฑ์— ๋งž๊ฒŒ ๊ฐœ๋Ÿ‰ ํ•˜์˜€๋‹ค๋Š” ์˜์˜๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค.This study aims to develop a sales prediction model that reflects the characteristics of the agri-food sales time series. To this end, we proposed a method that 1) is suitable for highly volatile agri-food sales data, 2) can capture dynamically changing seasonality of various cycles, and 3) can reflect the relationship of multiple time series with only a fixed number of parameters. A self-attention model was used to capture the non-linear pattern of the agri-food time series. This model can capture non-linear patterns and can model various seasonality by adjusting positional encoding methods. In addition, to jointly model multiple sales time series data, the joint distribution of product time series data was learned using contrast learning. And the latent variables learned in this process were transferred to sales prediction. "A" consumer cooperative's agri-food sales time series data was used for the model's development and validation. Agri-food sales time-series of A consumer cooperative demonstrates the characteristics suitable for validating this research model, as they show high volatility and various and changing seasonal patterns. The Pretraining method and model proposed were compared with previous methods Using this data. The result shows that proposed methods outperform previous methods in daily, weekly, and monthly sales prediction.์ œ 1 ์žฅ ์„œ ๋ก  1 ์ œ 1 ์ ˆ ์—ฐ๊ตฌ ๋ฐฐ๊ฒฝ 1 ์ œ 2 ์ ˆ ์—ฐ๊ตฌ ๋‚ด์šฉ 3 ์ œ 2 ์žฅ ๋ฌธํ—Œ์—ฐ๊ตฌ 5 ์ œ 1 ์ ˆ ์ƒํ’ˆ ํŒ๋งค๋Ÿ‰ ์˜ˆ์ธก ์—ฐ๊ตฌ 5 ์ œ 2 ์ ˆ ์ธ๊ณต์‹ ๊ฒฝ๋ง ๊ธฐ๋ฐ˜ ๋†์‹ํ’ˆ ํŒ๋งค๋Ÿ‰ ์˜ˆ์ธก ์—ฐ๊ตฌ 8 ์ œ 3 ์ ˆ ์ธ๊ณต์‹ ๊ฒฝ๋ง ๊ธฐ๋ฐ˜ ๋†์‹ํ’ˆ ํŒ๋งค๋Ÿ‰ ์‹œ๊ณ„์—ด ์˜ˆ์ธก ์—ฐ๊ตฌ 9 ์ œ 3 ์žฅ ๋ฐ์ดํ„ฐ์™€ ์—ฐ๊ตฌ ๋ฐฉ๋ฒ• 11 ์ œ 1 ์ ˆ ํ™œ์šฉ ๋ฐ์ดํ„ฐ 11 ์ œ 2 ์ ˆ ์ธ๊ณต์‹ ๊ฒฝ๋ง ๋ชจ๋ธ 14 ์ œ 3 ์ ˆ ์ˆœํ™˜์‹ ๊ฒฝ๋ง ๋ชจ๋ธ 17 ์ œ 4 ์ ˆ ์…€ํ”„-์–ดํ…์…˜ ๊ธฐ๋ฐ˜ ๋ชจ๋ธ 20 ์ œ 5 ์ ˆ ์ „์ดํ•™์Šต 26 ์ œ 6 ์ ˆ ๋Œ€์กฐํ•™์Šต 27 ์ œ 7 ์ ˆ ์—ฐ๊ตฌ๋ชจ๋ธ 32 ์ œ 8 ์ ˆ ๋ถ„์„ ๋ฐ ํ‰๊ฐ€ ๋ฐฉ๋ฒ• 37 ์ œ 4 ์žฅ ์—ฐ๊ตฌ ๊ฒฐ๊ณผ ๋ฐ ํ•ด์„ 41 ์ œ 1 ์ ˆ ํƒ์ƒ‰์  ๋ฐ์ดํ„ฐ ๋ถ„์„ 41 ์ œ 2 ์ ˆ ์ „์ด ํ•™์Šต ์—ฌ๋ถ€์— ๋”ฐ๋ฅธ ์˜ˆ์ธก ์„ฑ๋Šฅ ๋น„๊ต 52 ์ œ 3 ์ ˆ Positional encoding์— ๋”ฐ๋ฅธ ์˜ˆ์ธก ์„ฑ๋Šฅ ๋น„๊ต 53 ์ œ 4 ์ ˆ ๋ชจ๋ธ ๊ตฌ์กฐ์— ๋”ฐ๋ฅธ ์˜ˆ์ธก ์„ฑ๋Šฅ ๋น„๊ต 54 ์ œ 5 ์žฅ ๊ฒฐ๋ก  ๋ฐ ๋…ผ์˜ 57 ์ฐธ๊ณ ๋ฌธํ—Œ 60์„
    corecore