{"id":23,"date":"2026-05-01T17:38:02","date_gmt":"2026-05-01T09:38:02","guid":{"rendered":"https:\/\/www.ycxhl.top\/?p=23"},"modified":"2026-08-23T11:26:59","modified_gmt":"2026-08-23T03:26:59","slug":"19","status":"publish","type":"post","link":"https:\/\/www.ycxhl.top\/en\/archives\/19\/","title":{"rendered":"[\u9879\u76ee] \u57fa\u4e8e\u81ea\u8bad\u7ec3AI\u7684Mesh\u81ea\u9002\u5e94\u8def\u7531\u4f18\u5316\u7cfb\u7edf\u7814\u7a76"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Jump to:<a href=\"https:\/\/www.ycxhl.top\/en\/archives\/25\/\">Modeling Paper<\/a><\/h2>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>Project Documentation &amp; Research Overview<\/strong><\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">I. Research Background<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Current wireless Mesh networks commonly suffer from the problem of \u201cstrong signal but unstable connection.\u201d Traditional protocols such as Zigbee and WIFI Mesh rely on a single signal strength factor for routing decisions, unable to comprehensively perceive key factors such as link packet loss rate, physical obstruction, and node load. Once encountering dynamic interference such as wall obstruction or personnel movement, the network is prone to interruption, cannot adapt to changing\/complex environments, and is difficult to meet communication needs in special environments.<br>This project changes the traditional single-factor decision-making model and builds an \u201cAI intelligent decision-making\u201d architecture. By deploying the random forest algorithm onto the ESP32-C6 chip, each node is endowed with the ability to make independent decisions without cloud participation. The system integrates multi-dimensional features such as signal quality, link hop count, node load, and link stability, achieving a leap from \u201cpassive connection\u201d to \u201cactive optimization,\u201d ensuring that the network remains robust, efficient, and self-healing in complex and ever-changing environments.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">II. Project Overview<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">This project constructs an adaptive routing optimization system based on AI algorithms.<br>Using the OMNet++ wireless network physical simulation software to construct a scenario containing several walls and communication nodes, 6959 pieces of simulation training data were obtained. Afterwards, the random forest algorithm was used to fit the training set data, yielding a mathematical model with good fitting performance.<br>This model can be approximately represented by a function (f is approximated by random forest):<\/p>\n\n\n\n<div class=\"wp-block-math has-medium-font-size\"><math display=\"block\"><semantics><mrow><mi>D<\/mi><mi>e<\/mi><mi>l<\/mi><mi>i<\/mi><mi>v<\/mi><mi>e<\/mi><mi>r<\/mi><mi>y<\/mi><mi>R<\/mi><mi>a<\/mi><mi>t<\/mi><mi>i<\/mi><mi>o<\/mi><mo>=<\/mo><mi>f<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>R<\/mi><mi>S<\/mi><mi>S<\/mi><mi>I<\/mi><mo separator=\"true\">,<\/mo><mi>H<\/mi><mi>o<\/mi><mi>p<\/mi><mo separator=\"true\">,<\/mo><mi>C<\/mi><mi>h<\/mi><mi>i<\/mi><mi>l<\/mi><mi>d<\/mi><mo separator=\"true\">,<\/mo><mi>L<\/mi><mi>o<\/mi><mi>s<\/mi><mi>s<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><\/mrow><annotation encoding=\"application\/x-tex\">DeliveryRatio = f(RSSI, Hop, Child, Loss)\n<\/annotation><\/semantics><\/math><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">After research, the obtained prediction algorithm was deployed to the ESP32-C6 microcontroller and experiments were conducted. The results show that the model derived in this paper can better balance information such as signal strength, link hop count, and node load when selecting parent nodes, thereby choosing nodes with better overall quality for networking.<br>This algorithm can be applied to scenarios such as rapid networking deployment in large-scale complex environments, and has certain practical prospects.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">III. Core Highlights<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">Multi-feature Fusion Routing Decision<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Breaking through the traditional routing method that relies solely on signal strength, it integrates multi-dimensional features such as RSSI, transmission distance, link quality, and energy consumption to improve path decision accuracy.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Modular Intelligent Networking<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Each ESP32-C6 is an independent unit, and units communicate and negotiate with each other. Through the trained decision model, node quality indicators are inferred by comprehensively considering various aspects of actual data, ultimately forming an optimal topology network.<br>After networking, whether it is ESP32 (C6\/S3\/C3\/8266), or mobile phones, tablets, and computers, all can access the network through these nodes. At this point, these nodes serve as network relay routers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Training a Machine Learning-Based Fitting Prediction Model<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Data was collected through the OMNeT++ wireless physical simulation tool, and the random forest was used to train the routing selection model. The coefficient of determination:<\/p>\n\n\n\n<div class=\"wp-block-math has-medium-font-size\"><math display=\"block\"><semantics><mrow><msup><mrow><mi mathvariant=\"normal\">R<\/mi><\/mrow><mn>2<\/mn><\/msup><mo>=<\/mo><mn>0.965047<\/mn><mo separator=\"true\">,<\/mo><mrow><mtext><\/mtext><mi>MSE<\/mi><\/mrow><mo>=<\/mo><mn>0.001571<\/mn><\/mrow><annotation encoding=\"application\/x-tex\">\\mathrm{R}^2 = 0.965047, \\mathrm{MSE} = 0.001571<\/annotation><\/semantics><\/math><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Achieving high-precision path quality prediction.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"783\" height=\"400\" data-id=\"74\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/OMNet\u4eff\u771f.webp\" alt=\"\" class=\"wp-image-74\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/OMNet\u4eff\u771f.webp 783w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/OMNet\u4eff\u771f-300x153.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/OMNet\u4eff\u771f-768x392.webp 768w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"489\" height=\"367\" data-id=\"51\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67971.webp\" alt=\"\" class=\"wp-image-51\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67971.webp 489w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67971-300x225.webp 300w\" sizes=\"auto, (max-width: 489px) 100vw, 489px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"400\" data-id=\"52\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67972.webp\" alt=\"\" class=\"wp-image-52\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67972.webp 800w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67972-300x150.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67972-768x384.webp 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">AI Edge Deployment<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Deploying the model to ESP32-C6 nodes enables local real-time inference without cloud participation, improving the model's decision response speed and convenience.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3D Modeling Printing + PCB Design<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">3D modeling printing technology will be used to design the terminal enclosure, integrating a lithium battery and charge\/discharge module. By soldering various components onto a designed and prototyped PCB circuit board, circuit integration is achieved.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"396\" data-id=\"70\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/3D\u5efa\u6a21\u56fe.webp\" alt=\"\" class=\"wp-image-70\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/3D\u5efa\u6a21\u56fe.webp 741w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/3D\u5efa\u6a21\u56fe-300x160.webp 300w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"440\" height=\"328\" data-id=\"75\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/PCB\u8bbe\u8ba1\u56fe.webp\" alt=\"\" class=\"wp-image-75\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/PCB\u8bbe\u8ba1\u56fe.webp 440w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/PCB\u8bbe\u8ba1\u56fe-300x224.webp 300w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"896\" height=\"672\" data-id=\"49\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u5b9e\u4f53\u6210\u54c1\u56fe.webp\" alt=\"\" class=\"wp-image-49\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u5b9e\u4f53\u6210\u54c1\u56fe.webp 896w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u5b9e\u4f53\u6210\u54c1\u56fe-300x225.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u5b9e\u4f53\u6210\u54c1\u56fe-768x576.webp 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Real-time Cloud Data\/Structure Monitoring<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Combining the Python Flask framework to build the server side (backend), and deploying the server via Docker containerization on a Linux cloud server (Debian-12.0), with the frontend page written in Vue.JS, real-time monitoring of network topology structure and node information is achieved.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"457\" data-id=\"48\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u524d\u7aef-1024x457.webp\" alt=\"\" class=\"wp-image-48\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u524d\u7aef-1024x457.webp 1024w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u524d\u7aef-300x134.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u524d\u7aef-768x343.webp 768w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u524d\u7aef.webp 1335w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"797\" height=\"473\" data-id=\"39\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u540e\u7aef.webp\" alt=\"\" class=\"wp-image-39\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u540e\u7aef.webp 797w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u540e\u7aef-300x178.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u540e\u7aef-768x456.webp 768w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/figure>\n<\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">IV. Comparison Diagram with Traditional Network Connection Methods<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">Normal Situation<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"367\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u6b63\u5e38\u60c5\u51b5.webp\" alt=\"\" class=\"wp-image-63\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u6b63\u5e38\u60c5\u51b5.webp 787w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u6b63\u5e38\u60c5\u51b5-300x140.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u6b63\u5e38\u60c5\u51b5-768x358.webp 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Possible Unexpected Situations (Signal Blockage or Weak Signal Due to Long Distance)<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"525\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u610f\u5916\u60c5\u51b5-1024x525.webp\" alt=\"\" class=\"wp-image-62\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u610f\u5916\u60c5\u51b5-1024x525.webp 1024w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u610f\u5916\u60c5\u51b5-300x154.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u610f\u5916\u60c5\u51b5-768x394.webp 768w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u610f\u5916\u60c5\u51b5-1536x788.webp 1536w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u610f\u5916\u60c5\u51b5.webp 1613w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Comparison Diagram 1, 2: This innovative solution has obvious advantages. Due to the integration of a trained AI model, this project has the ability to adapt to the environment and automatically optimize the network topology structure in changing environments, possessing stronger adaptability, flexibility, and foresight.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">V. Application Prospects<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Emergency communication at disaster sites (no base station environment)<\/li>\n\n\n\n<li>Smart IoT networks<\/li>\n\n\n\n<li>Industrial low-power monitoring networks<\/li>\n\n\n\n<li>Smart home self-organizing networks<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>Research Log<\/strong><\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">One: Topic Selection<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Current Status:<\/strong><br>Currently, wireless Mesh networks commonly exhibit the phenomenon of \u201cstrong signal but unstable.\u201d<br><strong>The Problem:<\/strong><br>Traditional protocols rely on a single signal strength for routing selection and cannot comprehensively perceive key factors such as link packet loss rate, physical obstruction, and node load.<br><strong>Research Goal:<\/strong><br>Build a robust, efficient, and self-healing intelligent Mesh network system.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">Two: Simulation Environment Construction, Data Collection<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Select OMNet++ wireless network physical simulation software to construct the scenario.<br>The simulation logic is based on the following assumptions:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The scenario is a two-dimensional room, and the gateway, terminals, relays, and walls are all randomly generated in each round.<\/li>\n\n\n\n<li>Walls are simplified as line segments. Whether a link \u201cpasses through a wall\u201d is determined by line segment intersection, and signal attenuation accumulates linearly with the number of walls crossed.<\/li>\n\n\n\n<li>The network is a tree structure, with the main gateway as the root node.<\/li>\n\n\n\n<li>Hop count is defined as the path length from the relay to the gateway (relay hops), and the number of child devices is defined as the number of direct child nodes of that relay in the tree.<\/li>\n\n\n\n<li>The attenuation effect of walls on signals is calculated using a modified model of the log-distance path loss model.<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-math has-medium-font-size\"><math display=\"block\"><semantics><mrow><mi>P<\/mi><mi>L<\/mi><mo>=<\/mo><mi>P<\/mi><msub><mi>L<\/mi><mn>0<\/mn><\/msub><mo>+<\/mo><mn>10<\/mn><mi>n<\/mi><mspace width=\"0.1667em\"><\/mspace><msub><mi>log<\/mi><mn>10<\/mn><\/msub><mo>\u2061<\/mo><mrow><mo fence=\"true\" form=\"prefix\">(<\/mo><mfrac><mi>d<\/mi><msub><mi>d<\/mi><mn>0<\/mn><\/msub><\/mfrac><mo fence=\"true\" form=\"postfix\">)<\/mo><\/mrow><mo>+<\/mo><msub><mi>N<\/mi><mtext>wall<\/mtext><\/msub><mo>\u22c5<\/mo><msub><mi>A<\/mi><mtext>wall<\/mtext><\/msub><\/mrow><annotation encoding=\"application\/x-tex\">PL = PL_0 + 10n \\log_{10}\\left(\\frac{d}{d_0}\\right) + N_{\\text{wall}} \\cdot A_{\\text{wall}}<\/annotation><\/semantics><\/math><\/div>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li>The more child devices a relay node has, the greater the node load, and the higher the probability of data packet loss.<\/li>\n\n\n\n<li>Data packets have a certain possibility of loss during each relay forwarding process.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Based on the above assumptions:<br>Use C++ to write the simulation logic, including random environment generation (gateway, terminals, relay nodes, and wall positions), RSSI and hop count calculation for paths from terminals to each relay and from relays to the gateway, the impact of child device load on link success rate, relay probabilistic packet loss, statistics on the simulation's data packet delivery ratio, and CSV result output (RSSI, hop count, number of child devices, node-to-gateway packet loss rate, delivery ratio).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">Three: Data Processing, AI Model Training and Optimization<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">(1) Data Preprocessing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The data contains a total of 6959 records, and each record consists of 5 fields:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Signal strength (RSSI_dBm)<\/li>\n\n\n\n<li>Node hop count (HopCount)<\/li>\n\n\n\n<li>Number of node child nodes (ChildCount)<\/li>\n\n\n\n<li>Node-to-gateway packet loss rate (NodeToGatewayLossRate)<\/li>\n\n\n\n<li>Terminal data packet delivery ratio (DeliveryRatio)<br>Among them, RSSI_dBm, HopCount, ChildCount, and NodeToGatewayLossRate are used as features.<br>The terminal-to-gateway delivery ratio DeliveryRatio is used as the label (target variable) for model prediction.<br>Read the csv data through the pandas library in Python.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">(2) Split the training set and test set.<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Randomly split the data with 20% as the test set and the other 80% as the training set.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">(III) Algorithm Fitting<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using the scikit-learn library in Python, construct linear regression, polynomial regression, and random forest algorithms respectively.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">(IV) Result Analysis<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">(1) Linear Regression<\/h3>\n\n\n\n<div class=\"wp-block-math has-medium-font-size\"><math display=\"block\"><semantics><mrow><msup><mrow><mi mathvariant=\"normal\">R<\/mi><\/mrow><mn>2<\/mn><\/msup><mo>=<\/mo><mn>0.622295<\/mn><mo separator=\"true\">,<\/mo><mrow><mtext><\/mtext><mi>MSE<\/mi><\/mrow><mo>=<\/mo><mn>0.016977<\/mn><\/mrow><annotation encoding=\"application\/x-tex\">\\mathrm{R}^2 = 0.622295, \\mathrm{MSE} = 0.016977<\/annotation><\/semantics><\/math><\/div>\n\n\n\n\n\n<p class=\"wp-block-paragraph\">The fitting effect is relatively weak, and the linear relationship between feature data and label data is not obvious.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"503\" height=\"377\" data-id=\"60\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u7ebf\u6027\u56de\u5f521.webp\" alt=\"\" class=\"wp-image-60\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u7ebf\u6027\u56de\u5f521.webp 503w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u7ebf\u6027\u56de\u5f521-300x225.webp 300w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"400\" data-id=\"61\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u7ebf\u6027\u56de\u5f522.webp\" alt=\"\" class=\"wp-image-61\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u7ebf\u6027\u56de\u5f522.webp 800w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u7ebf\u6027\u56de\u5f522-300x150.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u7ebf\u6027\u56de\u5f522-768x384.webp 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n<\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">(2) Polynomial Regression (Quadratic)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><br>According to the graph, the fitting effect is slightly better than linear regression, but negative values appear in predictions where the true values are small, indicating overfitting in the model.<\/p>\n\n\n\n<div class=\"wp-block-math has-medium-font-size\"><math display=\"block\"><semantics><mrow><msup><mrow><mi mathvariant=\"normal\">R<\/mi><\/mrow><mn>2<\/mn><\/msup><mo>=<\/mo><mn>0.836970<\/mn><mo separator=\"true\">,<\/mo><mrow><mtext><\/mtext><mi>MSE<\/mi><\/mrow><mo>=<\/mo><mn>0.007328<\/mn><\/mrow><annotation encoding=\"application\/x-tex\">\\mathrm{R}^2 = 0.836970, \\mathrm{MSE} = 0.007328<\/annotation><\/semantics><\/math><\/div>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"492\" height=\"369\" data-id=\"76\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u591a\u9879\u5f0f\u56de\u5f521.webp\" alt=\"\" class=\"wp-image-76\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u591a\u9879\u5f0f\u56de\u5f521.webp 492w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u591a\u9879\u5f0f\u56de\u5f521-300x225.webp 300w\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"400\" data-id=\"38\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u591a\u9879\u5f0f\u56de\u5f522.webp\" alt=\"\" class=\"wp-image-38\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u591a\u9879\u5f0f\u56de\u5f522.webp 800w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u591a\u9879\u5f0f\u56de\u5f522-300x150.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u591a\u9879\u5f0f\u56de\u5f522-768x384.webp 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n<\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">(3) Random Forest<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Since there is a nonlinear relationship between features and labels, and noise exists in the samples, analysis shows that this algorithm is a prediction method that meets the requirements.<\/p>\n\n\n\n<div class=\"wp-block-math has-medium-font-size\"><math display=\"block\"><semantics><mrow><msup><mrow><mi mathvariant=\"normal\">R<\/mi><\/mrow><mn>2<\/mn><\/msup><mo>=<\/mo><mn>0.965047<\/mn><mo separator=\"true\">,<\/mo><mrow><mtext><\/mtext><mi>MSE<\/mi><\/mrow><mo>=<\/mo><mn>0.001571<\/mn><\/mrow><annotation encoding=\"application\/x-tex\">\\mathrm{R}^2 = 0.965047, \\mathrm{MSE} = 0.001571<\/annotation><\/semantics><\/math><\/div>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-6 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"489\" height=\"367\" data-id=\"51\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67971.webp\" alt=\"\" class=\"wp-image-51\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67971.webp 489w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67971-300x225.webp 300w\" sizes=\"auto, (max-width: 489px) 100vw, 489px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"400\" data-id=\"52\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67972.webp\" alt=\"\" class=\"wp-image-52\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67972.webp 800w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67972-300x150.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u968f\u673a\u68ee\u67972-768x384.webp 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n<\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">IV: Hardware Development and Deployment<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Core:<\/strong><br>Select the ESP32-C6 microcontroller as the core control unit. Deploy the trained prediction algorithm to the ESP32-C6 node. Improve the basic logic.<br><strong>Structure:<\/strong><br>Use 3D modeling and printing technology to design the terminal enclosure. Complete PCB circuit board design and prototyping.<br><strong>Functions:<\/strong><br>Integrate a lithium battery and charge\/discharge module, switch, and OLED screen.<br><strong>Networking Capability:<\/strong><br>Each ESP32-C6 is an independent unit, communicating and negotiating with each other to form an optimal topology network.<br>Compatible with the ESP32 series (C6\/S3\/C3\/8266) and terminal access from mobile phones, tablets, computers, etc.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-7 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"396\" data-id=\"70\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/3D\u5efa\u6a21\u56fe.webp\" alt=\"\" class=\"wp-image-70\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/3D\u5efa\u6a21\u56fe.webp 741w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/3D\u5efa\u6a21\u56fe-300x160.webp 300w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"440\" height=\"328\" data-id=\"75\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/PCB\u8bbe\u8ba1\u56fe.webp\" alt=\"\" class=\"wp-image-75\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/PCB\u8bbe\u8ba1\u56fe.webp 440w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/PCB\u8bbe\u8ba1\u56fe-300x224.webp 300w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"896\" height=\"672\" data-id=\"49\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u5b9e\u4f53\u6210\u54c1\u56fe.webp\" alt=\"\" class=\"wp-image-49\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u5b9e\u4f53\u6210\u54c1\u56fe.webp 896w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u5b9e\u4f53\u6210\u54c1\u56fe-300x225.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u5b9e\u4f53\u6210\u54c1\u56fe-768x576.webp 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/figure>\n<\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">V: Cloud Monitoring System Construction<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Backend:<\/strong><br>Build the server side using the Python Flask framework.<br>Deploy it on a Linux cloud server (Debian-12.0) through Docker containerization.<br><strong>Frontend:<\/strong><br>Use Vue.JS to write the frontend pages.<br>Realized real-time monitoring of network topology and node information (including display of data such as node ID, number of sub-devices, packet loss rate, RSSI, etc.).<br>Backend logs can record data reception in real time (such as POST \/api\/data request handling).<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-8 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"457\" data-id=\"48\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u524d\u7aef-1024x457.webp\" alt=\"\" class=\"wp-image-48\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u524d\u7aef-1024x457.webp 1024w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u524d\u7aef-300x134.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u524d\u7aef-768x343.webp 768w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u524d\u7aef.webp 1335w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"797\" height=\"473\" data-id=\"39\" src=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u540e\u7aef.webp\" alt=\"\" class=\"wp-image-39\" srcset=\"https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u540e\u7aef.webp 797w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u540e\u7aef-300x178.webp 300w, https:\/\/www.ycxhl.top\/wp-content\/uploads\/2026\/08\/\u540e\u7aef-768x456.webp 768w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/figure>\n<\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">VI: Optimize the System and Fix Issues<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Organize the programs of each part, find and fix logic and detail errors, optimize the system, and add some meaningful functions at the same time.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u8df3\u8f6c\uff1a\u5efa\u6a21\u8bba\u6587 \u9879\u76ee\u6587\u6863&amp;\u7814\u7a76\u6982\u8ff0 \u4e00\u3001\u7814\u7a76\u80cc\u666f \u5f53\u524d\u65e0\u7ebf Mesh \u7f51\u7edc\u666e\u904d\u5b58\u5728\u201c\u4fe1\u53f7\u5f3a\u5374\u8fde\u63a5\u4e0d\u7a33\u5b9a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":49,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects"],"_links":{"self":[{"href":"https:\/\/www.ycxhl.top\/en\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ycxhl.top\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ycxhl.top\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ycxhl.top\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ycxhl.top\/en\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":4,"href":"https:\/\/www.ycxhl.top\/en\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":102,"href":"https:\/\/www.ycxhl.top\/en\/wp-json\/wp\/v2\/posts\/23\/revisions\/102"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ycxhl.top\/en\/wp-json\/wp\/v2\/media\/49"}],"wp:attachment":[{"href":"https:\/\/www.ycxhl.top\/en\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ycxhl.top\/en\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ycxhl.top\/en\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}