<p>This paper aims to analyze the learning behavior of Thai learners by using a computer-based learning system for English writing. Three main objectives were set: the development of a computer-based learning system, automatic behavior data collection, and learning behavior analytics. Firstly, the system is developed under a multidisciplinary idea that is designed to integrate two concepts between the self-regulated learning model and components of natural language processing. The integration design encourages self-learning in the digital learning environment and supports appropriate English writing by the provided component selection. Second, the system automatically collects the writing behavior of a group of Thai learners. The data collected are necessary input for the process of learning analytics. Third, the writing behaviors data were analyzed to find the learning behavioral patterns of the learners. For learning analytics, behavior sequential analysis was used to analyze the learning logs from the system. The 31 undergraduate students are participated to record writing behaviors via the system. The learning patterns in relation to grammatical skills were compared between three groups: basic, intermediate, and advanced levels. The learning behavior patterns of the three groups are different that use for reflecting learners and improving the learning materials or curriculum.</p>