KSKamthorn Sarawan

Kamthorn Sarawan

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Kamthorn Sarawan has a total of 7 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Adaptive Frequency-Based Sorting for High-Redundancy Numerical Data: A Key-Space Reduction Approach

    by Kamthorn Sarawan, Pornsiri Khumla

    Sorting is a fundamental operation in data science pipelines, yet general-purpose algorithms such as Python's built-in Timsort do not exploit a property common in real-world tabular data: high value redundancy, where the number of distinct values d is far smaller than the total number of elements n. We present Adaptive Frequency-Based Sorting (AFS), a pure-Python algorithm that exploits this redundancy through key-space reduction. AFS measures redundancy at runtime and selects the most efficient sorting strategy automatically, reducing time complexity from O(n log n) to O(n + d log d) when d ≪ n. Experiments on eleven real-world columns spanning six datasets and a synthetic Zipf grid confirm that AFS delivers statistically significant speedups up to 1.66× over Timsort in high-redundancy regimes, while gracefully falling back to Timsort when redundancy is insufficient.AFS adaptively selects a sorting strategy based on data redundancy, outperforming general-purpose sorting in high-redundancy numerical columns common in data science pipelines.An auto-calibration mode removes the need for manual parameter tuning, making AFS practical for heterogeneous tabular data.Validation across six real-world domains confirms consistent, statistically significant speedups over Python's built-in Timsort.

  • Open Access

    Integrating Genetic Algorithms with LSTM for Improved Public Transportation Passenger Forecasting in Thailand

    by Pornsiri Khumla, Kamthorn Sarawan

    This study presents a novel forecasting framework that integrates Genetic Algorithms (GA) with Long Short-Term Memory (LSTM) networks to enhance the prediction accuracy of passenger volumes in Thailand's public transportation systems. The unique contribution of this research lies in leveraging GA for automatic hyperparameter optimization of LSTM models, improving performance over conventional methods. The dataset comprises weekly aggregated passenger counts from road and rail modes between January 2020 and August 2023. The proposed GA-enhanced LSTM model (LSTM+GA) is evaluated using four metrics: Mean Absolute Error (MAE), Root Mean Square Error (RMSE), Mean Absolute Percentage Error (MAPE), and Median Absolute Percentage Error (MdAPE). Results demonstrate that LSTM+GA outperforms baseline models including Autoregressive Integrated Moving Average (ARIMA), Facebook Prophet (FBProphet), and standard LSTM, achieving a MAPE of 4.04 for road and 5.86 for rail datasets. These findings suggest that the proposed model offers a practical and scalable tool for transport planners and public agencies seeking to optimize forecasting strategies and decision-making.

  • Open Access

    Hybrid Intelligence for Field-Scale Soil Analysis and Crop Advisory Using Embedded Sensors and Machine Learning

    by Phoori Chantima, Thanakorn Yarnguy, Kamthorn Sarawan, Ronnachai Sangmuenmao, Worapot Sommool, Sarayut Gonwirut

    This work provides the design and development of a portable soil testing system utilising artificial intelligence (AI) and machine learning (ML) capabilities for real-time soil analysis and crop suggestion. It uses a series of sensors to measure the essential soil parameters of pH, moisture, temperature, electrical conductivity, and macronutrients-nitrogen (N), phosphorus (P), and potassium (K). These sensor data are processed in a microcontroller-based system and analyzed by applying ML algorithms in order to assess the fertility and categorize the soil. A rule-based system integrated with a Random Forest Regressor provides dynamic, explainable crop recommendation using soil condition, environmental conditions, and past data trends. Users can view real-time sensor data in a web-based visualization, monitor history, and receive AI-driven crop advisory support through a web-based dashboard. This field-friendly device is rugged, low in cost, and oriented towards the requirements of smallholder producers. Field experiments using 500 soil samples also exhibit high conformity to a commercial soil tester, as the respective RMSEs are 2.26 mg/kg for nitrogen, 1.90 mg/kg for phosphorus, 1.97 mg/kg for potassium, and 0.60 for pH. The deployed MLmodel had an R² value of 0.978 in test data. These findings validate the system’s accuracy, dependability, and potential to facilitate sustainable, data-based decision-making in precision agriculture.


  • Open Access

    Efficient Route Planning in Northeast Thailand Using a Random Shuffle Enhanced 2-opt Algorithm

    by Kamthorn Sarawan, Pornsiri Khumla

    This research presents a detailed comparative analysis of algorithms designed to solve the Traveling Salesman Problem (TSP) within the Northeast region of Thailand, encompassing 20 provinces. The study evaluates the performance of several heuristic algorithms, including Nearest Neighbor, Farthest Insertion, traditional 2-opt, and a novel variant termed 2-optRS, which integrates a random shuffle mechanism. The primary aim is to minimize the total travel distance while considering the computational trade-offs of these algorithms. Authentic distance data between provinces were sourced from Google Maps to ensure accuracy and relevance to real-world applications. The study addresses the dual challenge of computational efficiency and solution quality, emphasizing the practical implications of algorithmic enhancements in route optimization. Among the tested algorithms, 2-optRS exhibited superior performance, achieving a notable reduction of approximately 158.6 km in travel distance compared to the traditional 2-opt algorithm. However, this improvement came at the expense of significantly increased processing time, highlighting the inherent trade-offs between computational demands and optimization benefits. By focusing on the Northeast region, which is poised for significant development through frameworks like the Greater Mekong Subregion (GMS) and Lancang-Mekong Cooperation (LMC), this research provides valuable insights for optimizing logistical networks in this rapidly growing area. The findings underscore the potential of advanced heuristic methods to enhance decision-making in regional transportation planning, contributing to the broader advancement of TSP optimization methodologies.


  • Open Access

    IMPROVING MATERIAL REQUIREMENTS PLANNING THROUGH WEB-BASED: A CASE STUDY THAILAND SMEs

    by Pornsiri Khumla, Kamthorn Sarawan

    In the small business industry, effective cost control is of paramount importance. A well-functioning Material Requirements Planning (MRP) process plays a vital role in enabling businesses to manage their costs efficiently. This research paper explores the improvement of MRP in the context of small businesses in Thailand through the implementation of a web-based application. The objective was to enhance the MRP process by developing an MRP system using ReactJS, NodeJS, and PostgreSQL. The system was evaluated using heuristic evaluation techniques and the results indicated a positive outcome, the mean value is 0.83. The developed web based MRP system proved beneficial for small businesses, as it effectively reduced stocking costs and facilitated efficient raw material procurement. This research provides valuable insights into the implementation of web based MRP systems, enabling small businesses to optimize inventory management and enhance operational efficiency.