Project Description: PharmaTrend - Predicting Medicine Stock using K-Means and Trend Moment
PharmaTrend is an innovative web application developed using PHP, Tailwind CSS, and HTML, aimed at addressing the challenges faced by Pharmaceutical Wholesale Distributors (PBF) in accurately forecasting medicine demand and managing stock efficiently. In the highly competitive business landscape, the timely processing and delivery of information are critical factors for a company's success, and PharmaTrend aims to provide a reliable solution to enhance efficiency in data processing.
Objectives: The primary objective of PharmaTrend is to implement the K-Means clustering method and Trend Moment technique to predict medicine stock at PT. Lestari Jaya Farma. Through K-Means clustering, the application categorizes data into high, medium, and low clusters, enabling a better understanding of medicine demand patterns. The Trend Moment method is then applied to forecast demand trends based on historical sales data, facilitating effective inventory management.
Methodology: The project involves two key methodologies:
-
K-Means Clustering: This method is utilized to cluster the data, classifying 100 medicine items into high, medium, and low-demand categories. The clustering results in 42 high-demand, 32 medium-demand, and 24 low-demand medicine items, allowing PT. Lestari Jaya Farma to prioritize their inventory and respond to customer needs efficiently.
-
Trend Moment Prediction: The Trend Moment technique is employed to predict demand trends based on historical sales data. By analyzing past sales patterns, PharmaTrend provides accurate forecasts, helping the company optimize their inventory levels and minimize stockouts.
Results and Impact: The data processing results in PharmaTrend have been impressive. The Trend Moment predictions were evaluated, revealing a Mean Absolute Percentage Error (MAPE) of 1.30% and an accuracy rate of 98.70%. These remarkable results demonstrate the effectiveness and reliability of the predictive capabilities of the application.
Conclusion: PharmaTrend showcases the successful implementation of advanced data processing techniques to predict medicine stock and demand trends for PT. Lestari Jaya Farma. By utilizing K-Means clustering and Trend Moment prediction, the application empowers the company to make informed decisions, streamline inventory management, and ensure a seamless supply chain. It revolutionizes the way pharmaceutical distributors handle their stock and contributes significantly to PT. Lestari Jaya Farma's success in the highly competitive market.
Join PharmaTrend today to stay ahead in the pharmaceutical industry and revolutionize your inventory management!
- Install NodeJS, website: https://nodejs.org/en/
- Install XAMPP, website: https://www.apachefriends.org/download.html
- Install Git, website: https://git-scm.com/downloads
- Install Visual Studio Code, website: https://code.visualstudio.com/download
- Install Extensions Taiwind CSS IntelliSense, website: https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss
- Install Extensions Live Server, website: https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer
- Install Extensions PostCSS Language Support, website: https://marketplace.visualstudio.com/items?itemName=csstools.postcss
-
Open the terminal
-
Change the current working directory to the location where you want the cloned directory.
-
Write the command
git clone https://github.com/ikimukti/skripsi-arip.git
. -
Change the current working directory to the cloned directory
cd skripsi-arip
. -
Open the project in Visual Studio Code with the command
code .
. -
npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
to install tailwindcssadded 92 packages, and audited 93 packages in 2s 19 packages are looking for funding run `npm fund` for details found 0 vulnerabilities
-
npx tailwindcss init -p
to create tailwind.config.jstailwindcss 2.2.7 ✅ Created Tailwind config file: tailwind.config.js ✅ Created PostCSS config file: postcss.config.js
or
tailwind.config.js already exists. postcss.config.js already exists.
-
npx tailwindcss build src/css/input.css -o public/css/output.css
to create public/styles.csstailwindcss 2.2.7 ✅ Generated public/css/output.css successfully.
or
public/css/output.css already exists.
-
npm run build
to create public/bundle.js ornpm run dev
to create public/bundle.js and watch for changes -
Open the project in Visual Studio Code with the command
code .
-
Run XAMPP and start Apache and MySQL
-
Open the browser and go to
http://localhost/phpmyadmin/
-
Create a database with the name
skripsi-arip
-
import the database file
skripsi-arip.sql
in the database folder -
Open web browser icognito mode and go to
http://localhost/skripsi-arip/public/